• shadow of chernobyl
  • clearsky
  • call of pripyat
  • stalker 2
  • metro 2033
  • modding
  • larp
  • Čerrnobyl
  • forum
Registrovanch uvateov: 3195
Zaslanch prspevkov: 100652
forum
S.T.A.L.K.E.R.: Shadow of Chernobyl
Datastor Modpack Main Spanish STALKER Community STALKER Community in France RPG Vault
Prvá slovenská fanstránka o hernej sérii WORMS NightStalkers: Return to Chernogorsk Zone - OFP Mod ChernobylZne.cz




S.T.A.L.K.E.R. Modding (modifikácie)

Návody - Niečo o strelive

ciara
01.08.2007 | Semtex_01
Korešpondencie medzi zbraňou a strelivom

v súbore [weapon name].ltx (zbraň) a v súbore weapons.ltx (strelivo)

rozptyl:
fire_dispersion_base -|- k_disp
dostrel:
fire_distance -|- k_dist
hit pover:
hit_power -|- k_hit
hit impulze:
hit_impulse -|- k_impulse
Parametre sa násobia.

Vlastnosti streliva (jedna z mnohých sekcií v súbore weapons.ltx (strelivo) )

[ammo_9x18_fmj]:ammo_base
GroupControlSection = spawn_group
discovery_dependency =
$spawn = "weaponsammoammo_9x18_fmj" ; option for Level Editor
class = AMMO
cform = skeleton
visual = weaponsammoammo_9x18_fmj.ogf ; použitý model krabičky nábojov
description = enc_weapons1_ammo_ammo-9x18-fmj ; popis v encyklopédii zo súboru string_table_enc_weapons.xml
$prefetch = 64

cost = 70 ; základná cena krabičky nábojov

box_size = 20 ; počet nábojov v krabičke

inv_name = ammo-9x18-fmj ; meno v inventári zo súboru string_table_enc_weapons.xml
inv_name_short = ammo-9x18-fmj_s ; skrátené meno v inventári zo súboru string_table_enc_weapons.xml
inv_weight = 0.2 ; hmotnosť plnej krabičky (alebo 1 náboja ?)

inv_grid_width = 1 ; veľkost krabičky v inventárii, koľko políčok zaberá
inv_grid_height = 1
inv_grid_x = 11 ; pozícia ikony?
inv_grid_y = 12
k_dist = 0.75 ; Oprava dostrelu zbrane podľa streliva
k_disp = 4 ; Oprava rozptylu zbrane podľa streliva
k_hit = 1.15 ; Oprava ranivosti podľa streliva
k_impulse = 1.0 ; Oprava hit_impulse (ako ďaleko zasiahnutá postava odletí)
k_pierce = 0.001 ; koeficient priebojnosti?
impair = 1.5 ; ? neznáme...
buck_shot = 1 ; počet samostaných striel odpálených z jedného náboja

wm_size = 0.05 ; ? parameter je 0.05 pre všetky strely okrem náboja do RPG-7, tam je 0.1

tracer = off ; má strela stopovku?
explosive = off ; je strela výbušná? - "on" použité pre Gauss, 7.62x54 a jednotné strely pre brokovnicu

Poznámka: Vrtuľníky po vás strieľajú brokovnicou Rolling Eyes

;Ukážkové strelivo

[ammo_9x18_fmj]:ammo_base
GroupControlSection = spawn_group
discovery_dependency =
$spawn = "weaponsammoammo_9x18_fmj" ; option for Level Editor
class = AMMO
cform = skeleton
visual = weaponsammoammo_9x18_fmj.ogf
description = enc_weapons1_ammo_ammo-9x18-fmj
$prefetch = 64

cost = 70

box_size = 20

inv_name = ammo-9x18-fmj
inv_name_short = ammo-9x18-fmj_s
inv_weight = 0.2

inv_grid_width = 1
inv_grid_height = 1
inv_grid_x = 11
inv_grid_y = 12

k_dist = 1
k_disp = 3
k_hit = 1
k_impulse = 1
k_pierce = 1
impair = 1
buck_shot = 1
tracer = off
wm_size = 0.05

;-------------------------------------------------------------------------------------
[ammo_12x70_home]:ammo_base
GroupControlSection = spawn_group
discovery_dependency =
$spawn = "weaponsammoammo_12x70_home" ; option for Level Editor
class = AMMO
cform = skeleton
visual = weaponsammoammo_12x70_buck.ogf
description = enc_weapons1_ammo_ammo-12x70-home
$prefetch = 64

cost = 30

box_size = 10

inv_name = ammo-12x70-home
inv_name_short = ammo-12x70-home_s
inv_weight = 0.45

inv_grid_width = 2
inv_grid_height = 1
inv_grid_x = 13
inv_grid_y = 9

k_dist = 0.75
k_disp = 10
k_hit = 0.4
k_impulse = 500
k_pierce = 0.8
impair = 1
buck_shot = 50
tracer = off
wm_size = 0.05

;------------------------------------------------------------------------------------
[ammo_7.62x54_7h1]:ammo_base
GroupControlSection = spawn_group
discovery_dependency =
$spawn = "weaponsammoammo_7.62x54_7h1" ; option for Level Editor
class = AMMO
cform = skeleton
visual = weaponsammoammo_762x54_7h1.ogf
description = enc_weapons1_ammo_ammo-7.62x54-7h1
$prefetch = 64

cost = 900

box_size = 10

inv_name = ammo-7.62x54-7h1
inv_name_short = ammo-7.62x54-7h1_s
inv_weight = 0.23

inv_grid_width = 2
inv_grid_height = 1
inv_grid_x = 15
inv_grid_y = 9

k_dist = 1
k_disp = 1.5;3
k_hit = 1
k_impulse = 1
k_pierce = 1.25
impair = 1
buck_shot = 1
tracer = on
wm_size = 0.05
explosive = on

;-------------------------------------------------------------------------------------

[ammo_gauss]:ammo_base
GroupControlSection = spawn_group
discovery_dependency =
$spawn = "weaponsammoammo_gauss" ; option for Level Editor
class = AMMO
cform = skeleton
visual = weaponsammoammo_gauss.ogf
description = enc_weapons1_ammo_ammo-gauss
$prefetch = 64

cost = 550

box_size = 10

inv_name = ammo-gauss
inv_name_short = ammo-gauss_s
inv_weight = .5

inv_grid_width = 1
inv_grid_height = 1
inv_grid_x = 4
inv_grid_y = 14

k_dist = 1.1
k_disp = 1
k_hit = 1.1
k_impulse = 10
k_pierce = 2.5
impair = 0.7
buck_shot = 1
tracer = off
wm_size = 0.05
explosive = on
 
Pre rozšírenie sortimentu streliva treba editovať tieto súbory:
weapons.ltx - pridať nové strelivo
[weapon name].ltx - prideliť strelivo k zbrani
string_table_enc_weapons.xml - na troch miestach - plný názov streliva, skrátený názov streliva a popis.
trade_XXX.ltx - pre pridelenie streliva predajcom, prípadne aj
m_XXX.ltx - pre pridelenie streliva stalkerom a iným NPC


"Vystrelovacie" granáty sú zložitý prípad...
 
Pôvodne + diskusia: http://stalker.scorpions.cz/forum/viewtopic.php?t=403