iNeed fails to detect biting/feeding on NPC's to reset hunger/thirst levels when using pure vampire mode and using mods such as Better Vampires. This patch updates the detection function to be more robust and will now properly detect when feeding on a NPC.
Other user's assetsSome assets in this file belong to other authors. You will need to seek permission from these authors before you can use their assets
Upload permissionYou are not allowed to upload this file to other sites under any circumstances
Modification permissionYou are allowed to modify my files and release bug fixes or improve on the features without permission from or credit to me
Conversion permissionYou can convert this file to work with other games as long as you credit me as the creator of the file
Asset use permissionYou are allowed to use the assets in this file without permission or crediting me
Asset use permission in mods/files that are being soldYou are not allowed to use assets from this file in any mods/files that are being sold, for money, on Steam Workshop or other platforms
Asset use permission in mods/files that earn donation pointsYou are allowed to earn Donation Points for your mods if they use my assets
Author notes
This author has not provided any additional notes regarding file permissions
File credits
isoku - original iNeed Creator
Donation Points system
Please log in to find out whether this mod is receiving Donation Points
Changelogs
Version v1.1
added loop break condition
Version v1.0
initial release
iNeed when using mods such as Better Vampires often will not detect the player feeding on an NPC in order to refill the hunger and thirst levels when using pure vampire mode. This is due to the detection function using a timeout of 3 seconds that doesn't seem to be long enough for the "Necks Bitten" stat the detection function uses to update.
So I rewrote the function a bit to make it more robust. See the code change below.
Installation: Install with your favorite mod manager or drop into your data folder.
Original Function: ;BEGIN FRAGMENT Fragment_275 Function Fragment_275(ObjectReference akTargetRef, Actor akActor) ;BEGIN CODE Int OriginalStat = Game.QueryStat("Necks Bitten") Utility.Wait(3.0) If Game.QueryStat("Necks Bitten") > OriginalStat _SNQuest.ModFatigue(110.0) _SNQuest.ModThirst(110.0) _SNQuest.ModHunger(110.0) EndIf ;END CODE EndFunction ;END FRAGMENT
Updated Function: ;BEGIN FRAGMENT Fragment_275 Function Fragment_275(ObjectReference akTargetRef, Actor akActor) ;BEGIN CODE Int OriginalStat = Game.QueryStat("Necks Bitten") Int counter = 0 while counter < 30 Utility.Wait(1.0) If Game.QueryStat("Necks Bitten") > OriginalStat _SNQuest.ModFatigue(110.0) _SNQuest.ModThirst(110.0) _SNQuest.ModHunger(110.0) counter = 30 EndIf counter = counter + 1 EndWhile ;END CODE EndFunction ;END FRAGMENT