Raised This Month: $51 Target: $400
 12% 

[TS] Measure amount of bullets fired by player


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Infest
Member
Join Date: Mar 2005
Old 09-26-2016 , 03:09   [TS] Measure amount of bullets fired by player
Reply With Quote #1

The function get_user_ammo does not work in TS.

The problem with ts_getuserwpn(id, clip, mags, mode, extra):

Lets say I have an AK, 30 in the clip and 90 in mags (120 total ammo) Calling this function will return clips:30, mags:90 as you would expect. Although if you fire a few shots and call the function again, your clips will still be 30 (possibly a bug?)

This will only work for calculating the amount of total ammo a player has after they reload. (You can measure in client_prethink + client_postthink)

Is there any other way to measure the actual amount of ammo in a players clip, or perhaps a completely different way of measuring total bullets fired by a player?

Last edited by Infest; 09-26-2016 at 03:20.
Infest is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 09-26-2016 , 06:25   Re: [TS] Measure amount of bullets fired by player
Reply With Quote #2

Read this thread. It might help you
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
Infest
Member
Join Date: Mar 2005
Old 09-26-2016 , 07:52   Re: [TS] Measure amount of bullets fired by player
Reply With Quote #3

Quote:
Originally Posted by wickedd View Post
Read this thread. It might help you
Solved! Thanks a lot, VEN's method works well.
Infest is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:38.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode