You are viewing our Forum Archives. To view or take place in current topics click here.
#11. Posted:
lampr4y
  • New Member
Status: Offline
Joined: May 04, 201310Year Member
Posts: 12
Reputation Power: 0
Status: Offline
Joined: May 04, 201310Year 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
#12. Posted:
hacksorce
  • Challenger
Status: Offline
Joined: Aug 17, 201211Year Member
Posts: 132
Reputation Power: 8
Status: Offline
Joined: Aug 17, 201211Year 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.
#13. Posted:
lampr4y
  • New Member
Status: Offline
Joined: May 04, 201310Year Member
Posts: 12
Reputation Power: 0
Status: Offline
Joined: May 04, 201310Year Member
Posts: 12
Reputation Power: 0
hacksorce wrote
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.


like I said, he wouldnt understand that
#14. Posted:
M0D1F13D
  • TTG Senior
Status: Offline
Joined: Sep 06, 201013Year Member
Posts: 1,069
Reputation Power: 47
Status: Offline
Joined: Sep 06, 201013Year 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.
#15. Posted:
lampr4y
  • New Member
Status: Offline
Joined: May 04, 201310Year Member
Posts: 12
Reputation Power: 0
Status: Offline
Joined: May 04, 201310Year Member
Posts: 12
Reputation Power: 0
M0D1F13D wrote
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.


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.....
#16. Posted:
M0D1F13D
  • TTG Senior
Status: Offline
Joined: Sep 06, 201013Year Member
Posts: 1,069
Reputation Power: 47
Status: Offline
Joined: Sep 06, 201013Year 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...
#17. Posted:
hacksorce
  • Challenger
Status: Offline
Joined: Aug 17, 201211Year Member
Posts: 132
Reputation Power: 8
Status: Offline
Joined: Aug 17, 201211Year Member
Posts: 132
Reputation Power: 8
lampr4y wrote
M0D1F13D wrote
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.


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.
#18. Posted:
chrispro1994
  • Powerhouse
Status: Offline
Joined: Jan 03, 201113Year Member
Posts: 408
Reputation Power: 17
Status: Offline
Joined: Jan 03, 201113Year Member
Posts: 408
Reputation Power: 17
hacksorce wrote
lampr4y wrote
M0D1F13D wrote
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.


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.
#19. Posted:
lampr4y
  • New Member
Status: Offline
Joined: May 04, 201310Year Member
Posts: 12
Reputation Power: 0
Status: Offline
Joined: May 04, 201310Year Member
Posts: 12
Reputation Power: 0
M0D1F13D wrote
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...

do you think anyone somewhat with knowledge would actually say that.......

cmon mane
#20. Posted:
KaoticFX
  • Powerhouse
Status: Offline
Joined: Jul 01, 201211Year Member
Posts: 484
Reputation Power: 20
Status: Offline
Joined: Jul 01, 201211Year Member
Posts: 484
Reputation Power: 20
Nice Tut !

1100101010010101
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.