Find CCSPlayer MovementServices CheckJumpButton WaterPatch

From HLND2T/CS2_VibeSignatures · View interactive version

Find CCSPlayer MovementServices CheckJumpButton WaterPatch is an AI agent skill from the GitHub repository HLND2T/CS2_VibeSignatures. 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 o

How to use this skill

Skill file

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

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:

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.0f

Record:

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

Patch bytes: C7 46 40 00 00 11 43

5. Generate Patch Signature

ALWAYS Use SKILL /generate-signature-for-patch to generate and validate the signature.

Required context for the skill:

6. Write YAML Output

ALWAYS Use SKILL /write-patch-as-yaml to persist the results.

Required parameters:

IEEE 754 Float Reference

Output YAML Files

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.