Repository navigation
Releases
Releases · Alex-leon1594/Stealth_Overhaul_Reworked
Stealth_Overhaul_Reworked v0.5.19-alpha
2026-09-02 — v5.19: Anti-Lag Compatibility & Combat Evaluation Optimization
- Early-Exit Combat Distance Optimization (
xr_combat_ignore.script): Reorderedis_enemy()evaluation to check native distance constraints (stalker vs military in Cordon, night/rain 100 m limit vs actor, vertical > 30 m and 70 m limit vs monsters, and distant stalker vs stalker thresholds) at the very top of the function. Discarding out-of-range targets immediately skips expensive callbacks (on_enemy_eval), bribe checks (xr_bribe), memory queries, and safe-zone polygon evaluations across frames, saving CPU cycles in heavily populated scenes. - Anti-Lag for GAMMA Compatibility & Fixes (
xr_combat_ignore.script): Integrated the performance optimizations from Anti-Lag for GAMMA v0.37 directly while maintaining full compatibility:- Preserved
is_peaceful_npc(npc)ensuring traders, barmen, mechanics, and medics remain fully protected from false danger reactions and combat panics. - Preserved
ignored_zone_listinon_game_loadso safe zones (Skadovsk, Yanov) correctly suppress combat. - Fixed an upstream typo from Anti-Lag in the Cordon faction check (
comm == "stalker" and comm == "army"→comm == "stalker" and ene_comm == "army"). - Retained comprehensive nil-pointer guards on
whoinnpc_on_hit_callback.
- Preserved
- Noise Bar Hotkey State Persistence (
light_gem.script): Fixed an issue where toggling off the footstep noise bar via hotkey (default F8) was forgotten upon level transitions or reloading a save game. The keybind toggle now directly updates MCM configuration (ui_mcm.set), persists across save games viasave_state/load_state, and no longer gets reset to enabled byactor_on_first_updatewhen switching maps.
Stealth_Overhaul_Reworked v0.5.18-alpha
2026-08-22 — v5.18: Luabind Member Access Fix & Non-Creature Entity Hardening
- Luabind Member Access Fix (
stealth_takedown.script): Fixed engine error spam (! [LUA] CSciptEntity [physic_object/lights_hanging_lamp]: cannot access class member Alive!) occurring when crouching near hanging lamps, lights, or physics props. Reordered spatial corpse evaluation inprocess_corpseto checkIsStalker(npc)(which queriesclsid()safely on allCGameObjectinstances) before checkingalive(), discarding non-character objects returned bylevel.iterate_nearestwithout triggering unexposed Luabind class member lookups. - Defensive Entity Guards Across All Modules (
stealth_takedown.script,stealth_ui.script,stealth_noise.script,visual_memory_manager.script): Hardened all localalive(obj)helpers and vision evaluator checks with explicitif not (IsStalker(obj) or IsMonster(obj)) then return false endguards and closure-wrappedpcall(function() return obj:alive() end), guaranteeing complete crash and warning immunity when interacting with arbitrary level entities or physics objects.
Stealth_Overhaul_Reworked v0.5.17-alpha
2026-08-18 — v5.17: Hostility-Gated Detection, Peaceful NPC & Trader Alert Fixes
- Hostility-Gated Vision & Sound Detection (
visual_memory_manager.script,stealth_noise.script,stealth_ui.script): Gated all stealth vision accumulation (get_visible_value), footstep/movement/item noise investigation (investigate,noise_at,alarm_nearby), and HUD stealth eye calculation strictly to hostile enemies (npc:relation(db.actor) == game_object.enemy). Neutral and allied stalkers never accumulate visual stealth detection, never investigate player movement noise, and never trigger suspicion HUD states unless damaged and turned hostile. - Trader & Peaceful NPC Protection (
xr_combat_ignore.script): Added centralizedis_peaceful_npc(npc)helper checking engine CLSIDs (clsid.trader,clsid.script_trader),"trader"community, smart terrain non-combat jobs (trader, mechanic, medic, barman, guide), and logic overrides (no_combat_job,combat_ignore), permanently preserving their trading/dialogue stances when gunshots occur or the player moves near them. - Gunshot Hearing Danger Refinement (
xr_danger.script): Refinednpc_on_hear_callbackso hearing weapon discharges (WPN_hit) only alerts stalkers if the shooter is an enemy (npc:relation(who) >= 2), eliminating false combat panics among friendly and neutral base inhabitants when shooting nearby. Direct damage hits (npc_on_hit_callback) still trigger immediate hostility and combat response.
Stealth_Overhaul_Reworked v0.5.16-alpha
2026-08-17 — v5.16: Engine Hardening, Nil-Guard Safety & Performance Optimization
- Nil-Pointer Safety & CTD Prevention (
xr_combat_ignore.script&xr_danger.script): Fixed critical engine crash vectors wherenpc_on_hit_callbackandnpc_on_death_callbackattempted to readwho:id()orwho:position()whenwhowas nil (e.g. non-entity environmental damage, anomalies, fall damage, or script-inflicted deaths). - Luminosity Vector Cache & CPU Optimization (
visual_memory_manager.script): Optimizedlights_lum()with tick-level memoization (time_global), caching the weather vector query result across all NPC evaluations during the same frame. In crowded areas with dozens of NPCs, this eliminates repetitive engine weather table lookups and reduces CPU overhead. - Model Bone Safety & Particle Robustness (
stealth_nvg.script): Added a multi-tier fallback for NPC eye particles ("eyelid_1"→"bip01_head"→ position offset + 1.6m), preventing script errors on custom/HD stalker models lacking facial eyelid bones. Guaranteed particle object destruction on level transit (actor_on_net_destroy/on_game_end). - Strict Rear-Arc Silent Takedown Check (
stealth_takedown.script): Added a rear half-plane dot-product check (npc_dir:dotproduct(dir) > -0.2) to ensure silent knife takedowns strictly require approaching from the victim's back or stealth flanks, preventing unintended frontal takedowns in deep darkness. - RGB Color Clamping (
light_gem.script): Clamped all color channel values to0..255before integer floor conversion and passing toGetARGB, preventing integer overflow or invalid color masks.
Stealth_Overhaul_Reworked v0.5.13-alpha
2026-08-15 — v5.13: DLTX Architecture, Memory Leak Prevention & Lifecycle Hardening
- Bug fix —
stealth_noise.script: The "BusyHands" error caused by thecompute_radius()function was fixed; this function was attempting to read belt artifacts using:
for i = 8, 19 do
local item = a:item_in_slot(i)In the X-Ray / Anomaly engine, actor slots only range from 1 to 13 (knife, weapons, suit, helmet, PDA, detector, flashlight, backpack, etc.). Slots 14 through 19 do not exist in item_in_slot. calling db.actor:item_in_slot(14) or a higher index causes a failure in the engine's C++ function due to an out-of-range index. The "BusyHandsDebug" handler in the Modded Exes intercepted the exception and forced a crash_save`.
- Full DLTX Modernization (
mod_*.ltx): Converted monolithic file replacements (m_stalker.ltx,m_stalker_zombied.ltx,xr_danger.ltx) into modular DLTX patches (mod_m_stalker_stealth.ltx,mod_m_stalker_zombied_stealth.ltx,mod_xr_danger_stealth.ltx). This ensures 100% plug-and-play compatibility with any other AI, creature or HD model mod, producing zero file conflicts in Mod Organizer 2. - Memory Leak & Stale Data Prevention (
visual_memory_manager.script): Added a dedicatedpurge_stale_memoryroutine (running every 15 s) that cleans up tracking tables (marked,alarm_boost,muzzle_t,vis_acc,vis_decay,vis_last) for NPCs that are dead or have despawned, preventing memory bloat in long playthroughs. - Corpse Hiding & Performance (
stealth_takedown.script): Switched corpse detection to the engine-native C++ spatial iteratorlevel.iterate_nearestwithin a 3.0 m radius (with fallback todb.storage), greatly boosting search efficiency and eliminating missed dead bodies. Added periodic 30 s pruning of released corpse IDs som_data.stealth_corpsesnever accumulates orphaned data in save files. - Particle Lifecycle Hardening (
stealth_nvg.script): Addedgame_object_on_net_destroy,actor_on_net_destroy, andon_game_endhandlers to guarantee that all eye-dot particles inparticles_tare explicitly stopped and cleared from memory when NPCs despawn, switch levels, or exit the game. - HUD Lifecycle Cleanup (
light_gem.script): Added explicitdeactivate_hud()invocation inon_game_endto guarantee clean UI detachment on game exit. - Localization Completeness (
ui_st_stealth.xml): Added missing descriptions forui_mcm_stealth_icon_x_descandui_mcm_stealth_icon_y_descacross all three languages (English, Spanish, and native CP1251 Russian).