Here is my code.
And here is the code of the custom ammoWeaponData
{
// Weapon fdata is loaded by both the Game and Client DLLs.
"printname" "RailGun"
"viewmodel" "models/weapons/v_gauss.mdl"
"playermodel" "models/weapons/w_gauss.mdl"
"anim_prefix" "gauss"
"bucket" "2"
"bucket_position" "2"
"clip_size" "100"
"clip2_size" "100"
"default_clip" "100"
"default_clip2" "100"
"primary_ammo" "railgun"
"secondary_ammo" "None"
"weight" "4"
"item_flags" "0"
// Sounds for the weapon. There is a max of 16 sounds per category (i.e. max 16 "single_shot" sounds)
SoundData
{
"single_shot" "Weapon_Gauss.Single"
"special1" "Weapon_Gauss.Special1"
"special2" "Weapon_Gauss.Special2"
}
// Weapon Sprite data is loaded by the Client DLL.
TextureData
{
"weapon"
{
"font" "WeaponIcons"
"character" "h"
}
"weapon_s"
{
"font" "WeaponIconsSelected"
"character" "h"
}
"ammo"
{
"file" "sprites/a_icons1"
"x" "26"
"y" "90"
"width" "27"
"height" "27"
}
"crosshair"
{
"font" "Crosshairs"
"character" "Q"
}
"autoaim"
{
"file" "sprites/crosshairs"
"x" "0"
"y" "48"
"width" "24"
"height" "24"
}
"Advanced" // only for Weapon_Scripted
{
// **Primary Attack**
// 0 = none, 1 = Basic Bullet, 2 = Burst, 3 = shotgun, 4 = autoshotgun, 5 = laser, 6 = warp
"FireType1" "1"
// Rate of Weapons Fire ( Not for laser or warp )
"FireRate1" "5"
// Allow a refire as fast as the player can click, Basic Bullet Only.
"FastFire1" "1"
// Allow Fire Underwater?
"FireUnderWater1" "0"
// For Bullet accuracy
"FireCone1" "5" // Starting Value ( 0-20 )
"FireConeLerp1" "0" // Bool
"FireConeLerpto1" "3" // Value to lerp accuracy too ( 0-20 )
}
// **Secondary Attack**
// 0 = none, 1 = Basic Bullet, 2 = Burst, 3 = shotgun, 4 = autoshotgun, 5 = laser, 6 = warp, 8 = scope
"FireType2" "0"
// Rate of Weapons Fire ( Not for laser or warp )
"FireRate2" "1.0"
// Allow a refire as fast as the player can click, Basic Bullet Only.
"FastFire2" "0"
// Allow Fire Underwater?
"FireUnderWater2" "0"
// Secondary Fire uses Secondary Ammo Type. If 0, will use primary ammo.
"SecondaryAmmoUsed" "0"
// For Bullet accuracy
"FireCone2" "1" // Starting Value ( 0-20 )
"FireConeLerp2" "1" // Bool
"FireConeLerpto2" "3" // Value to lerp accuracy too ( 0-20 )
Is there something I did wrong,or its not even possible to make a railgun.CustomAmmo
{
"railgun"
{
"dmgtype" "1"
"tracer" "2"
"plrdmg" "200" //Damage done by players using this ammo.
"npcdmg" "200" //Damage done by NPCs using this ammo.
"maxcarry" "200"
"grains" "200" // 1 grain = 64.79891 milligrams
"ftpersec" "1225"
}
Please help,Thanks so much