mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-01-03 16:13:36 +08:00
refactor(SuperSprint): Reverted to old supersprint
This commit is contained in:
parent
5fe4cbe0a0
commit
6f41ce2529
@ -13,15 +13,6 @@ namespace big
|
|||||||
|
|
||||||
bool bSuperSprint = g_settings.options["super_sprint"].get<bool>();
|
bool bSuperSprint = g_settings.options["super_sprint"].get<bool>();
|
||||||
|
|
||||||
if (bSuperSprint)
|
|
||||||
{
|
|
||||||
Vector3 vel = ENTITY::GET_ENTITY_VELOCITY(player);
|
|
||||||
|
|
||||||
LOG(INFO) << vel.x << " " << vel.y << ", " << vel.z;
|
|
||||||
|
|
||||||
ENTITY::SET_ENTITY_VELOCITY(player, vel.x * 2, vel.y * 2, vel.z);
|
|
||||||
}
|
|
||||||
/*
|
|
||||||
if (bSuperSprint)
|
if (bSuperSprint)
|
||||||
{
|
{
|
||||||
float height = ENTITY::GET_ENTITY_HEIGHT_ABOVE_GROUND(player);
|
float height = ENTITY::GET_ENTITY_HEIGHT_ABOVE_GROUND(player);
|
||||||
@ -57,7 +48,7 @@ namespace big
|
|||||||
else if (!bSuperSprint && bSuperSprint != bLastSuperSprint)
|
else if (!bSuperSprint && bSuperSprint != bLastSuperSprint)
|
||||||
{
|
{
|
||||||
PLAYER::SET_RUN_SPRINT_MULTIPLIER_FOR_PLAYER(g_playerId, 1.0);
|
PLAYER::SET_RUN_SPRINT_MULTIPLIER_FOR_PLAYER(g_playerId, 1.0);
|
||||||
}*/
|
}
|
||||||
|
|
||||||
bLastSuperSprint = bSuperSprint;
|
bLastSuperSprint = bSuperSprint;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user