.:: Bots United ::.  
filebase forums discord server github wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps yapb

Go Back   .:: Bots United ::. > Developer's Farm > SDK Programming discussions > Half-Life 2 SDK
Half-Life 2 SDK For developments focused around the Half-Life 2 engine Half-Life 2

Reply
 
Thread Tools
Re: Another Source SDK question ...
Old
  (#11)
Lazy
Member
 
Lazy's Avatar
 
Status: Offline
Posts: 236
Join Date: Jan 2004
Location: Toronto, Ontario, Canada
Default Re: Another Source SDK question ... - 15-02-2005

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.

Last edited by Lazy; 15-02-2005 at 05:38..
  
Reply With Quote
Re: Another Source SDK question ...
Old
  (#12)
sfx1999
Member
 
sfx1999's Avatar
 
Status: Offline
Posts: 534
Join Date: Jan 2004
Location: Pittsburgh, PA, USA
Default Re: Another Source SDK question ... - 15-02-2005

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.


sfx1999.postcount++
  
Reply With Quote
Re: Another Source SDK question ...
Old
  (#13)
Lazy
Member
 
Lazy's Avatar
 
Status: Offline
Posts: 236
Join Date: Jan 2004
Location: Toronto, Ontario, Canada
Default Re: Another Source SDK question ... - 15-02-2005

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.
  
Reply With Quote
Re: Another Source SDK question ...
Old
  (#14)
Lazy
Member
 
Lazy's Avatar
 
Status: Offline
Posts: 236
Join Date: Jan 2004
Location: Toronto, Ontario, Canada
Default Re: Another Source SDK question ... - 15-02-2005

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
  
Reply With Quote
Re: Another Source SDK question ...
Old
  (#15)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: Another Source SDK question ... - 16-02-2005

In my opinion this post would fit nicely in a wiki article, don't you think ? *hint* *hint*



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

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



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com