tfc/decls/def/weapons/autorifle.def
2025-02-01 03:48:49 -08:00

52 lines
1.1 KiB
Modula-2

entityDef tf_weapon_autorifle
{
"editor_color" ".3 .3 1"
"editor_mins" "-16 -16 -16"
"editor_maxs" "16 16 16"
"editor_usage" "Automatic Rifle"
"editor_rotatable" "1"
"spawnclass" "HLWeapon"
"model" "models/w_9mmhandgun.mdl"
"model_view" "models/v_tfc_sniper.mdl"
"snd_acquire" "weapon.pickup"
"snd_respawn" "item.respawn"
// weapon specific
"def_fireInfo" "fireInfo_tfAutoRifle"
"inv_name" "Automatic Rifle"
"inv_ammo_shells" "75"
"ammoType" "ammo_shells"
"ammoRequired" "1"
"ammoPerShot" "1"
"punchAngle" "-2 0 0"
"act_fire" "6"
"act_holster" "8"
"act_draw" "7"
"act_idle" "5"
"snd_fire" "Weapon_SMG.Single"
"snd_empty" "Weapon_SMG.ClipEmpty"
// HLWeapon specific
"hudSlot" "2"
"hudSlotPos" "0"
"weight" "10"
}
entityDef projectile_tfAutoRifleBullet
{
"inherit" "projectile_bullet_base"
"damage" "skill:plr_autorifle"
"spread" "0.025 0.025"
}
entityDef fireInfo_tfAutoRifle
{
"def_onFire" "projectile_tfAutoRifleBullet"
"ammoType" "ammo_shells"
"fireRate" "0.085"
"punchAngle" "-2 0 0"
"model_flash" "sprites/muzzleflash1.spr"
}