ProjectsWhat's NewDownloadsCommunitySupportCompany
Forum Index » S.T.A.L.K.E.R.: Clear Sky Forum » General
How do I make dropped weapons are cluttering up the levels?

Posted by/on
Question/AnswerMake Newest Up Sort by Descending
  07:02:18  22 June 2012
profilee-mailreply Message URLTo the Top
Daniel105
(Novice)
 
On forum: 06/22/2012
 

Message edited by:
Daniel105
06/22/2012 7:03:07
Messages: 3
How do I make dropped weapons stop cluttering up the levels?

The issue I am having is that when a npc gets killed in battle(with me or another npc) and drops their weapon the weapon stays on the ground long after the dead npc is re-spawned and I do not think that they are going to disappear without me picking them up and selling them. Is this an intentional part of the game and is there a way to either make the guns stay in the dead npc's inventory(instead of dropping them) or make them disappear along with their previous owner's body?

For example when I kill a bunch of bandits I can go to the same area a little later and find their shotguns etc laying there(unless I had already picked them up) and I am afraid this will effect my performance or at least make the game look worse.
  08:32:44  22 June 2012
profilee-mailreply Message URLTo the Top
surgy
(Senior)
 
On forum: 03/25/2007
 

Message edited by:
surgy
06/22/2012 8:38:54
Messages: 119
Hey and welcome.


This has been a big problem for me too, especially when running mods that spawn huge numbers of NPC's. I was at a stage where i felt i needed to mod in a "Cleaning lady" for all the weapons that looked like a spreading disease.

I'm sure there is a technical explanation and resolution for this, but my way of dealing with it was to go on scheduled "Clean-ups" where i empty out my inventory and pick up all the dropped weapons and stuff them all into one or two corpses, and soon enough they disappear. There was also the added bonus of doing my part for the zones well being, kind of felt like an Eco-stalker at one stage.

Sorry, not much help but i can totally relate to your issue.
  11:37:45  22 June 2012
profilee-mailreply Message URLTo the Top
Tejas Stalker
Official Stalker on Facebook
(Resident)

 

 
On forum: 05/12/2007
 

Message edited by:
Tejas Stalker
06/22/2012 11:38:00
Messages: 27324
How do I make dropped weapons are cluttering up the levels?

Daniel105~

Welcome to the GSC Forums!

Yes...keeping the Zone clean is in your best interest.

Dropped Weapons that are in good shape or need minor repair
should be sold to the Traders for profit. If you can't carry them
all at once, find a Stash to place them in until you can move them
later. Weapons that are badly damaged or excess in number should
be stashed inside a dead NPC so that when they eventually disappear
it removes the items from the Game. Less items the Game has to create
in each Level that is running means a smoother & a faster operating Game.

When GSC made Call of Pripyat, other NPCs will pick up salvageable weapons.

TS
  12:24:26  22 June 2012
profilee-mailreply Message URLTo the Top
Daniel105
(Novice)
 
On forum: 06/22/2012
Messages: 3
Thanks for the tips I have already been selling and putting them back on the corpses. But is there really no way I can make it where the guns disappear on their own(like the dead npcs) or where they they are not dropped but appear in the dead npc body after they die?

I am definitely not a modder but I can easily modify files like .ltx or .ini etc if I know what to change. Is there any console commands that would be useful in this case or some mini-mod or something?
  13:44:35  22 June 2012
profilee-mailreply Message URLTo the Top
romulous
Senior Resident
 

 
On forum: 12/28/2007
Messages: 1868

---QUOTATION---

But is there really no way I can make it where the guns disappear on their own(like the dead npcs) or where they they are not dropped but appear in the dead npc body after they die?

---END QUOTATION---




It probably can be done. The ZRP for SHOC has a function to clean up loose weapons (weapons laying about on the ground). SHOC and CS are very similar in a lot of ways - it is likely you could adapt that function for CS.

If you wanted to give it a try, I'd suggest popping into the ZRP thread and asking NatVac what function in the ZRP is responsible for this. Then, you could "copy and paste" that into CS - this is where the work would come into it.

You would need to do two things:

1. Make sure the commands in CS are the same as SHOC (when I took the spawning function from ZRP for SHOC and converted it to CS for example, I found that mostly the commands were the same, but worked in a slightly different manner between the two games).

2. If you wanted to run it automatically (in ZRP, it is a debug command - ESC D / - which is mapped to a modified main menu screen), you would probably have to add it to bind_stalker.script or similar (with a suitable time period). Or you could just take the ZRP approach and modify the CS main menu to accept the same keystroke.
  22:43:30  22 June 2012
profilee-mailreply Message URLTo the Top
BobBQ
2007-2017
(Resident)

 

 
On forum: 07/30/2007
Messages: 3336
Quick and dirty fix (unzip and put the script file in gamedata\scripts): http://www.mediafire.com/?pmuh48mftqa0a9a

This is the weapon cleanup function from ZRP, ported over to Clear Sky. It causes the weapon in hand to be transferred into the NPC's inventory upon death, instead of dropped on the ground.

Doesn't work 100% of the time, but it should dramatically reduce the number of loose guns you encounter.
  01:45:42  23 June 2012
profilee-mailreply Message URLTo the Top
SetaKat
Ex modder, Zones only ferret and will someday release a game
(Resident)

 

 
On forum: 02/20/2010
Messages: 6340
I can verify BobBQ's approach. It works about 90% of the time. I use it myself.
  05:03:11  23 June 2012
profilee-mailreply Message URLTo the Top
romulous
Senior Resident
 

 
On forum: 12/28/2007
Messages: 1868
Even better than my idea That same function in ZRP doesn't work 100% of the time either, but 90% is pretty good
  05:13:27  23 June 2012
profilee-mailreply Message URLTo the Top
Daniel105
(Novice)
 
On forum: 06/22/2012
Messages: 3
Thanks! I was really getting tired of sawed off shotguns etc being all over the place. And you probably saved me a lot of time from picking them up. If I wanted to clean thinks up so bad my house just wouldn't be the same. lol
  11:35:49  22 May 2014
profilee-mailreply Message URLTo the Top
Tunder666
Senior Resident
 

 
On forum: 05/13/2014
Messages: 252

---QUOTATION---
Quick and dirty fix (unzip and put the script file in gamedata\scripts): http://www.mediafire.com/?pmuh48mftqa0a9a

This is the weapon cleanup function from ZRP, ported over to Clear Sky. It causes the weapon in hand to be transferred into the NPC's inventory upon death, instead of dropped on the ground.

Doesn't work 100% of the time, but it should dramatically reduce the number of loose guns you encounter.
---END QUOTATION---



Thank you!

T666
 
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.: Clear Sky Forum » General
 

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.