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_A3_Mage_FireSphereSC extends ObjectReference
|
||
|
|
||
|
Import _00E_TalentLibrary
|
||
|
|
||
|
;=====================================================================================
|
||
|
; EVENTS
|
||
|
;=====================================================================================
|
||
|
|
||
|
Event OnInit()
|
||
|
|
||
|
fFireExplosionDamage =
|
||
|
|
||
|
EndEvent
|
||
|
|
||
|
Event OnHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, bool abBashAttack, bool abHitBlocked)
|
||
|
|
||
|
|
||
|
If (akAggressor as actor) && (Utility.RandomInt(1, 100) <= fThrowBackChance)
|
||
|
|
||
|
Debug.MessageBox("_00E_FS_A3_Mage_ThaumaturgicShieldSC Cool 2.")
|
||
|
|
||
|
akAttacker = akAggressor as Actor
|
||
|
|
||
|
If (akSource as Spell)
|
||
|
|
||
|
ReflectSpell(akSource as Spell)
|
||
|
|
||
|
Elseif (akSource.HasKeyword(WeapTypeBow))
|
||
|
|
||
|
ReflectArrow(akSource as Weapon)
|
||
|
|
||
|
EndIf
|
||
|
|
||
|
Endif
|
||
|
|
||
|
|
||
|
EndEvent
|
||
|
;=====================================================================================
|
||
|
; FUNCTIONS
|
||
|
;=====================================================================================
|
||
|
|
||
|
Function ReflectSpell(Spell spSpellToReflect)
|
||
|
|
||
|
EndFunction
|
||
|
|
||
|
Function ReflectArrow(Weapon wpBow)
|
||
|
|
||
|
EndFunction
|
||
|
|
||
|
;=====================================================================================
|
||
|
; PROPERTIES
|
||
|
;=====================================================================================
|
||
|
|
||
|
float fFireExplosionDamage
|
||
|
|
||
|
Spell Property _00E_FS_A3_Mage_FireSphereSP Auto
|