]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Sounds: zone stored SND tempstrings
authorTimePath <andrew.hardaker1995@gmail.com>
Tue, 3 Nov 2015 10:47:10 +0000 (21:47 +1100)
committerTimePath <andrew.hardaker1995@gmail.com>
Tue, 3 Nov 2015 10:47:10 +0000 (21:47 +1100)
qcsrc/common/gamemodes/gamemode/nexball/nexball.qc
qcsrc/common/triggers/trigger/keylock.qc
qcsrc/common/triggers/trigger/multi.qc
qcsrc/server/item_key.qc
qcsrc/server/mutators/mutator/gamemode_ctf.qc

index 69ad8f5f3a79b20f9566ce357a79fa7d14a50ae5..6c46395f8dac35e5b683d364971084925e5775fe 100644 (file)
@@ -545,13 +545,13 @@ void SpawnBall(void)
        if(!autocvar_g_nexball_sound_bounce)
                self.noise = "";
        else if(self.noise == "")
-               self.noise = SND(NB_BOUNCE);
+               self.noise = strzone(SND(NB_BOUNCE));
        //bounce sound placeholder (FIXME)
        if(self.noise1 == "")
-               self.noise1 = SND(NB_DROP);
+               self.noise1 = strzone(SND(NB_DROP));
        //ball drop sound placeholder (FIXME)
        if(self.noise2 == "")
-               self.noise2 = SND(NB_STEAL);
+               self.noise2 = strzone(SND(NB_STEAL));
        //stealing sound placeholder (FIXME)
        if(self.noise) precache_sound(self.noise);
        precache_sound(self.noise1);
@@ -653,7 +653,7 @@ spawnfunc(nexball_fault)
 {
        self.team = GOAL_FAULT;
        if(self.noise == "")
-               self.noise = SND(TYPEHIT);
+               self.noise = strzone(SND(TYPEHIT));
        SpawnGoal();
 }
 
@@ -661,7 +661,7 @@ spawnfunc(nexball_out)
 {
        self.team = GOAL_OUT;
        if(self.noise == "")
-               self.noise = SND(TYPEHIT);
+               self.noise = strzone(SND(TYPEHIT));
        SpawnGoal();
 }
 
index 365c6f5a908d01a7ea8a3f7f76a51ce2545e0b70..8cef73c7ae500b241c3b2e3fc74ee5b5fe7ea6ed 100644 (file)
@@ -146,7 +146,7 @@ spawnfunc(trigger_keylock)
                if(self.sounds == 1)
                        self.noise = "misc/secret.wav";
                else if(self.sounds == 2)
-                       self.noise = SND(TALK);
+                       self.noise = strzone(SND(TALK));
                else //if (self.sounds == 3) {
                        self.noise = "misc/trigger1.wav";
        }
index bc5821c809383597f1b8d1d92b0fea2229b86436..91bfc99834b2953611707678ab25268269f3244e 100644 (file)
@@ -153,7 +153,7 @@ spawnfunc(trigger_multiple)
        }
        else if (self.sounds == 2)
        {
-               self.noise = SND(TALK);
+               self.noise = strzone(SND(TALK));
        }
        else if (self.sounds == 3)
        {
index 5ab3c8df22626eceb373246a94621684bb2e3ea7..d1e1f32e429e53bb7c3a1d534860d00896e6ecdd 100644 (file)
@@ -239,7 +239,7 @@ spawnfunc(item_key)
                self.message = strzone(strcat("You've picked up the ", self.netname, "!"));
 
        if (self.noise == "")
-               self.noise = SND(ITEMPICKUP);
+               self.noise = strzone(SND(ITEMPICKUP));
 
        // save the name for later
        item_keys_names[lowestbit(self.itemkeys)] = self.netname;
index 13dec008e059f63bc34106a9addd212242c415cb..61c02138435e8d4b98f195a1ca1e357d040d9fb7 100644 (file)
@@ -1408,15 +1408,15 @@ void ctf_FlagSetup(int teamnumber, entity flag) // called when spawning a flag e
        set_flag_string(flag, capeffect,        "%s_cap",               teamname);
 
        // sounds
-       flag.snd_flag_taken = SND(CTF_TAKEN(teamnumber));
-       flag.snd_flag_returned = SND(CTF_RETURNED(teamnumber));
-       flag.snd_flag_capture = SND(CTF_CAPTURE(teamnumber));
-       flag.snd_flag_dropped = SND(CTF_DROPPED(teamnumber));
-       if (flag.snd_flag_respawn == "") flag.snd_flag_respawn = SND(CTF_RESPAWN); // if there is ever a team-based sound for this, update the code to match.
+       flag.snd_flag_taken = strzone(SND(CTF_TAKEN(teamnumber)));
+       flag.snd_flag_returned = strzone(SND(CTF_RETURNED(teamnumber)));
+       flag.snd_flag_capture = strzone(SND(CTF_CAPTURE(teamnumber)));
+       flag.snd_flag_dropped = strzone(SND(CTF_DROPPED(teamnumber)));
+       if (flag.snd_flag_respawn == "") flag.snd_flag_respawn = strzone(SND(CTF_RESPAWN)); // if there is ever a team-based sound for this, update the code to match.
        precache_sound(flag.snd_flag_respawn);
-       if (flag.snd_flag_touch == "") flag.snd_flag_touch = SND(CTF_TOUCH); // again has no team-based sound
+       if (flag.snd_flag_touch == "") flag.snd_flag_touch = strzone(SND(CTF_TOUCH)); // again has no team-based sound
        precache_sound(flag.snd_flag_touch);
-       if (flag.snd_flag_pass == "") flag.snd_flag_pass = SND(CTF_PASS); // same story here
+       if (flag.snd_flag_pass == "") flag.snd_flag_pass = strzone(SND(CTF_PASS)); // same story here
        precache_sound(flag.snd_flag_pass);
 
        // precache