Log in

I forgot my password

Current Version: v0.0.01A

Alpha version


Changelogs to come



Poll

Changes to the way I release versions? (read the thread)

63% 63% [ 5 ]
38% 38% [ 3 ]

Total Votes : 8

Latest topics
» Faction creeps
Sun Dec 21, 2014 12:49 am by Grass Hopper

» [SCII] [Inquisition] Hector Rex
Thu Dec 18, 2014 9:06 am by Grass Hopper

» [necrons] Orikan, the Diviner
Tue Dec 16, 2014 5:58 pm by Grass Hopper

» Talent System
Mon Dec 15, 2014 10:59 am by Grass Hopper

» Capture Points system
Fri Dec 12, 2014 2:36 pm by Grass Hopper

» [SCII] [Orks] Warboss(es)
Fri Dec 12, 2014 11:44 am by Grass Hopper

» Game Guide
Thu Dec 11, 2014 2:12 pm by Grass Hopper

» [Inquisition] Mordrak
Wed Dec 10, 2014 3:28 pm by Grass Hopper

» [inquiition] Kaldor Draigo
Wed Dec 10, 2014 3:07 pm by Grass Hopper

» [inquisitoin] Brother-captain Stern
Wed Dec 10, 2014 12:37 pm by Grass Hopper

Version Progress
Changes for v0.02.0A
||||||||||||||||||||[] [general]
||||||||||||||||||||[] [Heroes]
||||||||||||||||||||[] [Items]
||||||||||||||||||||[] [Bugs]
||||||||||||||||||||[] [Total]

sounds triggers

View previous topic View next topic Go down

sounds triggers

Post by Grass Hopper on Tue Aug 18, 2009 11:40 pm

for the hero taunt sounds

Code:
 

    local integer n = GetPlayerId(GetOwningPlayer(GetKillingUnit()))
 
    if IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) and GetTriggerUnit() != u then
        call DisplayText("hero is killed by a player, checking spree timer")
        if TimerGetRemaining(udg_SpreeTimer[n]) > 0 then
            call DisplayText("spree timer for player " + I2S(n) + "is running, current spree is " + I2S(udg_HeroSpree[n] + 1))
            call PauseTimer(udg_SpreeTimer[n])
            call DestroyTimer(udg_SpreeTimer[n])
            set udg_SpreeTimer[n] = CreateTimer()
            call TimerStart(udg_SpreeTimer[n], 30, false, null)
           
            set udg_HeroSpree[n] = udg_HeroSpree[n] + 1
           
            if udg_HeroSpree[n] >= 2 then
                call DisplayText("player " + I2S(n) + " has gotten two kills in 30 seconds, playing sound")
                call PlaySoundBJ(udg_HeroSound[g])
                set udg_HeroSpree[n] = udg_HeroSpree[n] - 2
            endif
        else   
            call DestroyTimer(udg_SpreeTimer[n])
            set udg_SpreeTimer[n] = CreateTimer()
            call TimerStart(udg_SpreeTimer[n], 30, false, null)
           
            call DisplayText("spree timer for player " + I2S(n) + "is running, current spree is 1")
            set udg_HeroSpree[n] = 1
        endif
    endif

_________________
warning! very-stubborn, sarcastic, self-important, argumentative developer detected!

And unto the masses, He doth spoke:
"Behold The Stuff! It Is Good!"
And the Stuff was good.

Heroes:
Commander Farsight (colab - implemented) - Ku'gaath Plaguefather(incomplete) - Ilyana Arienal(incomplete) - Harlequin Shadowseer(incomplete) - Modular Tau Battlesuit(sandbox)
avatar
Grass Hopper
Admin

Posts : 3839
Join date : 2009-03-30

View user profile http://40kaos.forumotion.com

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum