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:
tankefugl 2006-05-01 12:37:31 +00:00
parent 5b8f78883e
commit de4769abad
6 changed files with 7 additions and 1 deletions

Binary file not shown.

Binary file not shown.

View file

@ -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"

View file

@ -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);