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

Function NPC_ReserveCombatPoint

code/game/NPC_combat.cpp:3054–3068  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3052*/
3053
3054qboolean NPC_ReserveCombatPoint( int combatPointID )
3055{
3056 //Make sure it's valid
3057 if ( combatPointID > level.numCombatPoints )
3058 return qfalse;
3059
3060 //Make sure it's not already occupied
3061 if ( level.combatPoints[combatPointID].occupied )
3062 return qfalse;
3063
3064 //Reserve it
3065 level.combatPoints[combatPointID].occupied = qtrue;
3066
3067 return qtrue;
3068}
3069
3070/*
3071-------------------------

Callers 1

NPC_SetCombatPointFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected