refactor(SuperSprint): Reverted to old supersprint

This commit is contained in:
Yimura 2021-01-14 22:14:29 +01:00
parent 5fe4cbe0a0
commit 6f41ce2529

View File

@ -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;
} }