SERVER: Enable ambient_generic for STANDARD progs

This commit is contained in:
cypress 2023-11-30 22:10:07 -05:00
parent 1075512ceb
commit 73057da168

View file

@ -55,10 +55,16 @@ void() ambient_use =
if (self.spawnflags & AMBIENT_SOUND_NOT_LOOPING) { if (self.spawnflags & AMBIENT_SOUND_NOT_LOOPING) {
sound (self, CHAN_VOICE, self.message, 0, self.stance); sound (self, CHAN_VOICE, self.message, 0, self.stance);
} }
#ifdef FTE
else { else {
sound (self, CHAN_VOICE, self.message, 0, self.stance); sound (self, CHAN_VOICE, self.message, 0, self.stance);
ambientsound (self.origin, self.message, 0, self.stance); ambientsound (self.origin, self.message, 0, self.stance);
} }
#endif // FTE
self.team = 1; self.team = 1;
} }
@ -67,10 +73,7 @@ void() ambient_use =
void () ambient_generic = void () ambient_generic =
{ {
string link;
#ifdef FTE
local string link;
// moto - FIXME: typically this is set to upper-case but only FTE has strtoupper(); assume lower-case! // moto - FIXME: typically this is set to upper-case but only FTE has strtoupper(); assume lower-case!
link = self.message; link = self.message;
@ -113,13 +116,15 @@ void () ambient_generic =
if (self.spawnflags & AMBIENT_SOUND_START_SILENT) if (self.spawnflags & AMBIENT_SOUND_START_SILENT)
self.team = 1; self.team = 1;
#ifdef FTE
else else
ambientsound(self.origin, self.message, self.health, self.stance); ambientsound(self.origin, self.message, self.health, self.stance);
self.use = ambient_use;
#endif // FTE #endif // FTE
self.use = ambient_use;
}; };