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

Function NPC_JumpSound

code/game/NPC_move.cpp:370–386  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

368extern void JET_FlyStart(gentity_t* actor);
369
370void NPC_JumpSound()
371{
372 if ( NPC->client->NPC_class == CLASS_HOWLER )
373 {
374 //FIXME: can I delay the actual jump so that it matches the anim...?
375 }
376 else if ( NPC->client->NPC_class == CLASS_BOBAFETT
377 || NPC->client->NPC_class == CLASS_ROCKETTROOPER )
378 {
379 // does this really need to be here?
380 JET_FlyStart(NPC);
381 }
382 else
383 {
384 G_SoundOnEnt( NPC, CHAN_BODY, "sound/weapons/force/jump.wav" );
385 }
386}
387
388qboolean NPC_TryJump()
389{

Callers 1

NPC_TryJumpFunction · 0.85

Calls 2

JET_FlyStartFunction · 0.85
G_SoundOnEntFunction · 0.70

Tested by

no test coverage detected