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

Function G_CurrentBState

code/game/NPC.cpp:2137–2150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2135}
2136
2137static bState_t G_CurrentBState( gNPC_t *gNPC )
2138{
2139 if ( gNPC->tempBehavior != BS_DEFAULT )
2140 {//Overrides normal behavior until cleared
2141 return (gNPC->tempBehavior);
2142 }
2143
2144 if( gNPC->behaviorState == BS_DEFAULT )
2145 {
2146 gNPC->behaviorState = gNPC->defaultBehavior;
2147 }
2148
2149 return (gNPC->behaviorState);
2150}
2151/*
2152===============
2153NPC_ExecuteBState

Callers 2

G_JediInNormalAIFunction · 0.85
NPC_ExecuteBStateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected