Add workaround for Mafia 1 on pos above/below utils

This commit is contained in:
Vortrex
2022-09-20 02:23:33 -05:00
parent e27423e72b
commit 237f3fdc40

View File

@@ -2076,12 +2076,18 @@ function getPosBehindPos(pos, angle, distance) {
// ===========================================================================
function getPosAbovePos(pos, distance) {
if (getGame() == AGRP_GAME_MAFIA_ONE) {
return toVector3(pos.x, pos.y + distance, pos.z);
}
return toVector3(pos.x, pos.y, pos.z + distance);
}
// ===========================================================================
function getPosBelowPos(pos, distance) {
if (getGame() == AGRP_GAME_MAFIA_ONE) {
return toVector3(pos.x, pos.y - distance, pos.z);
}
return toVector3(pos.x, pos.y, pos.z - distance);
}