I downloaded a skin that I like so much off of gamebanana and the Ironsights don't work it aims to the side of the weapon. How do I fix this? I'm not a coder, a developer, or a graphical person. I have literally no clue what to do. please help. Also the gun was a SWEP but I turned it into a Skin. =) How do I fix the sounds though, I transferred the sounds over from the swep. But I can't get the reload sound to work, only the shooting sound. To help me with this all I need is the name of the WAV file for the normal M4A1 reload, and boltpull sounds.
[QUOTE=Seven7;35471605]I downloaded a skin that I like so much off of gamebanana and the Ironsights don't work it aims to the side of the weapon. How do I fix this? I'm not a coder, a developer, or a graphical person. I have literally no clue what to do. please help. Also the gun was a SWEP but I turned it into a Skin. =) How do I fix the sounds though, I transferred the sounds over from the swep. But I can't get the reload sound to work, only the shooting sound. To help me with this all I need is the name of the WAV file for the normal M4A1 reload, and boltpull sounds.[/QUOTE]
Do you even have the game CSS? your problem is the custom skin has a different alignment than the original. Most CSS SWEPS are based on the original model ironsights. Solution? go into the lua and edit the alignments. there are also Sweps to test and configure alignments. as for the CSS reload sounds they are called
m4a1_clipin.wav
m4a1_clipout.wav
m4a1_boltpull.wav
they are located in cstrike/sound/weapons/m4a1 (in your case, if its an addons you skip the "cstrike" part)
also, your lua will be in garrysmod/garrysmod/addons/YourAddonhere/lua/weapons/yourweaponhere/shared.lua
If you open it up it should have this
[CODE]SWEP.ViewModelFOV = 54
SWEP.Base = "weapon_dod_sim_base"
SWEP.ViewModelFlip = false
SWEP.HoldType = "pistol"
SWEP.Spawnable = false
SWEP.AdminSpawnable = false
SWEP.ViewModel = "models/weapons/v_colt.mdl"
SWEP.WorldModel = "models/weapons/w_colt_f.mdl"
SWEP.Weight = 5
SWEP.AutoSwitchTo = true
SWEP.AutoSwitchFrom = true
SWEP.Primary.Sound = Sound( "Weapon_colt.shoot" )
SWEP.Primary.Recoil = 2.7
SWEP.Primary.Damage = 21
SWEP.Primary.NumShots = 1
SWEP.Primary.Cone = 0.018
SWEP.Primary.ClipSize = 7
SWEP.Primary.Delay = 0.17
SWEP.Primary.DefaultClip = 0
SWEP.Primary.Automatic = false
SWEP.Primary.Ammo = "SniperPenetratedRound"
SWEP.Secondary.ClipSize = -1
SWEP.Secondary.DefaultClip = -1
SWEP.Secondary.Automatic = false
SWEP.Secondary.Ammo = "none"
SWEP.ShellDelay = 0.05
SWEP.DeployDelay = 1.25
SWEP.ShellEffect = "sim_shelleject_fas_45acp" // "effect_mad_shell_pistol" or "effect_mad_shell_rifle" or "effect_mad_shell_shotgun"
SWEP.Pistol = true
SWEP.Rifle = false
SWEP.Shotgun = false
SWEP.Sniper = false
SWEP.IronSightsPos = Vector (-3.8723, -1.5004, 3.4637)
SWEP.IronSightsAng = Vector (0.4591, -0.0835, 0)
SWEP.RunArmOffset = Vector (0.1534, 0, 5.8667)
SWEP.RunArmAngle = Vector (-22.532, 0.7012, 0)
[/CODE]
[B]
SWEP.IronSightsPos = Vector (-3.8723, -1.5004, 3.4637)
SWEP.IronSightsAng = Vector (0.4591, -0.0835, 0)
SWEP.RunArmOffset = Vector (0.1534, 0, 5.8667)
SWEP.RunArmAngle = Vector (-22.532, 0.7012, 0)
[/B]
These are the lines you want to edit.
After using the ironsight swep and finding what the ironsights are. just paste them in and you are good to go!
Hope this helped.
-Code belongs to Siminov
Sorry, you need to Log In to post a reply to this thread.