• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Double Kill sounds n stuff

Status
Not open for further replies.
Level 5
Joined
May 27, 2007
Messages
132
I'll make a simple trigger system. It's up to you to make a copy for each player and import the sound file. You can modify it how you want, but I'll set it up Halo style. Really there's nothing that special about killing 2 people without being killed yourself. So this will put a time limit up, and once the time limit ends, the double kill award won;t be rewarded. Generally a Double Kill means 2 people were killed around or at the same time, by the same person.

Trigger 1:

E:A unit is killed by Player 1(red)
C:(Triggering Unit) is equal to a hero.
A: Enable trigger (Trigger 2)
A: Create countdown timer (RedDoubleKill) starting with 4 seconds
A: Disable this trigger

Trigger 2:

E: A unit is killed by Player 1 Red
C: (Triggering Unit) is a hero
A: Play sound file (DoubleKillSound) for Player 1(red)

Trigger 3:

E: Timer (reddoublekill) reaches 0 seconds
C: none
A: Turn off Trigger 2
A: Enable Trigger 1
A: Destroy countdown timer (reddoublekill)

Not sure if this'll work if you kill 2 people at the exact same time. But it shouldn't have an memory leaks.
 
Level 27
Joined
Sep 24, 2006
Messages
4,979
Okay for the sound you need go and download it here then just go to the import manager and then import it into your game.

When you've done that make this trigger's
Requirements:
Variable - (XXX) (Integer)
XXX = is your own name

Events - If unit dies
Conditions - Killing unit equals to (Yourunit)
Action - Set variable (XXX) +1

Events - Every 1.00 seconds of game
Conditions - If (XXX) equals to 2
Action - Turn of this trigger
Action - Play (Yourimportedsound)

And so you also can do it with 4,6,8 and 10.
 
Level 5
Joined
May 27, 2007
Messages
132
I'm not sure you understand the different between a Double Kill and a Killing Spree.

Double Kill: 2 enemies are killed at the same time or within a couple seconds of each other by the same person

Killing Spree: Someone kills many other units without being killed themselves, which is much tougher to do.

What you are looking for appears to be a Killing Spree trigger, not a Double Kill trigger.
 
Okay for the sound you need go and download it here then just go to the import manager and then import it into your game.

When you've done that make this trigger's
Requirements:
Variable - (XXX) (Integer)
XXX = is your own name

Events - If unit dies
Conditions - Killing unit equals to (Yourunit)
Action - Set variable (XXX) +1

Events - Every 1.00 seconds of game
Conditions - If (XXX) equals to 2
Action - Turn of this trigger
Action - Play (Yourimportedsound)

And so you also can do it with 4,6,8 and 10.

What about seting the kill integer for other players? Make more kill integers for them?
 
Status
Not open for further replies.
Top