NPC
OpenJK
Needs review. The inventory/provenance evidence is recorded, but some behavior, options, or attribution still lacks a direct user-facing source.
Removed cheat for admin //meh let us npc kill all from spec
At a glance
| Field | Value |
|---|---|
| Category | Bots & AI |
| Module | cgame |
| Also registered in | cgame, game |
| Renderer | All / not renderer-specific |
| Network scope | needs-server-support — Sent to, or only useful with, a supporting game server. |
| Derivation | documented |
| Confidence | medium |
| In-game xdocs | No |
| In-game menu | No |
| Syntax | NPC [arguments] |
| Cheat protected | No |
Arguments and gating
No verified argument schema is available beyond the syntax shown above.
Gating: sent-to-server.
Provenance
Origin: OpenJK
- Ultimate-origin introduction:
14cea1563762in OpenJK (content authored2013-04-04, integrated2013-04-07) - Upstream registration evidence: code/cgame/cg_consolecmds.cpp:303
- Attribution method:
shared-earliest-commit-lineage-order - Attribution confidence:
medium - Notes: The earliest authored/submitted introduction is shared by openjk, eternaljk, rend2, taystjk, japro, newjk, vulkan; fork-lineage order selects openjk. Dated commit evidence identifies later registration changes relative to the origin snapshot.
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 |
|---|---|---|---|---|---|
| OpenJK | 2013-04-04 |
— | 2013-04-07 |
14cea1563762 |
Ultimate origin |
| EternalJK | 2013-04-04 |
— | 2013-04-07 |
14cea1563762 |
Shared integration commit |
| rend2 | 2013-04-04 |
— | 2013-04-07 |
14cea1563762 |
Shared integration commit |
| TaystJK | 2013-04-04 |
— | 2013-04-07 |
14cea1563762 |
Shared integration commit |
| jaPRO | 2013-04-04 |
— | 2013-04-07 |
14cea1563762 |
Shared integration commit |
| NewJK / NewMod | 2013-04-04 |
— | 2013-04-07 |
14cea1563762 |
Shared integration commit |
| Vulkan | 2013-04-04 |
— | 2013-04-07 |
14cea1563762 |
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 |
|---|---|---|---|---|
2013-04-07 |
OpenJK | a09d4827fb0dAdded /codeJK2/ for JK2. Also did a whole bunch of other crap which I shouldn’t have, in hindsight. Have fun! |
Changed registration, default, flags, module, renderer scope, handler, or gating. codeJK2/game/g_svcmds.cpp |
medium |
2013-04-07 |
OpenJK | b319c52fd4edMajor codemp cleanup. Ported modbase. Restructured VS2010 projects. |
Changed registration, default, flags, module, renderer scope, handler, or gating; and the registered command handler. codemp/game/g_cmds.c |
medium |
2013-04-27 |
OpenJK | 9f0123a1e1fdMerge branch ‘master’ of https://github.com/Razish/OpenJK into modrender-port |
Changed registration, default, flags, module, renderer scope, handler, or gating. codemp/cgame/cg_consolecmds.c |
high |
2013-05-11 |
OpenJK | f203e799b14cMerge branch ‘master’ of https://github.com/Razish/OpenJK into modrender-port |
Changed the registered command handler. codemp/game/NPC_spawn.c |
high |
2013-08-11 |
OpenJK | 794718e3fdfbMerge pull request #344 from Razish/qvmtest |
Changed the registered command handler. codemp/game/NPC_spawn.c |
medium |
2013-11-22 |
OpenJK | 41362f823b67[SP] cg_consolecmd cleanup |
Changed registration, default, flags, module, renderer scope, handler, or gating. code/cgame/cg_consolecmds.cpp |
medium |
2013-12-15 |
OpenJK | c716976207c3[MP] Fixed typo in NPC spawn command |
Changed the registered command handler. codemp/game/NPC_spawn.c |
medium |
2014-01-30 |
OpenJK | d3a6d2b9b9d2[MP] Style: remove superfluous whitespace |
Changed the registered command handler. codemp/game/NPC_spawn.c |
medium |
2014-03-12 |
OpenJK | cfeb246ffcce[JK2SP] Merging in some fixes and cleanup from JASP cgame/game code. |
Changed registration, default, flags, module, renderer scope, handler, or gating. codeJK2/cgame/cg_consolecmds.cpp |
medium |
2015-11-13 |
OpenJK | 5ef5d7214371Merge branch ‘master’ of https://github.com/JACoders/OpenJK |
Changed registration, default, flags, module, renderer scope, handler, or gating. code/game/g_svcmds.cpp |
medium |
2015-11-24 |
EternalJK | c8f6ea17a324Remove SP code |
Changed registration, default, flags, module, renderer scope, handler, or gating. code/cgame/cg_consolecmds.cpp, code/game/g_svcmds.cpp, codeJK2/cgame/cg_consolecmds.cpp and 1 more |
medium |
2018-01-01 |
jaPRO | d9d510063ce6Merge branch ‘japro-ejk’ |
Changed registration, default, flags, module, renderer scope, handler, or gating; and the registered command handler. codemp/game/NPC_spawn.c, codemp/game/g_cmds.c |
high |
2018-09-03 |
jaPRO | bdcd618c6771Import japro cgame |
Changed registration, default, flags, module, renderer scope, handler, or gating. codemp/cgame/cg_consolecmds.c |
high |
2018-10-19 |
jaPRO | 96eedd5acfa3Merge remote-tracking branch ‘videoP-jaPRO/master’ |
Changed the registered command handler. codemp/game/NPC_spawn.c |
high |
2018-11-04 |
EternalJK | ad634ee5d2ffMerge branch ‘master’ of https://github.com/eternalcodes/EternalJK |
Changed the registered command handler. codemp/game/NPC_spawn.c |
high |
2018-11-05 |
jaPRO | 3d1c26c449c5Merge remote-tracking branch ‘videoP-jaPRO/master’ |
Changed the registered command handler. codemp/game/NPC_spawn.c |
high |
Evidence
- registration: codemp/cgame/cg_consolecmds.c:2587 (forwarded client command table)
- registration: codemp/cgame/cg_consolecmds.c:2632 (forwarded client command table)
- registration: codemp/game/g_cmds.c:9013 (game command table)
- handler: codemp/game/NPC_spawn.c:4291