Ok, this gets wierder and wierder. I added some debug messages to tell the
server console when the guns precache was being called, and also when the
sounds were about to be played. I figured since these were the only 3 places
these sounds were mentioned, that one of these was the culprit.

However, todays console showed:

--------------------------------------Start of cut &
paste ----------------------------------

hostname:  Official Judgement Server
version :  45/1.1.0.8 1769
tcp/ip  :  194.81.90.52:27015
ipx     :  89c36e02:00c04f345a9b:27015
map     :  jm_mutie at: 0 x, 0 y, 0 z
players: 0 active (8 max)

#      name id wonid frag time ping loss adr
0 users
PackFile: d:\sierra\half-life\valve\pak0.pak : sound/fvox/warning.wav
PackFile: d:\sierra\half-life\valve\pak0.pak : sound/fvox/danger.wav
PackFile: d:\sierra\half-life\valve\pak0.pak : sound/fvox/warning.wav
PackFile: d:\sierra\half-life\valve\pak0.pak : sound/fvox/warning.wav
PackFile: d:\sierra\half-life\valve\pak0.pak : sound/fvox/warning.wav
PackFile: d:\sierra\half-life\valve\pak0.pak : sound/fvox/warning.wav
PackFile: d:\sierra\half-life\valve\pak0.pak : sound/fvox/warning.wav
PackFile: d:\sierra\half-life\valve\pak0.pak : sound/fvox/warning.wav
PackFile: d:\sierra\half-life\valve\pak0.pak : sound/fvox/warning.wav
PackFile: d:\sierra\half-life\valve\pak0.pak : sound/fvox/warning.wav
PackFile: d:\sierra\half-life\valve\pak0.pak : sound/fvox/danger.wav
PackFile: d:\sierra\half-life\valve\pak0.pak : sound/fvox/danger.wav
PackFile: d:\sierra\half-life\valve\pak0.pak : sound/fvox/danger.wav
PackFile: d:\sierra\half-life\valve\pak0.pak : sound/fvox/danger.wav
PackFile: d:\sierra\half-life\valve\pak0.pak : sound/fvox/danger.wav
PackFile: d:\sierra\half-life\valve\pak0.pak : sound/fvox/danger.wav
PackFile: d:\sierra\half-life\valve\pak0.pak : sound/fvox/danger.wav
PackFile: d:\sierra\half-life\valve\pak0.pak : sound/fvox/danger.wav
PackFile: d:\sierra\half-life\valve\pak0.pak : sound/fvox/danger.wav
Stub precache running

--------------------------------------End of cut &
paste ----------------------------------

Which means that those messages came up before the PRECACHE_SOUND was called
midgame (the message is printed the line before the precache_sound in the
code). Just to show, here's the precache function:

void CStubGun::Precache( void )
{
 PRECACHE_MODEL("models/v_stub.mdl");
 PRECACHE_MODEL("models/w_stub.mdl");
 PRECACHE_MODEL("models/p_stub.mdl");

 PRECACHE_SOUND ("weapons/357_cock1.wav");
 PRECACHE_SOUND ("weapons/electro6.wav");
 PRECACHE_SOUND ("weapons/laser2.wav");

 if (IS_DEDICATED_SERVER())
 {
  char ptr[128];
  sprintf(ptr, "Stub precache running\n");
  printf("%s", ptr);
 }
 PRECACHE_SOUND ("fvox/warning.wav");
 PRECACHE_SOUND ("fvox/danger.wav");

 UTIL_PrecacheOther( "laserbolt" );

 m_usStubFire = PRECACHE_EVENT( 1, "events/stub.sc" );
}

I am now utterly stumped.

----- Original Message -----
From: "Paul 'MoOg' Samways" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 05, 2002 4:23 PM
Subject: Re: [hlcoders] Wierd repeated precache


> No more than weapons normally respawn. I'm just curious as to why it would
> keep listing the sound effects, as I was under the impression that once a
> sound was precached it wouldn't be again, even if the precache function
was
> called. Otherwise when you loaded a map you'd see everything get precached
> more than once like it actually does.
>
> Hrm, I'm not sure I'm wording my concerns right here. Basically, those two
> effect precache at level load (I can see them amongst the big long list on
> the server console at level change) but occasionally the server will
> suddenly list them about 20 times in under a second and then settle down
> again. That's MID GAME, long after the weapons should have precached (and
> have).
>
> ----- Original Message -----
> From: "Yacketta, Ronald" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, March 05, 2002 4:16 PM
> Subject: RE: [hlcoders] Wierd repeated precache
>
>
> > I thaught Precache() was called within the weapon spawn,
> > does/is the weapon repeatidly respawn/ing?
> >
> > > -----Original Message-----
> > > From: Paul 'MoOg' Samways [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, March 05, 2002 10:19
> > > To: [EMAIL PROTECTED]
> > > Subject: [hlcoders] Wierd repeated precache
> > >
> > >
> > > I've been watching our dedicated server and for several
> > > builds now it's been
> > > repeatedly listing two sound effects in the same way it does
> > > when going
> > > through all the precaches at level load. ie.
> > >
> > > PackFile: d:\sierra\half-life\valve\pak0.pak : sound/fvox/warning.wav
> > > PackFile: d:\sierra\half-life\valve\pak0.pak : sound/fvox/danger.wav
> > >
> > > repeated over and over again
> > >
> > > I've tried to duplicate it by logging on and repeatedly picking up and
> > > firing the weapon that uses those sounds when it overheats,
> > > but I can't
> > > always make it do it.
> > >
> > > I'm just really wanting to confirm that when these lines appear on  a
> > > dedicated server console, that it means the server is
> > > reloading that sound.
> > > Am I right? If so then something is really screwy with that
> > > weapon as it
> > > only loads those two in the precache like all the other
> > > weapons do for their
> > > effects :/
> > >
> > > MoOg
> > >
> > > _______________________________________________
> > > To unsubscribe, edit your list preferences, or view the list
> > > archives, please visit:
> > > http://list.valvesoftware.com/mailman/listinfo/hlcoders
> > >
> > _______________________________________________
> > To unsubscribe, edit your list preferences, or view the list archives,
> please visit:
> > http://list.valvesoftware.com/mailman/listinfo/hlcoders
> >
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives,
please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to