From: Rudolf Polzer Date: Sun, 21 Apr 2013 15:58:33 +0000 (+0200) Subject: get rid of some bad uses of .ogg extension X-Git-Tag: xonotic-v0.7.0~73^2~4 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=cf1e9ff0af9a588d0ca462047975327e5fc3aef0;p=xonotic%2Fxonotic-data.pk3dir.git get rid of some bad uses of .ogg extension --- diff --git a/qcsrc/menu/menu.qc b/qcsrc/menu/menu.qc index ddf9ff686..2dc73a8d2 100644 --- a/qcsrc/menu/menu.qc +++ b/qcsrc/menu/menu.qc @@ -687,7 +687,7 @@ void m_draw() if(Menu_Active) if(!cvar("menu_video_played")) { - localcmd("cd loop $menu_cdtrack; play sound/announcer/default/welcome.ogg\n"); + localcmd("cd loop $menu_cdtrack; play sound/announcer/default/welcome.wav\n"); menuLogoAlpha = -0.8; // no idea why, but when I start this at zero, it jumps instead of fading FIXME } // ALWAYS set this cvar; if we start but menu is not active, this means we want no background music! diff --git a/qcsrc/server/mutators/mutator_new_toys.qc b/qcsrc/server/mutators/mutator_new_toys.qc index 6ee3e87b3..89ad13c53 100644 --- a/qcsrc/server/mutators/mutator_new_toys.qc +++ b/qcsrc/server/mutators/mutator_new_toys.qc @@ -184,7 +184,7 @@ MUTATOR_HOOKFUNCTION(nt_SetWeaponreplace) MUTATOR_HOOKFUNCTION(nt_FilterItem) { if(nt_IsNewToy(self.weapon)) - self.item_pickupsound = "weapons/weaponpickup_new_toys.ogg"; + self.item_pickupsound = "weapons/weaponpickup_new_toys.wav"; return 0; } @@ -200,7 +200,7 @@ MUTATOR_DEFINITION(mutator_new_toys) if(time > 1) // game loads at time 1 error("This cannot be added at runtime\n"); - precache_sound("weapons/weaponpickup_new_toys.ogg"); + precache_sound("weapons/weaponpickup_new_toys.wav"); // mark the guns as ok to use by e.g. impulse 99 float i; diff --git a/qcsrc/server/mutators/sandbox.qc b/qcsrc/server/mutators/sandbox.qc index 391e31742..cf5d82f87 100644 --- a/qcsrc/server/mutators/sandbox.qc +++ b/qcsrc/server/mutators/sandbox.qc @@ -26,7 +26,7 @@ void sandbox_ObjectFunction_Touch() intensity -= autocvar_g_sandbox_object_material_velocity_min; // start from minimum velocity, not actual velocity intensity = bound(0, intensity * autocvar_g_sandbox_object_material_velocity_factor, 1); - sound(self, CH_TRIGGER, strcat("object/impact_", self.material, "_", ftos(ceil(random() * 5)) , ".ogg"), VOL_BASE * intensity, ATTN_NORM); + sound(self, CH_TRIGGER, strcat("object/impact_", self.material, "_", ftos(ceil(random() * 5)) , ".wav"), VOL_BASE * intensity, ATTN_NORM); pointparticles(particleeffectnum(strcat("impact_", self.material)), self.origin, '0 0 0', ceil(intensity * 10)); // allow a count from 1 to 10 } @@ -403,7 +403,7 @@ void sandbox_Database_Load() { // since objects are being loaded for the first time, precache material sounds for each for (i = 1; i <= 5; i++) // 5 sounds in total - precache_sound(strcat("object/impact_", e.material, "_", ftos(i), ".ogg")); + precache_sound(strcat("object/impact_", e.material, "_", ftos(i), ".wav")); } } if(autocvar_g_sandbox_info > 0) @@ -675,7 +675,7 @@ MUTATOR_HOOKFUNCTION(sandbox_PlayerCommand) if(argv(3)) { for (i = 1; i <= 5; i++) // precache material sounds, 5 in total - precache_sound(strcat("object/impact_", argv(3), "_", ftos(i), ".ogg")); + precache_sound(strcat("object/impact_", argv(3), "_", ftos(i), ".wav")); e.material = strzone(argv(3)); } else