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

Function SandCreature_Precache

code/game/AI_SandCreature.cpp:37–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35#define MIN_SCORE -37500 //speed of (50*50) - dist of (200*200)
36
37void SandCreature_Precache( void )
38{
39 int i;
40 G_EffectIndex( "env/sand_dive" );
41 G_EffectIndex( "env/sand_spray" );
42 G_EffectIndex( "env/sand_move" );
43 G_EffectIndex( "env/sand_move_breach" );
44 //G_EffectIndex( "env/sand_attack_breach" );
45 for ( i = 1; i < 4; i++ )
46 {
47 G_SoundIndex( va( "sound/chars/sand_creature/voice%d.mp3", i ) );
48 }
49 G_SoundIndex( "sound/chars/sand_creature/slither.wav" );
50}
51
52void SandCreature_ClearTimers( gentity_t *ent )
53{

Callers 1

NPC_PrecacheByClassNameFunction · 0.85

Calls 3

G_EffectIndexFunction · 0.70
G_SoundIndexFunction · 0.70
vaFunction · 0.50

Tested by

no test coverage detected