It's very easy to do, where you only need m_hMyWeapons with the first element, which represent the medigun.
Notice: the netvar of m_flChargeLevel is 0x0B94.
Code:
if (__pBaseEntity.GetClass() == TF2_Medic)
{
gDrawManager.DrawString( false, vScreen.x, vScreen.y, dwGetTeamColor,"%.0f%% Uber",*MakePtr(float*,g_pEntList->GetClientEntityFromHandle(*MakePtr(int*,pBaseEntity,gPlayerVars.m_hMyWeapons + 4)),gPlayerVars.m_flChargeLevel) * 100 );
vScreen.y += gDrawManager.GetESPHeight( );
}
Aucun commentaire:
Enregistrer un commentaire