0 of 0

File information

Last updated

Original upload

Created by

rollingrock

Uploaded by

rollingrock16

Virus scan

Safe to use

Tags for this mod

About this mod

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.

Requirements
Permissions and credits
Changelogs
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. 

Requirements:

Source:

File Updated = _snperkrefill.pex

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