ProjectsWhat's NewDownloadsCommunitySupportCompany
Forum Index » S.T.A.L.K.E.R.: Shadow of Chernobyl Forum » Mod discussion
weapon classes

1 2 | Next 10 events »| All Messages
Posted by/on
Question/AnswerMake Newest Up Sort by Descending
  04:07:16  29 January 2008
profilee-mailreply Message URLTo the Top
ket
Senior Resident
 

 
On forum: 01/13/2006
Messages: 1432
weapon classes

I'm sure I got this right but just need it verified. By changing a weapon class.. for example AK74 to SVU, any NPC equipped with the AK74 will treat it like a sniper rifle, yes?
  07:31:23  29 January 2008
profilee-mailreply Message URLTo the Top
silverpower
short-haired anarchist hippy scum
(Resident)

 

 
On forum: 08/26/2007
Messages: 790

---QUOTATION---
weapon classes

I'm sure I got this right but just need it verified. By changing a weapon class.. for example AK74 to SVU, any NPC equipped with the AK74 will treat it like a sniper rifle, yes?
---END QUOTATION---



The class needs to be changed, and so does the 'ef_weapon_type'. This will switch them over from treating it as an assault rifle to treating it as a sniper.

From a post I made in FatRap's thread:

"Okay, there's some serious weirdness going on here.

http://www.mediafire.com/?5jwx013vdly

The formatting wouldn't be preservable so I can't C&P it here.

But there's some very anomalous things going on here.

First off, whoever labeled the classes was on crack, *period*. Full-stop.

Here's an explanation of the classes, as near as I can figure:

WP_PM: Generic pistol class - all 9x18s and all weapons that the AI won't be using. Probably.
WP_WALTH: 9x19mm class. Restricted to one weapon in vanilla - the Walther.
WP_HPSA: Higher-powered weapon class, restricted to Hi-Power.
WP_USP45: Big pistols (though all .45 pistols in-game are CCW-style compacts, except for the deagle).
WP_LR300: This class is *NOT* what you think it is, period. It has NOTHING to do with assault rifles. This is the SMG class.
WP_AK74: Generic assault-rifle class.
WP_GROZA: High-end AR class - FN2000 and Groza use it.
WP_VAL: Enhanced AR class, but (probably) not intended to be higher in the rankings as the Groza-style guns are.
WP_VINT: Autosniper class.
WP_SVU: Low-end sniper class.
WP_SVD: Sniper class.
WP_RG6: GL class.
WP_RPG7: RL class.
WP_BM16: Low-end SG class - used for break-opens in vanilla.
WP_SHOTG: Shotgun class - semi-autos only."
  10:39:25  29 January 2008
profilee-mailreply Message URLTo the Top
Storm Shadow
A machine, a Shadow Machine.
(Resident)

 

 
On forum: 11/14/2007
Messages: 1430
Very interesting Silver, do you think this has anything to do with how an NPC will evaluate a dropped wpn and decide whether or not to pick it up?
  14:06:45  29 January 2008
profilee-mailreply Message URLTo the Top
ket
Senior Resident
 

 
On forum: 01/13/2006
 

Message edited by:
ket
01/29/2008 14:56:38
Messages: 1432
Thanks silver. Whoever assigned weapon classes really was on crack. An L85 is pretty damn accurate, is equipped with a 4x scope and they have the AI using it as a close quarters assult rifle. Looking at that table I see ef_weapon_type and ef_main_weapon_type, now both seem pretty self explanatory but to be sure, ef_weapon_type = backup weapon priority (pistols etc) and ef_main_weapon_type = main weapon priority (assault rifles etc)

Also has anyone else noticed that the LR300 doesnt even use its own weapon class? Thats just fuckin stupid.


---QUOTATION---
Very interesting Silver, do you think this has anything to do with how an NPC will evaluate a dropped wpn and decide whether or not to pick it up?
---END QUOTATION---



Taking a stab I would say the lower the ef_weapon_type number, the higher priority it has. Which could well explain why you find NPCs with grenades on them which they never bother throwing because its all the way down at 10.
  03:58:31  31 January 2008
profilee-mailreply Message URLTo the Top
ket
Senior Resident
 

 
On forum: 01/13/2006
Messages: 1432
Anyone on the ef weapon type things?
  06:12:31  31 January 2008
profilee-mailreply Message URLTo the Top
NatVac
Senior Resident
 

 
On forum: 06/15/2007
Messages: 4286
I don't know about the ef stuff. Interesting find on the possible priority.

But the grenades are on the bodies after the fact; they are randomly put on the bodies after the NPCs die. See the gamedata\confic\misc\death_items_*.ltx files and how they are used by gamedata\scripts\death_manager.script.
  14:47:45  31 January 2008
profilee-mailreply Message URLTo the Top
ket
Senior Resident
 

 
On forum: 01/13/2006
 

Message edited by:
ket
01/31/2008 14:52:35
Messages: 1432
Bugger.. maybe I'll leave that alone for now then until I figure out exactly what the ef stuff is for. Its not gospel what I said in my other post, it just makes sence that a lower ef number = higher priority. In theory this means if high calibre pistols were changed from an ef of 5, to say 3, an NPC would quite realistically switch between rifle and sidearm depending on his proximity to the intended target.

Alternatively ef numbers might have some indirect baring on weapon class. I noticed that even by making a (relative) minor adjustment (LR300 carbines weapon class being changed from AK74 to GROZA) appeard to work perfectly.. until it come to attaching a grenade launcher, you could attach it, BUT it would not appear on the weapon model and you couldnt switch to it - the grenade launcher attachment would literally only appear on the weapon icon.
  17:41:08  24 March 2008
profilee-mailreply Message URLTo the Top
silverpower
short-haired anarchist hippy scum
(Resident)

 

 
On forum: 08/26/2007
Messages: 790
Seems I need to update my class listing.

WP_GROZA is used for weapons with an *integral* GL - grenade_launcher_status = 1. Not = 2, = 1. Still treated as an assault rifle...
  02:37:00  25 March 2008
profilee-mailreply Message URLTo the Top
ket
Senior Resident
 

 
On forum: 01/13/2006
Messages: 1432
Maybe I'm being picky, but why the hell did GSC give relatively good pistols like the browning HP a crappy WP_PM weapon class? Surely it should be WP_HPSA (as I set it to) and as in the case of the beretta WP_HPSA or WP_WALTH and so on. Doesnt make sence at all. Were they at the vodka again?
  08:36:35  2 September 2012
profilee-mailreply Message URLTo the Top
Storm Shadow
A machine, a Shadow Machine.
(Resident)

 

 
On forum: 11/14/2007
Messages: 1430
Want to know why NPCs seem to love there shitty old shotguns so much? Want to answer the age old question of "how can i give an AKSU-74 to an NPC who already has a BM-16?" want to know what ef_weapon_type really does? or want to know why NPCs will only fire some weapons in single shot and others in full auto?

all this and more is now answered in this one complete thread:
[Tutorial] The Truth about ef_weapon_type
https://www.gsc-game.com/main.php?t=community&s=forums&s_game_type=xr&thm_id=21708&sec_id=16page=1
 
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.