Description

Removed script check for "Shelter". You can now sleep literally anywhere and live out your wildest homeless dreams.

Preview

I feel as though the category of this is not, in fact, 'Singleplayer Map' :p

So, what about blowouts? You just die or wake up in the process?

I would love to see CS's sleep mechanic brought back. Yes you can sleep anywhere, but do it somewhere dangerous and you might get killed in your sleep :-)

who needs sleep anyways?...

Its good! Just slept in a narrow ditch near the Jupiter factory. Woke up with a pack of Monoliths about 20 m away ,passing through. Kept my head down. They kept on blabbering something about kissing the monoliths *** until they got stormed by a squad of mercs. Waited a bit ,packed my **** and fkt off. Emissions dont effect the player. Just make sure the place is somewhat safe and hidden,like an attic or a small hidden space or you might wake up while getting your throat slashed by an enemy or chewed on by some tetanus infested dog.

As always, any mod is welcome, but I believe not being able to sleep anywhere is product of good design, since it's for preventing you from being ambushed by enemies or mutants, also I'm not sure if an emission may kill you or no while sleeping outside. And if you really, really wanna sleep outside, there's already an item that does that, the tent.

Author

I understand these are valid criticisms, but the idea is to just have a sleeping bag. No tent. No annoying placements and fadeouts nonstop.
I was tired of not being able to catch rest in areas I otherwise wouldn't be "allowed" to.

The ambushes are just products of circumstance. That's what you get for sleeping right outside the Brain Scorcher.

sounds good, i'll give it a try :)

Hey after I downloaded this mod it seems like every time I go to use a sleeping bag to sleep or try to sleep at all in general my stalker anomaly crashes. Any ideas on how to fix?

Does this mod not work for RC18? I tried the sleep anywhere mod and it jsut crashes when trying to sleep.

I tried fixing things but in the end I couldn't figure it out.

The first error that stops a player form using any sleeping item or bed is this...

Expression : <no expression>
Function : CScriptEngine::lua_error
File : ..\xrServerEntities\script_engine.cpp
Line : 191
Description : fatal error
Arguments : LUA error: ...er anomaly rc18/bin/..\gamedata\scripts\item_tent.script:151: attempt to index global 'ui_sleep_dialog' (a nil value)

I tried going down the rabit hole of fixing stuff by making sure the script files or code that where being referanced to was included in the script folder and had the scripts being pointed out include stuff using the LUA > require "file.extention" command which seemed to work until I got stuck at it complaining about toggle_feature in the game_difficulties.script.

got the same error, game just hard crashes as soon as I attempt to sleep. hopefully this gets resolved soon, as i wish to sleep under the warm embrace of the brain scorcher, as you suggested.

Hello, this is a great mod. But as is, it is not 1.5.1 compatible.

Basically, all you have to do is take the unpacked 1.5.1 gamedata\scripts\ui_sleep_dialog.script
and add 1 line. It keeps in the bleeding / radiation checks. As you can maybe see, it does the same thing as if you had a tent.

I think as it is your mod, it should be you taking the glory & credit for the 1.5.1 update :)


-- Check if actor is inside a tent
if (not actor_hide) then
actor_hide = item_tent.get_nearby_tent(1.5)
end

-- !!! Add this line here !!!
actor_hide = true

-- If all is no, dont sleep
if (not actor_hide) then
`