ProjectsWhat's NewDownloadsCommunitySupportCompany
Forum Index » S.T.A.L.K.E.R.: Shadow of Chernobyl Forum » Mod discussion
NPC sleep at night

« Previous 10 events | 1 2 | All Messages
Posted by/on
Question/AnswerMake Newest Up Sort by Descending
  21:47:28  26 June 2012
profilee-mailreply Message URLTo the Top
Vintar
a bit of this and a lot of that
(Resident)

 

 
On forum: 08/08/2008
Messages: 6349
You can set danger and threshold for them.
  05:02:30  27 June 2012
profilee-mailreply Message URLTo the Top
Kocayine
Senior Resident
 

 
On forum: 07/15/2010
Messages: 918

---QUOTATION---
NPC sleep at night

One time I joined the Freedom Faction before I went to the Dark Valley.
All the Bandits were neutral of course and when I visited the X-18 Lab
I found several asleep with some snoring. One of them was even having
a terrible nightmare and was crying and whining in his sleep. I could not
believe what I was hearing. Most people miss this in the Unmodded Game.

TS
---END QUOTATION---



Happens in Narodnaya Solyanka.
  19:11:45  27 June 2012
profilee-mailreply Message URLTo the Top
ZaGaR
Skaarj Hybrid - NaPali survivor
(Resident)

 

 
On forum: 07/24/2007
Messages: 647

---QUOTATION---
You can set danger and threshold for them.
---END QUOTATION---



Changing all gulag_xxx.ltx where are sleepers you mean? I was hoping of structural a solution, in the scheme itself perhaps, that relieves us from the toil of hundreds of config changes .
  19:24:12  4 July 2012
profilee-mailreply Message URLTo the Top
ZaGaR
Skaarj Hybrid - NaPali survivor
(Resident)

 

 
On forum: 07/24/2007
Messages: 647
I did something in the sr_light.script. There was a resctriction for the AI to use head lamp while in "kamp" scheme. If anyone has noticed it, NPCs keep the flashlights off in front of the firebins. I added the "sleeper" scheme to it and it seems to work.

I will have to return to those DV bandit dreamers to check it for sure , before I kill them again and again.
  14:41:53  16 October 2012
profilee-mailreply Message URLTo the Top
NatVac
Senior Resident
 

 
On forum: 06/15/2007
Messages: 4286
It works, ZaGaR. I'll be including your fix in the next ZRP release.
  15:20:51  16 October 2012
profilee-mailreply Message URLTo the Top
Meltac
messing with code
(Resident)

 

 
On forum: 01/21/2010
 

Message edited by:
Meltac
10/16/2012 15:21:02
Messages: 1519

---QUOTATION---
It works, ZaGaR. I'll be including your fix in the next ZRP release.
---END QUOTATION---



There will be a next ZRP release??? Cool
  20:28:17  16 October 2012
profilee-mailreply Message URLTo the Top
Muad'Dib
Senior Resident
 

 
On forum: 01/24/2011
Messages: 421
Hey,

About npc sleep during night, maybe could you change the state value in gulag_general.script:

while level.patrol_path_exists(gname.."_sleep_"..it) do
-- Íåîáõîäèìî âû÷èòàòü êîëè÷åñòâî ðàáîò èç íàçâàíèÿ òî÷êè ïóòè.
local way_name = gname.."_sleep_"..it

-- äîáàâëÿåì äîëæíîñòü
t = { section = "logic@"..way_name,
idle = 0,
prior = 4, state = {0,1}, squad = squad, group = groups[1],
position_threshold = 50, in_rest = "", out_rest = ""}
table.insert(sj, t)

With changing state = { }, npc can sleep only by night, isn't it? I remenber a old thread with explanations about state, but i don't find it now.

I look into gsc wiki, but it's strange:

---QUOTATION---
One more thing about ST states, it's up to you how many states your ST have. The important thing is to add logic for each state. For instance your ST can have those states:

0 - npcs are offline 1 - npcs are online (day) 2 - npcs are online (night) 3 - npcs are online, they decided to assault other ST 4 - npcs are online and actor attacks them
---END QUOTATION---



and


---QUOTATION---
;-- bandit3 -> state 0 (day) and state 1 (night)
---END QUOTATION---


[link]http://sdk.stalker-game.com/en/index.php?title=Smart_Terrain_Tutorial[/link]

If it work, you could make the same thing in all gulag.script files to obtain the same effect.

Someone know the signification for each state values?
 
Each word should be at least 3 characters long.
Search:    
Search conditions:    - spaces as AND    - spaces as OR   
 
Forum Index » S.T.A.L.K.E.R.: Shadow of Chernobyl Forum » Mod discussion
 

All short dates are in Month-Day-Year format.


 

Copyright © 1995-2020 GSC Game World. All rights reserved.
This site is best viewed in Internet Explorer 4.xx and up and Javascript enabled. Webmaster.
Opera Software products are not supported.
If any problem concerning the site functioning under Opera Software appears apply
to Opera Software technical support service.