71 lines
1.5 KiB
Modula-2
71 lines
1.5 KiB
Modula-2
#define AK47_IDLE_LONG 0
|
|
#define AK47_IDLE 1
|
|
#define AK47_RELOAD 2
|
|
#define AK47_RELOAD_EMPTY 3
|
|
#define AK47_DRAW 4
|
|
#define AK47_HOLSTER 5
|
|
#define AK47_FIRE 6
|
|
|
|
entityDef weapon_ak47
|
|
{
|
|
"editor_color" ".3 .3 1"
|
|
"editor_mins" "-16 -16 -16"
|
|
"editor_maxs" "16 16 16"
|
|
"editor_usage" "#HOE_AK47" // AK-47 Assault Rifle
|
|
"editor_rotatable" "1"
|
|
|
|
"inherit" "weapon_base"
|
|
"model" "models/w_ak47.mdl"
|
|
"model_view" "models/v_ak47.mdl"
|
|
|
|
// NSWeapon specific
|
|
"def_fireInfo" "fireInfo_ak47"
|
|
"inv_name" "#HOE_AK47"
|
|
"ammoType" "ammo_762x39mm"
|
|
"ammoRequired" "1"
|
|
"ammoPerShot" "1"
|
|
"clipSize" "30"
|
|
|
|
"ammoIcon" "weapon_ak47.ammo"
|
|
"crosshair" "weapon_ak47.crosshair"
|
|
"icon" "weapon_ak47.weapon"
|
|
"iconSelected" "weapon_ak47.weapon_s"
|
|
|
|
"act_fire" "$AK47_FIRE"
|
|
"act_holster" "$AK47_HOLSTER"
|
|
"act_reload" "$AK47_RELOAD"
|
|
"act_reloadEmpty" "$AK47_RELOAD_EMPTY"
|
|
"act_draw" "$AK47_DRAW"
|
|
"act_idle" "$AK47_IDLE,$AK47_IDLE_LONG"
|
|
|
|
// TODO eject "models/shell.mdl"
|
|
|
|
"snd_empty" "Weapons.Empty"
|
|
|
|
// HLWeapon specific
|
|
"hudSlot" "2"
|
|
"hudSlotPos" "3"
|
|
"weight" "11"
|
|
|
|
// iron sight (from Source port)
|
|
// "origin" "-5.54 -8 1.4"
|
|
// "angles" "-0.8 0 0"
|
|
|
|
}
|
|
|
|
entityDef projectile_ak47
|
|
{
|
|
"inherit" "projectile_bullet_base"
|
|
"damage" "skill:plr_762x39_bullet"
|
|
"spread" "0.025 0.025"
|
|
}
|
|
|
|
entityDef fireInfo_ak47
|
|
{
|
|
"def_onFire" "projectile_ak47"
|
|
"fireRate" "0.1"
|
|
"fireUnderwater" "0"
|
|
"punchAngle" "0 0 0"
|
|
"model_flash" "sprites/muzzleflash1.spr"
|
|
"snd_fire" "Weapon_AK47.Single"
|
|
}
|