4
Fork 0

Merged CombatMusicControl

remove-levelsystem
Eddoursul 4 months ago
parent a406dddbb9
commit df3b281721
  1. BIN
      CombatMusicControl.esp
  2. BIN
      Enderal - Forgotten Stories.esm
  3. BIN
      Skyrim.esm
  4. BIN
      scripts/_00e_playerfunctions.pex
  5. 6
      source/scripts/_00e_playerfunctions.psc

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -69,7 +69,7 @@ EndFunction
; Equip/unequip torches
;=====================================================================================
Int Function GetHandSlotEx(int iHand)
Int Function _GetHandSlotEx(int iHand)
; By default, iHand = 0 for left hand, 1 for right hand
; In SKSE's "Equip Ex" functions though: iHand = 2 for left hand, 1 for right hand
Return 2 - iHand
@ -82,7 +82,7 @@ Bool Function UnequipTorches(Form[] equippedTorches)
If GetEquippedItemType(iHand) == 11 ; A torch is in the hand?
Form torch = GetEquippedObject(iHand)
If torch
UnequipItemEx(torch, GetHandSlotEx(iHand))
UnequipItemEx(torch, _GetHandSlotEx(iHand))
equippedTorches[iHand] = torch
unequipping = True
EndIf
@ -100,7 +100,7 @@ Function ReequipTorches(Form[] equippedTorches)
Form torch = equippedTorches[iHand]
If torch
If GetItemCount(torch) > 0
EquipItemEx(torch, GetHandSlotEx(iHand), False, True)
EquipItemEx(torch, _GetHandSlotEx(iHand), False, True)
EndIf
; "Forget" about the form to not keep it persistent if equippedTorches is a script's property or variable
equippedTorches[iHand] = None

Loading…
Cancel
Save