• Crashing when opening my swep
    4 replies, posted
Shared.lua: [b]ITS FIXED[/b] [lua]// Variables that are used on both client and server SWEP.Base = "weapon_mad_base" SWEP.ViewModelFlip = true SWEP.ViewModel = "models/weapons/v_rif_g3.mdl" SWEP.WorldModel = "models/weapons/w_rif_aug.mdl" SWEP.Spawnable = true SWEP.AdminSpawnable = false SWEP.Category = "Flubadoo's MW2 Weapons" SWEP.Primary.Sound = Sound( "weapons/weapon_g3/g3_fire.wav" ) SWEP.Primary.Recoil = 1.35 SWEP.Primary.Damage = 25 SWEP.Primary.NumShots = 1 SWEP.Primary.Cone = 0.011 SWEP.Primary.Delay = 0.11 SWEP.Primary.ClipSize = 20 // Size of a clip SWEP.Primary.DefaultClip = 20 // Default number of bullets in a clip SWEP.Primary.Automatic = true // Automatic/Semi Auto SWEP.Primary.Ammo = "AirboatGun" 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 = "none" SWEP.ShellEffect = "effect_mad_shell_rifle" // "effect_mad_shell_pistol" or "effect_mad_shell_rifle" or "effect_mad_shell_shotgun" SWEP.Pistol = false SWEP.Rifle = true SWEP.Shotgun = false SWEP.Sniper = false SWEP.IronSightsPos = Vector (5.9684, -1.7906, 1.1404) SWEP.IronSightsAng = Vector (2.5871, 1.3214, 3.1928) SWEP.RunArmOffset = Vector (-2.6657, 0, 3.5) SWEP.RunArmAngle = Vector (-20.0824, -20.5693, 0) SWEP.Type = 2 SWEP.Mode = true SWEP.data = {} SWEP.data.NormalMsg = "" SWEP.data.ModeMsg = "" SWEP.data.Delay = 2 SWEP.data.Cone = 1.5 SWEP.data.Damage = 0.75 SWEP.data.Recoil = 1.35 /*--------------------------------------------------------- Name: SWEP:Precache() Desc: Use this function to precache stuff. ---------------------------------------------------------*/ function SWEP:Precache() util.PrecacheSound("weapons/weapon_g3/g3_fire.wav") end[/lua] I've used the model here: [url]http://www.fpsbanana.com/skins/86858[/url] I've hexed it and all the good stuff. However, when I open it up, gmod crashes. Any problems in the script? I've changed v_rif_galil.mdl to v_rif_g3.mdl using the hexer thing. [editline]04:56PM[/editline] This also happens with another hexed model?
Gmod or just the gamemode?
[QUOTE=Busymonkey;22101064]Gmod or just the gamemode?[/QUOTE] just gmod. in sandbox. It might have something to do with what i'm renaming the model though.
Okay, the thing I meant, was; Is it crashing your Garrys Mod, forcing it to close or what?
[QUOTE=Busymonkey;22101253]Okay, the thing I meant, was; Is it crashing your Garrys Mod, forcing it to close or what?[/QUOTE] Nvm Its fixed! :) renaming v_rif_galil.mdl to v_rif_dalil.mdl made it work.
Sorry, you need to Log In to post a reply to this thread.