Reworks the "Radioactive air during daytime" option to stay relevant longer than the first 15 minutes of every new game
The "Radioactive air during daytime" option in Gameplay.diff is neat, but stops mattering completely once you get anything other than the starter jacket and respirator. I thought this was kind of lame and decided to adjust the mechanic to stay relevant the whole game.
Reworks the daytime radiation gain formula to make it less oppressive in the early game, but stays relevant all the way to late-game.
- the outdoors is filled with a small, but constant amount of ambient radiation.
- while completely unprotected, you'll take a couple of rads per second when standing outdoors. this can be reduced with radiation protection (armor, meds, drugs, etc), but the effect never completely goes away.
- the ambient radiation is stronger during the day (1.0x), and weaker at night (0.25x).
- the ambient radiation varies in strength with the current weather conditions, following the table below:
["w_clear1"] = 1.00,
["w_clear2"] = 0.95,
["w_cloudy1"] = 0.75,
["w_cloudy2_dark"] = 0.70,
["w_foggy1"] = 0.65,
["w_foggy2"] = 0.55,
["w_partly1"] = 0.85,
["w_partly2"] = 0.88,
["w_rain1"] = 0.50,
["w_rain2"] = 0.45,
["w_rain3"] = 0.40,
["w_storm1"] = 0.37,
["w_storm2"] = 0.33,
- if you are protected well enough, you'll be able to slowly outpace the incoming rads, but the rate at which you shed rads will still be slower than if you were simply standing indoors. (you'll need slightly more protection than an unmodified Ecologist SSP-99M suit to do this during the day, so use mutant skins and stuff for extra protection)
Compatible with all mods except anything that messes with level_environment.script, in which case you'll need to merge the code changes yourself.
-- Changelog
revision 1 (nov 2022):
- night nerfed from 0.5x --> 0.25x
- day rads multiplier now smoothly transitions into night rad multiplier instead of abruptly switching directly from 1.0x to 0.25x when night begins. also vice versa for morning.
- cleaned up console output
revision 2 (nov 2022):
- looks like the weather-adjusting functionality from the vanilla game doesn't even work right... rebuilt it from scratch. weather table expanded to accommodate all presets (instead of the original 5 "basic" ones). now works correctly.
- console output now shows current weather preset
revision 3 (nov 2022):
- no longer crashes on unrecognized weather presets (defaults to 1.0x radiation for unrecognized presets)
- added Anomaly Seasons Redux weather presets to weather table
- prettier code
revision 4 (july 2023):
- rads now scale with outfit attachments (artefacts, pelts, etc..) and rad resistance buffs (ie. medical items and drugs). With these implemented incoming rads now scale accurately with the radiation bar in-game
Average
9.112 votes submitted.
a dltx version would be a great addon for gamma, thx!
its a script, you can't use dltx on that, you can monkeypatch it if is possible, but nothing else.
an alternate of toxic air focusing on vanilla experience, interesting
Maybe it's a stupid question but can it be used together with Radiation Overhaul?
It works fine, but it is not balanced with rad overhaul in mind.
unbalanced in what sense? Does this mean the game is easier or harder?
probably considerably harder
You're right, I've been playing for a long time and it tends to get difficult on certain occasions traveling to the north, but nothing is further from reality, now the radiation feels like a real challenge, difficult but not impossible, thank you very much for this complement 10/10 :)
FATAL ERROR
[error]Expression : <no expression>
[error]Function : CScriptEngine::lua_pcall_failed
[error]File : ..\xrServerEntities\script_engine.cpp
[error]Line : 204
[error]Description : fatal error
[error]Arguments : LUA error: ... anomaly sense\gamedata\scripts\level_environment.script:356: attempt to perform arithmetic on local 'weather_factor' (a nil value)
this is vers 3.1
if you downloaded this late last night, it's because I uploaded the wrong version and it was up for like an hour. redownload to fix. w_rain3 didn't have a preset and would crash the game every time it started.
if you downloaded this today, are you running any mods related to weather that add new weather presets? if so please let me know so I can add compatibility.
I was using Autumn Season Redux. It is graphic and weather addon. I took it from here Drive.google.com
As I got the description with your mod I should get rad all the game. Now I have this ammunition Ibb.co and do not have rad at all outside. Even when the weather is clear.
support added for autumn redux.
your screenshot shows you have very nearly full rad protection. you have reached the point where ambient radiation no longer builds up on you because you're passively shedding rads faster than you gain them. this occurs at around >90% radiation protection.
if you want rads to be stronger still despite this, increase radd_base I.imgur.com
Thanks you a lot!
Wouldn't radiation be stronger in storms and wind than in clear daytime?