Raised This Month: $ Target: $400
 0% 

cs_get_user_deaths & get_user_deaths


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
uTg | bigpapajiggs
Senior Member
Join Date: Sep 2005
Location: Bellingham, WA
Old 11-07-2005 , 23:46   cs_get_user_deaths & get_user_deaths
Reply With Quote #1

I was wondering what the difference between cs_get_user_deaths and get_user_deaths was. Obviously one is for CS, but if I were to use just get_user_deaths, would it work in CS?
__________________
What's my confidence level? I do crossword puzzles with a pen.
uTg | bigpapajiggs is offline
Send a message via AIM to uTg | bigpapajiggs Send a message via MSN to uTg | bigpapajiggs Send a message via Yahoo to uTg | bigpapajiggs
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 11-07-2005 , 23:52  
Reply With Quote #2

CS:

Code:
return *((int *)pPlayer->pvPrivateData + OFFSET_CSDEATHS);

Regular:

Code:
return (cell)(pPlayer->ingame ? pPlayer->deaths : 0);

Basically regular get_user_deaths returns the player's variable named "deaths", while CS returns a private data offset. I'm guessing this means that CS doesn't use the traditional variable for storing a player's deaths, but I'm not sure why.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
cybermind
Senior Member
Join Date: Oct 2004
Old 11-08-2005 , 22:22  
Reply With Quote #3

Quote:
Originally Posted by XxAvalanchexX
I'm guessing this means that CS doesn't use the traditional variable for storing a player's deaths, but I'm not sure why.
Pretty much everything in CS uses some alternative offset and not the variable provided by the SDK for the same purpose.
cybermind is offline
Reply


Thread Tools
Display Modes

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 23:43.


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