restore functionality to set zipper/speed pad sounds
set using the front side upper texture field like the play sound special per "DSXXXX" the parsing part already was there but not the actual code to make it use the specified sound for some reason lul shouldnt break anything and is vanilla compatible!
This commit is contained in:
1 parent
b4cad08ad3
commit
8cb321993e
1 file changed
+9
-1
+9
-1
@@ -3473,6 +3473,7 @@ DoneSection2:
|
||||
|
||||
if (i != -1)
|
||||
{
|
||||
INT32 sfxnum;
|
||||
angle_t lineangle;
|
||||
fixed_t linespeed;
|
||||
|
||||
@@ -3515,7 +3516,14 @@ DoneSection2:
|
||||
player->kartstuff[k_drift] = 0;
|
||||
player->kartstuff[k_driftcharge] = 0;
|
||||
player->kartstuff[k_pogospring] = 0;
|
||||
S_StartSound(player->mo, sfx_spdpad);
|
||||
|
||||
sfxnum = sides[line->sidenum[0]].toptexture;
|
||||
|
||||
// none or invalid sound?
|
||||
if (sfxnum <= sfx_None || sfxnum >= NUMSFX)
|
||||
sfxnum = sfx_spdpad; // use the zippy sound then!
|
||||
|
||||
S_StartSound(player->mo, sfxnum);
|
||||
|
||||
{
|
||||
sfxenum_t pick = P_RandomKey(2); // Gotta roll the RNG every time this is called for sync reasons
|
||||
|
||||
Reference in new issue
Block a user