|
|
@ -11,7 +11,24 @@ Import Utility |
|
|
|
|
|
|
|
|
|
|
|
Event OnHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, bool abBashAttack, bool abHitBlocked) |
|
|
|
Event OnHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, bool abBashAttack, bool abHitBlocked) |
|
|
|
|
|
|
|
|
|
|
|
If (akProjectile && _00E_ExplosiveBarrel_ValidProjectiles.HasForm(akProjectile)) || (akSource && _00E_ExplosiveBarrel_ValidSources.HasForm(akSource)) |
|
|
|
bool bExplode = (akProjectile && _00E_ExplosiveBarrel_ValidProjectiles.HasForm(akProjectile)) || (akSource && _00E_ExplosiveBarrel_ValidSources.HasForm(akSource)) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ! bExplode |
|
|
|
|
|
|
|
Actor aggressor = akAggressor as Actor |
|
|
|
|
|
|
|
if aggressor |
|
|
|
|
|
|
|
if _00E_A1_FireArrowAmm == None |
|
|
|
|
|
|
|
_00E_A1_FireArrowAmm = Game.GetForm(0x670EC) as Ammo |
|
|
|
|
|
|
|
endif |
|
|
|
|
|
|
|
if _00E_A1_FireArrowME == None |
|
|
|
|
|
|
|
_00E_A1_FireArrowME = Game.GetForm(0x5BD36) as MagicEffect |
|
|
|
|
|
|
|
endif |
|
|
|
|
|
|
|
if aggressor.IsEquipped(_00E_A1_FireArrowAmm) || ( aggressor.HasMagicEffect(_00E_A1_FireArrowME) && aggressor.GetItemCount(_00E_A1_FireArrowAmm) == 0 ) |
|
|
|
|
|
|
|
bExplode = true |
|
|
|
|
|
|
|
endif |
|
|
|
|
|
|
|
endif |
|
|
|
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
If bExplode |
|
|
|
If bExploded == False |
|
|
|
If bExploded == False |
|
|
|
bExploded = True |
|
|
|
bExploded = True |
|
|
|
If ExplosionMarkerRef == None |
|
|
|
If ExplosionMarkerRef == None |
|
|
@ -75,3 +92,6 @@ Static Property XMarker Auto |
|
|
|
|
|
|
|
|
|
|
|
Bool bExploded = False |
|
|
|
Bool bExploded = False |
|
|
|
ObjectReference ExplosionMarkerRef |
|
|
|
ObjectReference ExplosionMarkerRef |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
MagicEffect Property _00E_A1_FireArrowME Auto |
|
|
|
|
|
|
|
Ammo Property _00E_A1_FireArrowAmm Auto |
|
|
|