Skip to content

Commit

Permalink
SERVER: Use .noise for trigger_awardpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
MotoLegacy committed Jan 30, 2024
1 parent 1205b94 commit 60383b1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/server/entities/triggers.qc
Original file line number Diff line number Diff line change
Expand Up @@ -386,17 +386,17 @@ void() trigger_awardpoints_touch =

addmoney(other, self.points, (self.spawnflags & SPAWNFLAG_TRIGGERSCORE_APPLY2XPOINTS));

if (self.aistatus != "")
sound(self, 0, self.aistatus, 1, 1);
if (self.noise != "")
sound(self, 0, self.noise, 1, 1);
}

void() trigger_awardpoints =
{
InitTrigger ();
self.touch = trigger_awardpoints_touch;

if (self.aistatus != "")
precache_sound(self.aistatus);
if (self.noise != "")
precache_sound(self.noise);
}

//
Expand Down

0 comments on commit 60383b1

Please sign in to comment.