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

is datamap offsets static?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sn4k3
Senior Member
Join Date: Nov 2005
Old 08-07-2010 , 15:00   is datamap offsets static?
Reply With Quote #1

For props we can store prop offset and use when we like

it will work for dmap too? i mean are dmap offsets static? or they can change?

thanks
sn4k3 is offline
Send a message via MSN to sn4k3
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 08-07-2010 , 15:33   Re: is datamap offsets static?
Reply With Quote #2

Both SendProps and DataMaps are just lists of offsets to member variables in a class, the difference is just SendProps are networked and DataMaps are not.
__________________
asherkin is offline
Chrisber
AlliedModders Donor
Join Date: Jul 2007
Location: localhost
Old 08-07-2010 , 17:24   Re: is datamap offsets static?
Reply With Quote #3

Of course, both SendProps and Datamaps are static. But remember that offsets may change on an update and cause a crash of your server or cause undefined behaviour.

Chris
Chrisber is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 08-07-2010 , 17:28   Re: is datamap offsets static?
Reply With Quote #4

I believe the question was more related to whether or not you need to look it up every time you wish to use it, of which the answer is no.
As Chrisber said they can change on updates though.
__________________
asherkin is offline
sn4k3
Senior Member
Join Date: Nov 2005
Old 08-07-2010 , 21:26   Re: is datamap offsets static?
Reply With Quote #5

thanks, i do not store dmap offsets, i always save offset from first use, and after re use the offset when needed
sn4k3 is offline
Send a message via MSN to sn4k3
Chrisber
AlliedModders Donor
Join Date: Jul 2007
Location: localhost
Old 08-08-2010 , 05:48   Re: is datamap offsets static?
Reply With Quote #6

Yeah, that's definitly save to do so.
Chrisber 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 14:48.


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