• Ammo types that can be used in gmod
    4 replies, posted
I am trying to make different weapons take different types of ammo to have a better adjustment rate for price per box. Right now I only have what I am aware of can anyone help me out here and list any that can be used in gmod that I didnt catch. if args == "rifle" then ply:GiveAmmo(50, "smg1") elseif args == "shotgun" then ply:GiveAmmo(25, "buckshot") elseif args == "pistol" then ply:GiveAmmo(30, "pistol") elseif args == "357" then ply:GiveAmmo(15, "357") elseif args == "heround" then ply:GiveAmmo(1, "AR2") elseif args == "airsoft" then ply:GiveAmmo(30, "XBowBolt") end
Ammo types are listed under the additional notes for [b][url=http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index6127.html?title=Player.GiveAmmo]Player.GiveAmmo [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] on the wiki. [code]AR2 - Ammunition of the AR2/Pulse Rifle AlyxGun - (name in-game "5.7mm Ammo") Pistol - Ammunition of the 9MM Pistol SMG1 - Ammunition of the SMG/MP7 357 - Ammunition of the .357 Magnum XBowBolt - Ammunition of the Crossbow Buckshot - Ammunition of the Shotgun RPG_Round - Ammunition of the RPG/Rocket Launcher SMG1_Grenade - Ammunition for the SMG/MP7 grenade launcher (secondary fire) SniperRound SniperPenetratedRound - (name in-game ".45 Ammo") Grenade - Note you must be given the grenade weapon (weapon_frag) before you can throw grenades. Thumper - Ammunition cannot exceed 2 (name in-game "Explosive C4 Ammo") Gravity - (name in-game "4.6MM Ammo") Battery - (name in-game "9MM Ammo") GaussEnergy CombineCannon - (name in-game ".50 Ammo") AirboatGun - (name in-game "5.56MM Ammo") StriderMinigun - (name in-game "7.62MM Ammo") HelicopterGun AR2AltFire - Ammunition of the AR2/Pulse Rifle 'combine ball' (secondary fire) slam - Like Grenade, but for the Selectable Lightweight Attack Munition (S.L.A.M)[/code] Only a handful of these are actually common for the player though.
thanks a million friend I tried to google it but couldnt find anything guess I just didnt look hard enough.
Thank you so much for this, my friend and I have been trying to do this for days.
Remember that you can create your own ammotypes if these doesn't suit you. [url]http://wiki.garrysmod.com/page/game/AddAmmoType[/url]
Sorry, you need to Log In to post a reply to this thread.