Change net event and const prefix

This commit is contained in:
Vortrex
2022-06-30 18:29:00 -05:00
parent dd3f027c1e
commit 2f7f3a1b00
51 changed files with 1124 additions and 1125 deletions

View File

@@ -1411,7 +1411,7 @@ function getPercentage(num, per) {
// ===========================================================================
function getMultiplayerMod() {
return (getGame() >= 10) ? VRR_MPMOD_MAFIAC : VRR_MPMOD_GTAC;
return (getGame() >= 10) ? AGRP_MPMOD_MAFIAC : AGRP_MPMOD_GTAC;
}
// ===========================================================================
@@ -1423,7 +1423,7 @@ function isSnowSupported(gameId) {
// ===========================================================================
function isGTAIV() {
return (getGame() == VRR_GAME_GTA_IV);
return (getGame() == AGRP_GAME_GTA_IV);
}
// ===========================================================================
@@ -1758,7 +1758,7 @@ function getPosInFrontOfPos(pos, angle, distance) {
let y = pos.y;
let z = pos.z;
if (getGame() != VRR_GAME_MAFIA_ONE) {
if (getGame() != AGRP_GAME_MAFIA_ONE) {
x = (pos.x + ((Math.cos(angle + (Math.PI / 2))) * distance));
y = (pos.y + ((Math.sin(angle + (Math.PI / 2))) * distance));
} else {
@@ -1782,7 +1782,7 @@ function getPosBehindPos(pos, angle, distance) {
let y = pos.y;
let z = pos.z;
if (getGame() < VRR_GAME_MAFIA_ONE) {
if (getGame() < AGRP_GAME_MAFIA_ONE) {
y = (pos.y + ((Math.sin(angle - (Math.PI / 2))) * distance));
} else {
angle = radToDeg(angle);
@@ -2286,7 +2286,7 @@ function ArrayBufferToString(buffer) {
// ===========================================================================
function getElementTypeName(typeId) {
if (getGame() == VRR_GAME_MAFIA_ONE) {
if (getGame() == AGRP_GAME_MAFIA_ONE) {
switch (typeId) {
case ELEMENT_VEHICLE:
return "Vehicle";