• Day of Defeat Stg44 crotchgun
    3 replies, posted
Well ive always bin wanting a stg44 as an npc weapon in gmod. So i tried to make one. I just have one problem. It shows up as a crotch gun on npcs. Im extremly new at lua so plz bear with me. Im using gdcw as base btw. // Variables that are used on both client and server SWEP.Category = "Generic Default's Weapons" SWEP.Author = "Generic Default" SWEP.Contact = "AIDS!" SWEP.Purpose = "HEIL HITLER!" SWEP.Instructions = "Round: 5.56 \nVelocity: ~900 m/s \nSights: Iron \nCapacity: 30 rounds \nRate of Fire: 800 rounds per minute" SWEP.MuzzleAttachment = "1" -- Should be "1" for CSS models or "muzzle" for hl2 models SWEP.ShellEjectAttachment = "2" -- Should be "2" for CSS models or "1" for hl2 models SWEP.DrawCrosshair = false SWEP.ViewModelFOV = 65 SWEP.ViewModelFlip = false SWEP.ViewModel = "models/weapons/v_mp44.mdl" SWEP.WorldModel = "models/weapons/w_mp44.mdl" SWEP.Base = "gdcw_base_assault" SWEP.Spawnable = true SWEP.AdminSpawnable = true SWEP.Primary.Sound = Sound("AK47F.single") SWEP.Primary.Round = ("gdcwa_5.56x45_tracer") SWEP.Primary.RPM = 800 // This is in Rounds Per Minute SWEP.Primary.ClipSize = 30 // Size of a clip SWEP.Primary.DefaultClip = 31 // Default number of bullets in a clip SWEP.Primary.KickUp = 0.3 // Maximum up recoil (rise) SWEP.Primary.KickDown = 0.3 // Maximum down recoil (skeet) SWEP.Primary.KickHorizontal = 0.3 // Maximum up recoil (stock) SWEP.Primary.Automatic = true // Automatic/Semi Auto SWEP.Primary.Ammo = "smg1" SWEP.Secondary.ClipSize = 1 // Size of a clip SWEP.Secondary.DefaultClip = 1 // Default number of bullets in a clip SWEP.Secondary.Automatic = false // Automatic/Semi Auto SWEP.Secondary.Ammo = "" SWEP.Secondary.IronFOV = 40 // How much you 'zoom' in. Less is more! SWEP.data = {} -- The starting firemode SWEP.data.ironsights = 1 SWEP.IronSightsPos = Vector (-3.6583, -11.1254, 1.5384) SWEP.IronSightsAng = Vector (-0.1818, 0.4361, 0)
It's not with the Lua. It's with the model.
But how come all ww11 guns pack uses the same model and it works fine?
[QUOTE=SgtdawnPCFTW;27609780]But how come all ww11 guns pack uses the same model and it works fine?[/QUOTE] I created some code to fix crotch guns. Just use SWEP:DrawWorldModel()
Sorry, you need to Log In to post a reply to this thread.