Hi i have a problem my old swep (2-3 Month old) Doesn't show up in the Q-Menu
had gmod a Lua update or something?
Here my shared.lua
[PHP]
if ( SERVER ) then
AddCSLuaFile ("shared.lua")
SWEP.HoldType = "ar2"
end
if ( CLIENT ) then
SWEP.PrintName = "Ak47 Special Ops"
SWEP.Author = "ger580"
SWEP.Slot = 4
SWEP.SlotPos = 4
end
SWEP.base = "weapon_cs_base"
SWEP.Weight = 5
SWEP.AutoSwitchTo = false
SWEP.Instructions = ""
SWEP.Contact = ""
SWEP.Purpose = ""
SWEP.DrawAmmo = true
SWEP.DrawCrosshair = false
SWEP.ViewModelFOV = 0
SWEP.ViewModelFlip = true
SWEP.Category = "Misc"
SWEP.ViewModel = "models/weapons/v_rif_ak47so.mdl"
SWEP.WorldModel = "models/weapons/w_rif_ak47so.mdl"
SWEP.Primary.Sound = "sound/weapons/ak47so/ak47-1.wav"
SWEP.Primary.ReloadSound = "sound/weapons/ak47so/mag.out.wav"
SWEP.Primary.Recoil = 0.5
SWEP.Primary.Damage = 15
SWEP.Primary.NumShots = 1
SWEP.Primary.Cone = 0.10
SWEP.Primary.ClipSize = 30
SWEP.Primary.Delay = 0.25
SWEP.Primary.DefaultClip = 30
SWEP.Primary.Automatic = true
SWEP.Primary.Ammo = "ar2"
SWEP.MoveSpread = 4
SWEP.JumpSpread = 8
SWEP.CrouchSpread = 0.05
SWEP.TracerFreq = 5
SWEP.IronSightsPos = Vector (-1.7859, 0, -0.1183)
SWEP.IronSightsAng = Vector (-0.0231, 0.8758, 0)
[/PHP]
SWEP.Spawnable = true//Can anyone spawn it?
SWEP.AdminSpawnable = true//Can only admins spawn it?(set SWEP.Spawnable to false)
Hi thanks for the Answer now i have a second problem.
Ingame i can't see the Model of the weapon and with one mouseclick
All bullets will be shoot
let me see your SWEP:PrimaryFire
In my first Post this is all what i have in my shared.lua
As already mentioned 2-3 months ago all my swep's worked with this shared.lua
(Info im not a Lua Pro) so i have no idea with the "Swep.PrimaryFire"
[QUOTE=ger580;32163796]
(Info im not a Lua Pro) so i have no idea with the "Swep.PrimaryFire"[/QUOTE]
[lua]SWEP.base = "weapon_cs_base"[/lua]
Your SWEP uses a base SWEP called weapon_cs_base. That has all the functions for firing, reloading deploying, ticks, etc...
SWEPS don't just magically fire because you changed a damage amount or a name.
POINT is As already mentioned 2-3 months ago all my swep's worked with this shared.lua
And i have NOTHING Changed i Need Help what i must do...
And the weapon_cs_base where is it? or is this in the .GCF
[QUOTE=ger580;32167673]
And the weapon_cs_base where is it?[/QUOTE]
That's most likely your problem right there.
I Extracted now the counterstrike Folder with the weapon_cs_base from GCF (addons->Counterstrike)
And put it in the Garrysmod->garrysmod->addons Folder but nothing happened
[QUOTE=ger580;32171249]I Extracted now the counterstrike Folder with the weapon_cs_base from GCF (addons->Counterstrike)
And put it in the Garrysmod->garrysmod->addons Folder but nothing happened[/QUOTE]
Why would you do that?
Just code up a Primary Fire.
Sorry, you need to Log In to post a reply to this thread.