Skip to content

Releases

Stealth_Overhaul_Reworked v0.5.19-alpha

Choose a tag to compare

@Alex-leon1594 Alex-leon1594 released this 02 Sep 14:43

2026-09-02 — v5.19: Anti-Lag Compatibility & Combat Evaluation Optimization

  • Early-Exit Combat Distance Optimization (xr_combat_ignore.script): Reordered is_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_list in on_game_load so 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 who in npc_on_hit_callback.
  • 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 via save_state/load_state, and no longer gets reset to enabled by actor_on_first_update when switching maps.

Stealth_Overhaul_Reworked v0.5.18-alpha

Pre-release

Choose a tag to compare

@Alex-leon1594 Alex-leon1594 released this 22 Aug 23:38

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 in process_corpse to check IsStalker(npc) (which queries clsid() safely on all CGameObject instances) before checking alive(), discarding non-character objects returned by level.iterate_nearest without 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 local alive(obj) helpers and vision evaluator checks with explicit if not (IsStalker(obj) or IsMonster(obj)) then return false end guards and closure-wrapped pcall(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

Pre-release

Choose a tag to compare

@Alex-leon1594 Alex-leon1594 released this 19 Aug 03:19

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 centralized is_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): Refined npc_on_hear_callback so 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

Pre-release

Choose a tag to compare

@Alex-leon1594 Alex-leon1594 released this 17 Aug 05:43

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 where npc_on_hit_callback and npc_on_death_callback attempted to read who:id() or who:position() when who was nil (e.g. non-entity environmental damage, anomalies, fall damage, or script-inflicted deaths).
  • Luminosity Vector Cache & CPU Optimization (visual_memory_manager.script): Optimized lights_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 to 0..255 before integer floor conversion and passing to GetARGB, preventing integer overflow or invalid color masks.

Stealth_Overhaul_Reworked v0.5.13-alpha

Pre-release

Choose a tag to compare

@Alex-leon1594 Alex-leon1594 released this 16 Aug 03:44

2026-08-15 — v5.13: DLTX Architecture, Memory Leak Prevention & Lifecycle Hardening

  • Bug fix — stealth_noise.script: The "BusyHands" error caused by the compute_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 dedicated purge_stale_memory routine (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 iterator level.iterate_nearest within a 3.0 m radius (with fallback to db.storage), greatly boosting search efficiency and eliminating missed dead bodies. Added periodic 30 s pruning of released corpse IDs so m_data.stealth_corpses never accumulates orphaned data in save files.
  • Particle Lifecycle Hardening (stealth_nvg.script): Added game_object_on_net_destroy, actor_on_net_destroy, and on_game_end handlers to guarantee that all eye-dot particles in particles_t are explicitly stopped and cleared from memory when NPCs despawn, switch levels, or exit the game.
  • HUD Lifecycle Cleanup (light_gem.script): Added explicit deactivate_hud() invocation in on_game_end to guarantee clean UI detachment on game exit.
  • Localization Completeness (ui_st_stealth.xml): Added missing descriptions for ui_mcm_stealth_icon_x_desc and ui_mcm_stealth_icon_y_desc across all three languages (English, Spanish, and native CP1251 Russian).