.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   Half-Life 2 SDK (http://forums.bots-united.com/forumdisplay.php?f=62)
-   -   Another Source SDK question ... (http://forums.bots-united.com/showthread.php?t=3501)

Lazy 15-02-2005 04:19

Re: Another Source SDK question ...
 
By searching around in edict_t::GetUnknown() I have found these offsets:

Quote:

health : 39 long
armor : 749 long ( sent to client as signed byte? )
money : 864 long
flashbangs : 1632 byte
scout reserve ammo : 398 long
kills : 745 long
deaths : 746 long
The only odd things are that the weapon's clip doesn't show up anywhere in memory and setting flashbangs causes it to go into the negative values after you throw your last one.

sfx1999 15-02-2005 21:46

Re: Another Source SDK question ...
 
I have a theory for the flashbang. When it is 0, it would show in the HUD, but red because it would be empty, but -1 would not show.

Lazy 15-02-2005 21:51

Re: Another Source SDK question ...
 
It actually went into -16000 or something like that and you could still throw them.
I guess if you made a mod that changes that location you'd have to work around that bug.
Still no luck finding the ammo in the clip though, I cannot figure out why its not showing up.

Lazy 15-02-2005 22:21

Re: Another Source SDK question ...
 
Hmm, you can't edit old posts?
Here is the new stuff I found, it's just all of the weapon's reserve ammo ( not the stuff in the clip since I cannot find that ).

Quote:

health : 39 long
armor : 749 long ( sent to client as signed byte? )
money : 864 long
flashbangs : 1632 byte
kills : 745 long
deaths : 746 long
9mm reserve ammo : 402 long
.45 reserve ammo : 404 long
.357 reserve ammo : 405 long
.50 reserve ammo : 397 long
12 guage reserve ammo : 403 long
.338 reserve ammo : 406 long
.223 reserve ammo : 399 long ( ALSO 5.56 )
7.62 reserve ammo : 398 long
AWP reserve ammo : 401 long ( Even though it uses .338 ammo it uses a different variable? )
5.56 reserve ammo : 400 long

Pierre-Marie Baty 16-02-2005 13:08

Re: Another Source SDK question ...
 
In my opinion this post would fit nicely in a wiki article, don't you think ? *hint* *hint* :D


All times are GMT +2. The time now is 08:31.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.