71 lines
No EOL
1.4 KiB
Modula-2
71 lines
No EOL
1.4 KiB
Modula-2
#define M21_IDLE 0
|
|
#define M21_FIRE 1
|
|
#define M21_RELOAD 2
|
|
#define M21_DRAW 3
|
|
#define M21_HOLSTER 4
|
|
|
|
entityDef weapon_m21
|
|
{
|
|
"editor_color" ".3 .3 1"
|
|
"editor_mins" "-16 -16 -16"
|
|
"editor_maxs" "16 16 16"
|
|
"editor_usage" "#HOE_M21" // M21 Sniper Rifle
|
|
"editor_rotatable" "1"
|
|
|
|
"inherit" "weapon_base"
|
|
"model" "models/w_m21.mdl"
|
|
"model_view" "models/v_m21.mdl"
|
|
|
|
// NSWeapon specific
|
|
"def_fireInfo" "fireInfo_m21"
|
|
"inv_name" "#HOE_M21"
|
|
"ammoType" "ammo_762mm"
|
|
"ammoRequired" "1"
|
|
"ammoPerShot" "1"
|
|
"clipSize" "20"
|
|
|
|
"ammoIcon" "weapon_m21.ammo"
|
|
"crosshair" "weapon_m21.crosshair"
|
|
"icon" "weapon_m21.weapon"
|
|
"iconSelected" "weapon_m21.weapon_s"
|
|
|
|
"act_fire" "$M21_FIRE"
|
|
"act_holster" "$M21_HOLSTER"
|
|
"act_reload" "$M21_RELOAD"
|
|
"act_draw" "$M21_DRAW"
|
|
"act_idle" "$M21_IDLE"
|
|
|
|
// TODO eject "models/shell.mdl"
|
|
// TODO accuracy should be perfect when Zoomed
|
|
|
|
"snd_empty" "Weapons.Empty"
|
|
|
|
// HLWeapon specific
|
|
"hudSlot" "2"
|
|
"hudSlotPos" "5"
|
|
"weight" "6"
|
|
"zoomFov" "20"
|
|
|
|
// iron sight (from Source port)
|
|
// "origin" "-6.05 -8 -0.0"
|
|
// "angles" "-3 0 0"
|
|
|
|
}
|
|
|
|
entityDef projectile_m21
|
|
{
|
|
"inherit" "projectile_bullet_base"
|
|
"damage" "skill:plr_m21_bullet"
|
|
"spread" "0.025 0.025"
|
|
}
|
|
|
|
entityDef fireInfo_m21
|
|
{
|
|
"def_onFire" "projectile_m21"
|
|
"fireRate" "1.0"
|
|
"fireUnderwater" "0"
|
|
"semiAuto" "0"
|
|
"punchAngle" "0 0 0"
|
|
"model_flash" "sprites/muzzleflash1.spr"
|
|
"snd_fire" "Weapon_M21.Single"
|
|
} |