Added, Updated and Removed Mods
Added: - HUD Offsets Editor - NPC Wounded Redone Updated: - Stealth Overhaul - Redone Pripyat + Jupiter - Redone Limansk and Hospital - Outfit Animations - Modded Executables Removed: - Arrival
This commit is contained in:
@@ -28,14 +28,15 @@ function actor_on_update()
|
||||
end
|
||||
|
||||
local npc = level.object_by_id(npc_id)
|
||||
local npc_is_stalker = npc and IsStalker(npc)
|
||||
-- play or move if stealth mcm, npc exist and night
|
||||
if stealth_mcm.get_config("nvg_val") > 0 and npc and is_night then
|
||||
if stealth_mcm.get_config("nvg_val") > 0 and npc_is_stalker and is_night then
|
||||
play_or_move_particles(npc, particles_t[npc_id])
|
||||
-- stop playing if not stealth mcm or not night
|
||||
elseif (stealth_mcm.get_config("nvg_val") <= 0 or (not is_night)) then
|
||||
stop_if_playing(particles_t[npc_id])
|
||||
-- stop playing if not npc and remove key
|
||||
elseif (not npc) then
|
||||
elseif (not npc_is_stalker) then
|
||||
stop_if_playing(particles_t[npc_id])
|
||||
stealth_nvg_ps[npc_id] = nil
|
||||
particles_t[npc_id] = nil
|
||||
@@ -47,7 +48,8 @@ end
|
||||
|
||||
function play_or_move_particles(npc, particle_obj)
|
||||
local eye_bone_pos = vector():set(npc:bone_position("eyelid_1"))
|
||||
local eye_pos = eye_bone_pos:add(npc:direction():mul(0.1))
|
||||
local npc_dir = vector():set(npc:direction())
|
||||
local eye_pos = eye_bone_pos:add(npc_dir:mul(0.1))
|
||||
eye_pos = vector():set(eye_pos.x, eye_pos.y + 0.05, eye_pos.z)
|
||||
-- play particle
|
||||
if not (particle_obj:playing()) then
|
||||
|
||||
Reference in New Issue
Block a user