mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-01-03 16:13:36 +08:00
refactor(GravityGun): Changed variable names
This commit is contained in:
parent
282d78e37b
commit
8bd1f863c0
@ -87,13 +87,13 @@ namespace big
|
|||||||
// float roll = rot.y;
|
// float roll = rot.y;
|
||||||
float yaw = functions::deg_to_rad(rot.z + 90); // horizontal
|
float yaw = functions::deg_to_rad(rot.z + 90); // horizontal
|
||||||
|
|
||||||
Vector3 zRot;
|
Vector3 velocity;
|
||||||
|
|
||||||
zRot.x = location.x + (dist * cos(pitch) * cos(yaw));
|
velocity.x = location.x + (dist * cos(pitch) * cos(yaw)) - other.x;
|
||||||
zRot.y = location.y + (dist * sin(yaw) * cos(pitch));
|
velocity.y = location.y + (dist * sin(yaw) * cos(pitch)) - other.y;
|
||||||
zRot.z = location.z + (dist * sin(pitch));
|
velocity.z = location.z + (dist * sin(pitch)) - other.z;
|
||||||
|
|
||||||
ENTITY::SET_ENTITY_VELOCITY(entity, (zRot.x - other.x) * multiplier, (zRot.y - other.y) * multiplier, (zRot.z - other.z) * multiplier);
|
ENTITY::SET_ENTITY_VELOCITY(entity, velocity.x * multiplier, velocity.y * multiplier, velocity.z * multiplier);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (entity != 0)
|
else if (entity != 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user