861
订阅者
+724 小时
+337 天
+25130 天
帖子存档
861
void InvisiblePlie() {
if (!RealInvisible) return;
void* match = Curent_Match();
if (!match) return;
void* Local_Player = GetLocalPlayer(match);
if (!Local_Player) return;
if (!resolvedFootball) {
orig_SendFootball = (void(*)(void*))Il2CppGetMethodOffset(
OBFUSCATE("Assembly-CSharp.dll"),
OBFUSCATE("COW.GamePlay"),
OBFUSCATE("PlayerNetwork"),
OBFUSCATE("SendChangeToGBFootBall"), 0
);
orig_CancelFootball = (void(*)(void*))Il2CppGetMethodOffset(
OBFUSCATE("Assembly-CSharp.dll"),
OBFUSCATE("COW.GamePlay"),
OBFUSCATE("PlayerNetwork"),
OBFUSCATE("SendCancelGBFootBall"), 0
);
resolvedFootball = true;
}
static bool wasCancelled = false;
if (RealInvisible) {
wasCancelled = false;
if (orig_SendFootball) orig_SendFootball(Local_Player);
} else {
if (!wasCancelled) {
if (orig_CancelFootball) orig_CancelFootball(Local_Player);
wasCancelled = true;
}
}
}
17 8月, 22:31
