find-CCSPlayer_MovementServices_FullWalkMove_SpeedClamp
Skill67 starsChanged 58 days agoMITView on GitHub
Find and identify the velocity clamping branch inside CCSPlayer_MovementServices_FullWalkMove in CS2 binary using IDA Pro MCP, then generate a patch signature to disable it. Use this skill when reverse engineering CS2 server.dll or libserver.so to locate and patch the speed-clamp if-branch that caps player velocity to maxspeed inside FullWalkMove. Trigger: FullWalkMove speed clamp, velocity clamping patch, FullWalkMove SpeedClamp, disable maxspeed clamp
In this repository54 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- cleanup-workspaceSkill
- convert-finder-skill-to-preprocessor-scriptsSkill
- create-agent-skill-fallbackSkill
- create-cpp-testsSkill
- create-preprocessor-scriptsSkill
- create-prSkill
- dump-vtablesSkill
- find-CBaseEntity_GetChangeAccessorPathInfo_1Skill
- find-CCSBotManager_AddBot_BotNavIgnoreSkill
- find-CCSGameRules__sm_mapGcBanInformationSkill
- find-CCSPlayer_MovementServices_CheckJumpButton_WaterPatchSkill
- find-CEntitySystem_Init-decompilesSkill
- find-CEntitySystem_m_entityNamesSkill
- find-CNetworkGameServerBase_CheckTimeouts-decompilesSkill
- find-CNetworkGameServerBase_CreateFakeClientSkill
- find-CNetworkGameServerBase_GetChallengeTypeSkill
- find-CNetworkGameServer_GetFreeClientSkill
- find-CNetworkMessages_dtorSkill
- find-CNetworkMessages_GetIsForServerSkill
- find-CNetworkMessages_GetNetworkSerializationContextDataSkill
- find-CNetworkMessages_vtable-decompilesSkill
- find-CServerSideClientBase_GetUserIDStringSkill
- find-CSource2Server_Shutdown-decompilesSkill
- find-CSteam3ServerS1_InitGameServer-decompilesSkill
- find-INetworkServerService_GetServerSerializersCRCSkill
- find-INetworkServerService_IsActiveInGameSkill
- find-INetworkServerService_IsServerRunningSkill
- find-IVEngineServer2_GetClientSteamIDSkill
- find-OnServerVoiceData_IsPlayingDemo_CalleeSkill
- fix-cppheadersSkill
- generate-reference-yamlSkill
- generate-signature-for-functionSkill
- generate-signature-for-globalvarSkill
- generate-signature-for-patchSkill
- generate-signature-for-structoffsetSkill
- generate-signature-for-vfuncoffsetSkill
- get-func-from-yamlSkill
- get-vtable-addressSkill
- get-vtable-from-yamlSkill
- get-vtable-indexSkill
- init-gamebinSkill
- rename-preprocessor-scriptsSkill
- resolve-pr-conflictSkill
- run-validation-until-no-failureSkill
- run-vcall-finderSkill
- trigger-release-buildSkill
- write-func-as-yamlSkill
- write-globalvar-as-yamlSkill
- write-patch-as-yamlSkill
- write-structoffset-as-yamlSkill
- write-vfunc-as-yamlSkill
- write-vtable-as-yamlSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 2 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 41
ALWAYS: Use SKILL /get-func-from-yaml with func_name=CCSPlayer_MovementServices_FullWalkMove.
- Distinctive: line 43
If the skill returns an error, stop and report to user.
- Distinctive: line 68
Look for this assembly pattern:
- Very specific: line 81
Read the original bytes of the jbe instruction:
- Very specific: line 99
ALWAYS: Use SKILL /generate-signature-for-patch to generate and validate the signature.
- Very specific: line 111
ALWAYS: Use SKILL /write-patch-as-yaml to persist the results.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
CCSPlayer_MovementServices_FullWalkMove_SpeedClamp Patch Workflow
Overview
Locate the velocity clamping branch inside CCSPlayer_MovementServices_FullWalkMove and generate a patch that converts the conditional jump into an unconditional jump, making the speed-clamp code a dead path.
The target code pattern in pseudocode:
v20 = (float)((float)(v16 * v16) + (float)(v19 * v19)) + (float)(v17 * v17);
if ( v20 > (float)(v18 * v18) ) // <-- patch target: disable this branch
{
// velocity clamping logic: scale velocity down to maxspeed
v21 = fsqrt(v20);
v22 = v18 / v21;
*(float *)(a2 + 56) = ... * v22;
*(float *)(a2 + 60) = ... * v22;
*(float *)(a2 + 64) = ... * v22;
...
}In assembly, this is a comiss + jbe (or jbe short) pair. The jbe skips the clamping block when velocity <= maxspeed^2. Patching jbe to jmp makes it always skip, disabling the clamp entirely.
Prerequisites
CCSPlayer_MovementServices_FullWalkMovemust already be identified. Use SKILL/get-func-from-yamlwithfunc_name=CCSPlayer_MovementServices_FullWalkMoveto load its address. If YAML does not exist, run SKILL/find-CCSPlayer_MovementServices_FullWalkMove-AND-CCSPlayer_MovementServices_CheckVelocity-AND-CCSPlayer_MovementServices_WaterMovefirst.
Location Steps
1. Get FullWalkMove Function Address
ALWAYS Use SKILL /get-func-from-yaml with func_name=CCSPlayer_MovementServices_FullWalkMove.
If the skill returns an error, stop and report to user.
2. Decompile and Locate the Speed Clamp Pattern
Decompile the function:
mcp__ida-pro-mcp__decompile(addr="<func_va>")In the decompiled output, search for the velocity clamping pattern. The key indicators are:
- A sum-of-squares computation:
(x*x) + (y*y) + (z*z)stored in a variable (e.g.,v20) - Compared against another float squared:
v20 > (float)(v18 * v18) - Inside the if-block:
fsqrt, division, and writes toa2+56,a2+60,a2+64(velocity vector)
Note the address annotation on the comparison line (e.g., /*0x180a00e28*/ or similar).
3. Disassemble Around the Comparison
Disassemble the function starting from slightly before the annotated address to find the exact comiss + jbe/jbe short instruction pair:
mcp__ida-pro-mcp__disasm(addr="<func_va>", offset=<estimated_offset>, max_instructions=30)Look for this assembly pattern:
addss xmm2, xmm1 ; v20 = sum of squares
comiss xmm2, xmm0 ; compare v20 vs v18*v18
jbe loc_XXXXXXXX ; skip clamp block if v20 <= v18*v18Record:
- patch_va: Address of the
jbeinstruction - jump_target: The target address of the
jbe(theloc_XXXXXXXXlabel)
4. Determine Patch Bytes
Read the original bytes of the jbe instruction:
mcp__ida-pro-mcp__get_bytes(regions={"addr": "<patch_va>", "size": 6})Determine the patch based on the instruction encoding:
Case A: Near jbe (0F 86 rel32 — 6 bytes)
patch_bytes=E9 <new_rel32_le> 90- Compute:
new_rel32 = jump_target - (patch_va + 5)
Case B: Short jbe (76 rel8 — 2 bytes)
patch_bytes=EB <rel8>- The
rel8stays the same (same target,jmp shortuses same displacement encoding asjbe short)
5. Generate Patch Signature
ALWAYS Use SKILL /generate-signature-for-patch to generate and validate the signature.
Required context for the skill:
func_name:CCSPlayer_MovementServices_FullWalkMovefunc_va: From step 1patch_va: Address of thejbeinstruction from step 3original_instruction: e.g.,jbe loc_180A00EE4patched_instruction: e.g.,jmp loc_180A00EE4description:Disable velocity clamping in FullWalkMove - patch conditional jbe to unconditional jmp to skip the speed clamping if-branch
6. Write YAML Output
ALWAYS Use SKILL /write-patch-as-yaml to persist the results.
Required parameters:
patch_name:CCSPlayer_MovementServices_FullWalkMove_SpeedClamppatch_sig: The validated signature from step 5patch_bytes: The computed patch bytes from step 4patch_sig_disp: From step 5 result (omit if 0)
Output YAML Files
CCSPlayer_MovementServices_FullWalkMove_SpeedClamp.windows.yamlCCSPlayer_MovementServices_FullWalkMove_SpeedClamp.linux.yaml
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

