refactor(SuperSprint): Reverted to old supersprint

This commit is contained in:
Yimura 2021-01-14 22:14:29 +01:00
parent c52806d4bb
commit 46cf3a87c2
No known key found for this signature in database
GPG Key ID: 3D8FF4397E768682

View File

@ -13,15 +13,6 @@ namespace big
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)
{
float height = ENTITY::GET_ENTITY_HEIGHT_ABOVE_GROUND(player);
@ -57,7 +48,7 @@ namespace big
else if (!bSuperSprint && bSuperSprint != bLastSuperSprint)
{
PLAYER::SET_RUN_SPRINT_MULTIPLIER_FOR_PLAYER(g_playerId, 1.0);
}*/
}
bLastSuperSprint = bSuperSprint;
}