]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/mapobjects/func/bobbing.qc
Make messages translatable for trigger_hurt, target_kill, various movers
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / mapobjects / func / bobbing.qc
index 60920fafb8c5c95599af7b2090570bfc30ae84d6..ffbd363f970db3fa4a9621e3ef239213981af0c4 100644 (file)
@@ -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;
@@ -53,9 +53,9 @@ spawnfunc(func_bobbing)
        // damage when blocked
        setblocked(this, generic_plat_blocked);
        if(this.dmg && (this.message == ""))
-               this.message = " was squished";
-    if(this.dmg && (this.message2 == ""))
-               this.message2 = "was squished by";
+               this.message = _(" was squished");
+       if(this.dmg && (this.message2 == ""))
+               this.message2 = _("was squished by");
        if(this.dmg && (!this.dmgtime))
                this.dmgtime = 0.25;
        this.dmgtime2 = time;
@@ -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);