Global mod for STALKER SHoC, intended to recreate a highly atmospheric Zone with highest possible quality, stability of the game, rich gameplay and loyalty to the canons of the Sci-Fi genre.
So that's the companions. This behavior scheme allows you to invite NPC as a companion and together explore the Zone. Idea of reconstructing this scheme was born when I saw it initially in build 2205 and decided to revive for our global mod - OGSE (Old Good Stalker Evolution). In this case I tried to give scheme maximum flexibility and functionality as much as been possible, while also tried to avoid potential problems - so that the player didn't required to nurse his mate, pulling him out of any trouble.
2010 (c) Alexey "KamikaZze", reconstruction of behavior scheme "Companions"
This version is for original game. Tested with patches 1.0005 and 1.0006
Fully translated to english.
-------------------------------------------------------------------
Many thanks to kolinkoff YouTube user for supplying me the english version of original game and for the testing - this made my release possible. Thanks again to kolinkoff!
Anticipating some questions I have to say the following:
This is not a clone of "Partners" mod and not its conversion; this scheme has been written almost from scratch, but in this scheme I used one of "Partners" algorithms (jumping of NPC between locations) by Dmitry Roshchin aka Red75 and for that my acknowledgements to him. The idea proved to be convenient and very viable. In fact I've just adjusted the implementation of his method so that its use does not interfere with the normal operation of conventional NPCs in smart terrains. This scheme is based on a small scheme xr_companion from original and the builds by Sergei Vinnichenko. This scheme worked in a build 2205 but in release it was disabled. As useless apparently - it haven't been finished.
So that's the companions. This behavior scheme allows you to invite NPC as a companion and together explore the Zone. Idea of reconstructing this scheme was born when I saw it initially in build 2205 and decided to revive for our global mod - OGSE (Old Good Stalker Evolution). In this case I tried to give scheme maximum flexibility and functionality as much as been possible, while also tried to avoid potential problems - so that the player didn't required to nurse his mate, pulling him out of any trouble.
WARNING! During the operation of the scheme it had been discovered that some (fairly rare) NPCs behave strangely when hiring - do not go after the Player, staring dully into space, do not pass through the levels. It is a conflict between the behavior scheme and built-in logic, it happens mostly with guards of scripting camps. If you hired such NPC - leave it alone and hire another.
Also in this package included custom gamegraph of original game corrected by me especially for this behavior scheme. The length of all transitions between locations had been reduced to a minimum and eventually your partner overcomes transitions between locations almost immediately - within 10-20 game minutes (1-2 real time minutes).
USE CUSTOM GAMEGRAPH ONLY WITH MODS WITHOUT NEW LOCATIONS!
So in OGSM and AMK too, if I remember correctly, you can use custom gamegraph completely painless, as they wasn't changed it. If, however, you install it on the mod which already contains edited gamegraph (ANY mod with new locations) game will behave unpredictably, or new locations became unreachable, so don't even try.
The main features of the scheme:
1. Mate follows you wisely - no chasing stray dogs and wild boars, no trying to chase them through the entire location, so don't panic.
2. If you decide to escape combat - a partner will escape with you, not reacting to the enemy. This allows us to get out of the fire without the risk of once again taking the fight against superior enemy forces.
3. With a partner you can direct exchange goods for no price - via trade menu. Exchange is free which is convenient.
4. All settings are stored in a special scheme repository inside the companion's packet - for this I used utility functions from a library of utilities for working with net packets - m_net_utils (SIMBION: SHOC mod), author Artos. The library is included.
5. Mate can disguise armor when used in conjunction with the scheme xrs_armor, author xStream. Modified for this purpose scheme xrs_armor attached. Notice that it's not acivated just from box and needs to be edited before use.
6. To use mods in which player can join the factions the scheme supports the following factions companions: a loner, duty, freedom, gangster, zombie (the latter experimental, working but not very good). Moreover, each faction in the scheme have their own style of dialogs. For the integration scheme in such mods you should check IDs of factions in function community_by_actor (actor_comm) and, if needed, rewrite. Companions can be hired only from the faction to which player now belongs. In addition to the binder of scheme immediately entered evaluators of behavior schemes xrs_grenade, xrs_medic, rx_bandage, rx_facer, rx_reload, and anomaly_evader, so that it can be used together with xr_companions with minimal adjustments together with anomalies evade packs of logic and the arms manager (from AI Pack).
7. Following restrictions apply to the hiring of teammates:
1) You cannot hire quest NPCs (for obvious reasons)
2) Player has bad reputation in faction
3) This is some of the prisoners
4) Player experience is lower than NPC
5) Player much more experienced than NPC (beginners are afraid to go with the experienced stalkers, fearing that they use them as a "jemmy")
6) The Player already have a partner (with a little edits this scheme could support more than one partner, but for me it was not appropriate as heavily disbalancing the game, so I did not do it - and please don't ask - if you are skilled enough you can add this yourself)
7) Player from other faction (can be turned off if necessary: edit in the header of xr_companions.script parameter other_factions_switch)
8) Too many companions were died with Player
8. Yes, the scheme is counting and recording "death toll". If you had lost in action more than 4 NPCs they will refuse to go with you. To correct the situation you may treat wounded stalkers. For each saved life you will write off one victim.
9. The scheme has the following behavior types:
1) Follow me
2) Wait here
3) Sneak after me
4) Hide here
Moreover, for each of these scheme has three modes of aggression:
1) Normal
2) Reduced aggression (allows companion to come closer to the enemy)
3) Low (companion hides his weapons and not engages in battle until he or Player obtains some damage)
This set of functions allows the use of team-mate in the cases when it is necessary to make ambush or covertly change position. In addition, it can hide in safety so that it didn't attract enemy attention.
10. Especially for a partner I've prescribed additional state types on the basis of a panic run that he didn't get lost from Player when Player runs in haste.
11. You can use the radio to instruct your mate what to do. Radio works within a radius of a-life (about 150 meters). Also be aware if you left your partner behind and go beyond a-life radius (about 150 meters) he will most likely go to the camp.
does this work with ogse?
It's taken from OGSE as a separate package for other mods)))
Is it possible to make this work with complete 2009 mod?
With proper adaptation - yes. But who will be doing it?
What, exactly, needs to be done to see this work with Complete 2009?
Exactly?))) Are you qualified scripter or programmer knowing how to program in-game AI? If not, even do not try.
Wow. That was incredibly rude and in no way helpful.
Didn't mean no rudeness, but this is a really hard task. You need very good understanding of Complete 2009. And keep in mind that nobody in Russia or Ukraine ever played Complete 2009.
You don't walk into a factory and say "So what do I need to do to make your product work with another product? I don't have any experience in this field by the way but tell me anyway." He can't tell you in a few sentences what to do and all he said in response to your question was the truth.
1- There was nothing in SimplyYuri's first comment, "with proper adaptation", that indicated one needed to be a "qualified scripter or programmer".
2- He asked "Who would be doing it", which to me sounds like an open invitation for volunteers.
3- "What needs to be done is a complete rewrite of the AI scripting and pathing because Complete 2009 uses different/modified resources from that of the base game/OGSE. One would need to go into [this group of files], and to do so would require an advanced knowledge of programming and scripts.". Ta da, a few sentences.
4- This isn't a factory, it's a community of volunteers [who should be] working together for the greater benefit of all fans of the game. At the time of my original post I would have been able to put forward the time and effort into learning the skills needed. I have done basic scripting in the past, and there is nothing but time between me and learning a programming language.
5- If it was a factory, walking in and saying "hey, I see there's a few people asking for these two products to work together and you don't have anyone currently working on that. What skills would I need to know and what work would I need do to fill that need" isn't unreasonable. It's called "applying for a job".
this one looks good!
it could be merged into ol2010 (or may be, ol2012?)
Moddb.com
Maybe. This work can be done by the authors of Oblivion Lost if they have some good scripter.
Does this work with the current english version of OGSE? (or is it already in there?)
It's already there.
SimplyYuri, is it possible that you re-upload this file: KZ_Companion_1.8A_AMK.7z
I am playing AMK and wish to incorporate this feature to my current game. Do you still have it on your computer?
I have nothing of it all except current beta 11 version of 0693 :)
I will ask the author to reupload all links, it will take some time.
I would like ask if you know any difference between ogse and amk 1.4.1 full english realism mod? Since if I remember correctly amk has an embedded mod that allow me to loot armor from dead bodies, and the armor matches exactly with the appearance of the corpses. Does ogse have this feature as well? This combines with the companion feature will be quite awesome I think.
Thank you! Cpaciba bolshoi! :D
Such feature is in any global mod such as AMK with AI additions, OGSM and OGSE.
As for the differences, they are too big. AMK is very-very old global mod.
how do you recruit more than 1 companion? what line on xr_companion do you change to have more than 1 companion?
I can't find it anywhere and no one is sharing any info, please if you found it by now tell me.
I really want to carry around a gang of guys, if someone knows how to have multiple companions please tell me!
open up xr_companion script with notepad ++ and find the line "number of companions" [it is one of the first lines] right next to it should be the number 0 change that to minus 5.
Just realized I never replied! Thanks! Yeah, running around with your own little gang surely makes the game a lot better. I just hate how they don't follow you past loading screens, oh well, better than nothing!
How can i give them some suit? I sold him 1 merc outfit and he does not wear it!
( sry for my eng.. )
i wonder will this mod work with Autumn Aurora 2?
No, i already asked, devs. said no.
Crashes with a FireBug error upon loading a saved game, and if saving in a new game, the same error shows. Running the original SoC version.
i play origin, only use this KZ mod and got bugtrap always in middle of game, anyone know why?
Using this mod as part of OGSE.
why am i buying back items that i stored on my own companion?!?!?!
Is this a working as intended feature??
If so why??
can anyone please explain what line/s in xr.companions need changing to alter this.
was really enjoying the companions part of OGSE until i noticed this.
thanks
zeb
This comment is currently awaiting admin approval, join now to view.
This comment is currently awaiting admin approval, join now to view.