123 lines
2.5 KiB
Modula-2
123 lines
2.5 KiB
Modula-2
entityDef weapon_shotgun
|
|
{
|
|
"editor_color" ".3 .3 1"
|
|
"editor_mins" "-16 -16 -16"
|
|
"editor_maxs" "16 16 16"
|
|
"editor_usage" "Shotgun"
|
|
"editor_rotatable" "1"
|
|
|
|
"spawnclass" "HLWeapon"
|
|
"model" "models/w_shotgun.mdl"
|
|
"model_view" "models/v_shotgun.mdl"
|
|
"snd_acquire" "weapon.pickup"
|
|
"snd_respawn" "item.respawn"
|
|
|
|
// weapon specific
|
|
"def_fireInfo" "fireInfo_shotgun"
|
|
"def_altFireInfo" "fireInfo_altShotgun"
|
|
"inv_name" "Shotgun"
|
|
"clipSize" "8"
|
|
"inv_ammo_buckshot" "4"
|
|
"ammoType" "ammo_buckshot"
|
|
"ammoRequired" "1"
|
|
"model_flash" "sprites/muzzleflash2.spr"
|
|
|
|
"ammoIcon" "weapon_shotgun.ammo"
|
|
"ammo2Icon" "weapon_shotgun.ammo2"
|
|
"crosshair" "weapon_shotgun.crosshair"
|
|
"icon" "weapon_shotgun.weapon"
|
|
"iconSelected" "weapon_shotgun.weapon_s"
|
|
|
|
"act_fire" "1"
|
|
"act_holster" "7"
|
|
"act_reloadStart" "5"
|
|
"act_reload" "3"
|
|
"act_reloadEnd" "4"
|
|
"act_draw" "6"
|
|
"act_idle" "0,8,9"
|
|
|
|
"snd_fire" "Weapon_Shotgun.Single"
|
|
"snd_empty" "Weapons.Empty"
|
|
|
|
"snd_reload" "Weapon_Shotgun.Reload"
|
|
"snd_reload_end" "Weapon_Shotgun.Special1"
|
|
|
|
// HLWeapon specific
|
|
"hudSlot" "2"
|
|
"hudSlotPos" "1"
|
|
"weight" "15"
|
|
}
|
|
|
|
entityDef projectile_shotgun
|
|
{
|
|
"inherit" "projectile_bullet_base"
|
|
"damage" "skill:plr_buckshot"
|
|
"hitscans" "12"
|
|
"spread" "0.08716 0.08716"
|
|
}
|
|
|
|
entityDef projectile_shotgun_alt
|
|
{
|
|
"inherit" "projectile_bullet_base"
|
|
"damage" "skill:plr_buckshot"
|
|
"hitscans" "24"
|
|
"spread" "0.08716 0.08716"
|
|
}
|
|
|
|
entityDef fireInfo_shotgun
|
|
{
|
|
"def_onFire" "projectile_shotgun"
|
|
"ammoPerShot" "1"
|
|
"fireRate" "0.75"
|
|
"punchAngle" "-5 0 0"
|
|
}
|
|
|
|
entityDef fireInfo_altShotgun
|
|
{
|
|
"def_onFire" "projectile_shotgun_alt"
|
|
"ammoPerShot" "2"
|
|
"fireRate" "1.5"
|
|
"act_fire" "2"
|
|
"punchAngle" "-10 0 0"
|
|
"snd_fire" "Weapon_Shotgun.Double"
|
|
}
|
|
|
|
// multiplayer version
|
|
entityDef projectile_shotgun_mp
|
|
{
|
|
"inherit" "projectile_bullet_base"
|
|
"damage" "skill:plr_buckshot"
|
|
"hitscans" "12"
|
|
"spread" "0.08716 0.04362"
|
|
}
|
|
|
|
entityDef projectile_shotgun_alt_mp
|
|
{
|
|
"inherit" "projectile_bullet_base"
|
|
"damage" "skill:plr_buckshot"
|
|
"hitscans" "24"
|
|
"spread" "0.17365 0.04362"
|
|
}
|
|
|
|
entityDef fireInfo_shotgun_mp
|
|
{
|
|
"def_onFire" "projectile_shotgun_mp"
|
|
"ammoPerShot" "1"
|
|
"fireRate" "0.75"
|
|
"punchAngle" "-5 0 0"
|
|
}
|
|
|
|
entityDef fireInfo_altShotgun_mp
|
|
{
|
|
"def_onFire" "projectile_shotgun_alt_mp"
|
|
"ammoPerShot" "2"
|
|
"fireRate" "1.5"
|
|
"punchAngle" "-10 0 0"
|
|
}
|
|
|
|
entityDef weapon_shotgun_mp
|
|
{
|
|
"inherit" "weapon_shotgun"
|
|
"def_fireInfo" "fireInfo_shotgun_mp"
|
|
"def_altFireInfo" "fireInfo_altShotgun_mp"
|
|
}
|