Skip to content

Commit

Permalink
Unamused
Browse files Browse the repository at this point in the history
  • Loading branch information
Regynate authored Oct 27, 2023
1 parent b313743 commit 71109ca
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ChaosMod/Effects/db/Peds/PedsSpawnMime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ static void OnStart()
TASK_COMBAT_PED(ped, playerPed, 0, 16);

SET_PED_FIRING_PATTERN(ped, 0xC6EE6B4C);

while (GET_CURRENT_PED_WEAPON_ENTITY_INDEX(ped, 0) == 0) // doing '!' doesn't work
WAIT(0);

Entity weapon = GET_CURRENT_PED_WEAPON_ENTITY_INDEX(ped, 0);
SET_ENTITY_ALPHA(weapon, 0, false);
if (DOES_ENTITY_EXIST(weapon))
{
SET_ENTITY_ALPHA(weapon, 0, false);
}
}

// clang-format off
Expand All @@ -61,4 +61,4 @@ REGISTER_EFFECT(OnStart, nullptr, nullptr, EffectInfo
.Id = "spawn_mime",
.EffectGroupType = EEffectGroupType::SpawnEnemySpecial
}
);
);

0 comments on commit 71109ca

Please sign in to comment.