mirror of
https://github.com/fortressforever/fortressforever-scripts.git
synced 2024-11-22 04:31:07 +00:00
Add super basic weapon script for spy hookgun
This commit is contained in:
parent
f024737ad1
commit
d196ca073e
2 changed files with 107 additions and 1 deletions
|
@ -29,7 +29,7 @@ PlayerClassData
|
|||
"weapon" "ff_weapon_knife"
|
||||
"weapon" "ff_weapon_tranq"
|
||||
"weapon" "ff_weapon_supershotgun"
|
||||
"weapon" "ff_weapon_nailgun"
|
||||
"weapon" "ff_weapon_hookgun"
|
||||
|
||||
"skill" "cloak"
|
||||
"skill" "scloak"
|
||||
|
|
106
scripts/ff_weapon_hookgun.txt
Normal file
106
scripts/ff_weapon_hookgun.txt
Normal file
|
@ -0,0 +1,106 @@
|
|||
WeaponData
|
||||
{
|
||||
// Weapon characteristics:
|
||||
"CycleTime" "0.8" // was .8 Rate of fire
|
||||
"CycleDecrement" "1" // Number of bullets fired per cycle
|
||||
|
||||
"Damage" "1" // Damage per burst
|
||||
"DamageRadius" "1" // Radius of damage
|
||||
|
||||
"RecoilAmount" "1" // Amount of recoil
|
||||
|
||||
// Projectile weapons
|
||||
"Speed" "1000" // 900 Speed for projectile to travel at, possibly wrong. Old FF value = 800.
|
||||
|
||||
// Hitscan weapons
|
||||
"Bullets" "-1" // Bullets to shoot
|
||||
"BulletSpread" "-1" // Spread of projectiles
|
||||
|
||||
"PreReloadTime" ".9" // was .4 Time taken for the weapon to move to reload state
|
||||
"ReloadTime" "1.5" // was 1.3 Time taken to reload a shell/rocket/etc
|
||||
"PostReloadTime" "1" // Time taken to move weapon back to firing state
|
||||
|
||||
"SpinTime" "-1" // For AC
|
||||
|
||||
"clip_size" "2"
|
||||
|
||||
"primary_ammo" "AMMO_NAILS"
|
||||
"secondary_ammo" "None"
|
||||
|
||||
"ffencrypted" "1" // required for the script to load
|
||||
|
||||
// Weapon data is loaded by both the Game and Client DLLs.
|
||||
"printname" "#FF_WPNHUD_HOOKGUN"
|
||||
"viewmodel" "models/weapons/rpg/v_rpg.mdl"
|
||||
"playermodel" "models/weapons/rpg/w_rpg.mdl"
|
||||
|
||||
"anim_prefix" "rpg"
|
||||
"PlayerAnimationExtension" "rpg"
|
||||
"bucket" "3"
|
||||
"bucket_position" "0"
|
||||
|
||||
"weight" "60"
|
||||
"item_flags" "0"
|
||||
|
||||
// Sounds for the weapon. There is a max of 16 sounds per category (i.e. max 16 "single_shot" sounds)
|
||||
SoundData
|
||||
{
|
||||
"empty" "generic.empty"
|
||||
"reload" "rpg.reload"
|
||||
"single_shot" "rpg.single_shot"
|
||||
}
|
||||
|
||||
// Weapon Sprite data is loaded by the Client DLL.
|
||||
TextureData
|
||||
{
|
||||
"weapon"
|
||||
{
|
||||
"font" "WeaponIcons"
|
||||
"character" "q"
|
||||
}
|
||||
"weapon_s"
|
||||
{
|
||||
"font" "WeaponIconsSelected"
|
||||
"character" "q"
|
||||
}
|
||||
"ammo"
|
||||
{
|
||||
"font" "WeaponIconsSmall"
|
||||
"character" "7"
|
||||
}
|
||||
"crosshair"
|
||||
{
|
||||
"file" "sprites/crosshairs"
|
||||
"x" "0"
|
||||
"y" "48"
|
||||
"width" "24"
|
||||
"height" "24"
|
||||
}
|
||||
"autoaim"
|
||||
{
|
||||
"file" "sprites/crosshairs"
|
||||
"x" "0"
|
||||
"y" "48"
|
||||
"width" "24"
|
||||
"height" "24"
|
||||
}
|
||||
"deathnotice"
|
||||
{
|
||||
"font" "StatusGlyphsSmall"
|
||||
"character" "q"
|
||||
}
|
||||
}
|
||||
ModelBounds
|
||||
{
|
||||
Viewmodel
|
||||
{
|
||||
Mins "-10 -4 -13"
|
||||
Maxs "21 9 -1"
|
||||
}
|
||||
World
|
||||
{
|
||||
Mins "-10 -7 -6"
|
||||
Maxs "22 8 9"
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue