diff --git a/BigBaseV2/src/features/god_mode.cpp b/BigBaseV2/src/features/looped/god_mode.cpp similarity index 95% rename from BigBaseV2/src/features/god_mode.cpp rename to BigBaseV2/src/features/looped/god_mode.cpp index fbaf8bc3..b5762227 100644 --- a/BigBaseV2/src/features/god_mode.cpp +++ b/BigBaseV2/src/features/looped/god_mode.cpp @@ -1,21 +1,21 @@ -#include "features.hpp" - -namespace big -{ - static bool bLastGodMode = false; - - void features::god_mode() - { - bool bGodMode = g_settings.options["god_mode"].get(); - - if (bGodMode || (!bGodMode && bGodMode != bLastGodMode)) - { - QUEUE_JOB_BEGIN_CLAUSE(= ) - { - ENTITY::SET_ENTITY_INVINCIBLE(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(PLAYER::PLAYER_ID()), bGodMode); - }QUEUE_JOB_END_CLAUSE - - bLastGodMode = bGodMode; - } - } +#include "features.hpp" + +namespace big +{ + static bool bLastGodMode = false; + + void features::god_mode() + { + bool bGodMode = g_settings.options["god_mode"].get(); + + if (bGodMode || (!bGodMode && bGodMode != bLastGodMode)) + { + QUEUE_JOB_BEGIN_CLAUSE(= ) + { + ENTITY::SET_ENTITY_INVINCIBLE(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(PLAYER::PLAYER_ID()), bGodMode); + }QUEUE_JOB_END_CLAUSE + + bLastGodMode = bGodMode; + } + } } \ No newline at end of file diff --git a/BigBaseV2/src/features/join_message.cpp b/BigBaseV2/src/features/looped/join_message.cpp similarity index 95% rename from BigBaseV2/src/features/join_message.cpp rename to BigBaseV2/src/features/looped/join_message.cpp index 6cece0f5..da4a2ef0 100644 --- a/BigBaseV2/src/features/join_message.cpp +++ b/BigBaseV2/src/features/looped/join_message.cpp @@ -1,22 +1,22 @@ -#include "features.hpp" -#include "pointers.hpp" - -namespace big -{ - void features::join_message(Player player) - { - if (player == g_playerId) return; - - bool bJoinMessage = g_settings.options["join_message"].get(); - - if (bJoinMessage) - { - char joinMsg[64]; - strcpy(joinMsg, ""); - strcat(joinMsg, g_pointers->m_get_player_name(player)); - strcat(joinMsg, " is joining."); - - features::notify::above_map(joinMsg); - } - } +#include "features.hpp" +#include "pointers.hpp" + +namespace big +{ + void features::join_message(Player player) + { + if (player == g_playerId) return; + + bool bJoinMessage = g_settings.options["join_message"].get(); + + if (bJoinMessage) + { + char joinMsg[64]; + strcpy(joinMsg, ""); + strcat(joinMsg, g_pointers->m_get_player_name(player)); + strcat(joinMsg, " is joining."); + + features::notify::above_map(joinMsg); + } + } } \ No newline at end of file diff --git a/BigBaseV2/src/features/never_wanted.cpp b/BigBaseV2/src/features/looped/never_wanted.cpp similarity index 95% rename from BigBaseV2/src/features/never_wanted.cpp rename to BigBaseV2/src/features/looped/never_wanted.cpp index 4a1aa361..1906db3f 100644 --- a/BigBaseV2/src/features/never_wanted.cpp +++ b/BigBaseV2/src/features/looped/never_wanted.cpp @@ -1,26 +1,26 @@ -#include "features.hpp" - -namespace big -{ - static bool bLastNeverWanted = false; - - void features::never_wanted() - { - QUEUE_JOB_BEGIN_CLAUSE() - { - bool bNeverWanted = g_settings.options["never_wanted"].get(); - - if (bNeverWanted && PLAYER::GET_PLAYER_WANTED_LEVEL(g_playerId) > 0) - { - PLAYER::SET_PLAYER_WANTED_LEVEL(g_playerId, 0, true); - PLAYER::SET_MAX_WANTED_LEVEL(0); - } - else if (!bNeverWanted && bNeverWanted != bLastNeverWanted) - { - PLAYER::SET_MAX_WANTED_LEVEL(5); - } - - bLastNeverWanted = bNeverWanted; - }QUEUE_JOB_END_CLAUSE - } +#include "features.hpp" + +namespace big +{ + static bool bLastNeverWanted = false; + + void features::never_wanted() + { + QUEUE_JOB_BEGIN_CLAUSE() + { + bool bNeverWanted = g_settings.options["never_wanted"].get(); + + if (bNeverWanted && PLAYER::GET_PLAYER_WANTED_LEVEL(g_playerId) > 0) + { + PLAYER::SET_PLAYER_WANTED_LEVEL(g_playerId, 0, true); + PLAYER::SET_MAX_WANTED_LEVEL(0); + } + else if (!bNeverWanted && bNeverWanted != bLastNeverWanted) + { + PLAYER::SET_MAX_WANTED_LEVEL(5); + } + + bLastNeverWanted = bNeverWanted; + }QUEUE_JOB_END_CLAUSE + } } \ No newline at end of file diff --git a/BigBaseV2/src/features/no_bike_fall.cpp b/BigBaseV2/src/features/looped/no_bike_fall.cpp similarity index 95% rename from BigBaseV2/src/features/no_bike_fall.cpp rename to BigBaseV2/src/features/looped/no_bike_fall.cpp index 7c4ee22a..8f1cf0b1 100644 --- a/BigBaseV2/src/features/no_bike_fall.cpp +++ b/BigBaseV2/src/features/looped/no_bike_fall.cpp @@ -1,14 +1,14 @@ -#include "features.hpp" - -namespace big -{ - void features::no_bike_fall() - { - bool bNoBikeFall = g_settings.options["no_bike_fall"].get(); - - QUEUE_JOB_BEGIN_CLAUSE(=) - { - PED::SET_PED_CAN_BE_KNOCKED_OFF_VEHICLE(PLAYER::PLAYER_PED_ID(), bNoBikeFall); - }QUEUE_JOB_END_CLAUSE - } +#include "features.hpp" + +namespace big +{ + void features::no_bike_fall() + { + bool bNoBikeFall = g_settings.options["no_bike_fall"].get(); + + QUEUE_JOB_BEGIN_CLAUSE(=) + { + PED::SET_PED_CAN_BE_KNOCKED_OFF_VEHICLE(PLAYER::PLAYER_PED_ID(), bNoBikeFall); + }QUEUE_JOB_END_CLAUSE + } } \ No newline at end of file diff --git a/BigBaseV2/src/features/no_idle_kick.cpp b/BigBaseV2/src/features/looped/no_idle_kick.cpp similarity index 62% rename from BigBaseV2/src/features/no_idle_kick.cpp rename to BigBaseV2/src/features/looped/no_idle_kick.cpp index 36fdd222..9180b57a 100644 --- a/BigBaseV2/src/features/no_idle_kick.cpp +++ b/BigBaseV2/src/features/looped/no_idle_kick.cpp @@ -1,16 +1,16 @@ -#include "features.hpp" -#include "script_global.hpp" - -namespace big -{ - void features::no_idle_kick() - { - bool bNoIdleKick = g_settings.options["no_idle_kick"].get(); - - if (bNoIdleKick) - { - *script_global(1377236).at(1165).as() = -1; - *script_global(1377236).at(1149).as() = -1; - } - } +#include "features.hpp" +#include "script_global.hpp" + +namespace big +{ + void features::no_idle_kick() + { + bool bNoIdleKick = g_settings.options["no_idle_kick"].get(); + + if (bNoIdleKick) + { + *script_global(1377236).at(1165).as() = 0; + *script_global(1377236).at(1149).as() = 0; + } + } } \ No newline at end of file diff --git a/BigBaseV2/src/features/no_ragdoll.cpp b/BigBaseV2/src/features/looped/no_ragdoll.cpp similarity index 95% rename from BigBaseV2/src/features/no_ragdoll.cpp rename to BigBaseV2/src/features/looped/no_ragdoll.cpp index d537917a..e2d28031 100644 --- a/BigBaseV2/src/features/no_ragdoll.cpp +++ b/BigBaseV2/src/features/looped/no_ragdoll.cpp @@ -1,24 +1,24 @@ -#include "features.hpp" - -namespace big -{ - static bool bLastNoRagdoll = false; - - void features::no_ragdoll() - { - bool bNoRagdoll = g_settings.options["ragdoll"].get(); - - if (bNoRagdoll || (!bNoRagdoll && bNoRagdoll != bLastNoRagdoll)) - { - QUEUE_JOB_BEGIN_CLAUSE(= ) - { - Ped player = PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(g_playerId); - - PED::SET_PED_CAN_RAGDOLL(player, !bNoRagdoll); - PED::SET_PED_CAN_RAGDOLL_FROM_PLAYER_IMPACT(player, !bNoRagdoll); - }QUEUE_JOB_END_CLAUSE - - bLastNoRagdoll = bNoRagdoll; - } - } +#include "features.hpp" + +namespace big +{ + static bool bLastNoRagdoll = false; + + void features::no_ragdoll() + { + bool bNoRagdoll = g_settings.options["ragdoll"].get(); + + if (bNoRagdoll || (!bNoRagdoll && bNoRagdoll != bLastNoRagdoll)) + { + QUEUE_JOB_BEGIN_CLAUSE(= ) + { + Ped player = PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(g_playerId); + + PED::SET_PED_CAN_RAGDOLL(player, !bNoRagdoll); + PED::SET_PED_CAN_RAGDOLL_FROM_PLAYER_IMPACT(player, !bNoRagdoll); + }QUEUE_JOB_END_CLAUSE + + bLastNoRagdoll = bNoRagdoll; + } + } } \ No newline at end of file diff --git a/BigBaseV2/src/features/off_radar.cpp b/BigBaseV2/src/features/looped/off_radar.cpp similarity index 95% rename from BigBaseV2/src/features/off_radar.cpp rename to BigBaseV2/src/features/looped/off_radar.cpp index a20268c5..96da5d01 100644 --- a/BigBaseV2/src/features/off_radar.cpp +++ b/BigBaseV2/src/features/looped/off_radar.cpp @@ -1,20 +1,20 @@ -#include "features.hpp" -#include "script_global.hpp" - -namespace big -{ - void features::off_radar() - { - if (g_settings.options["off_radar"].get()) - { - QUEUE_JOB_BEGIN_CLAUSE() - { - if (PLAYER::IS_PLAYER_ONLINE()) - { - *script_global(2425869).at(1 + (g_playerId * 443)).at(204).as() = 1; - *script_global(2440049).at(70).as() = NETWORK::GET_NETWORK_TIME() + 999; - } - }QUEUE_JOB_END_CLAUSE - } - } +#include "features.hpp" +#include "script_global.hpp" + +namespace big +{ + void features::off_radar() + { + if (g_settings.options["off_radar"].get()) + { + QUEUE_JOB_BEGIN_CLAUSE() + { + if (PLAYER::IS_PLAYER_ONLINE()) + { + *script_global(2425869).at(1 + (g_playerId * 443)).at(204).as() = 1; + *script_global(2440049).at(70).as() = NETWORK::GET_NETWORK_TIME() + 999; + } + }QUEUE_JOB_END_CLAUSE + } + } } \ No newline at end of file diff --git a/BigBaseV2/src/features/population_modifiers.cpp b/BigBaseV2/src/features/looped/population_modifiers.cpp similarity index 97% rename from BigBaseV2/src/features/population_modifiers.cpp rename to BigBaseV2/src/features/looped/population_modifiers.cpp index 1df0d6d8..965cf2da 100644 --- a/BigBaseV2/src/features/population_modifiers.cpp +++ b/BigBaseV2/src/features/looped/population_modifiers.cpp @@ -1,18 +1,18 @@ -#include "features.hpp" - -namespace big -{ - void features::population_modifiers() - { - if (g_settings.options["population_modifiers"].get()) - { - QUEUE_JOB_BEGIN_CLAUSE() - { - PED::SET_PED_DENSITY_MULTIPLIER_THIS_FRAME((float)g_settings.options["pedestrian_population"].get()); - - VEHICLE::SET_PARKED_VEHICLE_DENSITY_MULTIPLIER_THIS_FRAME((float)g_settings.options["parked_vehicle_density"].get()); - VEHICLE::SET_VEHICLE_DENSITY_MULTIPLIER_THIS_FRAME((float)g_settings.options["vehicle_density"].get()); - }QUEUE_JOB_END_CLAUSE - } - } +#include "features.hpp" + +namespace big +{ + void features::population_modifiers() + { + if (g_settings.options["population_modifiers"].get()) + { + QUEUE_JOB_BEGIN_CLAUSE() + { + PED::SET_PED_DENSITY_MULTIPLIER_THIS_FRAME((float)g_settings.options["pedestrian_population"].get()); + + VEHICLE::SET_PARKED_VEHICLE_DENSITY_MULTIPLIER_THIS_FRAME((float)g_settings.options["parked_vehicle_density"].get()); + VEHICLE::SET_VEHICLE_DENSITY_MULTIPLIER_THIS_FRAME((float)g_settings.options["vehicle_density"].get()); + }QUEUE_JOB_END_CLAUSE + } + } } \ No newline at end of file diff --git a/BigBaseV2/src/features/reveal_players.cpp b/BigBaseV2/src/features/looped/reveal_players.cpp similarity index 96% rename from BigBaseV2/src/features/reveal_players.cpp rename to BigBaseV2/src/features/looped/reveal_players.cpp index 128ff579..6f06f258 100644 --- a/BigBaseV2/src/features/reveal_players.cpp +++ b/BigBaseV2/src/features/looped/reveal_players.cpp @@ -1,14 +1,14 @@ -#include "features.hpp" -#include "script_global.hpp" - -namespace big -{ - void features::reveal_players() - { - if (g_settings.options["reveal_players"].get()) - { - *script_global(2425869).at(1 + (g_playerId * 443)).at(207).as() = 1; - *script_global(2440049).at(71).as() = NETWORK::GET_NETWORK_TIME() + 999; - } - } +#include "features.hpp" +#include "script_global.hpp" + +namespace big +{ + void features::reveal_players() + { + if (g_settings.options["reveal_players"].get()) + { + *script_global(2425869).at(1 + (g_playerId * 443)).at(207).as() = 1; + *script_global(2440049).at(71).as() = NETWORK::GET_NETWORK_TIME() + 999; + } + } } \ No newline at end of file diff --git a/BigBaseV2/src/features/speedo_meter.cpp b/BigBaseV2/src/features/looped/speedo_meter.cpp similarity index 96% rename from BigBaseV2/src/features/speedo_meter.cpp rename to BigBaseV2/src/features/looped/speedo_meter.cpp index 2b1036a2..89891cfb 100644 --- a/BigBaseV2/src/features/speedo_meter.cpp +++ b/BigBaseV2/src/features/looped/speedo_meter.cpp @@ -1,48 +1,48 @@ -#include "features.hpp" - -namespace big -{ - void features::speedo_meter() - { - static const float x = .9f; - static const float y = .72f; - - int64_t speedo_type = g_settings.options["speedo_type"].get(); - - if (speedo_type == 0 || HUD::IS_PAUSE_MENU_ACTIVE()) return; - - Vehicle veh = PED::GET_VEHICLE_PED_IS_IN(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(g_playerId), false); - - if (veh == 0) return; - - char speed_type[16], speed[32]; - float veh_speed = ENTITY::GET_ENTITY_SPEED(veh); - switch (speedo_type) - { - case 1: - veh_speed *= 3.6; - strcpy(speed_type, "kph"); - break; - case 2: - veh_speed *= 2.2369; - strcpy(speed_type, "mph"); - break; - } - - sprintf(speed, "%d", (int)veh_speed); - - HUD::SET_TEXT_FONT(2); - HUD::SET_TEXT_SCALE(.9f, .9f); - HUD::SET_TEXT_OUTLINE(); - HUD::BEGIN_TEXT_COMMAND_DISPLAY_TEXT("STRING"); - HUD::ADD_TEXT_COMPONENT_SUBSTRING_PLAYER_NAME(speed); - HUD::END_TEXT_COMMAND_DISPLAY_TEXT(x, y + .04f, 1); - - HUD::SET_TEXT_FONT(2); - HUD::SET_TEXT_SCALE(.91f, .91f); - HUD::SET_TEXT_OUTLINE(); - HUD::BEGIN_TEXT_COMMAND_DISPLAY_TEXT("STRING"); - HUD::ADD_TEXT_COMPONENT_SUBSTRING_PLAYER_NAME(speed_type); - HUD::END_TEXT_COMMAND_DISPLAY_TEXT(x, y, 1); - } +#include "features.hpp" + +namespace big +{ + void features::speedo_meter() + { + static const float x = .9f; + static const float y = .72f; + + int64_t speedo_type = g_settings.options["speedo_type"].get(); + + if (speedo_type == 0 || HUD::IS_PAUSE_MENU_ACTIVE()) return; + + Vehicle veh = PED::GET_VEHICLE_PED_IS_IN(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(g_playerId), false); + + if (veh == 0) return; + + char speed_type[16], speed[32]; + float veh_speed = ENTITY::GET_ENTITY_SPEED(veh); + switch (speedo_type) + { + case 1: + veh_speed *= 3.6; + strcpy(speed_type, "kph"); + break; + case 2: + veh_speed *= 2.2369; + strcpy(speed_type, "mph"); + break; + } + + sprintf(speed, "%d", (int)veh_speed); + + HUD::SET_TEXT_FONT(2); + HUD::SET_TEXT_SCALE(.9f, .9f); + HUD::SET_TEXT_OUTLINE(); + HUD::BEGIN_TEXT_COMMAND_DISPLAY_TEXT("STRING"); + HUD::ADD_TEXT_COMPONENT_SUBSTRING_PLAYER_NAME(speed); + HUD::END_TEXT_COMMAND_DISPLAY_TEXT(x, y + .04f, 1); + + HUD::SET_TEXT_FONT(2); + HUD::SET_TEXT_SCALE(.91f, .91f); + HUD::SET_TEXT_OUTLINE(); + HUD::BEGIN_TEXT_COMMAND_DISPLAY_TEXT("STRING"); + HUD::ADD_TEXT_COMPONENT_SUBSTRING_PLAYER_NAME(speed_type); + HUD::END_TEXT_COMMAND_DISPLAY_TEXT(x, y, 1); + } } \ No newline at end of file diff --git a/BigBaseV2/src/features/spoof_rank.cpp b/BigBaseV2/src/features/looped/spoof_rank.cpp similarity index 95% rename from BigBaseV2/src/features/spoof_rank.cpp rename to BigBaseV2/src/features/looped/spoof_rank.cpp index 6a310520..1888bc3e 100644 --- a/BigBaseV2/src/features/spoof_rank.cpp +++ b/BigBaseV2/src/features/looped/spoof_rank.cpp @@ -1,18 +1,18 @@ -#include "features.hpp" -#include "script_global.hpp" - -namespace big -{ - void features::spoof_rank() - { - bool bSpoofRank = g_settings.options["spoof_rank"].get(); - - if (bSpoofRank) - { - QUEUE_JOB_BEGIN_CLAUSE() - { - features::functions::spoof_rank(g_settings.options["rank"].get()); - }QUEUE_JOB_END_CLAUSE - } - } +#include "features.hpp" +#include "script_global.hpp" + +namespace big +{ + void features::spoof_rank() + { + bool bSpoofRank = g_settings.options["spoof_rank"].get(); + + if (bSpoofRank) + { + QUEUE_JOB_BEGIN_CLAUSE() + { + features::functions::spoof_rank(g_settings.options["rank"].get()); + }QUEUE_JOB_END_CLAUSE + } + } } \ No newline at end of file diff --git a/BigBaseV2/src/features/sticky_tyres.cpp b/BigBaseV2/src/features/looped/sticky_tyres.cpp similarity index 95% rename from BigBaseV2/src/features/sticky_tyres.cpp rename to BigBaseV2/src/features/looped/sticky_tyres.cpp index d9e7ad3a..7a3703e7 100644 --- a/BigBaseV2/src/features/sticky_tyres.cpp +++ b/BigBaseV2/src/features/looped/sticky_tyres.cpp @@ -1,28 +1,28 @@ -#include "features.hpp" - -namespace big -{ - void features::sticky_tyres() - { - if (g_settings.options["sticky_tyres"].get()) - { - QUEUE_JOB_BEGIN_CLAUSE() - { - - Vehicle veh = PED::GET_VEHICLE_PED_IS_IN(PLAYER::PLAYER_PED_ID(), false); - - if (veh) - { - while (!NETWORK::NETWORK_HAS_CONTROL_OF_ENTITY(veh)) - { - NETWORK::NETWORK_REQUEST_CONTROL_OF_ENTITY(veh); - - script::get_current()->yield(); - } - - VEHICLE::SET_VEHICLE_ON_GROUND_PROPERLY(veh, 5.f); - } - }QUEUE_JOB_END_CLAUSE - } - } +#include "features.hpp" + +namespace big +{ + void features::sticky_tyres() + { + if (g_settings.options["sticky_tyres"].get()) + { + QUEUE_JOB_BEGIN_CLAUSE() + { + + Vehicle veh = PED::GET_VEHICLE_PED_IS_IN(PLAYER::PLAYER_PED_ID(), false); + + if (veh) + { + while (!NETWORK::NETWORK_HAS_CONTROL_OF_ENTITY(veh)) + { + NETWORK::NETWORK_REQUEST_CONTROL_OF_ENTITY(veh); + + script::get_current()->yield(); + } + + VEHICLE::SET_VEHICLE_ON_GROUND_PROPERLY(veh, 5.f); + } + }QUEUE_JOB_END_CLAUSE + } + } } \ No newline at end of file diff --git a/BigBaseV2/src/features/super_sprint.cpp b/BigBaseV2/src/features/looped/super_sprint.cpp similarity index 96% rename from BigBaseV2/src/features/super_sprint.cpp rename to BigBaseV2/src/features/looped/super_sprint.cpp index 4ebd8447..3fb892cc 100644 --- a/BigBaseV2/src/features/super_sprint.cpp +++ b/BigBaseV2/src/features/looped/super_sprint.cpp @@ -1,37 +1,37 @@ -#include "features.hpp" - -namespace big -{ - static bool bLastSuperSprint = false; - - void features::super_sprint() - { - bool bSuperSprint = g_settings.options["super_sprint"].get(); - - if (bSuperSprint) - { - QUEUE_JOB_BEGIN_CLAUSE(= ) - { - if (PAD::IS_CONTROL_PRESSED(0, 32)) - { - Ped player = PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(g_playerId); - - Vector3 offset = ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(player, 0, 0.6, 0); - ENTITY::APPLY_FORCE_TO_ENTITY(player, 1, 0.0f, 1.3, 0, 0.0f, 0.0f, 0.0f, 0, 1, 1, 1, 0, 1); - - PLAYER::SET_PLAYER_SPRINT(g_playerId, 1); - PLAYER::SET_RUN_SPRINT_MULTIPLIER_FOR_PLAYER(g_playerId, 1.49); - } - }QUEUE_JOB_END_CLAUSE - } - else if (!bSuperSprint && bSuperSprint != bLastSuperSprint) - { - QUEUE_JOB_BEGIN_CLAUSE(= ) - { - PLAYER::SET_RUN_SPRINT_MULTIPLIER_FOR_PLAYER(g_playerId, 1.0); - }QUEUE_JOB_END_CLAUSE - } - - bLastSuperSprint = bSuperSprint; - } +#include "features.hpp" + +namespace big +{ + static bool bLastSuperSprint = false; + + void features::super_sprint() + { + bool bSuperSprint = g_settings.options["super_sprint"].get(); + + if (bSuperSprint) + { + QUEUE_JOB_BEGIN_CLAUSE(= ) + { + if (PAD::IS_CONTROL_PRESSED(0, 32)) + { + Ped player = PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(g_playerId); + + Vector3 offset = ENTITY::GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS(player, 0, 0.6, 0); + ENTITY::APPLY_FORCE_TO_ENTITY(player, 1, 0.0f, 1.3, 0, 0.0f, 0.0f, 0.0f, 0, 1, 1, 1, 0, 1); + + PLAYER::SET_PLAYER_SPRINT(g_playerId, 1); + PLAYER::SET_RUN_SPRINT_MULTIPLIER_FOR_PLAYER(g_playerId, 1.49); + } + }QUEUE_JOB_END_CLAUSE + } + else if (!bSuperSprint && bSuperSprint != bLastSuperSprint) + { + QUEUE_JOB_BEGIN_CLAUSE(= ) + { + PLAYER::SET_RUN_SPRINT_MULTIPLIER_FOR_PLAYER(g_playerId, 1.0); + }QUEUE_JOB_END_CLAUSE + } + + bLastSuperSprint = bSuperSprint; + } } \ No newline at end of file diff --git a/BigBaseV2/src/features/update_player_structs.cpp b/BigBaseV2/src/features/looped/update_player_structs.cpp similarity index 96% rename from BigBaseV2/src/features/update_player_structs.cpp rename to BigBaseV2/src/features/looped/update_player_structs.cpp index 9b7ff6df..0600dac0 100644 --- a/BigBaseV2/src/features/update_player_structs.cpp +++ b/BigBaseV2/src/features/looped/update_player_structs.cpp @@ -1,35 +1,35 @@ -#include "features.hpp" - -namespace big -{ - void features::update_player_structs() - { - QUEUE_JOB_BEGIN_CLAUSE(= ) - { - for (UINT16 i = 0; i < 32; i++) - { - if (NETWORK::NETWORK_IS_PLAYER_CONNECTED(i)) - { - if (!g_players[i].is_online) features::join_message((Player)i); - - g_players[i].is_online = true; - - int iNetworkHandle[26]; - NETWORK::NETWORK_HANDLE_FROM_PLAYER(i, &iNetworkHandle[0], 13); - NETWORK::NETWORK_IS_HANDLE_VALID(&iNetworkHandle[0], 13) && NETWORK::NETWORK_IS_FRIEND(&iNetworkHandle[0]); - - g_players[i].is_friend = NETWORK::NETWORK_IS_HANDLE_VALID(iNetworkHandle, 13) && NETWORK::NETWORK_IS_FRIEND(iNetworkHandle); - - strcpy(g_players[i].name, PLAYER::GET_PLAYER_NAME(i)); - } - else - { - g_players[i].is_online = false; - g_players[i].is_friend = false; - } - - script::get_current()->yield(); - } - }QUEUE_JOB_END_CLAUSE - } +#include "features.hpp" + +namespace big +{ + void features::update_player_structs() + { + QUEUE_JOB_BEGIN_CLAUSE(= ) + { + for (UINT16 i = 0; i < 32; i++) + { + if (NETWORK::NETWORK_IS_PLAYER_CONNECTED(i)) + { + if (!g_players[i].is_online) features::join_message((Player)i); + + g_players[i].is_online = true; + + int iNetworkHandle[26]; + NETWORK::NETWORK_HANDLE_FROM_PLAYER(i, &iNetworkHandle[0], 13); + NETWORK::NETWORK_IS_HANDLE_VALID(&iNetworkHandle[0], 13) && NETWORK::NETWORK_IS_FRIEND(&iNetworkHandle[0]); + + g_players[i].is_friend = NETWORK::NETWORK_IS_HANDLE_VALID(iNetworkHandle, 13) && NETWORK::NETWORK_IS_FRIEND(iNetworkHandle); + + strcpy(g_players[i].name, PLAYER::GET_PLAYER_NAME(i)); + } + else + { + g_players[i].is_online = false; + g_players[i].is_friend = false; + } + + script::get_current()->yield(); + } + }QUEUE_JOB_END_CLAUSE + } } \ No newline at end of file diff --git a/BigBaseV2/src/features/update_screen_sizes.cpp b/BigBaseV2/src/features/looped/update_screen_sizes.cpp similarity index 94% rename from BigBaseV2/src/features/update_screen_sizes.cpp rename to BigBaseV2/src/features/looped/update_screen_sizes.cpp index 616d58fc..c374db3f 100644 --- a/BigBaseV2/src/features/update_screen_sizes.cpp +++ b/BigBaseV2/src/features/looped/update_screen_sizes.cpp @@ -1,12 +1,12 @@ -#include "features.hpp" - -namespace big -{ - void features::update_screen_sizes() - { - QUEUE_JOB_BEGIN_CLAUSE() - { - GRAPHICS::_GET_ACTIVE_SCREEN_RESOLUTION(&x, &y); - }QUEUE_JOB_END_CLAUSE - } +#include "features.hpp" + +namespace big +{ + void features::update_screen_sizes() + { + QUEUE_JOB_BEGIN_CLAUSE() + { + GRAPHICS::_GET_ACTIVE_SCREEN_RESOLUTION(&x, &y); + }QUEUE_JOB_END_CLAUSE + } } \ No newline at end of file