begin SlamEffect
float timer
short doOnce
if ( MenuMode )
return
endif
if ( doOnce >= 1 )
if ( timer < 0.5 )
Set timer to ( timer + GetSecondsPassed )
return
endif
endif
if ( Player->GetSpellEffects "MWE_Rage" == 0 )
if ( doOnce == 0 )
PlayGroup "Hit1", 1
set doOnce to 1
Set timer to 0
return
elseif ( doOnce == 1 )
PlayGroup "Idle"
set timer to 0
set doOnce to 0
endif
else
if ( doOnce == 0 )
PlayGroup "Hit1", 1
Set timer to 0
set doOnce to 1
return
elseif ( doOnce == 1 )
set timer to 0
PlayGroup "Idle"
set timer to 0
set doOnce to 2
return
elseif ( doOnce == 2 )
set timer to 0
PlayGroup "Knockout", 1
set doOnce to 3
return
elseif ( doOnce == 3 )
set Timer to 0
PlayGroup "Idle"
set doOnce to 4
return
elseif ( doOnce == 4 )
set timer to 0
PlaySound "Health Damage"
set doOnce to 0
Stopscript "SlamEffect"
endif
End
Users browsing this forum: No registered users and 1 guest