View Single Post
Monkeys
Veteran Member
Join Date: Jan 2010
Old 05-26-2011 , 04:31   Re: TF2 Vote Usermessages
Reply With Quote #11

I'm thinking the m_nVoteOptionCount subclass is the options it's giving. No clue why it's an integer, won't know 'till you read them.


As you said you don't have any experience working with netprops, here's how you could read it:
PHP Code:
ReadEntityData(Entity)
{
    new 
offs FindSendPropOffs("CVoteController""m_nVoteOptionCount");
    if(
offs > -1)
    {
        new 
data;
        for(new 
0;5;i++) // 5 members, 0 -> 4
        
{
            
data GetEntData(Entityoffs + (i*4), 1); //size 1, because it's only 8 bits
            
PrintToChatAll("m_nVoteOptionCount: Member: %d, Offset: %d, Content: %d"ioffs + (i*4), data);
        } else
            
PrintToChatAll("Could not find offset");
    }

where Entity's the CVoteController entity you find. (There could be several, but highly unlikely)
__________________
Get a lid on that zombie,
he's never gonna be alri-i-ight.
Oooh get a lid on that zombie,
or he's gonna feed all night.
Monkeys is offline