Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Dutchman101 committed Jun 22, 2024
2 parents e89fa02 + 530212f commit 16d23b8
Showing 1 changed file with 0 additions and 37 deletions.
37 changes: 0 additions & 37 deletions Client/multiplayer_sa/CMultiplayerSA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,6 @@ bool bHideRadar;
bool bHasProcessedScript;
float fX, fY, fZ;
DWORD RoadSignFixTemp;
DWORD dwEAEG = 0;
bool m_bExplosionsDisabled;
float fGlobalGravity = 0.008f;
float fLocalPlayerGravity = 0.008f;
Expand Down Expand Up @@ -3405,31 +3404,6 @@ static void RestoreAlphaValues()
/**
** Vehicles
**/
static RpAtomic* CVehicle_EAEG(RpAtomic* pAtomic, void*)
{
RwFrame* pFrame = ((RwFrame*)(((RwObject*)(pAtomic))->parent));
if (pFrame)
{
switch (pFrame->szName[0])
{
case '\0':
case 'h':
break;
default:
DWORD dwFunc = (DWORD)0x533290;
DWORD dwAtomic = (DWORD)pAtomic;
_asm
{
push 0
push dwAtomic
call dwFunc
add esp, 0x8
}
}
}

return pAtomic;
}

static void SetVehicleAlpha()
{
Expand All @@ -3438,15 +3412,6 @@ static void SetVehicleAlpha()

if (ucAlpha < 255)
GetAlphaAndSetNewValues(ucAlpha);
else if (dwEAEG && pInterface->m_pVehicle->GetModelIndex() == 0x20A)
{
bEntityHasAlpha = true;
uiAlphaIdx = 0;
SetEntityAlphaHooked(dwAlphaEntity, (DWORD)HOOK_GetAlphaValues, 0);
MemPutFast<DWORD>(0x5332D6, (DWORD)CVehicle_EAEG);
SetEntityAlphaHooked(dwAlphaEntity, (DWORD)HOOK_SetAlphaValues, 0);
MemPutFast<DWORD>(0x5332D6, 0x533290);
}
else
bEntityHasAlpha = false;
}
Expand Down Expand Up @@ -3958,8 +3923,6 @@ void CMultiplayerSA::SetLocalStatValue(unsigned short usStat, float fValue)
localStatsData.StatTypesFloat[usStat] = fValue;
else if (usStat >= STATS_OFFSET && usStat < MAX_INT_FLOAT_STATS)
localStatsData.StatTypesInt[usStat - STATS_OFFSET] = (int)fValue;
else if (usStat == 0x2329)
dwEAEG = !dwEAEG;
}

float CMultiplayerSA::GetLocalStatValue(unsigned short usStat)
Expand Down

0 comments on commit 16d23b8

Please sign in to comment.