Compare commits
3 Commits
6f96053d76
...
54aa09c3c2
Author | SHA1 | Date | |
---|---|---|---|
54aa09c3c2 | |||
fb076c753c | |||
b67e285b42 |
BIN
Skyrim.esm
BIN
Skyrim.esm
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -10,6 +10,20 @@ Import Utility
|
|||||||
|
|
||||||
Auto State Marking
|
Auto State Marking
|
||||||
|
|
||||||
|
Event OnControlUp(string control, float HoldTime)
|
||||||
|
|
||||||
|
Actor rTarget = Game.GetCurrentCrosshairRef() as Actor
|
||||||
|
|
||||||
|
if ! rTarget || rTarget == Game.GetForm(0x14)
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
|
||||||
|
If _00E_A2_EldritchBloodGlobal.GetValueInt() == 1
|
||||||
|
EldritchBloodEffectScript.SelectEnemy(rTarget)
|
||||||
|
EndIf
|
||||||
|
|
||||||
|
EndEvent
|
||||||
|
|
||||||
Event OnCrosshairRefChange(ObjectReference ref)
|
Event OnCrosshairRefChange(ObjectReference ref)
|
||||||
|
|
||||||
if lastTarget != None
|
if lastTarget != None
|
||||||
@ -21,14 +35,6 @@ Event OnCrosshairRefChange(ObjectReference ref)
|
|||||||
ref.blockActivation(true)
|
ref.blockActivation(true)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
If _00E_A2_EldritchBloodGlobal.GetValueInt() == 1
|
|
||||||
If ref as Actor && ref != Game.GetForm(0x14)
|
|
||||||
EldritchBloodEffectScript.SelectEnemy(ref as Actor)
|
|
||||||
EndIf
|
|
||||||
Else
|
|
||||||
UnregisterForCrosshairRef()
|
|
||||||
EndIf
|
|
||||||
|
|
||||||
EndEvent
|
EndEvent
|
||||||
|
|
||||||
Event OnAnimationEvent(ObjectReference akSource, string asEventName)
|
Event OnAnimationEvent(ObjectReference akSource, string asEventName)
|
||||||
@ -48,9 +54,7 @@ EndEvent
|
|||||||
|
|
||||||
Event OnObjectEquipped(Form equippedObject, ObjectReference reference)
|
Event OnObjectEquipped(Form equippedObject, ObjectReference reference)
|
||||||
|
|
||||||
Shout equippedShout = equippedObject as Shout
|
if ! equippedObject as Shout
|
||||||
|
|
||||||
if(!equippedShout)
|
|
||||||
; Debug.Notification(sMarkingModeInterrupted)
|
; Debug.Notification(sMarkingModeInterrupted)
|
||||||
_00E_MarkingTalents_sMarkingModeInterrupted.Show()
|
_00E_MarkingTalents_sMarkingModeInterrupted.Show()
|
||||||
EldritchBloodEffectScript.abort()
|
EldritchBloodEffectScript.abort()
|
||||||
@ -60,8 +64,6 @@ EndEvent
|
|||||||
|
|
||||||
Event OnSpellCast(Form akSpell)
|
Event OnSpellCast(Form akSpell)
|
||||||
|
|
||||||
Shout equippedShout = akSpell as Shout
|
|
||||||
|
|
||||||
if akSpell != _00E_A2_EldritchBloodSP
|
if akSpell != _00E_A2_EldritchBloodSP
|
||||||
; Debug.Notification(sMarkingModeInterrupted)
|
; Debug.Notification(sMarkingModeInterrupted)
|
||||||
_00E_MarkingTalents_sMarkingModeInterrupted.Show()
|
_00E_MarkingTalents_sMarkingModeInterrupted.Show()
|
||||||
@ -93,21 +95,28 @@ Function EnterMarkingMode(Float iReach, _00E_A2_EldritchBloodPlayerSC _00E_A2_El
|
|||||||
SetINIFloat("fActivatePickLength:Interface", iReach)
|
SetINIFloat("fActivatePickLength:Interface", iReach)
|
||||||
EldritchBloodEffectScript = _00E_A2_EldritchBloodMEScript
|
EldritchBloodEffectScript = _00E_A2_EldritchBloodMEScript
|
||||||
RegisterForCrosshairRef()
|
RegisterForCrosshairRef()
|
||||||
|
RegisterForControl("Activate")
|
||||||
|
|
||||||
EndFunction
|
EndFunction
|
||||||
|
|
||||||
Function ExitMarkingMode()
|
Function ExitMarkingMode()
|
||||||
|
|
||||||
|
iAttackCounter = 0
|
||||||
|
UnregisterForAllControls()
|
||||||
|
UnregisterForCrosshairRef()
|
||||||
|
UnregisterForAnimationEvent(akSelfRef, "weaponSwing")
|
||||||
|
|
||||||
|
; Restore activation reach
|
||||||
|
if fActivatePickLengthBefore <= 0
|
||||||
|
fActivatePickLengthBefore = 150.0
|
||||||
|
endif
|
||||||
|
SetINIFloat("fActivatePickLength:Interface", fActivatePickLengthBefore)
|
||||||
|
|
||||||
if lastTarget != None
|
if lastTarget != None
|
||||||
lastTarget.blockActivation(false)
|
lastTarget.blockActivation(false)
|
||||||
EndIf
|
EndIf
|
||||||
lastTarget = None
|
lastTarget = None
|
||||||
|
|
||||||
iAttackCounter = 0
|
|
||||||
UnregisterForAnimationEvent(akSelfRef, "weaponSwing")
|
|
||||||
UnregisterForCrosshairRef()
|
|
||||||
SetINIFloat("fActivatePickLength:Interface", 150)
|
|
||||||
|
|
||||||
EndFunction
|
EndFunction
|
||||||
|
|
||||||
;=====================================================================================
|
;=====================================================================================
|
||||||
|
@ -267,12 +267,6 @@ Function UnmarkEnemy(Actor iVictim)
|
|||||||
_00E_A2_GhostwalkDeselectM.Play(PlayerREF)
|
_00E_A2_GhostwalkDeselectM.Play(PlayerREF)
|
||||||
MarkingRuneREF.Delete()
|
MarkingRuneREF.Delete()
|
||||||
MarkingRuneREF = None
|
MarkingRuneREF = None
|
||||||
|
|
||||||
; Unmark attack target too
|
|
||||||
if A2_EldritchBlood_VictimTarget.GetActorReference()
|
|
||||||
UnmarkEnemy(A2_EldritchBlood_VictimTarget.GetActorReference())
|
|
||||||
endif
|
|
||||||
|
|
||||||
Elseif iVictim.HasSpell(_00E_A2_EldritchBloodAbMarkedVictimTargetSP)
|
Elseif iVictim.HasSpell(_00E_A2_EldritchBloodAbMarkedVictimTargetSP)
|
||||||
A2_EldritchBlood_VictimRune.Clear()
|
A2_EldritchBlood_VictimRune.Clear()
|
||||||
A2_EldritchBlood_VictimTarget.Clear()
|
A2_EldritchBlood_VictimTarget.Clear()
|
||||||
|
@ -22,10 +22,13 @@ Event OnPlayerLoadGame()
|
|||||||
ControlRepository = Game.GetForm(0x493C2) as _00E_EnderalControls
|
ControlRepository = Game.GetForm(0x493C2) as _00E_EnderalControls
|
||||||
endif
|
endif
|
||||||
|
|
||||||
; Restore INI value changed by slow time effects
|
; Restore INI values changed by Entropic Blood
|
||||||
if Utility.GetINIFloat("fInAirFallingCharGravityMult:Havok") < 1.35
|
if Utility.GetINIFloat("fInAirFallingCharGravityMult:Havok") < 1.0
|
||||||
Utility.SetINIFloat("fInAirFallingCharGravityMult:Havok", 1.35)
|
Utility.SetINIFloat("fInAirFallingCharGravityMult:Havok", 1.35)
|
||||||
endif
|
endif
|
||||||
|
if Utility.GetINIFloat("fActivatePickLength:Interface") >= 1799.0
|
||||||
|
Utility.SetINIFloat("fActivatePickLength:Interface", 150.0)
|
||||||
|
endif
|
||||||
EndEvent
|
EndEvent
|
||||||
|
|
||||||
_00E_SkillControl function GetSkillControl() Global
|
_00E_SkillControl function GetSkillControl() Global
|
||||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user