weapon script help

operative x

Newbie
Joined
Sep 22, 2003
Messages
1,238
Reaction score
0
I placed this weapon script for the usp that is supposed to adjust the x,y,z coordinates to give the weapon iron sights but it doesnt work when i put it into the half-life 2>hl2>scripts folder, I have even tried to make a "weapons" folder inside of "scripts" folder and it still doesnt work. I need help:bounce:
The file is called "Weapon_Pistol"
// Pistol

WeaponData
{
// Weapon data is loaded by both the Game and Client DLLs.
"printname" "#HL2_Pistol"
"viewmodel" "models/weapons/v_pistol.mdl"
"playermodel" "models/weapons/w_pistol.mdl"
"anim_prefix" "pistol"
"bucket" "1"
"bucket_position" "0"

"aimOffsetX" "-3.0f" //-8
"aimOffsetY" "-5.987f" //-5.85
"aimOffsetZ" "3.97f" //x,y,z of the weapon hold position for irons.3.99
"weaponY" "0.0f" //firing offset - left/right
"weaponZ" "-1.0f" //firing offset - up/down
"weaponLength" "-5.0f" //this effects the sight rotational pivot. //-3
"weaponFixPitch" "-0.5f"
"weaponFixYaw" "-1.7f" //these are for weapons with a poor off-rotation going for them -1.9
"weaponFixRoll" "2.5f" //changing lengths will screw them up.

"clip_size" "12"
"primary_ammo" "Pistol"
"secondary_ammo" "None"

"weight" "2"
"item_flags" "0"

// Sounds for the weapon. There is a max of 16 sounds per category (i.e. max 16 "single_shot" sounds)
SoundData
{

"reload" "Weapon_Pistol.Reload"
"reload_npc" "Weapon_Pistol.NPC_Reload"
"empty" "Weapon_Pistol.Empty"
"single_shot" "Weapon_Pistol.Single"
"single_shot_npc" "Weapon_Pistol.NPC_Single"
"special1" "Weapon_Pistol.Special1"
"special2" "Weapon_Pistol.Special2"
"burst" "Weapon_Pistol.Burst"
}

// Weapon Sprite data is loaded by the Client DLL.
TextureData
{
"weapon"
{
"font" "WeaponIcons"
"character" "d"
}
"weapon_s"
{
"font" "WeaponIconsSelected"
"character" "d"
}
"ammo"
{
"font" "WeaponIcons"
"character" "p"
}
"crosshair"
{
"font" "Crosshairs"
"character" "Q"
}
"autoaim"
{
"file" "sprites/crosshairs"
"x" "0"
"y" "48"
"width" "24"
"height" "24"
}
}
}
 
Back
Top