124 lines
2.3 KiB
Modula-2
124 lines
2.3 KiB
Modula-2
// Baseball Bat
|
|
entityDef weapon_bat
|
|
{
|
|
"spawnclass" "NSWeapon"
|
|
"model_view" "models/weapons/v_bat.vvm"
|
|
"model" "models/weapons/w_bat.vvm"
|
|
"inv_name" "Baseball Bat"
|
|
"inv_weapon" "weapon_bat"
|
|
"ammoType" ""
|
|
"ammoRequired" "0"
|
|
"def_dropItem" "weapon_bat"
|
|
|
|
"def_melee" "damage_bat"
|
|
"melee_distance" "32"
|
|
|
|
"meleeRateMiss" "0.6"
|
|
"meleeRateHit" "0.75"
|
|
|
|
"actIdle" "0,2"
|
|
"actDraw" "4"
|
|
"actHolster" "6"
|
|
"actMeleeMiss" "9,11,13"
|
|
"actMeleeHit" "8,10,12"
|
|
}
|
|
|
|
entityDef damage_bat
|
|
{
|
|
"damage" "15"
|
|
"gib" "1"
|
|
|
|
"snd_hit" "weapon_bat.hit"
|
|
"snd_miss" "weapon_bat.miss"
|
|
}
|
|
|
|
// Pistol
|
|
entityDef weapon_pistol
|
|
{
|
|
"spawnclass" "NSWeapon"
|
|
"model_view" "models/weapons/v_pistol.vvm"
|
|
"model" "models/weapons/w_pistol.vvm"
|
|
"inv_name" "Pistol"
|
|
"inv_weapon" "weapon_pistol"
|
|
"ammoType" ""
|
|
"ammoRequired" "0"
|
|
"def_dropItem" "weapon_pistol"
|
|
"def_onFire" "projectile_pistol"
|
|
|
|
"fireRate" ".2"
|
|
|
|
"snd_fire" "weapon_pistol.fire"
|
|
"actFire" "14,16"
|
|
"actFireLast" "15,17"
|
|
"actReload" "8"
|
|
"actReloadEmpty" "9"
|
|
"actDrawEmpty" "3"
|
|
"actDraw" "2"
|
|
"actIdleEmpty" "1"
|
|
"actIdle" "0"
|
|
}
|
|
|
|
entityDef projectile_pistol
|
|
{
|
|
"spawnclass" "NSProjectile"
|
|
"is_bullet" "1"
|
|
"detonate_on_world" "1"
|
|
"damage" "15"
|
|
"spread" "0.01 0.01"
|
|
}
|
|
|
|
// Grenade
|
|
entityDef weapon_frag
|
|
{
|
|
"spawnclass" "NSWeapon"
|
|
"model_view" "models/weapons/v_frag.vvm"
|
|
"model" "models/weapons/w_frag.vvm"
|
|
"inv_name" "Grenade"
|
|
"inv_weapon" "weapon_frag"
|
|
"ammoType" ""
|
|
"ammoRequired" "0"
|
|
"def_dropItem" "weapon_frag"
|
|
"def_onRelease" "projectile_frag"
|
|
|
|
"actIdle" "0"
|
|
"actDraw" "1"
|
|
"actHolster" "2"
|
|
"actFire" "4"
|
|
"actRelease" "6"
|
|
}
|
|
|
|
entityDef projectile_frag
|
|
{
|
|
"spawnclass" "NSProjectile"
|
|
"model" "models/weapons/w_frag.vvm"
|
|
"frame" "1"
|
|
"fuse" "4"
|
|
"detonate_on_fuse" "1"
|
|
"bounce" "1"
|
|
"angular_velocity" "-350 0 0"
|
|
"velocity" "300 0 40"
|
|
"model_detonate" "fx_explosion.main"
|
|
"snd_explode" "fx.explosion"
|
|
"snd_bounce" "weapon_frag.bounce"
|
|
"decal_detonate" "ExplosionScorch"
|
|
|
|
"def_damage" "damage_fragDirect"
|
|
"def_splash_damage" "damage_fragSplash"
|
|
}
|
|
|
|
entityDef damage_fragDirect
|
|
{
|
|
"damage" "1"
|
|
}
|
|
|
|
entityDef damage_fragSplash
|
|
{
|
|
"damage" "150"
|
|
"radius" "250"
|
|
}
|
|
|
|
entityDef env_frag_explodeinhand
|
|
{
|
|
"spawnclass" "idAnimatedEntity"
|
|
"model" "grenadeExplosion.prt"
|
|
}
|