mirror of
https://github.com/ENSL/NS.git
synced 2024-11-23 21:12:15 +00:00
o Updated the sounds for web
git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@438 67975925-1194-0748-b3d5-c16f83f1a3a1
This commit is contained in:
parent
5b8f78883e
commit
de4769abad
6 changed files with 7 additions and 1 deletions
BIN
releases/3.2.0/sound/misc/web_form.wav
Normal file
BIN
releases/3.2.0/sound/misc/web_form.wav
Normal file
Binary file not shown.
BIN
releases/3.2.0/sound/misc/web_harden.wav
Normal file
BIN
releases/3.2.0/sound/misc/web_harden.wav
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -70,6 +70,8 @@ const float kWebThinkInterval = .1f;
|
|||
const int kWebStrandWidth = 60;
|
||||
const int kWebStrandLifetime = 50;
|
||||
#define kWebStrandBreakSound "misc/web_break.wav"
|
||||
#define kWebStrandHardenSound "misc/web_harden.wav"
|
||||
#define kWebStrandFormSound "misc/web_form.wav"
|
||||
|
||||
#define kAlienResourceTowerModel "models/ba_resource.mdl"
|
||||
|
||||
|
|
|
@ -1686,6 +1686,8 @@ void AvHWebStrand::Precache(void)
|
|||
// Precache web strand sprite
|
||||
PRECACHE_UNMODIFIED_MODEL(kWebStrandSprite);
|
||||
PRECACHE_UNMODIFIED_SOUND(kWebStrandBreakSound);
|
||||
PRECACHE_UNMODIFIED_SOUND(kWebStrandHardenSound);
|
||||
PRECACHE_UNMODIFIED_SOUND(kWebStrandFormSound);
|
||||
}
|
||||
|
||||
void AvHWebStrand::Setup(const Vector& inPointOne, const Vector& inPointTwo)
|
||||
|
@ -1722,13 +1724,15 @@ void AvHWebStrand::Spawn(void)
|
|||
//SetBits(this->pev->flags, FL_MONSTER);
|
||||
|
||||
this->RelinkBeam();
|
||||
|
||||
EMIT_SOUND(ENT(this->pev), CHAN_AUTO, kWebStrandFormSound, 1.0, ATTN_IDLE);
|
||||
//SetThink(StrandExpire);
|
||||
//this->pev->nextthink = gpGlobals->time + kWebStrandLifetime;
|
||||
}
|
||||
|
||||
void AvHWebStrand::StrandThink()
|
||||
{
|
||||
EMIT_SOUND(ENT(this->pev), CHAN_AUTO, kWebStrandBreakSound, 1.0, ATTN_IDLE);
|
||||
EMIT_SOUND(ENT(this->pev), CHAN_AUTO, kWebStrandHardenSound, 1.0, ATTN_IDLE);
|
||||
//this->SetBrightness( 64 );
|
||||
this->SetColor( 255, 255, 255 );
|
||||
this->SetFrame(1);
|
||||
|
|
Loading…
Reference in a new issue