Npc's will fight over their loot. If they catch you stealing their loot they will shoot you on sight. Works with NPC vs NPC vs Player. NEW GAME REQUIRED when upgrading to 0.3.3. Fresh installs don't require new game.
When engaged in a firefight, NPC's will now claim their right to loot a body.
If you or another NPC tries to loot it and they see you looting it, they will open fire.
NO NEW GAME REQUIRED
Changelog:
- 0.1 Initial version
- 0.2
- Fixed crash when checking vision of dead NPC's
- 0.3
- Fixed crash when checking vision of dead NPC's (again)
- 0.3.1
- Fixed crash when checking vision of dead NPC's (again yes don't question it)
- 0.3.2
- Patched so that no new game is required anymore
- 0.3.3
- Patched the serializer so it does not brick the save after removal of the addon. NEW GAME REQUIRED for upgrading to 0.3.3. Fresh installs don't require new game.
Long time waiting for something like this.
me too!
I like the idea, but is there a way to tell which body is marked?
I've also been thinking about something like this, but then for the stashes.
If you would loot a stash a hit might be put on you. Something like that.
But NPC's should also be able to loot your stashes. When they do you receive a mission to kill them and get your loot back.
Unfortunately I'm not that good in modding.
Do you think that would be possible?
I like this idea, Dead Air had NPC's loot stashes. I will look into this later.
Edit: There is no way to know what's claimed or not.
NPC looting stashes and AI dying on anomalies were 2 of my favourite features back in dead air. Miss them a lot.
I think AI not dying in Anomalies was for the better... especially if you are playing warfare, maybe if it was added to story mode
i think you can use the command: ai_die_in_anomaly 1
This comment is currently awaiting admin approval, join now to view.
Command doesn't work anymore
But if it's possible for an NPC to claim their kill then it has to be possible to mark this body somehow.
How about when looking at the body; normally it shows "Search body (f)". Can't we add text to a claimed body?
like: "Search (claimed) body (f)"
i think can be made but need some scripting knowledge
This is awesome but knowing what's claimed or not is really important. Would lead to far too many sudden/accidental deaths when looting w/ buddies or an allied faction in a hectic firefight. hmmm...
So, does this mean that if I kill a bunch of dudes, I'm free to loot them and no one will touch the bodies?
NPC's will just claim what ever they want. They won't respect your claims.
Edit: But this can be patched in later on so that they don't touch your loot.
If you are going to patch this or include it as optional, then i would suggest you to not do it for bandits and renegades(Maybe for Sin too) if possible, because that will make em look like a wimps if they let player to take what they live on literally.
yea, maybe a random chance that stalkers respect or not respect your or npcs loot because i like to see that there are some scumbags in the zone
This comment is currently awaiting admin approval, join now to view.
If you made it so that there was a version that NPCs would avoid looting your kills(except for bandits or other hostile factions), I would love you forever and use this mod religiously. I hate killing tons of guys, only for my 'friends' to rush in and take all of the loot.
It wouldn't hurt to make the stalker initiate a dialogue prompt with you first, as a 'hey, hand over my ****' thing so that you have an option to pussy out and hand over the looted items.
Maybe they have a chance of instantly opening fire if you have really bad rep, or just letting you have the stuff if your reputation is really good.
Just some loose thoughts!
YES please! If there gona be an option where friendly factions dont loot your frags it gona be an absolute must have mod. Friendly duty or freadom soldiers looting your frags is very annoying. So definetelly gona try this mod out if you add such function in future.
This comment is currently awaiting admin approval, join now to view.
SUGGESTION!! You should totally make it so the chance of someone shooting you is tied to their reputation!! This would give the reputation system some meaning for NPCs!!!
Totally agree.
This should be possible I think.
And when rep is below neutral they will shoot.
But NPC's and player should still somehow be able to tell a body is marked by an an NPC or player. Depending on faction an rep a choice should be made to loot or not.
This brings up a good memory of The Faction Wars for Clear Sky.
In it, there was a similar loot claiming system, but in TFW, if you looted something that another stalker claimed, they would run up to you and demand you give it up. You could then 1) give it up immediately, or 2) insist that it's yours, and I think there was a random selection between the stalker giving up, or opening fire. It may have been tied to reputation/experience.
You might look into it, Moddb.com
the faction war is a severely underrated mod with many features ignored by others
Holy crap,
this take me back to Clear Sky Factions Wars mod.
Everytime a NPC kills another one and you loot the corpse they shout across the map "Hands off, thats my loot".
You can either bribe them with money to share or simply tell them to f*ck off,
which results in fighting.
Nice one.
Severely underrated mod, every STALKER fan should try it out.
This is basically just a proof of concept version. I plan to expand the functionality, adding options. But testing will take some time. I want to test and get a feel for it before I make changes.
Edit: Also feed back is important. Please tell how it plays in a long term run. That kind of information helps alot.
Crashed. Didn't know what happened. Help needed.
Here's the log:
FATAL ERROR
[error]Expression : <no expression>
[error]Function : CScriptEngine::lua_error
[error]File : ..\xrServerEntities\script_engine.cpp
[error]Line : 191
[error]Description : fatal error
[error]Arguments : LUA error: ....l.k.e.r anomaly\gamedata\scripts\wuut_loot_claim.script:285: attempt to call method 'community' (a nil value)
stack trace:
anyone know the fix?
Do you have the latest version 0.3.3?
crash when loading my saves (i haven't used your addon before 0.3.3)
FATAL ERROR
[error]Expression : <no expression>
[error]Function : CScriptEngine::lua_error
[error]File : ..\xrServerEntities\script_engine.cpp
[error]Line : 191
[error]Description : fatal error
[error]Arguments : LUA error: c:/games/anomaly\gamedata\scripts\wuut_loot_claim.script:54: attempt to index upvalue 'loadedClaimedTable' (a nil value)
stack trace:
Is it reproducible?
Check if you have packaged addons that goes into \Anomaly\db\addons.
If those overwrite se_stalker.script then this is the problem.
Always unpack addons so you mod manager can report conflicts propertly.
i have only the soundscape overhaul in the db\addons folder, i unpacked the config file and there's nothing about se_stalker.script ... maybe there's an addon in my gamedata that conflicts with this
btw the important thing is that i can still play with a new game, thx
Yes, still crashes. I think it happens every time an npc tries to claim loot
i reinstalled all my addons and it seemed to fix the problem. no more crashes
using se_stalker:STATE_Write and se_stalker:STATE_Read just to save a variable will make savegame dependent on your mod so if someone decides to uninstall it the savegame becomes bricked, use the save_state and load_state callbacks
Will change it in the next version, thanks for pointing this out.
ok i'll wait because i don't want brake my save
This comment is currently awaiting admin approval, join now to view.
i think i've seen some military killing each other for the loot... or is that a my impression?
Maybe can be limited to different factions only, or goodwill related
Greedy bastards. I'am gonna add options for this later.
That would make sense, the Army would be more civilized than the bandits and loners who would be far more likey to be going at it like dogs over ammo and food. much props for the idea and the mod. Adds a whole new level of desperation that would exist in a place like the zone.
I've installed this addon with v 0.3.2 - updating to 0.3.3 crashes the game, as stated it requires a new game. But I'm pretty far in my current save and don't want to start over. As long as I don't remove the mod, I suppose I could just use 0.3.2 without other issues?
Edit: Oh, you know what? I just use an older savegame prior to the mod and install 0.3.3 on it :)
2. EDIT: Ok, this definately does not work on a "fresh" save. I've tried one that for sure never had this mod installed, but it crashes anyway, with the same error log. I guess I'll stick with 0.3.2 then... hope it doesn't have any other bug..
LUA error: ....l.k.e.r anomaly\gamedata\scripts\wuut_loot_claim.script:54: attempt to index upvalue 'loadedClaimedTable' (a nil value)
You should be safe just using 0.3.2. But when you start a new run you should be using the most recent version.
Edit: I am still investigating the recent issues with a fresh start. I haven't managed to reproduce them so far.
Weird... did you by chance upload this mod a second time, after the 4th feb. ? Because I just looked at the initial upload date and took a save that was before that time. Any savegame taken before the 4th should be free of the mod, unless there was an ealier version before...
"FATAL ERROR
[error]Expression : <no expression>
[error]Function : CScriptEngine::lua_error
[error]File : ..\xrServerEntities\script_engine.cpp
[error]Line : 191
[error]Description : fatal error
[error]Arguments : LUA error: ...r. anomaly 1.5.0\gamedata\scripts\wuut_loot_claim.script:398: attempt to call method 'community' (a nil value)
stack trace:
"
on Anomaly 1.5.0 U4 H8
! [SCRIPT ERROR]: ...dmr free/anomaly\gamedata\scripts\wuut_loot_claim.script:54: attempt to index upvalue 'loadedClaimedTable' (a nil value)
u should rename this Grab N Growl
Very good idea. Very good ideas in comments for future development as well. I will be following this.