X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fmapobjects%2Ffunc%2Fbobbing.qc;h=d010a87583fa9925e5a9c55229739eb97d2e748f;hb=e88e1e15090f826fe3ac9b006e89eca0d1ecfe68;hp=60920fafb8c5c95599af7b2090570bfc30ae84d6;hpb=16e64ff58cf65d7b3e0815aadb530580a6aa251b;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/mapobjects/func/bobbing.qc b/qcsrc/common/mapobjects/func/bobbing.qc index 60920fafb..d010a8758 100644 --- a/qcsrc/common/mapobjects/func/bobbing.qc +++ b/qcsrc/common/mapobjects/func/bobbing.qc @@ -35,7 +35,7 @@ spawnfunc(func_bobbing) if (this.noise != "") { precache_sound(this.noise); - soundto(MSG_INIT, this, CH_TRIGGER_SINGLE, this.noise, VOL_BASE, ATTEN_IDLE); + soundto(MSG_INIT, this, CH_TRIGGER_SINGLE, this.noise, VOL_BASE, ATTEN_IDLE, 0); } if (!this.speed) this.speed = 4; @@ -54,7 +54,7 @@ spawnfunc(func_bobbing) setblocked(this, generic_plat_blocked); if(this.dmg && (this.message == "")) this.message = " was squished"; - if(this.dmg && (this.message2 == "")) + if(this.dmg && (this.message2 == "")) this.message2 = "was squished by"; if(this.dmg && (!this.dmgtime)) this.dmgtime = 0.25; @@ -72,7 +72,7 @@ spawnfunc(func_bobbing) return; // wait for targets to spawn - controller = new(func_bobbing_controller); + controller = new_pure(func_bobbing_controller); controller.owner = this; controller.nextthink = time + 1; setthink(controller, func_bobbing_controller_think);