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

Function FighterOverValidLandingSurface

code/game/FighterNPC.cpp:300–309  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

298#endif
299
300qboolean FighterOverValidLandingSurface( Vehicle_t *pVeh )
301{
302 if ( pVeh->m_LandTrace.fraction < 1.0f //ground present
303 && pVeh->m_LandTrace.plane.normal[2] >= MIN_LANDING_SLOPE )//flat enough
304 //FIXME: also check for a certain surface flag ... "landing zones"?
305 {
306 return qtrue;
307 }
308 return qfalse;
309}
310
311qboolean FighterIsLanded( Vehicle_t *pVeh, playerState_t *parentPS )
312{

Callers 5

FighterIsLandedFunction · 0.70
FighterIsLandingFunction · 0.70
FighterIsLaunchingFunction · 0.70
ProcessMoveCommandsFunction · 0.70
FighterNPC.cppFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected