Find and identify the CSmokeGrenadeProjectile_Create factory in CS2 server binary using IDA Pro MCP.
Use this skill when reverse engineering CS2 server.dll or libserver.so to locate the smoke-grenade
projectile spawn factory. It is a non-virtual, direct-call static factory found via the entity
classname string "smokegrenade_projectile" it references (excluding the RTTI class string
"CSmokeGrenadeProjectile"). Emits a unique IDA-style byte signature and a func YAML. Mirrors the
find-CSmokeGren...
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Find CSmokeGrenadeProjectile Create?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/mrc4tt-find-csmokegrenadeprojectile-create)
---
name: find-CSmokeGrenadeProjectile_Create
description: |
Find and identify the CSmokeGrenadeProjectile_Create factory in CS2 server binary using IDA Pro MCP.
Use this skill when reverse engineering CS2 server.dll or libserver.so to locate the smoke-grenade
projectile spawn factory. It is a non-virtual, direct-call static factory found via the entity
classname string "smokegrenade_projectile" it references (excluding the RTTI class string
"CSmokeGrenadeProjectile"). Emits a unique IDA-style byte signature and a func YAML. Mirrors the
find-CSmokeGrenadeProjectile_Create.py preprocessor (xref_strings FULLMATCH:smokegrenade_projectile).
Trigger: CSmokeGrenadeProjectile_Create, CSmokeGrenadeProjectile::Create, smoke projectile Create
disable-model-invocation: true
---
# Find CSmokeGrenadeProjectile_Create
Locate `CSmokeGrenadeProjectile_Create` in CS2 `server.dll` or `libserver.so` using IDA Pro MCP tools.
This is a **non-virtual, direct-call static factory** (no vtable slot - emit a byte sig, not an
offset). It is found via the entity classname string `"smokegrenade_projectile"` it references
(passed to the entity-create path when spawning the projectile). The RTTI/class string
`"CSmokeGrenadeProjectile"` is a **different** referencer and must be excluded.
## Method
### 1. Reuse previous signature (fast path)
If a prior `CSmokeGrenadeProjectile_Create.{platform}.yaml` exists, try its `func_sig` via
`mcp__ida-pro-mcp__find_bytes`. Single match -> resolve to function start, skip to Step 4. Else continue.
### 2. Anchor on the classname string
Locate the exact string `"smokegrenade_projectile"` (FULLMATCH - not the longer
`"CSmokeGrenadeProjectile"` RTTI string). Take its cross-references
(`mcp__ida-pro-mcp__xrefs_to`).
### 3. Identify Create among the referencers
`Create` is the referencer that spawns the projectile entity: it creates the entity by classname,
then initializes the smoke-projectile fields (velocity/owner/params) and returns the new object.
Exclude any referencer reached via the `"CSmokeGrenadeProjectile"` RTTI string. Confirm the
candidate is the compact factory wrapper (not a large think/update routine). Record `func_addr`.
### 4. Generate signature
**ALWAYS** use SKILL `/generate-signature-for-function` with `addr=<func_addr>`. Emit IDA style
verbatim (space hex, `?` wildcards) - do NOT convert to CSS `\x2A` unless a `gamedata.json`
entry is explicitly requested.
Reference sig (sanity check only, regenerate per binary):
- linux: `55 4C 89 C1 48 89 E5 41 57 49 89 FF 41 56 45 89 CE`
- windows: `48 8B C4 48 89 58 ? 48 89 68 ? 48 89 70 ? 57 41 56 41 57 48 81 EC ? ? ? ? 48 8B B4 24 ? ? ? ? 4D 8B F8`
### 5. Write func YAML
**ALWAYS** use SKILL `/write-func-as-yaml`:
- `func_name`: `CSmokeGrenadeProjectile_Create`
- `func_addr`: `<func_addr>`
- `func_sig`: validated sig from step 4
## Function Characteristics
- **Linkage**: non-virtual, direct-call static factory (no vtable entry)
- **Binary**: `server.dll` / `libserver.so`
- **Distinguishing trait**: references the `"smokegrenade_projectile"` entity classname string;
NOT the `"CSmokeGrenadeProjectile"` RTTI string
## Preprocessor pipeline equivalent
```
find-CSmokeGrenadeProjectile_Create [xref_strings FULLMATCH:smokegrenade_projectile,
exclude_strings CSmokeGrenadeProjectile]
```
## Output YAML Format
- `server.dll` -> `CSmokeGrenadeProjectile_Create.windows.yaml`
- `libserver.so` -> `CSmokeGrenadeProjectile_Create.linux.yaml`