clarification
This commit is contained in:
parent
c30f84e616
commit
bfd1739a63
1 changed files with 1 additions and 0 deletions
|
@ -20,6 +20,7 @@ local function calculateFollowTime()
|
||||||
-- Modified formula from RubberMan's "Inquisitive Guards"
|
-- Modified formula from RubberMan's "Inquisitive Guards"
|
||||||
-- https://www.nexusmods.com/morrowind/mods/46538
|
-- https://www.nexusmods.com/morrowind/mods/46538
|
||||||
local sneak = tes3.mobilePlayer.sneak.value and tes3.mobilePlayer.sneak.value or tes3.mobilePlayer.sneak.base
|
local sneak = tes3.mobilePlayer.sneak.value and tes3.mobilePlayer.sneak.value or tes3.mobilePlayer.sneak.base
|
||||||
|
-- if player sneak is greater than 100, guards won't follow at all
|
||||||
local max = tes3.hasCodePatchFeature(110) and (sneak <= 100 and 101 or 0) or 101
|
local max = tes3.hasCodePatchFeature(110) and (sneak <= 100 and 101 or 0) or 101
|
||||||
local value = (max - sneak) / 3
|
local value = (max - sneak) / 3
|
||||||
-- round to nearest integer
|
-- round to nearest integer
|
||||||
|
|
Loading…
Add table
Reference in a new issue