Geiger now can warn you about radiation before you get into it. With MCM option for distance.
Simple small addon that makes geiger do short ticks when you are near the radiation cloud.
Arszi's radiation compatibility: in arszi_radiation.script (by default it's line 379) find local radiation_table = {} and remove "local" from it so it'll be just radiation_table = {}
I included the patch with this change, but it's easier to do by hand (in case it already contains some other changes).
Sorry for it taking me 2 months, been too busy with other stuff ;[
To change distance at which geiger warns you, you need MCM > > > CLICK TO GET MCM < < < or you can change number here ["tick_dist"] = 7, in geiger_tick_mcm.script.
Thanks to Jurkonov for the idea ;]
0.52: Another small crashfix ;s idk this one is rare.
0.51: Small crashfix.
0.5: Forgot to calculate rain/foggy for Arszi's radiation, fixed.
0.4: Proper Arszi's radiation patch I hope.
0.3: now it definitely works with all Arszi's radiation clouds. No, it did not xd.
0.2: crash fix.
How well does it work with *Geiger Hush*
would be cool if the Distanced ticks sounded LONG instead of normal ticks they that go like *tick tick tick* these would go tiiiick tiiiick tiiiiick if you get me yes lmao?
I think current one from vanilla fits well.
Carefully, he's a hero
reading a comment the other day it said that the radiation in the game has the option to discharge the batteries but that it is not enabled it would be good if a hero fixed it to make the area more real
Do you think it‘s possible to do a patch to make it compatible with toxic air and toxic rain? Would be absolutely awesome. Maybe with the ability to add it into the mcm menu for turning the option on and off with these addons.
I don't see a point, toxic air has a warning every 25 sec and toxic rain.. well, it's visible.
Because it's a bit more immersive, to be honest than a text that only shows you the warning when you don't wear any protection every few seconds. Geiger Tick sounds would be better then and you don't see it if it's save when you wear a gas mask because the green tint only appears when you don't use protection against the toxic air.
Does this require a new game?
no
[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: d:/games/anomaly1.5.2\gamedata\scripts\geiger_tick.script:53: attempt to perform arithmetic on field 'radius' (a nil value)
Hm, try now.
Спасибо, так работает отлично
Эх... Кто бы сделал ещё более раннее предупреждение при приближении к некоторым аномалиям, например я очень часто на электру натыкаюсь, которая в траве, её сразу и не заметишь. Звуковое предупреждение, которое в игре, слишком поздно включается - один пик и я в ту же секунду труп:(
Легко можно сделать, но это больше skill issue, кидай болты ;]
Ну, радиактивные зоны тоже skill issue:) Я на Кордоне уже все эти места знаю, и без детектора неплохо справляюсь.
Не, они единственные которых не видно, тут скорее luck issue и потом каждый раз когда не туда наступил - приходится её выводить, особенно в арсзи радиации это надоедает.
Кстате, а зачем нужно было такой большой и сложный скрипт создавать, когда в файле "radiation_counter.ltx" всё легко меняется? Изменение расстояния обнаружения радиактивных зон там корректно работает, в отличие от обнаружения аномалии электра, когда изменение радиуса её обнаружения, действует сразу на все аномалии:(
Звук кривоватый какой-то, то короткие, то длинные (как будто ты уже в облаке). Плюс помимо тиканья еще пищит как детектор аномалий с включенной опцией на их обнаружение.
Вроде в этом файле также и звук меняется. Ну да ладно, я уже сам заметил, что те изменения криво работают.
А в вашем моде можно сделать так, чтобы в зависимости от расстояния до радиактивного облака, темп тика изменялся, а не был постоянным?
Так хоть можно будет примерно определить на слух, сколько ещё осталось до опасной зоны.
Можно, но мне чет лень было xd показалось что и так норм, тем более дефолт там 7 метров (опции в МСМ меняет меньшинство), подумал что не особо важно будет на 6 ты метров или на 2.
Чуть позже может сделаю, надо кое-что для аддона на ПДА сотворить.
I'm experiencing a crash while trying to buy the geiger counter after installing on an existing save -
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: ...ipcustompackv1.9.5.2\gamedata\scripts\geiger_tick.script:53: attempt to perform arithmetic on field 'radius' (a nil value)
[NEVERMIND] Updating the mod fixed this issue. Thank You!
I might need to test more, but I set the distance to 3 both manually in the script and in the MCM and the Geiger is still ticking when much farther than 3 meters... what gives?
Edit: I tested this at the Trash Compactor Anomaly in Cordon... Setting the default distance in the script changes nothing, Geiger starts ticking at approximately 200 meters.
Same distance I saw used in your script... hmm... nope, changing that to 3 causes the geiger to stop clicking early.
I was hoping I could dial this in. I'd like to shorten the radius to 3m I think that would be more realistic than 7m and also more useful since it's not going off at everything...
ALTOUGH if we were going for realism, the Geiger works as it should as-is. It would be nice if the radiation zones were set up as a gradient, more harmful towards the center than the outside edge.
Great concept overall, just needs to be more adjustable.
I thought i was alone with that geiger's ticks distance problem... But i figured it out. Trick is simple, you need to open "geiger_tick_mcm.script" and manually set up ["tick_dist"] value to a negative number. But be sure that ["tick_dist"] is not lower than value on function below.
For me right number was ["tick_dist"] = -47. Not too far from radiation zones but not too close eather.
Good find. I'll give that a try!
Actually I'll first try setting the minimum for the slider to -100, maybe it'll work dynamically.
Confirmed, I changed the slider to -100 and played with it until I was comfortable at -11. This put about 3 Meters between me and the cloud, just a little cushion as I think was intended.
Hm don't know how this happens, this is not for radiation from anomalous zones only, it's for all the radiation clouds scattered around the location. Are you sure there are no other clouds nearby?
Nope. All has been tested properly.
I suck then ;[
Will try to run around for more.
Короче я разобрался с этой непонятной историей и негативным значением ["tick_dist"]. Всё дело оказалось в моде Arszi, а именно как он реализовал увеличение рад зон в зависимости от силы ветра. В его методике у него по факту все рад зоны увеличены на "MAX_SIZE_INCREASEMENT_BY_WIND = 3" по дефолту, как бы подразумевая что это макс радиус на который вообще может увеличиться облако при макс скорости ветра, но саму облучающую часть аномалии он просчитывает от текущих параметров в игре. По сему выходило, что игра считает, что рад зона в 3 раза больше, когда по факту это было не так. По этому и приходилось ставить огромное отрицательное значение в твоём скрипте.
Это чисто прикол Arszi оказался. Стоило мне выставить мульт в 1 вместо 3, как все твои дефолтные параметры для ["tick_dist"] заработали как следует.
Ещё у Arszi есть свой дебаг в скрипте, кстати, с ним отлично видно что происходит.
В общем хз как с этим быть. Либо пытаться адаптировать, либо игрокам с модом Arszi придётся выключать одну из функций аддона.
Я просто спросил его, но не смотрел весь скрипт. Оказалось что там не меняется дата серверного объекта, там всё кастомно пересчитывается. Чтобы работало, пришлось все пересчитывания для центра и радиуса тоже делать у себя ;[
CTD wild terratory tunnel
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: h:/anomaly gamma/bin/..\gamedata\scripts\geiger_tick.script:55: attempt to perform arithmetic on field 'radius' (a nil value)
stack trace:
i was the guest
i swicthed back to 0.3 load the save and no crash
Mhm, thanks. Updated, try now ;]
Could you add some way to consume the geiger battery of the geiger similar to MINIMAP DRAINS PDA BATTERIES, mybe disable the ticks if its in the inventory only working if its in the slot. Please, and needs to be in this mod to be used over arzi radiation mod. Any way great great mod!
this is a great idea! i wanted this for awhile
круть) а можешь сделать мсм опцию, чтобы гейгер всегда тратил батарейки, даже если просто лежит в инвентаре?
я просто играю с опцией чтобы щелчки гейгера были только если заряженный детектор присутствует в инвентаре
Hi there !
I’m on Gamma, can’t recall if there is the same setting in Anomaly itself :
If I enable the option to only have Geiger ticks if I have a Geiger counter in my inventory,
with this mod I still have them anyway, is the mod bypassing that setting ? Or an issue on my part and I should change something ? Still using the mod anyway, too practical !
Thanks.
Yeah the ticks around the cloud (from this addon) are there if geiger in inventory regardless of options.
Theres a few cloud of radiation where the dosimeter says 0 rad, but it does the tick early as well as in it. that being said, if i take off my mask, i start taking rad. im playing with Gamma and i know it has the script of arszi radiation in it. i did the changes as indicated. although, im not sure if i was supposed to backspace the line back against the most leftside after deleting "local"?
I didn't get most of it xd
If dosimeter says "0", but you still take radiation and my ticks are ticking - then my addon is working. What doesn't work is something else added in GAMMA.