cg_drainFX
jaPRO
Needs review. The inventory/provenance evidence is recorded, but some behavior, options, or attribution still lacks a direct user-facing source.
Controls cg_drainFX in the cgame module. Consult the cited behavior reads before relying on values not listed here.
At a glance
| Field | Value |
|---|---|
| Default | 2 |
| Value type | enum |
| Restart | No latch flag is registered. |
| Manually settable | Yes |
| Cheat protected | No |
| Network scope | client-only: Local to the client/UI/renderer. |
| Category | Gameplay & combat |
| Module | cgame |
| Renderer | All / not renderer-specific |
| Derivation | code-trace |
| Confidence | medium |
| Added | 2018-09-03 in bdcd618c6 needs review (how to compare this against your build) |
| In-game xdocs | No |
| In-game menu | No |
Values
| Value | Meaning | Evidence |
|---|---|---|
1 |
Selects the code path tested for value 1. | codemp/cgame/cg_players.c:11786 |
2 |
Selects the code path tested for value 2. | codemp/cgame/cg_players.c:11788 |
Flags
CVAR_NONE: fork/source-defined flag; see registration evidence
Provenance
Origin: jaPRO
- Ultimate-origin introduction:
bdcd618c6771in jaPRO (content authored2018-09-03, integrated2018-09-03) - Upstream registration evidence: codemp/cgame/cg_xcvar.h:227
- Attribution method:
squash-feature-group-explicit-credit - Attribution confidence:
medium - Notes: The identifier’s single-prefix squash feature group explicitly credits japro.
Dated project introductions
Authored dates come from the exact registration’s first content commit, PR dates identify when work was proposed to each project, and integration dates come from each first-parent mainline. A project merging first does not override earlier upstream authorship or submission.
| Project | Authored | PR opened | Integrated | Commit | Relationship |
|---|---|---|---|---|---|
| EternalJK | 2018-09-03 |
— | 2018-09-03 |
bdcd618c6771 |
Shared integration commit |
| TaystJK | 2018-09-03 |
— | 2018-09-03 |
bdcd618c6771 |
Shared integration commit |
| jaPRO | 2018-09-03 |
— | 2018-09-03 |
bdcd618c6771 |
Ultimate origin |
| Vulkan | 2018-09-03 |
— | 2018-09-03 |
bdcd618c6771 |
Shared integration commit |
Later changes
These commits occur after the ultimate-origin introduction on TaystJK’s inherited first-parent lineage. Registration evidence is exact; behavior evidence requires a changed bound cvar reference or a changed registered command-handler hunk.
| Date | Change source | Commit / subject | Evidence | Confidence |
|---|---|---|---|---|
2022-05-12 |
TaystJK | fa0bd728f6e6drainfx tweak |
Changed an exact bound cvar-variable reference. codemp/cgame/cg_players.c |
medium |
2024-05-31 |
jaPRO | 55aceb66a04c · PR #207Japro update (#207) |
Changed an exact bound cvar-variable reference. codemp/cgame/cg_players.c |
high |
2026-03-21 |
TaystJK | ffd652da046c · PR #297Merge pull request #297 from taysta/fixes |
Changed registration, default, flags, module, renderer scope, handler, or gating. codemp/cgame/cg_xcvar.h |
medium |
Evidence
- registration: codemp/cgame/cg_xcvar.h:231 (XCVAR_DEF)
- behavior: codemp/cgame/cg_players.c:11786
- behavior: codemp/cgame/cg_players.c:11788
- behavior: codemp/cgame/cg_players.c:11795
- behavior: codemp/cgame/cg_players.c:11797
Generated from source commit c722804317d7 on 2026-09-28. Anything merged after that is not reflected here.