add stop blood api

This commit is contained in:
Huoji's
2023-10-21 16:40:37 +08:00
parent 31a3fe5428
commit d3f22fc9fc
2 changed files with 7 additions and 6 deletions

View File

@@ -45,13 +45,14 @@ void __fastcall hook_PostEventAbstract(
if (isBloodAboutMessage == false/* && isWeaponAboutMessage == false */) {
break;
}
for (uint64 i = 0; i < global::MaxPlayers; i++)
// lazy fix me
for (uint64_t i = 0; i < global::MaxPlayers; i++)
{
if (!(*(uint64*)clients & ((uint64)1 << i))) {
if (!(*(uint64_t*)clients & ((uint64_t)1 << i))) {
continue;
}
const auto pEntity = global::EntitySystem->GetBaseEntity(i);
const auto pEntity = global::EntitySystem->GetBaseEntity(PlayerSlot_to_EntityIndex(i));
if (pEntity == nullptr) {
continue;
}