fix: Globals, UI and removed super run (#161)
* RGB vehicle feature had broken UI * Globals updated to 1.59 * Removed super run (ReClass outdated)
This commit is contained in:
parent
c56d9194f3
commit
b6e2cd5172
@ -77,7 +77,7 @@ namespace big
|
||||
"DLC Intro Bink",
|
||||
};
|
||||
|
||||
auto transition_state = script_global(1574980);
|
||||
auto transition_state = script_global(1574988);
|
||||
eTransitionState last_state = eTransitionState::TRANSITION_STATE_MAX;
|
||||
void looped::hud_transition_state()
|
||||
{
|
||||
|
@ -11,6 +11,12 @@ namespace big
|
||||
|
||||
void looped::self_super_run()
|
||||
{
|
||||
|
||||
// g_local_player->m_player_info->m_run_speed is bwoke
|
||||
|
||||
/*
|
||||
|
||||
|
||||
if (g->self.super_run && PAD::IS_CONTROL_PRESSED(0, 21))
|
||||
{
|
||||
if (run_speed < run_cap) run_speed += .5f;
|
||||
@ -50,5 +56,8 @@ namespace big
|
||||
}
|
||||
|
||||
super_run_state = g->self.super_run;
|
||||
|
||||
*/
|
||||
|
||||
}
|
||||
}
|
@ -7,8 +7,8 @@ namespace big
|
||||
{
|
||||
if (g->tunables.no_idle_kick)
|
||||
{
|
||||
*script_global(1644209).at(1149).as<int*>() = 0;
|
||||
*script_global(1644209).at(1165).as<int*>() = 0;
|
||||
*script_global(1644218).at(1149).as<int*>() = 0;
|
||||
*script_global(1644218).at(1165).as<int*>() = 0;
|
||||
}
|
||||
}
|
||||
}
|
@ -7,7 +7,7 @@ namespace big
|
||||
{
|
||||
const Vehicle veh = PED::GET_VEHICLE_PED_IS_IN(PLAYER::PLAYER_PED_ID(), false);
|
||||
|
||||
if (veh != 0 && g->vehicle.rainbow_paint != 0)
|
||||
if (veh && g->vehicle.rainbow_paint)
|
||||
{
|
||||
if (g->vehicle.rainbow_paint == 1)
|
||||
{
|
||||
|
@ -5,6 +5,6 @@ namespace big::globals
|
||||
{
|
||||
inline Vehicle get_personal_vehicle()
|
||||
{
|
||||
return *script_global(2810287).at(298).as<Vehicle*>();
|
||||
return *script_global(2810701).at(298).as<Vehicle*>();
|
||||
}
|
||||
}
|
@ -12,9 +12,9 @@
|
||||
|
||||
namespace big::mobile
|
||||
{
|
||||
inline auto player_global = script_global(2689156);
|
||||
inline auto mechanic_global = script_global(2810287);
|
||||
inline auto vehicle_global = script_global(1585844);
|
||||
inline auto player_global = script_global(2689224);
|
||||
inline auto mechanic_global = script_global(2810701);
|
||||
inline auto vehicle_global = script_global(1585853);
|
||||
|
||||
namespace util
|
||||
{
|
||||
@ -38,7 +38,7 @@ namespace big::mobile
|
||||
inline void off_radar(bool toggle)
|
||||
{
|
||||
*player_global.at(PLAYER::GET_PLAYER_INDEX(), 453).at(209).as<int*>() = toggle;
|
||||
*script_global(2703656).at(70).as<int*>() = NETWORK::GET_NETWORK_TIME() + 1;
|
||||
*script_global(2703660).at(56).as<int*>() = NETWORK::GET_NETWORK_TIME() + 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -8,8 +8,8 @@ namespace big::player
|
||||
{
|
||||
inline void easy_way_out()
|
||||
{
|
||||
*script_global(262145 + 27907).as<int*>() = 0;
|
||||
*script_global(262145 + 27908).as<int*>() = 0;
|
||||
*script_global(262145 + 28073).as<int*>() = 0;
|
||||
*script_global(262145 + 28074).as<int*>() = 0;
|
||||
}
|
||||
|
||||
inline void get_active_character_slot(int *character_slot)
|
||||
|
@ -9,13 +9,13 @@ namespace big::session
|
||||
void join_type(SessionType session)
|
||||
{
|
||||
if (session.id == eSessionType::LEAVE_ONLINE)
|
||||
*script_global(1574587).at(2).as<int*>() = -1;
|
||||
*script_global(1574589).at(2).as<int*>() = -1;
|
||||
else
|
||||
*script_global(1575004).as<int*>() = (int)session.id;
|
||||
*script_global(1575012).as<int*>() = (int)session.id;
|
||||
|
||||
*script_global(1574587).as<int*>() = 1;
|
||||
*script_global(1574589).as<int*>() = 1;
|
||||
script::get_current()->yield(200ms);
|
||||
*script_global(1574587).as<int*>() = 0;
|
||||
*script_global(1574589).as<int*>() = 0;
|
||||
}
|
||||
|
||||
static constexpr char const* weathers[] = { "EXTRASUNNY", "CLEAR", "CLOUDS", "SMOG", "FOGGY", "OVERCAST", "RAIN", "THUNDER", "CLEARING", "NEUTRAL", "SNOW", "BLIZZARD", "SNOWLIGHT", "XMAS", "HALLOWEEN" };
|
||||
|
@ -38,8 +38,8 @@ namespace big::toxic
|
||||
amount,
|
||||
0, 1, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0,
|
||||
*script_global(1921036).at(9).as<int*>(),
|
||||
*script_global(1921036).at(10).as<int*>()
|
||||
* script_global(1921039).at(9).as<int*>(),
|
||||
* script_global(1921039).at(10).as<int*>()
|
||||
};
|
||||
|
||||
g_pointers->m_trigger_script_event(1, args, arg_count, -1);
|
||||
@ -65,7 +65,7 @@ namespace big::toxic
|
||||
int64_t args[arg_count] = {
|
||||
(int)eRemoteEvent::ClearWantedLevel,
|
||||
0,
|
||||
*script_global(1893548).at(target, 600).at(511).as<int*>()
|
||||
*script_global(1893551).at(target, 599).at(510).as<int*>()
|
||||
};
|
||||
|
||||
g_pointers->m_trigger_script_event(1, args, arg_count, 1 << target);
|
||||
|
@ -51,7 +51,7 @@ namespace big
|
||||
|
||||
ImGui::EndPopup();
|
||||
}
|
||||
|
||||
ImGui::EndGroup();
|
||||
ImGui::TreePop();
|
||||
}
|
||||
|
||||
@ -59,7 +59,7 @@ namespace big
|
||||
{
|
||||
ImGui::ListBox("RGB Type", &g->vehicle.rainbow_paint, vehicle::rgb_types, 3);
|
||||
|
||||
if (g->vehicle.rainbow_paint != 0)
|
||||
if (g->vehicle.rainbow_paint)
|
||||
{
|
||||
ImGui::SliderInt("RGB Speed", &g->rgb.speed, 1, 10);
|
||||
}
|
||||
|
Reference in New Issue
Block a user