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

Looking for player's supply points in Insurgency


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GiZZoR
Junior Member
Join Date: Sep 2013
Old 03-24-2016 , 04:43   Looking for player's supply points in Insurgency
Reply With Quote #1

Hi there,

Help would be greatly appreciated!

I am trying to write a plugin to restore a players supply points in Insurgency, if the player reconnects before the map ends.

I'm assuming there must be a property assigned to entity "player" which stores the player's current point count?

Not sure if I'm looking in the right place, but I could only find 2 entries in datamaps:
GivePlayerSupply
AwardTeamSupply

I've been trying to find a way to iterate through all properties(?) of a player, but have not found anything as yet.

Thanks,
GiZZoR
GiZZoR is offline
GiZZoR
Junior Member
Join Date: Sep 2013
Old 03-24-2016 , 06:38   Re: Looking for player's supply points in Insurgency
Reply With Quote #2

Ah, okay, I think I may have found them:

Code:
 Table: inventory_local (offset 0) (type DT_PlayerInventoryLocal)
   Member: m_nAvailableTokens(offset 8) (type integer) (bits 8) (Unsigned)
   Member: m_nRecievedTokens (offset 12) (type integer) (bits 8) (Unsigned)

Last edited by GiZZoR; 03-24-2016 at 06:39.
GiZZoR 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 18:35.


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