I downloaded quake sounds in .wav format and added it on player kill
[ if (killer.Score == 1) PlaySound( player.UniqueWorld , 50000 , killer.Pos );
else if (killer.Score == 6) PlaySound( player.UniqueWorld , 50001 , killer.Pos );
else if (killer.Score == 2) PlaySound( player.UniqueWorld , 50002 , killer.Pos );
else if (killer.Score == 3) PlaySound( player.UniqueWorld , 50003 , killer.Pos );
else if (killer.Score == 4) PlaySound( player.UniqueWorld , 50004 , killer.Pos );
else if (killer.Score == 5) PlaySound( player.UniqueWorld , 50005 , killer.Pos );
but sound does not play.
killer.PlaySound( 49999 + killer.Score );
If it doesn't work, try playing( your game ) in debug mode. It should print out if there's something wrong with the .wav file.
Furthermore, you should use switch statements in this case than using if statements.
Quote from: KAKAN on Oct 25, 2017, 08:34 AMkiller.PlaySound( 49999 + killer.Score );
If it doesn't work, try playing( your game ) in debug mode. It should print out if there's something wrong with the .wav file.
How to play game in debug mode??
Quote from: KuRiMi on Oct 25, 2017, 09:37 PMFurthermore, you should use switch statements in this case than using if statements.
Hmmm.... I never made a switch statement
/showdebug 1
/setconfig game_showdebug 1
Best death sound is still this, however
https://www.youtube.com/watch?v=f49ELvryhao#
what about this
https://www.youtube.com/watch?v=rV2WaiARn7s#
I used the code and worked
killer.PlaySound(50000);