Enderal SE https://mod.pub/enderal-se/38-enderal-se
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.5 KiB
56 lines
1.5 KiB
3 years ago
|
Scriptname _00E_FS_NQR05_PerversionSC extends Actor
|
||
|
|
||
|
Event OnInit()
|
||
3 years ago
|
SetAV("UnarmedDamage", 35)
|
||
|
EndEvent
|
||
3 years ago
|
|
||
3 years ago
|
Event OnEnterBleedout()
|
||
|
PlayDeathFX()
|
||
|
EndEvent
|
||
3 years ago
|
|
||
3 years ago
|
Event OnDying(Actor akKiller)
|
||
|
; Perversions are essential by default, but the death FX make them non-essential for a short time.
|
||
|
; This is a safeguard for a perversion dying while its actor base is non-essential because another perversion of the same base started its death FX a bit earlier.
|
||
|
PlayDeathFX()
|
||
3 years ago
|
EndEvent
|
||
|
|
||
3 years ago
|
Bool bIsDying = False
|
||
|
|
||
|
Function PlayDeathFX()
|
||
|
If bIsDying
|
||
|
Return
|
||
|
EndIf
|
||
|
bIsDying = True
|
||
|
|
||
|
SetGhost(True)
|
||
|
ActorBase myActorBase = GetActorBase()
|
||
3 years ago
|
|
||
|
_00E_FS_NPC_PerversionDeathM.Play(Self)
|
||
|
_00E_HighOnesDisintegrate.Play(Self)
|
||
3 years ago
|
Utility.Wait(1.9)
|
||
|
SetCriticalStage(CritStage_DisintegrateStart)
|
||
3 years ago
|
AbsorbRedImod.Apply()
|
||
3 years ago
|
PlaceAtMe(_00E_FS_NQR05_BloodGeysir)
|
||
|
PlaceAtMe(_00E_FS_NQR05_PerversionExp)
|
||
|
StopCombat()
|
||
|
|
||
|
myActorBase.SetEssential(False)
|
||
|
Kill(None)
|
||
|
AttachAshPile(_00E_CorpseExplosionPile_Remains)
|
||
|
SetAlpha(0.0, True)
|
||
|
SetCriticalStage(CritStage_DisintegrateEnd)
|
||
|
myActorBase.SetEssential(True)
|
||
|
|
||
3 years ago
|
If (Game.GetPlayer() as _00E_EPUpdateFunctions).receiveEP(RewardExp)
|
||
|
; Player receives EXP
|
||
|
EndIf
|
||
3 years ago
|
EndFunction
|
||
3 years ago
|
|
||
|
Explosion Property _00E_FS_NQR05_PerversionExp Auto
|
||
|
Explosion Property _00E_FS_NQR05_BloodGeysir Auto
|
||
|
Sound Property _00E_FS_NPC_PerversionDeathM Auto
|
||
|
ImageSpaceModifier Property AbsorbRedImod Auto
|
||
|
EffectShader Property _00E_HighOnesDisintegrate Auto
|
||
|
Activator Property _00E_CorpseExplosionPile_Remains Auto
|
||
3 years ago
|
Int Property RewardExp Auto
|