X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fsounds%2Fall.inc;h=58b145a4c2cd647e28372fdb7488fc204de6d02d;hb=717defe5e02506bb5c857025d71fb605d6eb8c55;hp=29f2946b059d7d4c65c9f2c9cf1e8cef3da52753;hpb=9ce1079a850c81a5f14a150f6a19cad2f51f6032;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/sounds/all.inc b/qcsrc/common/sounds/all.inc index 29f2946b0..58b145a4c 100644 --- a/qcsrc/common/sounds/all.inc +++ b/qcsrc/common/sounds/all.inc @@ -39,7 +39,7 @@ SOUND(GRENADE_BOUNCE4, W_Sound("grenade_bounce4")); SOUND(GRENADE_BOUNCE5, W_Sound("grenade_bounce5")); SOUND(GRENADE_BOUNCE6, W_Sound("grenade_bounce6")); Sound SND_GRENADE_BOUNCE_RANDOM() { - return Sounds_from(SND_GRENADE_BOUNCE1.m_id + rint(random() * 5)); + return REGISTRY_GET(Sounds, SND_GRENADE_BOUNCE1.m_id + rint(random() * 5)); } SOUND(GRENADE_FIRE, W_Sound("grenade_fire")); SOUND(GRENADE_IMPACT, W_Sound("grenade_impact")); @@ -51,7 +51,7 @@ SOUND(HAGEXP1, W_Sound("hagexp1")); SOUND(HAGEXP2, W_Sound("hagexp2")); SOUND(HAGEXP3, W_Sound("hagexp3")); Sound SND_HAGEXP_RANDOM() { - return Sounds_from(SND_HAGEXP1.m_id + rint(random() * 2)); + return REGISTRY_GET(Sounds, SND_HAGEXP1.m_id + rint(random() * 2)); } SOUND(HOOKBOMB_FIRE, W_Sound("hookbomb_fire")); @@ -74,7 +74,7 @@ SOUND(NEXWHOOSH1, W_Sound("nexwhoosh1")); SOUND(NEXWHOOSH2, W_Sound("nexwhoosh2")); SOUND(NEXWHOOSH3, W_Sound("nexwhoosh3")); Sound SND_NEXWHOOSH_RANDOM() { - return Sounds_from(SND_NEXWHOOSH1.m_id + rint(random() * 2)); + return REGISTRY_GET(Sounds, SND_NEXWHOOSH1.m_id + rint(random() * 2)); } SOUND(RELOAD, W_Sound("reload")); // until weapons have individual reload sounds, precache the reload sound here @@ -82,7 +82,7 @@ SOUND(RIC1, W_Sound("ric1")); SOUND(RIC2, W_Sound("ric2")); SOUND(RIC3, W_Sound("ric3")); Sound SND_RIC_RANDOM() { - return Sounds_from(SND_RIC1.m_id + rint(random() * 2)); + return REGISTRY_GET(Sounds, SND_RIC1.m_id + rint(random() * 2)); } SOUND(ROCKET_DET, W_Sound("rocket_det")); @@ -265,7 +265,7 @@ SOUND(GIB_SPLAT02, "misc/gib_splat02"); SOUND(GIB_SPLAT03, "misc/gib_splat03"); SOUND(GIB_SPLAT04, "misc/gib_splat04"); Sound SND_GIB_SPLAT_RANDOM() { - return Sounds_from(SND_GIB_SPLAT01.m_id + floor(prandom() * 4)); + return REGISTRY_GET(Sounds, SND_GIB_SPLAT01.m_id + floor(prandom() * 4)); } SOUND(HIT, "misc/hit");