if (Controller)
{
DWORD MyPlayerReplicationInfo = *(DWORD*)(Controller + 0x023C);
if (MyPlayerReplicationInfo)
{
DWORD WorldInfo = *(DWORD*)(Controller + 0x00B4);
if (WorldInfo)
{
DWORD MyPawn = *(DWORD*)(Controller + 0x238);
DWORD PawnList = *(DWORD*)(WorldInfo + 0x068C);
DWORD MyTeam = *(DWORD*)(MyPlayerReplicationInfo + 0x026C);
for (DWORD Pawn = PawnList; Pawn; Pawn = *(DWORD*)(Pawn + 0x0244))
{
if (MyPawn && Pawn == MyPawn) continue;
DWORD PlayerReplicationInfo = *(DWORD*)(Pawn + 0x03A4);
if (!PlayerReplicationInfo || (MyTeam && MyTeam == *(DWORD*)(PlayerReplicationInfo + 0x026C)))
continue;
*(DWORD*)(Pawn + 0x5C8) |= 0x10 | 0x4000 | 0x04000000;
}
}
}
}