103 lines
No EOL
2.3 KiB
Modula-2
103 lines
No EOL
2.3 KiB
Modula-2
#define COLT_IDLE 0
|
|
#define COLT_IDLE_EMPTY 1
|
|
#define COLT_RELOAD 2
|
|
#define COLT_RELOAD_EMPTY 3
|
|
#define COLT_DRAW 4
|
|
#define COLT_DRAW_EMPTY 5
|
|
#define COLT_HOLSTER 6
|
|
#define COLT_HOLSTER_EMPTY 7
|
|
#define COLT_FIRE 8
|
|
#define COLT_FIRE_LAST 9
|
|
#define COLT_FIRE_WHIP 10
|
|
|
|
entityDef weapon_colt1911a1
|
|
{
|
|
"editor_color" ".3 .3 1"
|
|
"editor_mins" "-16 -16 -16"
|
|
"editor_maxs" "16 16 16"
|
|
"editor_usage" "#HOE_colt1911A1" // Colt 1911A1
|
|
"editor_rotatable" "1"
|
|
|
|
"inherit" "weapon_base"
|
|
"model" "models/w_colt1911a1.mdl"
|
|
"model_view" "models/v_colt1911a1.mdl"
|
|
|
|
// weapon specific
|
|
"def_fireInfo" "fireInfo_colt"
|
|
"def_altFireInfo" "fireInfo_coltWhip"
|
|
"inv_name" "#HOE_colt1911A1"
|
|
"ammoType" "ammo_1143mm"
|
|
"clipSize" "7"
|
|
|
|
"ammoIcon" "weapon_colt1911a1.ammo"
|
|
"crosshair" "weapon_colt1911a1.crosshair"
|
|
"icon" "weapon_colt1911a1.weapon"
|
|
"iconSelected" "weapon_colt1911a1.weapon_s"
|
|
|
|
"act_holster" "$COLT_HOLSTER"
|
|
"act_holsterEmpty" "$COLT_HOLSTER_EMPTY"
|
|
"act_reload" "$COLT_RELOAD"
|
|
"act_reloadEmpty" "$COLT_RELOAD_EMPTY"
|
|
"act_draw" "$COLT_DRAW"
|
|
"act_drawEmpty" "$COLT_DRAW_EMPTY"
|
|
"act_idle" "$COLT_IDLE"
|
|
"act_idleEmpty" "$COLT_IDLE_EMPTY"
|
|
|
|
"snd_empty" "Weapon_Colt1911A1.Empty"
|
|
|
|
// HLWeapon specific
|
|
"hudSlot" "1"
|
|
"hudSlotPos" "2"
|
|
"weight" "12"
|
|
|
|
// iron sight (from Source port)
|
|
// "origin" "-7.66 -4 4.7"
|
|
// "angles" "0 0 0"
|
|
}
|
|
|
|
entityDef projectile_colt
|
|
{
|
|
"inherit" "projectile_bullet_base"
|
|
"damage" "skill:plr_1143_bullet"
|
|
"spread" "0.1 0.1"
|
|
}
|
|
|
|
entityDef projectile_coltWhip
|
|
{
|
|
"spawnclass" "ncProjectile"
|
|
"damage" "skill:plr_pistolwhip"
|
|
"is_bullet" "1"
|
|
"range" "32"
|
|
"decal_impact" "Impact.Shot"
|
|
"detonate_on_world" "1"
|
|
}
|
|
|
|
entityDef fireInfo_colt
|
|
{
|
|
"def_onFire" "projectile_colt"
|
|
"ammoRequired" "1"
|
|
"ammoPerShot" "1"
|
|
"semiAuto" "1"
|
|
"fireRate" "0.1"
|
|
"fireUnderwater" "0"
|
|
"act_fire" "$COLT_FIRE"
|
|
"act_fireLast" "$COLT_FIRE_LAST"
|
|
"snd_fire" "Weapon_Colt1911A1.Single"
|
|
"punchAngle" "2 0 0"
|
|
"model_flash" "sprites/muzzleflash2.spr"
|
|
}
|
|
|
|
entityDef fireInfo_coltWhip
|
|
{
|
|
"def_onFire" "projectile_coltWhip"
|
|
"ammoRequired" "0"
|
|
"semiAuto" "0"
|
|
"failRate" "0.75"
|
|
"fireRate" "0.75"
|
|
"fireUnderwater" "1"
|
|
"act_fire" "$COLT_FIRE_WHIP"
|
|
"snd_fire" "Weapon_Colt1911A1.Swing"
|
|
"snd_hitBody" "Weapon_Crowbar.HitBody"
|
|
"snd_hitWorld" "Weapon_Colt1911A1.Smash"
|
|
"punchAngle" "0 0 0"
|
|
} |