ProjectsWhat's NewDownloadsCommunitySupportCompany
Forum Index » S.T.A.L.K.E.R.: Shadow of Chernobyl Forum » Mod discussion
[Tutorial] The Truth about ef_weapon_type

« Previous 10 events | 1 2 3 | All Messages
Posted by/on
Question/AnswerMake Newest Up Sort by Descending
  11:18:26  8 November 2012
profilee-mailreply Message URLTo the Top
trojanuch
Senior Resident
 

 
On forum: 04/08/2007
Messages: 1444
Very good thread - sincere thanks.

I had my own deal of modifying this stuff previously in CoP (especially fire_queue is a usefull tool) - but its great that you've managed to put it all here in such a systematic form.

I'll be definatelly be digging more into this stuff now.
  17:12:06  2 September 2013
profilee-mailreply Message URLTo the Top
ZaGaR
Skaarj Hybrid - NaPali survivor
(Resident)

 

 
On forum: 07/24/2007
Messages: 647
Shadow my man, the xxxx_m1 and xxxx_m2, a.k.a "unique" pieces seem to be preferred from the engine. I did a test having Cordon NPCs carry mp5_m1 instead of makarovs. After combats, some AI carrying an AN or SIG, dropped it (with ...rule=on) in favor of a good state 9x18-MP5.
  04:07:35  3 September 2013
profilee-mailreply Message URLTo the Top
Storm Shadow
A machine, a Shadow Machine.
(Resident)

 

 
On forum: 11/14/2007
Messages: 1421

---QUOTATION---
Shadow my man, the xxxx_m1 and xxxx_m2, a.k.a "unique" pieces seem to be preferred from the engine. I did a test having Cordon NPCs carry mp5_m1 instead of makarovs. After combats, some AI carrying an AN or SIG, dropped it (with ...rule=on) in favor of a good state 9x18-MP5.
---END QUOTATION---



Zag my man, were you testing with vanilla stalker? or with modified ef wpn types? if not, could you repeat the test with suitable ef wpn types for each wpn tier...

cheers my man.
  23:27:41  3 September 2013
profilee-mailreply Message URLTo the Top
ZaGaR
Skaarj Hybrid - NaPali survivor
(Resident)

 

 
On forum: 07/24/2007
Messages: 647
It is the latest ZRP, man. With the default wpn table, the modified ones are absolutely preferred from AI. Then I did a test with a slightly better wpn table, along your guidelines here, just a few more numbers for AK, AN, SIG and so. Again the xxx_m1 models create confusion.

I believe I have to edit unique_items.ltx and insert specific ef_weapon_type into these models configuration, so they can have a proper ranking against the normal ones.
  03:59:28  4 September 2013
profilee-mailreply Message URLTo the Top
Storm Shadow
A machine, a Shadow Machine.
(Resident)

 

 
On forum: 11/14/2007
Messages: 1421

---QUOTATION---
It is the latest ZRP, man. With the default wpn table, the modified ones are absolutely preferred from AI. Then I did a test with a slightly better wpn table, along your guidelines here, just a few more numbers for AK, AN, SIG and so. Again the xxx_m1 models create confusion.

I believe I have to edit unique_items.ltx and insert specific ef_weapon_type into these models configuration, so they can have a proper ranking against the normal ones.
---END QUOTATION---



you only need to add an ef wpn type varible to unique items if either; it is already modified, or you want it to be in a differant tier to the original.

i cant comment on the latest zrp, as i havn't began my trials of it yet. but, i understand that it involves ai functions that may deal with wpn selection by script.
  06:00:27  14 September 2013
profilee-mailreply Message URLTo the Top
Storm Shadow
A machine, a Shadow Machine.
(Resident)

 

 
On forum: 11/14/2007
 

Message edited by:
Storm Shadow
09/14/2013 6:38:22
Messages: 1421
The Truth About ef_creature_type

Hey guys, revelation time now.

Intro
I had been experiencing a strange bug with these weapon settings that was doing my head in, I pretty much spent from after dinner time last night until almost dawn this morning testing variables and figuring it out, good thing it was a Friday! And guess what, I still don't really understand the system behind it, the why, but I have figured out the solution now, the how. You can make of it what you will.

The Bug
I found that using these weapon settings that NPCs would prefer to switch to a pistol (if avail) to fight mutants. Further digging revealed that this was only with certain low level mutants, such a dogs, rats, zombies.

The Progress
Wondering why, I started experimenting with the weapon files ef_main_weapon_type and with the creature files ef_weapon_type and ef_creature_type.

From this testing, I now believe that in the weapon files; ef_weapon_type relates to range and fire queueing, while ef_main_weapon_type related to the type of target. This is evaluated against the target's (mutant or human) ef_creature_type and ef_weapon_type

I'm not exactly sure how it deduces this evaluation, but my findings below show a full working solution

Solution
*Weapon Config Files:*
1. Configure all of your weapons to your desired ef_weapon_type parameters as detailed in this thread.

2. Set all slot1 weapons (pistols, machine pistols, single handed weapons, etc) to:ef_main_weapon_type = 0

3. Set all slot2 weapons (smg, rifle, shotguns, sniper, machine guns, etc) to:ef_main_weapon_type = 2

*Creature Config Files:*
4. Ensure all creatures are set not lower than: ef_creature_type = 10.

5. Ensure all creatures are set not lower than: ef_weapon_type = 3.

(note: I don't know what ef_detector_type does, but I didn't need to change this at all.)

Hope this helps, please comment with your feedback and findings from using these settings too.

Regards,

Shad
 
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-2019 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.