djcev.com

//

Git Repos / fte_dogmode / qc / misc / noisemaker.qc

Last update to this file was on 2024-06-15 at 19:50.

Show noisemaker.qc

//==============================================================================
// misc_noisemaker
//==============================================================================

//======================================================================
// forward declarations
//======================================================================

#ifdef SSQC
// misc_noisemaker
void() misc_noisemaker_think;
void(entity e) misc_noisemaker_init;
void() misc_noisemaker;
#endif

//------------------------------------------------------------------------------

/*QUAKED misc_noisemaker (1 0.5 0) (-10 -10 -10) (10 10 10) X X X X X X X X NOT_ON_EASY NOT_ON_NORMAL NOT_ON_HARD_OR_NIGHTMARE NOT_IN_DEATHMATCH NOT_IN_COOP NOT_IN_SINGLEPLAYER X NOT_ON_HARD_ONLY NOT_ON_NIGHTMARE_ONLY

For optimzation testing, starts a lot of sounds.
*/
//----------------------------------------------------------------------
// class misc_noisemaker: base_mapentity
// {
#ifdef SSQC
//--------------------------------------------------------------
void() misc_noisemaker_think =
{
self.nextthink = time + 0.5;
sound (self, 1, "enforcer/enfire.wav", VOL_HIGH, ATTN_NORM);
sound (self, 2, "enforcer/enfstop.wav", VOL_HIGH, ATTN_NORM);
sound (self, 3, "enforcer/sight1.wav", VOL_HIGH, ATTN_NORM);
sound (self, 4, "enforcer/sight2.wav", VOL_HIGH, ATTN_NORM);
sound (self, 5, "enforcer/sight3.wav", VOL_HIGH, ATTN_NORM);
sound (self, 6, "enforcer/sight4.wav", VOL_HIGH, ATTN_NORM);
sound (self, 7, "enforcer/pain1.wav", VOL_HIGH, ATTN_NORM);
};

//--------------------------------------------------------------
void(entity e) misc_noisemaker_init =
{
e.classname = "misc_noisemaker";
e.classtype = CT_MISC_NOISEMAKER;
base_mapentity_init (e);

precache_sound2 ("enforcer/enfire.wav");
precache_sound2 ("enforcer/enfstop.wav");
precache_sound2 ("enforcer/sight1.wav");
precache_sound2 ("enforcer/sight2.wav");
precache_sound2 ("enforcer/sight3.wav");
precache_sound2 ("enforcer/sight4.wav");
precache_sound2 ("enforcer/pain1.wav");
precache_sound2 ("enforcer/pain2.wav");
precache_sound2 ("enforcer/death1.wav");
precache_sound2 ("enforcer/idle1.wav");

e.think = misc_noisemaker_think;
e.nextthink = time + 0.1 + random ();
};

//--------------------------------------------------------------
void() misc_noisemaker =
{
// new spawnflags for all entities -- iw
if (SUB_Inhibit())
return;

misc_noisemaker_init (self);
};
#endif
// };

Return to the top of this page or return to the overview of this repo.

Log noisemaker.qc

Return to the top of this page or return to the overview of this repo.