View Single Post
SM9
Veteran Member
Join Date: Sep 2013
Location: United Kingdom
Old 02-17-2016 , 09:28   Re: [CS:GO] Get active weapon's default clip value
Reply With Quote #8

Hey Neuro, I'm also working on a CSGO Items project, I added you back on steam since I was wondering if you would like to collaborate with the project. Anyway feel free to check it out here: https://bitbucket.org/SM91337/csgo-items/src

I have also created a PHP api https://fragdeluxe.com/api/itemdata/

Quote:
Originally Posted by abgar View Post
Hi guys,

For CS GO, i need to be able to determine what weapon a player is holding, what's the standard full clip value, and then reset the ammo to that particular value.

The idea will be that if you kill someone, you'll have a chance to have your weapon automatically filled. I know this can be done by using SMLIB functions to set ammo etc, but how can i get the current weapon's default clip size, without manually defining each individual weapons clip size?

Cheers
I can also add this functionality to CSGO Items.

I think this API could be useful for Deathmatch plugins by creating a dynamic gun menu etc, I did not originally plan on releasing it but I feel I need to do my part to give back to this amazing community at Alliedmods.

Last edited by SM9; 02-17-2016 at 09:46.
SM9 is offline