fix(Globals): off radar and fast respawn globals (#2568)

This commit is contained in:
HCR-750F 2023-12-15 23:01:36 +08:00 committed by GitHub
parent fefaaeef3c
commit b958981e02
2 changed files with 3 additions and 3 deletions

View File

@ -15,14 +15,14 @@ namespace big
*scr_globals::disable_wasted_sound.as<bool*>() = true;
// triggers respawn instantly upon death, has no effect if not respawning so no need to check if the player's dead
misc::set_bit(&(*scr_globals::freemode_properties.at(1685).at(756).as<int*>()), 1); // Update: freemode -> KILL_STRIP_H -> Above that = "!IS_BIT_SET(global, 2)"
misc::set_bit(&(*scr_globals::freemode_properties.at(1689).at(756).as<int*>()), 1); // Update: freemode -> KILL_STRIP_H -> Above that = "!IS_BIT_SET(global, 2)"
}
virtual void on_disable() override
{
*scr_globals::disable_wasted_sound.as<bool*>() = false;
misc::clear_bit(&(*scr_globals::freemode_properties.at(1685).at(756).as<int*>()), 1);
misc::clear_bit(&(*scr_globals::freemode_properties.at(1689).at(756).as<int*>()), 1);
}
};

View File

@ -16,7 +16,7 @@ namespace big
if (g.self.ghost_org)
MISC::SET_BIT(scr_globals::freemode_global.at(4667).as<int*>(), 2);
scr_globals::globalplayer_bd.as<GlobalPlayerBD*>()->Entries[self::id].OffRadarActive = true;
*scr_globals::freemode_properties.at(57).as<int*>() = NETWORK::GET_NETWORK_TIME() + 1;
*scr_globals::freemode_properties.at(58).as<int*>() = NETWORK::GET_NETWORK_TIME() + 1;
}
virtual void on_disable() override