• Weapon not spawning around map
    0 replies, posted
So i have an AK47 that is in the Traitor shop just fine. But i wanted to have it spawn around the map instead. So i changed some things in the shared.lua [CODE]if SERVER then AddCSLuaFile( "shared.lua" ) resource.AddFile( "materials/vgui/ttt/icon_ak47.vmt" ) end if CLIENT then SWEP.PrintName = "AK47" SWEP.Slot = 2 SWEP.Icon = "vgui/ttt/icon_ak47" end -- Always derive from weapon_tttbase SWEP.Base = "weapon_tttbase" -- Standard GMod values SWEP.HoldType = "ar2" SWEP.Primary.Ammo = "SMG1" SWEP.Primary.Delay = 0.1 SWEP.Primary.Recoil = 1.9 SWEP.Primary.Cone = 0.025 SWEP.Primary.Damage = 21 SWEP.Primary.Automatic = true SWEP.Primary.ClipSize = 30 SWEP.Primary.ClipMax = 60 SWEP.Primary.DefaultClip = 30 SWEP.Primary.Sound = Sound( "Weapon_AK47.Single" ) -- Model settings SWEP.UseHands = true SWEP.ViewModelFlip = false SWEP.ViewModelFOV = 50 SWEP.ViewModel = "models/weapons/cstrike/c_rif_ak47.mdl" SWEP.WorldModel = "models/weapons/w_rif_ak47.mdl" SWEP.IronSightsPos = Vector( -6.518, -4.646, 2.134 ) SWEP.IronSightsAng = Vector( 2.737, 0.158, 0 ) --- TTT config values -- Kind specifies the category this weapon is in. Players can only carry one of -- each. Can be: WEAPON_... MELEE, PISTOL, HEAVY, NADE, CARRY, EQUIP1, EQUIP2 or ROLE. -- Matching SWEP.Slot values: 0 1 2 3 4 6 7 8 SWEP.Kind = WEAPON_HEAVY -- If AutoSpawnable is true and SWEP.Kind is not WEAPON_EQUIP1/2, then this gun can -- be spawned as a random weapon. SWEP.AutoSpawnable = true -- The AmmoEnt is the ammo entity that can be picked up when carrying this gun. SWEP.AmmoEnt = "item_ammo_smg1_ttt" -- CanBuy is a table of ROLE_* entries like ROLE_TRAITOR and ROLE_DETECTIVE. If -- a role is in this table, those players can buy this. -- SWEP.CanBuy = { ROLE_TRAITOR } -- InLoadoutFor is a table of ROLE_* entries that specifies which roles should -- receive this weapon as soon as the round starts. In this case, none. SWEP.InLoadoutFor = { nil } -- If LimitedStock is true, you can only buy one per round. SWEP.LimitedStock = true -- If AllowDrop is false, players can't manually drop the gun with Q SWEP.AllowDrop = true -- If IsSilent is true, victims will not scream upon death. SWEP.IsSilent = false -- If NoSights is true, the weapon won't have ironsights SWEP.NoSights = false -- Equipment menu information is only needed on the client if CLIENT then SWEP.EquipMenuData = { type = "item_weapon", desc = "Very high damage assault rifle.\n\nHas very high recoil." }; end[/CODE] It is not in the Traitor shop anymore like how i wish, but it does not spawn around the map. What am i doing wrong? Never had issues with weapons like this.
Sorry, you need to Log In to post a reply to this thread.