Raised This Month: $ Target: $400
 0% 

Game Data


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
NatalyaAF
Senior Member
Join Date: Dec 2008
Old 05-23-2011 , 22:12   Game Data
Reply With Quote #1

What are the correct offsets for "LeaveVehicle" for CS:S?
__________________
Talk to me on Steam: natalyaaf
See my website for downloads: www.lady-natalya.info

Natalya: killing someone while they make a plugin
Natalya: perfect analogy
Natalya: for the mayan apocalypse
NatalyaAF is offline
Afronanny
Veteran Member
Join Date: Aug 2009
Old 05-23-2011 , 22:47   Re: Game Data
Reply With Quote #2

383 for windows, 384 for linux
Afronanny is offline
pheadxdll
AlliedModders Donor
Join Date: Jun 2008
Old 05-24-2011 , 01:06   Re: Game Data
Reply With Quote #3

Quote:
Originally Posted by NatalyaAF View Post
What are the correct offsets for "LeaveVehicle" for CS:S?
For the future, you can look them up via this site: http://www.sourcemodplugins.org/pages/vtableoffsets/
__________________
pheadxdll is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 05-24-2011 , 10:56   Re: Game Data
Reply With Quote #4

Quote:
Originally Posted by pheadxdll View Post
For the future, you can look them up via this site: http://www.sourcemodplugins.org/pages/vtableoffsets/
Ooh, thanks. Didn't know about that site before.

I was hoping there was an offset of some sort for TF2's built-in voting features in the TF2 List, but alas there isn't, or it has a name that I'm not expecting.

Oh well.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 05-24-2011 at 11:02.
Powerlord is offline
Afronanny
Veteran Member
Join Date: Aug 2009
Old 05-24-2011 , 12:43   Re: Game Data
Reply With Quote #5

Quote:
Originally Posted by Powerlord View Post
Ooh, thanks. Didn't know about that site before.

I was hoping there was an offset of some sort for TF2's built-in voting features in the TF2 List, but alas there isn't, or it has a name that I'm not expecting.

Oh well.
Voting wouldn't be in the CTFPlayer vtable.

It's a usermessage. I reverse engineered the structure for them for you. No, I don't know what any of it means.

Code:
VoteStart
    - Byte
    - Byte
    - String
    - String
    - Bool


VoteSetup
    - Byte
    * String (multiple strings, presumably the vote options. put " (Disabled)" without the quotes after the option text to disable one of the options?)


VotePass
    - Byte
    - String
    - String

CallVoteFailed
    - Byte
    - Short

VoteFailed
    - Byte
    - Byte

Last edited by Afronanny; 05-24-2011 at 12:58.
Afronanny is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 05-24-2011 , 13:03   Re: Game Data
Reply With Quote #6

Quote:
Originally Posted by Afronanny View Post
Voting wouldn't be in the CTFPlayer vtable.

It's a usermessage. I reverse engineered the structure for them for you. No, I don't know what any of it means.

Code:
VoteStart
    - Byte
    - Byte
    - String
    - String
    - Bool


VoteSetup
    - Byte
    * String (multiple strings, presumably the vote options. put " (Disabled)" without the quotes after the option text to disable one of the options?)


VotePass
    - Byte
    - String
    - String

CallVoteFailed
    - Byte
    - Short

VoteFailed
    - Byte
    - Byte
Thanks.

I don't know a lot about user messages.

Having said that, I'm guessing the first Byte to all the usermessages is the vote type.

I'll look into this further to see if any of this is defined in the .res files for TF2 or the Source engine.

Edit: Of course Valve wouldn't put events in for voting. Despite L4D2 having said events. >:/
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 05-24-2011 at 14:17.
Powerlord is offline
NatalyaAF
Senior Member
Join Date: Dec 2008
Old 05-24-2011 , 15:15   Re: Game Data
Reply With Quote #7

Thanks guys
__________________
Talk to me on Steam: natalyaaf
See my website for downloads: www.lady-natalya.info

Natalya: killing someone while they make a plugin
Natalya: perfect analogy
Natalya: for the mayan apocalypse
NatalyaAF is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 05-26-2011 , 11:02   Re: Game Data
Reply With Quote #8

Quote:
Originally Posted by Afronanny View Post
Voting wouldn't be in the CTFPlayer vtable.
Hmm... are there offsets for CVoteController functions, or would I need to dig through the game code somehow to find signatures for that?
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 05-26-2011 at 11:09.
Powerlord is offline
berni
SourceMod Plugin Approver
Join Date: May 2007
Location: Austria
Old 05-26-2011 , 11:12   Re: Game Data
Reply With Quote #9

You can only call on CBaseEntity based classes or Gamerules based objects in Sourcemod with offsets.
__________________
Why reinvent the wheel ? Download smlib with over 350 useful functions.

When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter than "Yes"
powered by Core i7 3770k | 32GB DDR3 1886Mhz | 2x Vertex4 SSD Raid0
berni is offline
psychonic

BAFFLED
Join Date: May 2008
Old 05-26-2011 , 11:19   Re: Game Data
Reply With Quote #10

Quote:
Originally Posted by berni View Post
You can only call on CBaseEntity based classes or Gamerules based objects in Sourcemod with offsets.
It does inherit from CBaseEntity.

However, the only virtual functions it has are overrides for ones in CBaseEntity, none of its own.

You can still call it's member functions by signature.
psychonic 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 10:46.


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