2023-07-17 05:47:01 +00:00
|
|
|
entityDef weapon_crossbow
|
|
|
|
{
|
2024-06-22 07:29:51 +00:00
|
|
|
"editor_color" ".3 .3 1"
|
|
|
|
"editor_mins" "-16 -16 -16"
|
|
|
|
"editor_maxs" "16 16 16"
|
|
|
|
"editor_usage" "Crossbow"
|
|
|
|
"editor_rotatable" "1"
|
|
|
|
|
|
|
|
"spawnclass" "HLWeapon"
|
|
|
|
"model" "models/w_crossbow.mdl"
|
|
|
|
"model_view" "models/v_crossbow.mdl"
|
|
|
|
"snd_acquire" "weapon.pickup"
|
|
|
|
"snd_respawn" "item.respawn"
|
|
|
|
|
|
|
|
// weapon specific
|
|
|
|
"def_fireInfo" "fireInfo_crossbow"
|
|
|
|
"inv_name" "Crossbow"
|
|
|
|
"clipSize" "5"
|
|
|
|
|
2024-09-17 19:48:09 +00:00
|
|
|
"ammoIcon" "weapon_crossbow.ammo"
|
|
|
|
"ammo2Icon" "weapon_crossbow.ammo2"
|
|
|
|
"crosshair" "weapon_crossbow.crosshair"
|
|
|
|
"icon" "weapon_crossbow.weapon"
|
|
|
|
"iconSelected" "weapon_crossbow.weapon_s"
|
|
|
|
|
|
|
|
"act_fire" "4"
|
|
|
|
"act_fireLast" "6"
|
|
|
|
"act_holster" "10"
|
|
|
|
"act_holsterEmpty" "11"
|
|
|
|
"act_reload" "7"
|
|
|
|
"act_draw" "8"
|
|
|
|
"act_drawEmpty" "9"
|
|
|
|
"act_idle" "0,2"
|
|
|
|
"act_idleEmpty" "1,3"
|
2024-06-22 07:29:51 +00:00
|
|
|
|
2024-10-17 05:58:21 +00:00
|
|
|
"snd_fire" "Weapon_Crossbow.Single"
|
|
|
|
"snd_empty" "Weapons.Empty"
|
|
|
|
"snd_reload" "Weapon_Crossbow.Reload"
|
2024-06-22 07:29:51 +00:00
|
|
|
|
|
|
|
// HLWeapon specific
|
|
|
|
"hudSlot" "2"
|
|
|
|
"hudSlotPos" "2"
|
|
|
|
"weight" "10"
|
|
|
|
"zoomFov" "18"
|
|
|
|
}
|
|
|
|
|
2024-09-17 19:48:09 +00:00
|
|
|
entityDef weapon_crossbow_mp
|
|
|
|
{
|
|
|
|
"inherit" "weapon_crossbow"
|
|
|
|
"def_fireInfo" "fireInfo_crossbowMP"
|
|
|
|
}
|
|
|
|
|
2024-06-22 07:29:51 +00:00
|
|
|
entityDef fireInfo_crossbow
|
|
|
|
{
|
2024-09-17 19:48:09 +00:00
|
|
|
"def_onFire" "projectile_arrow"
|
2024-06-22 07:29:51 +00:00
|
|
|
"ammoType" "ammo_bolt"
|
|
|
|
"ammoRequired" "1"
|
|
|
|
"ammoPerShot" "1"
|
|
|
|
"fireRate" "1.0"
|
|
|
|
"punchAngle" "-2 0 0"
|
|
|
|
}
|
|
|
|
|
2024-09-17 19:48:09 +00:00
|
|
|
entityDef fireInfo_crossbowMP
|
|
|
|
{
|
|
|
|
"inherit" "fireInfo_crossbow"
|
|
|
|
"def_onFire" "projectile_arrowExplosive"
|
|
|
|
}
|
|
|
|
|
2024-06-22 07:29:51 +00:00
|
|
|
entityDef debris_arrow
|
|
|
|
{
|
|
|
|
"spawnclass" "NSProjectile"
|
|
|
|
"model" "models/crossbow_bolt.mdl"
|
2023-07-28 06:08:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
entityDef projectile_arrow
|
|
|
|
{
|
|
|
|
"spawnclass" "NSProjectile"
|
2024-03-02 08:43:10 +00:00
|
|
|
"model" "models/crossbow_bolt.mdl"
|
|
|
|
"velocity" "2000 0 0"
|
2023-07-28 06:08:26 +00:00
|
|
|
"angular_velocity" "0 0 20"
|
2024-03-02 08:43:10 +00:00
|
|
|
"mins" "0 0 0"
|
|
|
|
"maxs" "0 0 0"
|
2024-06-22 07:29:51 +00:00
|
|
|
"def_damage" "damage_arrowDirect"
|
2024-03-02 08:43:10 +00:00
|
|
|
"model_detonate" "fx_spark.main"
|
2024-10-17 05:58:21 +00:00
|
|
|
"snd_explode" "DoSpark"
|
|
|
|
"snd_hitWorld" "Weapon_Crossbow.BoltHitWorld"
|
|
|
|
"snd_hitBody" "Weapon_Crossbow.BoltHitBody"
|
2023-07-28 06:08:26 +00:00
|
|
|
"detonate_on_fuse" "0"
|
|
|
|
"detonate_on_death" "1"
|
|
|
|
"detonate_on_world" "1"
|
|
|
|
"detonate_on_actor" "1"
|
2024-06-22 07:29:51 +00:00
|
|
|
"projectile_debris" "debris_arrow"
|
|
|
|
"debris_count" "1"
|
|
|
|
"debris_stick" "1"
|
|
|
|
"debris_offset" "-16 0 0"
|
2024-10-17 05:58:21 +00:00
|
|
|
"offset" "0 7 -8"
|
2023-07-28 06:08:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
entityDef damage_arrowDirect
|
|
|
|
{
|
|
|
|
"damage" "skill:plr_xbow_bolt_monster"
|
|
|
|
}
|
|
|
|
|
|
|
|
entityDef projectile_arrowExplosive
|
|
|
|
{
|
2024-03-02 08:43:10 +00:00
|
|
|
"inherit" "projectile_arrow"
|
|
|
|
"smoke_fly" "weapon_crossbow.trail"
|
2024-06-22 07:29:51 +00:00
|
|
|
"def_damage" ""
|
|
|
|
"def_splash_damage" "damage_arrowSplash"
|
2024-03-02 08:43:10 +00:00
|
|
|
"model_detonate" "fx_explosion.main"
|
2024-06-22 07:29:51 +00:00
|
|
|
"snd_explode" "fx.explosion"
|
2024-03-02 08:43:10 +00:00
|
|
|
"decal_detonate" "ExplosionScorch"
|
2023-07-28 06:08:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
entityDef damage_arrowSplash
|
|
|
|
{
|
|
|
|
"damage" "skill:plr_xbow_bolt_monster"
|
|
|
|
"radius" "125"
|
2024-06-22 07:29:51 +00:00
|
|
|
}
|