So. If someone wants to create their own mod and also add new weapons to it, then they want to add one or two types of cartridges.
In this article I will show you how to make new cartridges..
Creating a new type of cartridges:
The cartridges are located in the following folder: gamedata \ config \ weapons \ weapons.ltx.
First, we see the following lines:
include “w_pm” .ltx
include “w_pb” .ltx
Then we see what we need:
[ammo_9x18_pbp]
We copy the entire log of this type of cartridges:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;
[ammo_9x18_pbp]: ammo_base
GroupC spawn_group
discovery_dependency =
$ spawn = “weapons \ ammo \ ammo_9x18_pbp”; option for Level Editor – write the path to the new model.
AMMO
cform = skeleton
visual = weapons \ ammo \ ammo_9x18_pbp.ogf – visual of the model, we also write the path to it.
description = enc_weapons1_ammo_ammo-9×18-pbp – description (you can write right here, after putting quotation marks, for example: “Cartridge 9×18 Expansive”) (you can come up with a text yourself or find an article on the Internet)
$ prefetch = 64
cost = 100 – the price of your cartridges.
box_size = 20; 50 – number of cartridges that can fit in the box.
inv_name = “9×18 PBP” name discription. (you can write right here, after putting quotes, for example: “Cartridge 9×18 Expansive”
inv_name_short = “JSP-AP” description of the short name. (you can write right here, after putting quotes, for example: “Cartridge 9×18 expansive.”)
inv_weight = .2
inv_grid_width = 1 — |
inv_grid_height = 1 —- | – coordinates of the icon (recognizable by STALKER Icon Editor (SIE))
inv_grid_x = 13– |
inv_grid_y = 12– |
k_dist = 1 – distance multiplier
k_disp = 3 – ?
k_hit = 1.1 – weapon strength multiplier
k_impulse = 2.5 – momentum multiplier (when you kill, how much the corpse will fly off)
k_pierce = 1.35 – bleeding multiplier
impair = 1.15 – multiplier of adding weapon damage with each shot
buck_shot = 1 -?
tracer = off
wm_size = 0.05
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;
Well, that’s all, if there are problems, write in a personal.
Good luck in the hard business!