In 1986, the world's worst nuclear disaster occurred at the Chernobyl power station. Soviet authorities established a 30km 'Exclusion Zone' around this nuclear wasteland, but in 2006 a second explosion rocked the stricken reactor, obliterating all living things and causing the Zone's boundaries to ripple outwards. From this epicenter came waves of mutated creatures, deadly radiation, and a strange, anomalous energy. The Zone was cordoned off by the military, who would shoot on sight anyone foolish enough to brave the horrors within.

Report article RSS Feed Modifying S.T.A.L.K.E.R's Weapons

Modifying S.T.A.L.K.E.R's weapons is as easy as opening notepad finding out what some of the stuff means and what to edit. In this tutorial we cover a small amount and show how easy it is to do.

Posted by TKAzA on Mar 26th, 2007
Basic Client Side Coding.


Firstly download.

The S.T.A.L.K.E.R .db extractor and follow its instructions.
Moddb.com

Then open
program files\THQ\S.T.A.L.K.E.R. - Shadow of Chernobyl\gamedata\config\weapons

Then use note pad to edit the file w_walther.ltx

You should see something like this.

Note: I have cut this down and highlighted the main part's to edit.

Weapon cost.
cost = 800 ;300

Max ammo
ammo_limit = 120

Current ammo
ammo_current = 96

Max ammo in magazine
ammo_mag_size = 16

Type of ammo this gun can fire
ammo_class = ammo_9x19_fmj, ammo_9x19_pbp

How many can you carry?
hand_dependence = 1
Not sure about this one, somthing to do with dual weapons i assume.
single_handed = 1

Shell ejection point in 3d space x,y,z
shell_point = 0.0, 0.136, 0.03
shell_dir = 0.0, 0.0, 0.4
shell_particles = weapons\generic_shells

Accuracy modifiers multipliers, 1 is standard and 1.5 is .5 times better i believe (Needs confirmation)
PDM_disp_base = 1.0
PDM_disp_vel_factor = 0.5
PDM_disp_accel_factor = 0.5
PDM_crouch = 1.0
PDM_crouch_no_acc = 1.0

Weapon damages the higher the number the more damage
hit_power = 0.31, 0.35, 0.38, 0.41
Amount of impact the bullet has
hit_impulse = 125

Wound type will affect the results of bleeding etc
hit_type = fire_wound

How far it can shoot! the number after the ; i belive is the max
fire_distance = 50 ;1000

How fast is the bullet a bullet at 10 will be like a crossbow bolt
bullet_speed = 300 ;280

Rounds per minute, how fast the gun can shoot.
rpm = 315

Bullet configs with the silencer addon same rules as above
silencer_hit_power = 0.37
silencer_hit_impulse = 105
silencer_fire_distance = 100
silencer_bullet_speed = 280

Starting ammo
;startup_ammo = 90
Model file for the model.
visual = weapons\walter_99\wpn_walter_99.ogf

Weapon addons, 1 addon is enabled, 2 attachable, 0 is addon not enabled
scope_status = 0 ; 0 - no addon
silencer_status = 0;2 ; 1 - permanent
grenade_launcher_status = 0 ; 2 - attachable

Can this zoom and if so how much so
zoom_enabled = true
scope_zoom_factor = 55
zoom_hide_crosshair = true ;to hide crosshair in zoom

Have fun mixing ammo and modding some weapons.

Once you have edited these, save the file open your game and when you look at the pistol you will notice the weapon stat and info has changed.

:) Enjoy

Modding stalker also mods your save files and guns within them.!

Post comment Comments
TKAzA Author
TKAzA May 10 2007, 12:17am says:

that’s a odd one make sure you didn’t conflict any parameters

+2 votes   reply to comment
Wilheim
Wilheim Mar 27 2007, 12:12pm says:

Which gamedata file do you need to unpack? theres about ten of them

+1 vote     reply to comment
SLIPKNOT_512
SLIPKNOT_512 Mar 28 2007, 1:10am says:

which file do i have to unpack??? because every single file i tried id said "Unsupported file"

+1 vote     reply to comment
SLIPKNOT_512
SLIPKNOT_512 Mar 28 2007, 1:36am says:

Found the solution. I play the Russian version of STALKER but this unpacker is for the English one. Also you have to unpack all gamedata files so u can modify almost every single thing just like guns!!!

+1 vote     reply to comment
TKAzA Author
TKAzA Mar 29 2007, 4:20am says:

Yep its in the description for the addon.

+2 votes   reply to comment
crypto559
crypto559 May 16 2007, 2:49pm says:

nice tutorial but i got a questione . ? can you mod wolfinstien return ...?

+1 vote     reply to comment
thirdshift
thirdshift Apr 7 2007, 3:34pm says:

Haha good stuff, my pistol now shoots shotgun shells.

Youtube.com

+1 vote     reply to comment
TKAzA Author
TKAzA Apr 29 2007, 9:06pm says:

haha nice :D

+2 votes   reply to comment
sexyspanky
sexyspanky May 4 2007, 9:42pm says:

i added new ammo to game (type of shotgun shell) and i put it on all shoty and on bartender and everything works fine but when i make 50 cal bullets for desert eagle and put it on bartender + gun game crashes when i go to bar i have double checked everything but cannot figure out how to fix this please help

+1 vote     reply to comment
BrutalVideoVault
BrutalVideoVault May 12 2007, 4:17pm says:

Here's something for those annoyed with the weapon condition dropping...

condition_shot_dec

Set this to 0.0 and the weapons will NEVER decay, meaning you can run around with the same gun without needing to replace them later.

+1 vote     reply to comment
stalkerforever
stalkerforever May 2 2013, 4:23pm replied:

thanks man but this wont stop the weapon from jamming it seems :(

+1 vote     reply to comment
Guest
Guest Jun 13 2014, 11:14am replied:

This comment is currently awaiting admin approval, join now to view.

damnitDave
damnitDave Jun 11 2007, 10:46am says:

so i added as per instrutions,but when i go to fire it it crashes.i added shotty to the groza unerhand launcher instead of grenades.bad ammo type?any further instructions....thanks

+1 vote     reply to comment
TKAzA Author
TKAzA May 27 2007, 9:40pm says:

im not sure i haven't tried... thanks for the tip chris ill get it added in :)

+1 vote   reply to comment
TKAzA Author
TKAzA Jun 24 2007, 12:46am says:

Yer you cant mix ammo types eg pistols cant shoot 5.7mm AP

+1 vote   reply to comment
TKAzA Author
TKAzA Jul 11 2007, 7:09am says:

You need to upack them all :)

+1 vote   reply to comment
Reva
Reva Sep 19 2007, 8:04am says:

Where do i have to save the upacked data i've edited to work?

+1 vote     reply to comment
Celidor
Celidor Mar 6 2010, 11:50am says:

I am more interested in how to modify the accuracy behaviour of the weapons. But this skips over that. :(

+1 vote     reply to comment
Dragon90
Dragon90 Jul 27 2010, 6:51pm says:

What's the file to edit the Lightened IL?

+1 vote     reply to comment
Dragon90
Dragon90 Jul 28 2010, 12:02pm replied:

Nevermind I figured it out. Unique items LTX file... who woulda thought. =P

+1 vote     reply to comment
decoz123
decoz123 Oct 8 2010, 2:30pm says:

im makin one wear you are a monolithian but its not this kind of mod i mean its not a wepon mod :)

+1 vote     reply to comment
badblood449
badblood449 Oct 31 2010, 6:28pm says:

How to i Modify the models and textures in the game?
Better yet, how to take the X-Ray engine and just go from there?
Im not asking for an indepth tut here just a pointer

+1 vote     reply to comment
tjG3ftw436
tjG3ftw436 Jul 6 2011, 6:46pm says:

When I changed the pistol's stats in the weapon folder it didn't change anything in the game.

+1 vote     reply to comment
SpencerKz
SpencerKz Jul 27 2011, 8:15pm says:

I want to Increase the zoom of the Scope of the Sniper LR300. how can i do it? I see the file in Unique items but theres no scope zoom level modifier. Will i just need to add it?

+1 vote     reply to comment
Guest
Guest Sep 25 2013, 7:42am replied:

Add the line: scope_zoom_factor = 15 under the fire_dispersion_base line

+1 vote     reply to comment
Gosgosgosu
Gosgosgosu Dec 21 2011, 6:04am says:

By the way, the semicolons (;) pretty much mean "ignore everything in this line after ;"
so I could write:
rpm = 600;I like pie
and the game would only read:
rpm=600
since it ignores spaces, semicolons and anything to the right of a semicolon.

+1 vote     reply to comment
ShardtheFox
ShardtheFox Feb 24 2014, 9:25pm says:

Having trouble extracting my databases. I did everything successfully at a friends house, but on my home computer, the extractor fails on the .db4 file, and all onwards. I got it to unpack .db0-3, but i get an "Unsupported File" error for the rest. Im using the steam version of the game, and it's the english version. Not sure what to do.

+1 vote     reply to comment
ShardtheFox
ShardtheFox Feb 24 2014, 9:44pm replied:

Derp, Im a dork. Forgot to check if the drive had space for the extracted files. Whoops

+1 vote     reply to comment
Post a Comment
click to sign in

You are not logged in, your comment will be anonymous unless you join the community today (totally free - or sign in with your social account on the right) which we encourage all contributors to do.

2000 characters limit; HTML formatting and smileys are not supported - text only

Icon
S.T.A.L.K.E.R. Shadow of Chernobyl
Platform
Windows
Developer
GSC Game World
Publisher
THQ
Engine
X-Ray Engine
Contact
Send Message
Official Page
Stalker-game.com
Release Date
Released Mar 19, 2007
Game Watch
Track this game
Tutorial
Browse
Tutorials
Report Abuse
Report article
Related Games
S.T.A.L.K.E.R. Shadow of Chernobyl
S.T.A.L.K.E.R. Shadow of Chernobyl Single & Multiplayer First Person Shooter