|
|
@ -32,9 +32,28 @@ Function InitCombatMusic() |
|
|
|
EndIf |
|
|
|
EndIf |
|
|
|
EndFunction |
|
|
|
EndFunction |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function IsStartingBrawling() |
|
|
|
|
|
|
|
bIsBrawling = true |
|
|
|
|
|
|
|
RegisterForSingleUpdate(1.0) |
|
|
|
|
|
|
|
endfunction |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
event OnUpdate() |
|
|
|
|
|
|
|
bIsBrawling = false |
|
|
|
|
|
|
|
endevent |
|
|
|
|
|
|
|
|
|
|
|
Event OnCombatStateChange(string eventName, string bTargetIsPlayer, float fCombatState, Form sender) |
|
|
|
Event OnCombatStateChange(string eventName, string bTargetIsPlayer, float fCombatState, Form sender) |
|
|
|
if bTargetIsPlayer ; start combat or searching |
|
|
|
if bTargetIsPlayer ; start combat or searching |
|
|
|
if fCombatState as int == 1 ; combat |
|
|
|
if fCombatState as int == 1 ; combat |
|
|
|
|
|
|
|
if bIsBrawling |
|
|
|
|
|
|
|
bIsBrawling = false |
|
|
|
|
|
|
|
if GetState() == "" |
|
|
|
|
|
|
|
UnregisterForUpdate() |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
StopCombatMusic() |
|
|
|
|
|
|
|
endif |
|
|
|
|
|
|
|
return |
|
|
|
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
|
|
; start music |
|
|
|
; start music |
|
|
|
Actor sourceActor = sender as Actor |
|
|
|
Actor sourceActor = sender as Actor |
|
|
|
Int encounterLevel = sourceActor.GetLevel() |
|
|
|
Int encounterLevel = sourceActor.GetLevel() |
|
|
@ -205,6 +224,8 @@ Function RemoveCombatSoundtracks() |
|
|
|
|
|
|
|
|
|
|
|
EndFunction |
|
|
|
EndFunction |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool bIsBrawling = false |
|
|
|
|
|
|
|
|
|
|
|
Keyword Property ActorTypeBoss Auto |
|
|
|
Keyword Property ActorTypeBoss Auto |
|
|
|
|
|
|
|
|
|
|
|
GlobalVariable Property PlayerLevel Auto |
|
|
|
GlobalVariable Property PlayerLevel Auto |
|
|
|