X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Ft_jumppads.qc;h=029bd8e5b6ed75b293cff51cf67367415b8cdfab;hb=d91906e1bb6225cd68269812a6d2b4314e23fcdb;hp=0efb77df276ae2154a8127458e5695b2ecb0b53d;hpb=fb1dcac984f31f1b00acdff66a8ee10c152dcdab;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/t_jumppads.qc b/qcsrc/server/t_jumppads.qc index 0efb77df2..029bd8e5b 100644 --- a/qcsrc/server/t_jumppads.qc +++ b/qcsrc/server/t_jumppads.qc @@ -1,5 +1,5 @@ -float PUSH_ONCE = 1; -float PUSH_SILENT = 2; +const float PUSH_ONCE = 1; +const float PUSH_SILENT = 2; .float pushltime; .float istypefrag; @@ -137,7 +137,7 @@ void trigger_push_touch() return; if(self.team) - if((self.spawnflags & 4 == 0) == (self.team != other.team)) + if(((self.spawnflags & 4) == 0) == (self.team != other.team)) return; EXACTTRIGGER_TOUCH; @@ -164,7 +164,7 @@ void trigger_push_touch() other.velocity = self.movedir; } - other.flags &~= FL_ONGROUND; + other.flags &= ~FL_ONGROUND; if (IS_PLAYER(other)) { @@ -175,7 +175,7 @@ void trigger_push_touch() { // flash when activated pointparticles(particleeffectnum("jumppad_activate"), other.origin, other.velocity, 1); - sound (other, CH_TRIGGER, self.noise, VOL_BASE, ATTN_NORM); + sound (other, CH_TRIGGER, self.noise, VOL_BASE, ATTEN_NORM); self.pushltime = time + 0.2; } if(IS_REAL_CLIENT(other) || IS_BOT_CLIENT(other)) @@ -329,7 +329,7 @@ void spawnfunc_trigger_push() self.speed = 1000; self.movedir = self.movedir * self.speed * 10; - if not(self.noise) + if (!self.noise) self.noise = "misc/jumppad.wav"; precache_sound (self.noise);