101 lines
2.2 KiB
Modula-2
101 lines
2.2 KiB
Modula-2
#define 870_IDLE 0
|
|
#define 870_FIRE 1
|
|
#define 870_FIRE_ALT 2
|
|
#define 870_RELOAD 3
|
|
#define 870_RELOAD_END 4
|
|
#define 870_RELOAD_START 5
|
|
#define 870_DRAW 6
|
|
#define 870_HOLSTER 7
|
|
#define 870_IDLE_LONG 8
|
|
|
|
entityDef weapon_870
|
|
{
|
|
"editor_color" ".3 .3 1"
|
|
"editor_mins" "-16 -16 -16"
|
|
"editor_maxs" "16 16 16"
|
|
"editor_usage" "#HOE_870" // Remington Model 870
|
|
"editor_rotatable" "1"
|
|
|
|
"inherit" "weapon_base"
|
|
"model" "models/w_870.mdl"
|
|
"model_view" "models/v_870.mdl"
|
|
|
|
// TODO eject "models/shotgunshell.mdl"
|
|
// TODO eject "models/elephantshell.mdl"
|
|
|
|
// weapon specific
|
|
"def_fireInfo" "fireInfo_870"
|
|
"def_altFireInfo" "fireInfo_870Elephant"
|
|
"inv_name" "#HOE_870"
|
|
"clipSize" "7"
|
|
// "inv_ammo_buckshot" "4"
|
|
"model_flash" "sprites/muzzleflash2.spr"
|
|
|
|
"ammoIcon" "weapon_870.ammo"
|
|
"ammo2Icon" "weapon_870.ammo2"
|
|
"crosshair" "weapon_870.crosshair"
|
|
"icon" "weapon_870.weapon"
|
|
"iconSelected" "weapon_870.weapon_s"
|
|
|
|
"act_holster" "$870_HOLSTER"
|
|
"act_reloadStart" "$870_RELOAD_START"
|
|
"act_reload" "$870_RELOAD"
|
|
"act_reloadEnd" "$870_RELOAD_END"
|
|
"act_draw" "$870_DRAW"
|
|
"act_idle" "$870_IDLE,$870_IDLE_LONG"
|
|
|
|
"snd_empty" "Weapons.Empty"
|
|
|
|
"snd_reload" "Weapon_Shotgun.Reload"
|
|
// "snd_reload_end" "Weapon_870.Pump"
|
|
|
|
// HLWeapon specific
|
|
"hudSlot" "2"
|
|
"hudSlotPos" "4"
|
|
"weight" "12"
|
|
}
|
|
|
|
entityDef projectile_870
|
|
{
|
|
"inherit" "projectile_bullet_base"
|
|
"damage" "skill:plr_buckshot"
|
|
"hitscans" "8"
|
|
"spread" "0.08716 0.08716"
|
|
}
|
|
|
|
entityDef projectile_870Elephant
|
|
{
|
|
"inherit" "projectile_bullet_base"
|
|
"damage" "skill:plr_buckshot"
|
|
"hitscans" "30"
|
|
"spread" "0.08716 0.08716"
|
|
}
|
|
|
|
entityDef fireInfo_870
|
|
{
|
|
"def_onFire" "projectile_870"
|
|
"ammoType" "ammo_buckshot"
|
|
"ammoRequired" "1"
|
|
"ammoPerShot" "1"
|
|
"act_fire" "$870_FIRE"
|
|
"snd_fire" "Weapon_870.Buckshot"
|
|
"fireRate" "1.0"
|
|
"fireUnderwater" "0"
|
|
"punchAngle" "0 0 0"
|
|
}
|
|
|
|
entityDef fireInfo_870Elephant
|
|
{
|
|
// TODO load Elephant Shot when clicked instead
|
|
// it works like an ammo queue, not a second attack
|
|
"def_onFire" "projectile_870Elephant"
|
|
"ammoType" "ammo_elephantshot"
|
|
"ammoRequired" "1"
|
|
"ammoPerShot" "1"
|
|
"act_fire" "$870_FIRE_ALT"
|
|
"snd_fire" "Weapon_870.Elephantshot"
|
|
"fireRate" "1.4"
|
|
"fireUnderwater" "0"
|
|
"knockback" "200"
|
|
"punchAngle" "20 0 0"
|
|
}
|