w_Weapon.ltx _world Config File


About

Configuration parameters for weapons


General

Parameter NameParameter DescriptionExample ValuePossible Parameters
GroupControlSectionspawn_group
$npcuse NPC of this weaponontrue - 1 - on (Yes)
false - 0 - off (No)
$prefetchPreload queue8
$spawnWeapon Directory in the Level Editor“weapons\ak-74”“weapons\ wpn_name
scheduledonline/offline switch; Works only for “live” objects with AIofftrue - 1 - on (Yes)
false - 0 - off (No)
cformSkeleton modelskeletonskeleton
sphear box
parent_sectionwpn_akm
classEngine weapon classWP_AK74WP_BINOC
WP_KNIFE
WP_BM16
WP_GROZA
WP_SVD
WP_AK74
WP_LR300
WP_HPSA
WP_PM
WP_RG6
WP_RPG7
WP_SHOTG
WP_ASHTG
WP_MAGAZ
WP_SVU
WP_USP45
WP_VAL
WP_VINT
WP_WALTH W_STMGUN
animation_slotAnimation slot number21 - pistol
2 - automatic rifle
3 - rifle, shotgun
4 - RPG
5 - knife
7 - bolt, grenade
8 - submachine gun with integrated underbarrel grenade launcher
9 - Shotgun
10 - Drum Gun
13 - binoculars
hand_dependence10 - no hands
1 - one hand
2 - two hands
single_handedheld with one hand0true - 1 - on (Yes)
false - 0 - off (No)
default_to_ruckwhether the weapon will be moved to the backpack instead of the slot when picked upfalsetrue - 1 - on (Yes)
false - 0 - off (No)
sprint_allowedthis line means that you can run with the weapontruetrue - 1 - on (Yes)
false - 0 - off (No)
kindThe type of item to group into the appropriate section in the Item Spawnerw_riflew_rifle
w_misc
w_explosive
w_melee
w_pistol
w_smg
w_shotgun
w_sniper
costBase price28780
hudSection with parameters for *_hud modelwpn_akm_hudSection name
visual*_world modeldynamics\weapons\wpn_akm\wpn_akm.ogfPath to file

Position/Orientation

Parameter NameParameter DescriptionExample ValuePossible Parameters
positionposition of the weapon in the hands when viewed from the 3rd person-0.026, -0.175, 0.0X – (-) left / (+) right
Y – (+) up / (-) down
Z – (-) forward / (+) backward
orientationhow the weapon is rotated in the hands of the NPC and headgear, in the 3rd person view0, 0, 0X – (+) left / (-) right
Y – (+) up / (-) down
Z – (-) roll to the right / (+) roll to the left
fire_pointcoordinates of the fire particle from the shot, in the 3rd person view0, 0.218, 0.656X – (-) left / (+) right
Y – (+) up / (-) down
Z – (-) forward / (+) backward
fire_point2Coordinates of the fire particle from the shot, when viewed from the 3rd person from the holster0, 0.161, 0.583X – (-) left / (+) right
Y – (+) up / (-) down
Z – (-) forward / (+) backward
strap_bone0the name of the first NPC model bone where the weapon is located when hiddenbip01_spine2Bone Name
strap_bone1The name of the second NPC model bone that holds the weapon when hiddenbip01_spine1Bone Name
strap_positionthe position of the weapon on the NPC’s back, when viewed from the third person-0.26, -0.11, 0.25X – (-) left / (+) right
Y – (+) up / (-) down
Z – (-) forward / (+) backward
strap_orientationhow the weapon is rotated on the NPC’s back in 3rd person view-15, -9, 110X – (+) left / (-) right
Y – (+) up / (-) down
Z – (-) roll to the right / (+) roll to the left

Inventory

Parameter NameParameter DescriptionExample ValuePossible Parameters
icons_texturetexture where the weapon icon will be taken fromui\ui_icon_spas
inv_grid_heighticon height2number of 50x50 pixels cells
inv_grid_widthicon width5number of 50x50 pixels cells
inv_grid_xthe coordinate of the upper left corner of the icon on a 50x50 pixel grid on the X axis35number of cells indented to the right
inv_grid_yThe coordinate of the upper left corner of the icon on a 50x50 pixel grid on the Y axis0number of cells indenting downward
inv_nameThe name in the inventoryst_wpn_akmSection name, in *.xml files included in the string_table section of gamedata\configs\text\*localization*\st_items_weapons.xml
inv_name_shortshort name in the inventoryst_wpn_akmSection name, in *.xml files included in the string_table section of gamedata\configs\text\*localization*\st_items_weapons.xml
inv_weightthe inventory weight of the unloaded weapon3.3The number is given in kilograms
descriptionDescription in inventoryst_wpn_akm_descrSection name, in *.xml files included in the string_table section of gamedata\configs\text\*localization*\st_items_weapons.xml
slotInventory slot number20 - knives
1 - pistols
2 - shotguns, machine guns, rifles, grenade launchers
3 - grenades (may be crashing)
4 - binoculars
5 - bolts (may be crashing)
6 - outfits (may be crashing)
highlight_equippedtrue - 1 - on (Yes)
false - 0 - off (No)

Multiplayer

Parameter NameParameter DescriptionExample ValuePossible Parameters
weapon_classis used exclusively for the purchase menu in multiplayershotgun
assault_rifle
sniper_rifle
heavy_weapon
startup_ammostartup amount of ammo in multiplayerThe number of rounds of ammunition is indicated
kill_msg_xthe coordinate of the upper left corner of the kill icon on the X axis
kill_msg_ytop-left corner coordinate of the kill icon on the Y axis
kill_msg_widthkill icon widthSpecified in pixels
kill_msg_heightkill icon heightSpecified in pixels

Particles

Parameter NameParameter DescriptionExample ValuePossible Parameters
flame_particlesGunshot fire particleweapons\generic_weapon05Specifies the path to the file
smoke_particlesshot smoke particleweapons\generic_shoot_00Specifies the path to the file
light_disabledflash off when shotfalsetrue - 1 - on (Yes)
false - 0 - off (No)
light_colorParameters for changing the color of the shot fire particle0.6, 0.5, 0.3RGB Color
light_rangethe radius of the fire partition from the shot5
light_timetime of light playback when shot0.2
light_var_colorParameter of variation of the color of the fire particle from the shot0.05RGB Color
light_var_rangevaries the radius of the fire particle from the shot0.5Value 60.0 = 10 seconds

Upgrades/repairs

Parameter NameParameter DescriptionExample ValuePossible Parameters
upgradesup_gr_firstab_akm, up_gr_seconab_akm, up_gr_thirdab_akm, up_gr_fourtab_akm, up_gr_fifthab_akm, up_gr_fifthcd_akm
installed_upgradesinstalled upgrades
upgrade_schemeupgrade_schemeupgrade_scheme_ak74
repair_typeitem type for repair toolsrifle_7pistol
shotgun
rifle_5
rifle_7

Upgrades Icons

Parameter NameParameter DescriptionExample ValuePossible Parameters
upgr_icon_xX coordinate of the upper left corner of the weapon icon in the upgrade window300Specified in pixels
upgr_icon_yY coordinate of the upper left corner of the weapon icon in the upgrade window0Specified in pixels
upgr_icon_widthicon width in the upgrade window300Specified in pixels
upgr_icon_heighticon height in the upgrade window100Specified in pixels

Parameters of the weapon itself

Parameter NameParameter DescriptionExample ValuePossible Parameters
fire_modesFiring mode1, -1-1 - automatic
1 - single
2 - two-shot
3 - three-shot
wallmark_sectionsection of wallmarks that appear on the ground/geometrySection name (by default it is in the system.ltx file)
wm_sizetexture size of the mark left on the ground after the explosionThe bigger the number, the bigger the mark
allow_inertionallow inertiatrue - 1 - on (Yes)
false - 0 - off (No)
ph_massWeight of the unloaded weapon for the physical engine4Kilograms

Shot

Parameter NameParameter DescriptionExample ValuePossible Parameters
hit_impulseThe force that the flying bullet transmits to the victim affects the ragdoll-body behavior34The more, the farther the body will fly away
hit_powerdamage dealt0.58, 0.58, 0.58, 0.58Specifies a value for the level of difficulty in descending order, i.e. from master to beginner
hit_typeType of damage inflicted; used to calculate damage; armor suits (and others) are set to be immune to each type of damage separatelyfire_woundburn
light_burn
shock
strike
wound - stabbing
radiation
telepatic
fire_wound - fire damage
chemical_burn
explosion - shrapnel damage
wound_2 - cutting
fire_distanceeffective range of the shot after which the bullet disappears900Specified in meters
bullet_speedinitial bullet speed715Specified in meters per second
rpmShooting speed600Specifies the number of shots per minute
rpm_mode_2
rpm_anim_fixNew shot animation behaviortruetrue - 1 - on (Yes)
false - 0 - off (No)
rpm_empty_clickMisfire/empty magazine sound frequency200
fire_dispersion_baseThe dispersion (angle of the bullets) introduced by the weapon; affects accuracy; added to the disp_base in actor.ltx0.45Specified in degrees
PDM_disp_accel_factorMultiplier by which fire_dispersion_base is multiplied when the protagonist runs2.5Specified in numbers
PDM_disp_baseMultiplier by which fire_dispersion_base is multiplied when the protagonist is standing at full height1.15Specified in numbers
PDM_disp_crouchMultiplier by which fire_dispersion_base is multiplied when the protagonist goes crouched1.0Specified in numbers
PDM_disp_crouch_no_accMultiplier by which fire_dispersion_base is multiplied when the protagonist stands still while ducking1.0Specified in numbers
PDM_disp_vel_factorMultiplier by which fire_dispersion_base is multiplied when the protagonist spins a weapon or runs2.5Specified in numbers

Ammo

Parameter NameParameter DescriptionExample ValuePossible Parameters
ammo_classammo type for this weaponammo_7.62x39_fmj, ammo_7.62x39_fmj_bad, ammo_7.62x39_fmj_verybad, ammo_7.62x39_ap, ammo_7.62x39_ap_bad, ammo_7.62x39_ap_verybadThe names of the ammunition sections are indicated, separated by commas
ammo_elapsedmagazine capacity at the moment of spawning30indicate the value equal to ammo_mag_size
ammo_mag_sizeammunition capacity30The number of bullets is indicated

Particle shell parameters

Parameter NameParameter DescriptionExample ValuePossible Parameters
shell_pointcoordinates of the shell partylock, when viewed from the 3rd person0, 0.216, 0.174X – left/+right, Y – +up/down, Z – forward/+backward
shell_dirhow the shell particle is rotated when viewed from the 3rd person0, 0, 0.4X – left/+right, Y – +up/down, Z – forward/+backward
shell_particlesshell particleweapons\762x39Particles file path relative to particles.xr

Scopes

Parameter NameParameter DescriptionExample ValuePossible Parameters
scopesName of the gun sight section1p29, kobra, ps01Sections to models with these sights are indicated
scope_statusScope status00 - not available
1 - built-in
2 - removable
scope_zoom_factorscope magnification0For the sight specified in the parameter scopes, the value can already be more
scope_nightvision
scope_dynamic_zoom
scope_alive_detector
scope_texture
scope_texture_alt

Overheat

Parameter NameParameter DescriptionExample ValuePossible Parameters
overheat_time_quant
overheat_decr_quant
overheat_threshold
overheat_particles

| lock_enter | | | | | | lock_exit | | | | |

Silencer

Parameter NameParameter DescriptionExample ValuePossible Parameters
silencer_nameName of the silencer section of the gunwpn_sil_pbs1
silencer_statussilencer status20 - not available
1 - built-in
2 - removable
silencer_light_colorParameters for changing the color of the particle of the smoke from the shot from the weapon with silencer0.6, 0.5, 0.3
silencer_light_rangethe radius of the particle of the haze when firing0.01
silencer_light_timelight time0.2
silencer_light_var_colorParameter for varying the color of the particle of smoke from a shot from a weapon with silencer0.05
silencer_light_var_rangevariation of the radius of the particle of the smoke from the shot from the weapon with silencer0.5
silencer_smoke_particlesparticle smoke effect for a shot with silencerweapons\generic_shoot_00Particles file path relative to particles.xr
silencer_xthe coordinates of the silencer icon superimposed on top of the weapon icon on the X coordinate235Specified in numbers
silencer_ythe coordinates of the silencer icon superimposed over the weapon icon in Y coordinate10Specified in numbers

Underbarrel Grenade Launcher

Parameter NameParameter DescriptionExample ValuePossible Parameters
grenade_classtype of underbarrel grenadesammo_vog-25, ammo_vog-25_bad, ammo_vog-25_verybad
grenade_launcher_namename of the section of the underbarrel grenade launcherwpn_addon_grenade_launcher
grenade_launcher_statusthe status of the underbarrel grenade launcher00 - not available
1 - built-in
2 - removable
launch_speedlaunch speed of the underbarrel grenade launcher0
grenade_flame_particlesparticle of the fire from the underbarrel grenade launcherweapons\generic_weapon01Particles file path relative to particles.xr
grenade_launcher_xgrenade launcher icon coordinates superimposed over the weapon icon on the X coordinate127Specified in numbers
grenade_launcher_ygrenade_launcher icon coordinates superimposed over the weapon icon on the Y coordinate18Specified in numbers
gl_zoom_factor

Aiming

Parameter NameParameter DescriptionExample ValuePossible Parameters
use_aim_bulletA game mechanic in which the first bullet fired after drawing and aiming the weapon does more damage to certain limbsfalsetrue (Yes) - false (No)
time_to_aimTime during which the use_aim_bullet parameter can be activated when aiming and drawing a weapon0.0Specified in seconds
zoom_dof0.5, 1.0, 180
zoom_enabledthe ability to aimtruetrue (Yes) - false (No)
zoom_rotate_timethe speed at which the weapon goes to the “aiming” state, in seconds0.25Specified in seconds
reload_dof0.0, 0.5, 5, 2
control_inertion_factorUsability; aka inertia; affects how easily the weapon can be controlled with the mouse1.0f
crosshair_inertion5.8

Misfire

Parameter NameParameter DescriptionExample ValuePossible Parameters
misfire_probabilitymisfire_probability0.0050 - never jams
1 - always jams
misfire_start_conditionthe wear at which there is a chance of misfire0.7
misfire_start_probmisfire chance of misfire when wear is greater than misfireStartCondition0.007
misfire_end_conditionthe chance of misfire when worn out is greater than misfireEndCondition0.05
misfire_end_probwear rate at which the chance of misfire becomes constant0.11

Condition

Parameter NameParameter DescriptionExample ValuePossible Parameters
condition_queue_shot_deccondition_shot_dec0.0008
condition_shot_decincrease wear on each shot0.00080 - no wear
1 - maximum wear
fire_dispersion_condition_factorthe effect of wear on the variance of the weapon as a percentage0.001

Сamera

Parameter NameParameter DescriptionExample ValuePossible Parameters
cam_returnWhether to return the camera to its original position0
cam_relax_speedcamera return speed10
cam_dispersionangle increase with each shot0.762
cam_dispersion_fracbarrel will rise by cam_dispersioncam_dispersion_frac +- cam_dispersion(1-cam_dispersion_frac)1.0
cam_dispersion_incincrease cam_dispersion with each shot0.0725
cam_max_anglemaximum vertical recoil angle50.0
cam_max_angle_horzmaximum horizontal recoil angle50.0
cam_step_angle_horzbarrel shift horizontally during firing1.38

Camera when aiming

Parameter NameParameter DescriptionExample ValuePossible Parameters
zoom_cam_relax_speedsimilar to the return speed of the camera in the aiming mode10
zoom_cam_dispersionSimilar to cam_dispersion in the aiming mode0.732
zoom_cam_dispersion_fracSimilar to cam_dispersion_frac in aiming mode0.7
zoom_cam_dispersion_incSimilar to cam_dispersion_inc in aiming mode0.0625
zoom_cam_max_angleSimilar to cam_max_angle in aiming mode50.0
zoom_cam_max_angle_horzSimilar to cam_max_angle_horz in aiming mode50.0
zoom_cam_step_angle_horzSimilar to cam_step_angle_horz in aiming mode1.28

AI

Parameter NameParameter DescriptionExample ValuePossible Parameters
ef_main_weapon_typeNPC weapon type20 - pistol
1 -shotgun
2 - assault rifle
3 - rifle
4 - grenade launcher
ef_weapon_typeNPC fire mode85 - fire single shots
6 - fire in bursts
7 - aim and fire single shots
8 - aim and fire (sniper)
9 - grenade launcher
cam_relax_speed_ai360
zoom_cam_relax_speed_ai360
holder_fov_modifierNPC angle of view multiplier (eye_fov) with this weapon1.0Specified in numbers
holder_range_modifierNPC range multiplier (eye_range) with this weapon1.0Specified in numbers
min_radius
max_radius