Ulysses

General => Developers Corner => Topic started by: Bite That Apple on January 31, 2015, 05:16:12 PM

Title: How to request default clip size
Post by: Bite That Apple on January 31, 2015, 05:16:12 PM
Question is in title, how do I get the default clip size for a swep?
Title: Re: How to request default clip size
Post by: JamminR on January 31, 2015, 10:57:17 PM
Theorizing;
weapon.Get = http://wiki.garrysmod.com/page/weapons/Get (http://wiki.garrysmod.com/page/weapons/Get) - Using classname of the swep to grab table info.
Think it would return a table of the items listed here - http://wiki.garrysmod.com/page/Structures/SWEP (http://wiki.garrysmod.com/page/Structures/SWEP)
Within that table is yet one more table called Primary that contains default ammo, and another called Secondary containing default ammo.
Title: Re: How to request default clip size
Post by: Bite That Apple on February 04, 2015, 09:45:40 AM
Though I already replied to this. Thank you, I got it to work, except with non-swep... I don't understand why Garry just doesn't remake them.. they can so many problems with Garry's Mod.