You are viewing our Forum Archives. To view or take place in current topics click here.
#11. Posted:
Status: Offline
Joined: May 04, 201311Year Member
Posts: 12
Reputation Power: 0
lol this is way more complicated
just create an array with clients listed as int rather than reading xuid's.
then you can just verify the same way you were doing
if((int)verify == 0)
{
//unverified
}
else if(verify == 1)
{
//basic verification
}
else if(verify == 2)
{
//upgraded verification
}
else if(verify == 3)
{
//co-host
}
else if(verify == 4)
{
// host
}
other ways of doing this with more optimized cod3nz but you probably wouldnt understand
just create an array with clients listed as int rather than reading xuid's.
then you can just verify the same way you were doing
if((int)verify == 0)
{
//unverified
}
else if(verify == 1)
{
//basic verification
}
else if(verify == 2)
{
//upgraded verification
}
else if(verify == 3)
{
//co-host
}
else if(verify == 4)
{
// host
}
other ways of doing this with more optimized cod3nz but you probably wouldnt understand
- 0useful
- 0not useful
#12. Posted:
Status: Offline
Joined: Aug 17, 201212Year Member
Posts: 132
Reputation Power: 8
Status: Offline
Joined: Aug 17, 201212Year Member
Posts: 132
Reputation Power: 8
lampr4y wrote lol this is way more complicated
just create an array with clients listed as int rather than reading xuid's.
then you can just verify the same way you were doing
if((int)verify == 0)
{
//unverified
}
else if(verify == 1)
{
//basic verification
}
else if(verify == 2)
{
//upgraded verification
}
else if(verify == 3)
{
//co-host
}
else if(verify == 4)
{
// host
}
other ways of doing this with more optimized cod3nz but you probably wouldnt understand
You can also find the host with functions in this struct
struct XenonUserData//Credit to SnappiestJack
{
int signInState;
char name[0x20];
};
XenonUserData * xenonUserData = (XenonUserData *)0x838BA820;
then loop through all 18 clients's names in the playerstate, and compare it to the one that is the name of the one int the XenonUserData Struct.
- 1useful
- 0not useful
#13. Posted:
Status: Offline
Joined: May 04, 201311Year Member
Posts: 12
Reputation Power: 0
hacksorce wrotelampr4y wrote lol this is way more complicated
just create an array with clients listed as int rather than reading xuid's.
then you can just verify the same way you were doing
if((int)verify == 0)
{
//unverified
}
else if(verify == 1)
{
//basic verification
}
else if(verify == 2)
{
//upgraded verification
}
else if(verify == 3)
{
//co-host
}
else if(verify == 4)
{
// host
}
other ways of doing this with more optimized cod3nz but you probably wouldnt understand
You can also find the host with functions in this struct
struct XenonUserData//Credit to SnappiestJack
{
int signInState;
char name[0x20];
};
XenonUserData * xenonUserData = (XenonUserData *)0x838BA820;
then loop through all 18 clients's names in the playerstate, and compare it to the one that is the name of the one int the XenonUserData Struct.
like I said, he wouldnt understand that
- 0useful
- 2not useful
#14. Posted:
Status: Offline
Joined: Sep 06, 201014Year Member
Posts: 1,069
Reputation Power: 47
Status: Offline
Joined: Sep 06, 201014Year Member
Posts: 1,069
Reputation Power: 47
lampr4y wrote
like I said, he wouldnt understand that
You're comparing apples to oranges. You posted a way to store the verification state of the players(which was incorrect, should be an enumerator), and hacksorce posted a way to find the host.
- 0useful
- 0not useful
#15. Posted:
Status: Offline
Joined: May 04, 201311Year Member
Posts: 12
Reputation Power: 0
M0D1F13D wrotelampr4y wrote
like I said, he wouldnt understand that
You're comparing apples to oranges. You posted a way to store the verification state of the players(which was incorrect, should be an enumerator), and hacksorce posted a way to find the host.
ok,
the most efficient way of doing it would be to just have the clients start out crouched, get their pos in the centity_t struct, and then verify through simply detecting client positions. ex: if a client is crouched unverified, once able to stand up, verified.....
- 0useful
- 0not useful
#16. Posted:
Status: Offline
Joined: Sep 06, 201014Year Member
Posts: 1,069
Reputation Power: 47
Status: Offline
Joined: Sep 06, 201014Year Member
Posts: 1,069
Reputation Power: 47
lampr4y wrote
ok,
the most efficient way of doing it would be to just have the clients start out crouched, get their pos in the centity_t struct, and then verify through simply detecting client positions. ex: if a client is crouched unverified, once able to stand up, verified.....
Was that sarcasm? It's so hard to tell on the internet...
- 1useful
- 0not useful
#17. Posted:
Status: Offline
Joined: Aug 17, 201212Year Member
Posts: 132
Reputation Power: 8
Status: Offline
Joined: Aug 17, 201212Year Member
Posts: 132
Reputation Power: 8
lampr4y wroteM0D1F13D wrotelampr4y wrote
like I said, he wouldnt understand that
You're comparing apples to oranges. You posted a way to store the verification state of the players(which was incorrect, should be an enumerator), and hacksorce posted a way to find the host.
ok,
the most efficient way of doing it would be to just have the clients start out crouched, get their pos in the centity_t struct, and then verify through simply detecting client positions. ex: if a client is crouched unverified, once able to stand up, verified.....
That is a good idea ;) but I was thinking that in the g_client_s struct you could just freeze their velocity, thus freezing them and making a giant black icon on their screen. Until they are verified by the host of the game.
- 0useful
- 0not useful
#18. Posted:
Status: Offline
Joined: Jan 03, 201114Year Member
Posts: 408
Reputation Power: 17
Status: Offline
Joined: Jan 03, 201114Year Member
Posts: 408
Reputation Power: 17
hacksorce wrotelampr4y wroteM0D1F13D wrotelampr4y wrote
like I said, he wouldnt understand that
You're comparing apples to oranges. You posted a way to store the verification state of the players(which was incorrect, should be an enumerator), and hacksorce posted a way to find the host.
ok,
the most efficient way of doing it would be to just have the clients start out crouched, get their pos in the centity_t struct, and then verify through simply detecting client positions. ex: if a client is crouched unverified, once able to stand up, verified.....
That is a good idea ;) but I was thinking that in the g_client_s struct you could just freeze their velocity, thus freezing them and making a giant black icon on their screen. Until they are verified by the host of the game.
Or you could use r_scaleviewport "0" that's what I did and its perfect.
- 0useful
- 0not useful
#19. Posted:
Status: Offline
Joined: May 04, 201311Year Member
Posts: 12
Reputation Power: 0
M0D1F13D wrotelampr4y wrote
ok,
the most efficient way of doing it would be to just have the clients start out crouched, get their pos in the centity_t struct, and then verify through simply detecting client positions. ex: if a client is crouched unverified, once able to stand up, verified.....
Was that sarcasm? It's so hard to tell on the internet...
do you think anyone somewhat with knowledge would actually say that.......
cmon mane
- 0useful
- 0not useful
#20. Posted:
Status: Offline
Joined: Jul 01, 201212Year Member
Posts: 484
Reputation Power: 20
Status: Offline
Joined: Jul 01, 201212Year Member
Posts: 484
Reputation Power: 20
Nice Tut !
1100101010010101
1100101010010101
- 0useful
- 0not useful
You are viewing our Forum Archives. To view or take place in current topics click here.