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

Function JET_FlyStart

code/game/NPC_utils.cpp:1647–1662  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1645}
1646
1647void JET_FlyStart( gentity_t *self )
1648{
1649 if ( !self || !self->client )
1650 {
1651 return;
1652 }
1653 self->lastInAirTime = level.time;
1654 if ( self->client->NPC_class == CLASS_BOBAFETT )
1655 {
1656 Boba_FlyStart( self );
1657 }
1658 else if ( self->client->NPC_class == CLASS_ROCKETTROOPER )
1659 {
1660 RT_FlyStart( self );
1661 }
1662}
1663
1664void JET_FlyStop( gentity_t *self )
1665{

Callers 7

hurt_touchFunction · 0.85
PM_CheckJumpFunction · 0.85
NPC_JumpSoundFunction · 0.85
ForceJumpFunction · 0.85
WP_ForcePowerRunFunction · 0.85
NPC_HandleAIFlagsFunction · 0.85

Calls 2

RT_FlyStartFunction · 0.85
Boba_FlyStartFunction · 0.70

Tested by

no test coverage detected