¡Esta es una revisión vieja del documento!
Con este pequeño Tutorial podrás conocer los parámetros que podrás utilizar a la hora de modificar armas. El autor original de este tutorial tomó como ejemplo el archivo de una pistola, concretamente el w_walther.ltx, que se encuentra en \gamedata\config\weapons.
Necesitarás un Editor de Textos (como el Notepad) para editar este archivo.
NOTA: Se ha cortado mucho contenido para que os quedéis solo con lo importante.
cost = 800 ;300
ammo_limit = 120
ammo_current = 96
ammo_mag_size = 16
ammo_class = ammo_9x19_fmj, ammo_9x19_pbp
hand_dependence = 1
single_handed = 1
shell_point = 0.0, 0.136, 0.03 shell_dir = 0.0, 0.0, 0.4 shell_particles = weapons\generic_shells
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