weapon script help -1 reply

Please wait...

Guest

I didn't make it!

0 XP

 
#1 13 years ago

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 helpbounce.gif 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" } } }



Fragger

ε..з

50 XP

22nd April 2002

0 Uploads

6,816 Posts

0 Threads

#2 13 years ago

It's been done: http://www.gamingforums.com/showthread.php?goto=newpost&t=205436 Get his mod and see what he did, or contact him.




Guest

I didn't make it!

0 XP

 
#3 13 years ago

Thats where i got the script from, im trying to get just the scripts to work in half-life 2 without having to add a huge new mod file. Is there any possible way to get it to work without adding a mod?




Fragger

ε..з

50 XP

22nd April 2002

0 Uploads

6,816 Posts

0 Threads

#4 13 years ago

Could it be this?:

// Weapon data is loaded by both the Game and Client DLLs.



Guest

I didn't make it!

0 XP

 
#5 13 years ago

Does that mean i have to edit the game and client dls or something? Are you files you can open in notepad to add commands to??