I'm modding the New Rewards add on and im having some difficulty.
Im trying to get it to play a few different sound files from UT.
at first i replaced
%killer.play2d(rewardSound);
and modified the alarm emote to play the sound and it worked, only it played it every time you got a headshot only. I also couldn't figure out how i would make it play the different sounds for a different ammout of kills.
then i tried replacing
switch(%sourceClient.RewardKills){
case 3:
ShowRewardAll("* is on a RAMPAGE - 3 kills in a row!", "You are on a RAMPAGE - 3 kills in a row!", %sourceClient);
case 6:
ShowRewardAll("* is on a KILLING SPREE - 6 kills in a row!", "You are on a KILLING SPREE - 6 kills in a row!", %sourceClient);
case 9:
ShowRewardAll("* is UNSTOPPABLE - 9 kills in a row!", "You are UNSTOPPABLE - 9 kills in a row!", %sourceClient);
case 12:
ShowRewardAll("* is DOMINATING - 12 kills in a row!", "You are DOMINATING - 12 kills in a row!", %sourceClient);
case 15:
ShowRewardAll("* is GOD-LIKE - 15 kills in a row!", "You are GOD-LIKE - 15 kills in a row!", %sourceClient);
}
with
if(%sourceClient.RewardKills = 3)
{
ShowRewardAll("* is on a KILLING SPREE - 3 kills in a row!", "You are on a KILLING SPREE - 3 kills in a row!", %sourceClient);
%sourceClient.play2d(killingspree);
}
else if(%sourceClient.RewardKills = 6) {
ShowRewardAll("* is on a RAMPAGE - 6 kills in a row!", "You are on a RAMPAGE - 6 kills in a row!", %sourceClient);
%sourceClient.play2d(rampage);
}
else if(%sourceClient.RewardKills = 9) {
ShowRewardAll("* is on a DOMINATING - 9 kills in a row!", "You are on a DOMINATING - 9 kills in a row!", %sourceClient);
%sourceClient.play2d(rampage);
}
else if(%sourceCli1ent.RewardKills = 12) {
ShowRewardAll("* is on a UNSTOPPABLE - 12 kills in a row!", "You are on a UNSTOPPABLE - 12 kills in a row!", %sourceClient);
%sourceClient.play2d(rampage);
}
else if(%sourceClient.RewardKills = 15) {
ShowRewardAll("HOLY stuff - * has 15 kills in a row!", "HOLY stuff - You have 15 kills in a row!", %sourceClient);
%sourceClient.play2d(rampage);
}
to see if it would work. I have limited knowledge of the torque script so if anyone could help me get this working i would greatly appreciate it.
Also is there a way to play the sound file without modifying another file to call the sound?

to anyone who can help me :)