add: ShootPlayers function

This commit is contained in:
jadis0x
2022-10-07 21:23:13 +03:00
committed by GitHub
parent 0d33c1a96d
commit b52ddc86be

View File

@@ -386,3 +386,25 @@ void Misc::BurnRitualObj(bool burnAll) {
return;
}
}
void Misc::ShootPlayers() {
Unity::CGameObject* AzazaelSam = Unity::GameObject::Find("AzazelSam(Clone)");
if (!AzazaelSam) {
return;
}
Unity::CComponent* AzazelSamBehaviour = AzazaelSam->GetComponent("AzazelSamBehaviour");
if (!AzazelSamBehaviour) {
return;
}
for (Unity::CGameObject* player : Players::PlayerList) {
if (!player || player == Players::LocalPlayer) {
continue;
}
AzazelSamBehaviour->CallMethodSafe<void*>("OnShootPlayer", player, true);
}
}