hzqst

find-ClientPrint

5
0
# Install this skill:
npx skills add hzqst/CS2_VibeSignatures --skill "find-ClientPrint"

Install specific skill from multi-skill repository

# Description

Find and identify the ClientPrint function in CS2 binary using IDA Pro MCP. Use this skill when reverse engineering CS2 server.dll or server.so to locate the ClientPrint function by searching for known localization string references like "#Player_Cash_Award_ExplainSuicide_TeammateGotCash" and analyzing cross-references to find the print function.

# SKILL.md


name: find-ClientPrint
description: Find and identify the ClientPrint function in CS2 binary using IDA Pro MCP. Use this skill when reverse engineering CS2 server.dll or server.so to locate the ClientPrint function by searching for known localization string references like "#Player_Cash_Award_ExplainSuicide_TeammateGotCash" and analyzing cross-references to find the print function.


Find ClientPrint

Locate ClientPrint in CS2 server.dll or server.so using IDA Pro MCP tools.

Method

  1. Search for the localization string:
    mcp__ida-pro-mcp__find_regex pattern="#Player_Cash_Award_ExplainSuicide_TeammateGotCash"

  2. Get cross-references to the string:
    mcp__ida-pro-mcp__xrefs_to addrs="<string_addr>"

  3. Decompile the referencing function to find the ClientPrint call:
    mcp__ida-pro-mcp__decompile addr="<function_addr>"

  4. Identify the ClientPrint function:

  5. Look for a call that takes the localization string as a parameter
  6. The function signature pattern: ClientPrint(recipient_filter, msg_type, localization_string, param1, param2, param3, param4)
  7. In the decompiled code, look for calls like:
    c sub_XXXXXX((__int64)v100, 3, "#Player_Cash_Award_ExplainSuicide_TeammateGotCash", v54, v90, v89, 0);

  8. Rename the function:
    mcp__ida-pro-mcp__rename batch={"func": [{"addr": "<function_addr>", "name": "ClientPrint"}]}

  9. Generate and validate unique signature:

DO NOT use find_bytes as it won't work for function.
ALWAYS Use SKILL /generate-signature-for-function to generate a robust and unique signature for the function.

  1. Write IDA analysis output as YAML beside the binary:

ALWAYS Use SKILL /write-func-as-yaml to write the analysis results.

Required parameters:
- func_name: ClientPrint
- func_addr: The function address from step 4
- func_sig: The validated signature from step 6

String References

The function is commonly called with these localization strings:
- #Player_Cash_Award_ExplainSuicide_TeammateGotCash
- #Player_Cash_Award_ExplainSuicide_EnemyGotCash
- #Player_Cash_Award_ExplainSuicide_Spectators
- #Player_Cash_Award_ExplainSuicide_YouGotCash (used by similar function)

Function Characteristics

  • Parameters:
  • arg0: Recipient filter (player/team filter object)
  • arg1: Message type (int, typically 3 for HUD_PRINTTALK)
  • arg2: Localization string (const char*)
  • arg3-arg6: Format parameters (const char*)

  • Message Types:

  • 1: HUD_PRINTNOTIFY
  • 2: HUD_PRINTCONSOLE
  • 3: HUD_PRINTTALK
  • 4: HUD_PRINTCENTER
  • UTIL_ClientPrintAll - Prints to all clients (uses different recipient filter)
  • ClientPrint - Prints to specific recipient filter

Output YAML Format

The output YAML filename depends on the platform:
- server.dll β†’ ClientPrint.windows.yaml
- server.so β†’ ClientPrint.linux.yaml

func_va: 0x15d0480       # Virtual address of the function - This can change when game updates.
func_rva: 0x15d0480      # Relative virtual address (VA - image base) - This can change when game updates.
func_size: 0x22d         # Function size in bytes - This can change when game updates.
func_sig: XX XX XX XX XX # Unique byte signature for pattern scanning - This can change when game updates.

# Supported AI Coding Agents

This skill is compatible with the SKILL.md standard and works with all major AI coding agents:

Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.