|
|
|
@ -92,7 +92,7 @@ Function Transform() |
|
|
|
|
Game.DisablePlayerControls(true, true, true, false, true, true, true) |
|
|
|
|
|
|
|
|
|
If PlayerREF == None |
|
|
|
|
PlayerREF = Game.GetPlayer() |
|
|
|
|
PlayerREF = Game.GetForm(0x14) as Actor |
|
|
|
|
EndIf |
|
|
|
|
|
|
|
|
|
_00E_FS_Theriantrophist_PotionM.Play(PlayerREF) |
|
|
|
@ -111,28 +111,35 @@ Function Transform() |
|
|
|
|
explosionMarker.SetPosition(PlayerREF.GetPositionX(), PlayerREF.GetPositionY(), (PlayerREF.GetPositionZ() + 100.0)) |
|
|
|
|
explosionMarker.PlaceAtMe(_00E_FS_Theriantrophist_TransEXP) |
|
|
|
|
_00E_FS_Theriantrophist_TransformIMOD.Apply() |
|
|
|
|
PlayerREF.UnequipAll() |
|
|
|
|
|
|
|
|
|
if SKSE.GetVersion() |
|
|
|
|
; Re-equipping is fully working with SKSE |
|
|
|
|
PlayerREF.UnequipAll() |
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
PlayerREF.SetRace(_00E_Theriantrophist_PlayerWerewolfRace) |
|
|
|
|
|
|
|
|
|
if PlayerREF.HasSpell(_00E_FS_Affinity_AbBrute) |
|
|
|
|
Player.SetSkin(_00E_FS_Theriantrophist_Skin_Brute) |
|
|
|
|
elseif PlayerREF.HasSpell(_00E_FS_Affinity_AbDrifter) |
|
|
|
|
Player.SetSkin(_00E_FS_Theriantrophist_Skin_Drifter) |
|
|
|
|
elseif PlayerREF.HasSpell(_00E_FS_Affinity_AbDruid) |
|
|
|
|
Player.SetSkin(_00E_FS_Theriantrophist_Skin_Druid) |
|
|
|
|
elseif PlayerREF.HasSpell(_00E_FS_Affinity_AbNightwolf) |
|
|
|
|
Player.SetSkin(_00E_FS_Theriantrophist_Skin_Nightwolf) |
|
|
|
|
elseif PlayerREF.HasSpell(_00E_FS_Affinity_AbRavager) |
|
|
|
|
Player.SetSkin(_00E_FS_Theriantrophist_Skin_Ravager) |
|
|
|
|
elseif PlayerREF.HasSpell(_00E_FS_Affinity_AbScourge) |
|
|
|
|
Player.SetSkin(_00E_FS_Theriantrophist_Skin_Scourge) |
|
|
|
|
elseif PlayerREF.HasSpell(_00E_FS_Affinity_AbSoulcaller) |
|
|
|
|
Player.SetSkin(_00E_FS_Theriantrophist_Skin_Soulcaller) |
|
|
|
|
else |
|
|
|
|
Player.SetSkin(Player.GetRace().GetSkin()) |
|
|
|
|
if SKSE.GetVersion() |
|
|
|
|
if PlayerREF.HasSpell(_00E_FS_Affinity_AbBrute) |
|
|
|
|
Player.SetSkin(_00E_FS_Theriantrophist_Skin_Brute) |
|
|
|
|
elseif PlayerREF.HasSpell(_00E_FS_Affinity_AbDrifter) |
|
|
|
|
Player.SetSkin(_00E_FS_Theriantrophist_Skin_Drifter) |
|
|
|
|
elseif PlayerREF.HasSpell(_00E_FS_Affinity_AbDruid) |
|
|
|
|
Player.SetSkin(_00E_FS_Theriantrophist_Skin_Druid) |
|
|
|
|
elseif PlayerREF.HasSpell(_00E_FS_Affinity_AbNightwolf) |
|
|
|
|
Player.SetSkin(_00E_FS_Theriantrophist_Skin_Nightwolf) |
|
|
|
|
elseif PlayerREF.HasSpell(_00E_FS_Affinity_AbRavager) |
|
|
|
|
Player.SetSkin(_00E_FS_Theriantrophist_Skin_Ravager) |
|
|
|
|
elseif PlayerREF.HasSpell(_00E_FS_Affinity_AbScourge) |
|
|
|
|
Player.SetSkin(_00E_FS_Theriantrophist_Skin_Scourge) |
|
|
|
|
elseif PlayerREF.HasSpell(_00E_FS_Affinity_AbSoulcaller) |
|
|
|
|
Player.SetSkin(_00E_FS_Theriantrophist_Skin_Soulcaller) |
|
|
|
|
else |
|
|
|
|
Player.SetSkin(Player.GetRace().GetSkin()) |
|
|
|
|
endif |
|
|
|
|
PlayerREF.QueueNiNodeUpdate() |
|
|
|
|
endif |
|
|
|
|
PlayerREF.QueueNiNodeUpdate() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_00E_Theriantrophist_TransformShader.Stop(PlayerREF) |
|
|
|
|
explosionMarker.Delete() |
|
|
|
|
Game.EnablePlayerControls(true, true, false, true, true, true, true, true) |
|
|
|
@ -163,7 +170,7 @@ EndFunction |
|
|
|
|
Function GoBackToNormal() |
|
|
|
|
{Transforms the player back to human, but does not calculate stats, unlock perks, ... and does not check if a transformation is legal} |
|
|
|
|
If PlayerREF == None |
|
|
|
|
PlayerREF = Game.GetPlayer() |
|
|
|
|
PlayerREF = Game.GetForm(0x14) as Actor |
|
|
|
|
EndIf |
|
|
|
|
;PlayerREF.GetActorBase().SetSkin(SkinNakedWerewolfBeast) |
|
|
|
|
|
|
|
|
@ -185,8 +192,10 @@ Function GoBackToNormal() |
|
|
|
|
PlayerREF.SetRace(originalRace) |
|
|
|
|
PlayerREF.PlayIdle(_00E_IdleStomp) |
|
|
|
|
|
|
|
|
|
Player.SetSkin(Player.GetRace().GetSkin()) |
|
|
|
|
PlayerREF.QueueNiNodeUpdate() |
|
|
|
|
if SKSE.GetVersion() |
|
|
|
|
Player.SetSkin(Player.GetRace().GetSkin()) |
|
|
|
|
PlayerREF.QueueNiNodeUpdate() |
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
Game.EnablePlayerControls() |
|
|
|
|
|
|
|
|
|