find-CCSPlayer_MovementServices_CheckJumpButton_WaterPatch
Skill67 starsChanged 58 days agoMITView on GitHub
Find and patch the water jump velocity inside CCSPlayer_MovementServices_CheckJumpButton in CS2 binary using IDA Pro MCP. This patch changes the water jump velocity from 100.0f to 145.0f by modifying the immediate operand of a mov instruction. Use this skill when reverse engineering CS2 server.dll or libserver.so to locate and patch the water jump height value. Trigger: water jump patch, CheckJumpButton water velocity, jump height patch, water jump 145
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_FullWalkMove_SpeedClampSkill
- 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 35
ALWAYS: Use SKILL /get-func-from-yaml with func_name=CCSPlayer_MovementServices_CheckJumpButton.
- Distinctive: line 37
If the skill returns an error, stop and report to user.
- Distinctive: line 62
Look for this assembly pattern:
- Very specific: line 74
Read the original bytes of the mov instruction:
- Very specific: line 90
ALWAYS: Use SKILL /generate-signature-for-patch to generate and validate the signature.
- Very specific: line 102
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_CheckJumpButton_WaterPatch
Overview
Locate the water jump velocity assignment inside CCSPlayer_MovementServices_CheckJumpButton and generate a patch that changes the immediate value from 100.0f (0x42C80000) to 145.0f (0x43110000).
The target code pattern in pseudocode:
if ( v5 == (int *)0x8000 ) // move type check for water
{
*(_DWORD *)(a2 + 64) = 1120403456; // <-- patch target: 100.0f -> 145.0f
}In assembly, this is a mov dword ptr [reg+40h], 42C80000h instruction. The patch changes the immediate operand from 42C80000h (100.0f) to 43110000h (145.0f).
Prerequisites
CCSPlayer_MovementServices_CheckJumpButtonmust already be identified. Use SKILL/get-func-from-yamlwithfunc_name=CCSPlayer_MovementServices_CheckJumpButtonto load its address. If YAML does not exist, run SKILL/find-CCSPlayer_MovementServices_CheckJumpButtonfirst.
Location Steps
1. Get CheckJumpButton Function Address
ALWAYS Use SKILL /get-func-from-yaml with func_name=CCSPlayer_MovementServices_CheckJumpButton.
If the skill returns an error, stop and report to user.
2. Decompile and Locate the Water Jump Pattern
Decompile the function:
mcp__ida-pro-mcp__decompile(addr="<func_va>")In the decompiled output, search for the water jump velocity pattern. The key indicators are:
- A comparison against
0x8000(water move type) - Inside the if-block:
*(_DWORD *)(a2 + 64) = 1120403456(which is 100.0f as IEEE 754) - Note:
1120403456decimal =0x42C80000=100.0fin IEEE 754 floating point
Note the address annotation on the assignment line.
3. Disassemble Around the Assignment
Disassemble the function around the annotated address to find the exact mov instruction:
mcp__ida-pro-mcp__disasm(addr="<func_va>", offset=<estimated_offset>, max_instructions=20)Look for this assembly pattern:
cmp rax, 8000h ; check water move type
jnz short loc_XXXXXXXX ; skip if not water
mov dword ptr [rsi+40h], 42C80000h ; <-- patch target: 100.0fRecord:
- patch_va: Address of the
mov dword ptr [reg+40h], 42C80000hinstruction
4. Determine Patch Bytes
Read the original bytes of the mov instruction:
mcp__ida-pro-mcp__get_bytes(regions={"addr": "<patch_va>", "size": 7})The original 7-byte instruction: C7 46 40 00 00 C8 42
C7 46 40= opcode + ModR/M formov dword ptr [rsi+40h]00 00 C8 42= immediate0x42C80000(100.0f, little-endian)
Patch bytes: C7 46 40 00 00 11 43
- Same opcode + ModR/M
00 00 11 43= immediate0x43110000(145.0f, little-endian)
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_CheckJumpButtonfunc_va: From step 1patch_va: Address of themovinstruction from step 3original_instruction:mov dword ptr [rsi+40h], 42C80000hpatched_instruction:mov dword ptr [rsi+40h], 43110000hdescription:Change water jump velocity from 100.0f to 145.0f in CheckJumpButton
6. Write YAML Output
ALWAYS Use SKILL /write-patch-as-yaml to persist the results.
Required parameters:
patch_name:CCSPlayer_MovementServices_CheckJumpButton_WaterPatchpatch_sig: The validated signature from step 5patch_bytes:C7 46 40 00 00 11 43patch_sig_disp: From step 5 result (omit if 0)
IEEE 754 Float Reference
100.0f=0x42C80000=1120403456decimal145.0f=0x43110000=1125187584decimal
Output YAML Files
CCSPlayer_MovementServices_CheckJumpButton_WaterPatch.windows.yamlCCSPlayer_MovementServices_CheckJumpButton_WaterPatch.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.

