evil/zpak001.pk3dir/decls/def/weapons/chainsaw.def

133 lines
No EOL
3 KiB
Modula-2

#define CHAINSAW_IDLE_OFF 0
#define CHAINSAW_IDLE_ON 1
#define CHAINSAW_DRAW 2
#define CHAINSAW_HOLSTER 3
#define CHAINSAW_IDLE_HIT 4
#define CHAINSAW_FIRE1 5
#define CHAINSAW_FIRE2 6
#define CHAINSAW_FIRE3 7
#define CHAINSAW_FIRE4 8
#define CHAINSAW_REV_START 9
#define CHAINSAW_REV_IDLE 10
#define CHAINSAW_REV_END_EMPTY 11
#define CHAINSAW_REV_END 12
entityDef weapon_chainsaw
{
"editor_color" ".3 .3 1"
"editor_mins" "-16 -16 -16"
"editor_maxs" "16 16 16"
"editor_usage" "#HOE_Chainsaw"
"editor_rotatable" "1"
"inherit" "weapon_base"
"model" "models/w_chainsaw.mdl"
"model_view" "models/v_chainsaw.mdl"
// weapon specific
"def_fireInfo" "fireInfo_chainsaw"
"def_altFireInfo" "fireInfo_chainsawOn"
"inv_name" "#HOE_Chainsaw"
"ammoType" "ammo_gas"
"ammoRequired" "1"
"silent_fire" "0"
// "act_idle" "$CHAINSAW_IDLE_OFF"
// "act_idleOn" "$CHAINSAW_IDLE"
// "act_draw" "$CHAINSAW_DRAW"
// "act_holster" "$CHAINSAW_HOLSTER"
// "act_fireFailed" "$CHAINSAW_FIRE1,$CHAINSAW_FIRE2,$CHAINSAW_FIRE3,$CHAINSAW_FIRE4"
// "act_fire" "$CHAINSAW_FIRE1,$CHAINSAW_FIRE2,$CHAINSAW_FIRE3,$CHAINSAW_FIRE4"
// "act_fireIdle" "$CHAINSAW_IDLE_HIT"
// "act_modeStart" "$CHAINSAW_REV_START"
// "act_modeOn" "$CHAINSAW_REV_END"
// "act_modeIdle" "$CHAINSAW_REV_IDLE"
// "act_modeFailed" "$CHAINSAW_REV_END_EMPTY"
"altMode" "1"
"act_modeStart" "9"
"act_modeOn" "12"
"act_modeIdle" "10"
"act_modeFailed" "11"
"act_modeOff" ""
"act_draw" "2"
"act_holster" "3"
"act_fireFailed" "5,6,7,8"
"act_fire" "5,6,7,8"
"testDistance" "-32"
"failRate" "1.0"
"fireRate" "1.0"
"fireUnderwater" "0" // TODO Should turn off
// HLWeapon specific
"hudSlot" "0"
"hudSlotPos" "2"
"weight" "25"
"ammoIcon" "weapon_chainsaw.ammo"
"crosshair" "none"
"icon" "weapon_chainsaw.weapon"
"iconSelected" "weapon_chainsaw.weapon_s"
}
// TODO Turn Off / On State
// Damage is more when swinging
// TODO source sound shader names
// Weapon_Chainsaw.Attack
// weapons/cbar_miss1.wav
// weapons/chainsaw_screech1.wav
// weapons/chainsaw_screech2.wav
// weapons/chainsaw_full1.wav
// weapons/chainsaw_full2.wav
// weapons/chainsaw_full3.wav
// Weapon_Chainsaw.Start
// weapons/chainsaw_start.wav
// Weapon_Chainsaw.BadStart
// weapons/chainsaw_startfail.wav
// Weapon_Chainsaw.Idle
// weapons/chainsaw_idle1.wav
// weapons/chainsaw_idle2.wav
// weapons/chainsaw_idle3.wav
// Weapon_Chainsaw.Gibs
// weapons/chainsaw_gibs.wav
entityDef projectile_chainsaw
{
"spawnclass" "ncProjectile"
"damage" "skill:plr_chainsaw"
"is_bullet" "1"
"range" "32"
"decal_impact" "Impact.Spark"
"detonate_on_world" "1"
}
entityDef fireInfo_chainsaw
{
"def_onFire" ""
"ammoPerShot" "0"
"punchAngle" "0 0 0"
"act_idle" "0"
"snd_fireFailed" ""
"snd_hitBody" ""
"snd_hitWorld" ""
}
entityDef fireInfo_chainsawOn
{
"def_onFire" "projectile_m60"
"ammoPerShot" "1"
"punchAngle" "0 0 0"
"act_idle" "1"
"snd_fireFailed" "Weapon_Chainsaw.Attack"
"snd_hitBody" "Weapon_Machete.Melee_Hit"
"snd_hitWorld" "Weapon_Machete.Melee_HitWorld"
}