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

Function G_StartFlee

code/game/NPC_behavior.cpp:1988–2000  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1986}
1987
1988void G_StartFlee( gentity_t *self, gentity_t *enemy, vec3_t dangerPoint, int dangerLevel, int fleeTimeMin, int fleeTimeMax )
1989{
1990 if ( !self->NPC )
1991 {//player
1992 return;
1993 }
1994 SaveNPCGlobals();
1995 SetNPCGlobals( self );
1996
1997 NPC_StartFlee( enemy, dangerPoint, dangerLevel, fleeTimeMin, fleeTimeMax );
1998
1999 RestoreNPCGlobals();
2000}
2001
2002void NPC_BSEmplaced( void )
2003{

Callers 3

pas_find_enemiesFunction · 0.70
WP_FireRocketFunction · 0.70
ST_StartFleeFunction · 0.70

Calls 4

SaveNPCGlobalsFunction · 0.70
SetNPCGlobalsFunction · 0.70
NPC_StartFleeFunction · 0.70
RestoreNPCGlobalsFunction · 0.70

Tested by

no test coverage detected