예제 #1
0
DWORD CIVWeapon::GetAmmoInClip()
{
	DWORD dwAmmoInClip = 0;

	if(m_pWeapon)
		XLivePBufferGetDWORD(m_pWeapon->m_ammoInClip, 0, &dwAmmoInClip);

	return dwAmmoInClip;
}
예제 #2
0
DWORD CIVWeapon::GetAmmoTotal()
{
	DWORD dwAmmoTotal = 0;

	if(m_pWeapon)
		XLivePBufferGetDWORD(m_pWeapon->m_ammoTotal, 0, &dwAmmoTotal);

	return dwAmmoTotal;
}
예제 #3
0
DWORD CPedWeaponSlot::GetAmmo()
{
	if(m_pPedWeaponSlot)
	{
		DWORD dwAmmo;
		XLivePBufferGetDWORD(m_pPedWeaponSlot->m_pAmmo, 0, &dwAmmo);
		return dwAmmo;
	}

	return 0;
}
예제 #4
0
int CIVPlayerInfo::GetDisplayScore()
{
	if(m_pPlayerInfo)
	{
		int iScore;
		XLivePBufferGetDWORD(m_pPlayerInfo->m_pDisplayScore, 0, (DWORD *)&iScore);
		return iScore;
	}

	return 0;
}
예제 #5
0
int CIVPlayerInfo::GetDisplayScore()
{
#ifdef EXT_LOG
	CLogFile::Printf(__FUNCSIG__);
#endif
	if(m_pPlayerInfo)
	{
		int iScore;
		XLivePBufferGetDWORD(m_pPlayerInfo->m_pDisplayScore, 0, (DWORD *)&iScore);
		return iScore;
	}

	return 0;
}