Talk:SWEP
From GMod Wiki
- Does anyone knows what the AnimPrefix do? --Albob 23:46, 3 December 2009 (UTC)
- I think it's related to the holdtype. I'm not sure but it might be for NPCs. --Crazy Quebecer 23:49, 3 December 2009 (UTC)
Full list?
Is this the full list of members of the SWEP? I'm looking through a few SWEPs, and they have some members that aren't listed here. Is it possible that the author of that particular swep just added them for their own gamemode? Tgp1994 19:02, 21 August 2010 (UTC)
Could you give me some examples of those? People can make predefined variables using the same way. --Donkie 19:11, 21 August 2010 (UTC)
Is this what your looking for ? http://wiki.garrysmod.com/?title=SWEP Cube334
This should be a stub
Going to add primary and secondary members shortly. --Disseminate 20:46, 6 January 2011 (GMT)
Max ammo?
Hey there!
I don't know if this is the best place to ask this... but, being this the SWEP page, I don't think there's a better place. Anyway... "O hai, I iz new" and all that. I'm trying to create my first SWEP following this tutorial, but there's something that keeps bugging me: How do I limit the ammo for a SWEP? I mean, SWEP.ClipSize defines... well, it defines the clip size, let's say 12; SWEP.ClipDefault defines the amount of ammo I get when I pick the SWEP, which, in my case, is 144... But what if I want to limit the ammo to 144 and start only with 12? What if I just want to limit the ammo? As soon as I write "givecurrentammo 100", it turns to 9999. Does it have something to do with the game mode (in my case, it's mixed with "sandbox")? Thanks! --Joe Alder 23:17, 11 January 2011 (GMT)