02-26-2012, 17:38
Hi Nukem,
i am already working on teamchange support for the addon for about 1 month and i noticed that you implemented that inside the newest update.
I tried it out, but it seems that you only change the team-"appearance".
When i change the team value of a client, he is shown in the other teams list (in the player table) and his appearance is changed too (not the model). But he still can be killed by the new teammates.
It seems that you have to change more than just 1 value.
The Addresses i have so far are (for player 1):
0x185AF14 <- The actual Team value, which i found
0x1ADA758 <- Team Appearance, which you are changing - i think (mentioned above)
0x1ADA694 <- Player vision
The possible values for those are:
Team -> 0 = FFA/Joined | 1 = axis | 2 = allies | 3 = spectator
Team Appearance -> same as above
Player Vision -> 0 = alive | 1 = last location (spawn location or dead body from last death) | 2 = spectator | 3 = endscreen
The Offsets for this addresses (to get the other Players) are:
// Starting from Player 1 Addresses
Team -> 0x564
Team Appearance -> 0x38A8
Player Vision -> 0x38A8
Allthough i change the values at this addresses, it doesn't seem to work as it should.
You CAN change the vision, you CAN change the appearance and you CAN change the team with this addresses, but sometimes i can then kill a previous teammate and sometimes not.
It seems that something is still missing.
I hope this is a help and that you can manage to get the teamchange support working.
Greets Deviler
i am already working on teamchange support for the addon for about 1 month and i noticed that you implemented that inside the newest update.
I tried it out, but it seems that you only change the team-"appearance".
When i change the team value of a client, he is shown in the other teams list (in the player table) and his appearance is changed too (not the model). But he still can be killed by the new teammates.
It seems that you have to change more than just 1 value.
The Addresses i have so far are (for player 1):
0x185AF14 <- The actual Team value, which i found
0x1ADA758 <- Team Appearance, which you are changing - i think (mentioned above)
0x1ADA694 <- Player vision
The possible values for those are:
Team -> 0 = FFA/Joined | 1 = axis | 2 = allies | 3 = spectator
Team Appearance -> same as above
Player Vision -> 0 = alive | 1 = last location (spawn location or dead body from last death) | 2 = spectator | 3 = endscreen
The Offsets for this addresses (to get the other Players) are:
// Starting from Player 1 Addresses
Team -> 0x564
Team Appearance -> 0x38A8
Player Vision -> 0x38A8
Allthough i change the values at this addresses, it doesn't seem to work as it should.
You CAN change the vision, you CAN change the appearance and you CAN change the team with this addresses, but sometimes i can then kill a previous teammate and sometimes not.
It seems that something is still missing.
I hope this is a help and that you can manage to get the teamchange support working.
Greets Deviler