From b52ddc86be4fcf7ed10ad3286de6891b84532bb4 Mon Sep 17 00:00:00 2001 From: jadis0x <49281043+jadis0x@users.noreply.github.com> Date: Fri, 7 Oct 2022 21:23:13 +0300 Subject: [PATCH] add: ShootPlayers function --- DevourClient/Features/Misc/Misc.cpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/DevourClient/Features/Misc/Misc.cpp b/DevourClient/Features/Misc/Misc.cpp index c5d25f4..825bf8f 100644 --- a/DevourClient/Features/Misc/Misc.cpp +++ b/DevourClient/Features/Misc/Misc.cpp @@ -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("OnShootPlayer", player, true); + } +}