MCPcopy Create free account
hub / github.com/JACoders/OpenJK / NPC_CheckAttackScript

Function NPC_CheckAttackScript

codeJK2/game/NPC.cpp:1090–1098  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1088}
1089
1090void NPC_CheckAttackScript(void)
1091{
1092 if(!(ucmd.buttons & BUTTON_ATTACK))
1093 {
1094 return;
1095 }
1096
1097 G_ActivateBehavior(NPC, BSET_ATTACK);
1098}
1099
1100float NPC_MaxDistSquaredForWeapon (void);
1101void NPC_CheckAttackHold(void)

Callers 1

NPC_ExecuteBStateFunction · 0.70

Calls 1

G_ActivateBehaviorFunction · 0.70

Tested by

no test coverage detected