- Joined
- Oct 3, 2011
- Messages
- 832
- Reaction score
- 155
Hi, here's a little contribution from me because I'm not petty and I won't be, so let's start!
The bullet bar is not included but according to what I have been told that this bullet bar is published somewhere who knows where but it is for the current and maximum amount of bullets that it prints.
Like this image example here.
Note: I already had this idea raised a while ago because I saw it in another video game.
search these in ZCombatInterface.cpp
replace to
I forgot to tell you that declare nMaxCurrBullet in ZCharacter for "struct ZCharacterStatus"
example
If you have a better idea do not hesitate to share it in your comment. (It's not mandatory)
Credits: Jorklenis2 (Me)
The bullet bar is not included but according to what I have been told that this bullet bar is published somewhere who knows where but it is for the current and maximum amount of bullets that it prints.
Like this image example here.
Note: I already had this idea raised a while ago because I saw it in another video game.
search these in ZCombatInterface.cpp
PHP:
MMatchCharItemParts nParts = pCharacter->GetItems()->GetSelectedWeaponParts();
if (nParts != MMCIP_MELEE && nParts < MMCIP_END)
{
sprintf(buffer, "%d / %d", m_nBulletCurrMagazine, m_nBulletSpare);
TextRelative(pDC, 720.f / 800.f, 585.f / 600.f, buffer);
}
replace to
PHP:
MMatchCharItemParts nParts = pCharacter->GetItems()->GetSelectedWeaponParts();
if (nParts != MMCIP_MELEE && nParts < MMCIP_END)
{
float ColorBullet = (float)m_nBulletCurrMagazine / (float)pCharacter->GetStatus().Ref().nMaxCurrBullet * 100;
float ColorBullet2 = 0.10 * m_nBulletCurrMagazine / pCharacter->GetStatus().Ref().nMaxCurrBullet;
if (ColorBullet == 60 || ColorBullet == 55 || ColorBullet >= 45)
pDC->SetColor(MCOLOR(0xFFFFFFFF));
else if (ColorBullet >= 35)
pDC->SetColor(MCOLOR(0xFFFFF000));
else if (ColorBullet >= 25)
pDC->SetColor(MCOLOR(0xFFFFF000));
else if (ColorBullet >= 15)
pDC->SetColor(MCOLOR(0xFFFF0000));
else if (ColorBullet >= 5)
pDC->SetColor(MCOLOR(0xFFFF0000));
else if (ColorBullet >= 2)
pDC->SetColor(MCOLOR(0xFFFF0000));
else if (ColorBullet >= 0)
pDC->SetColor(MCOLOR(0xFFFF0000));
else
pDC->SetColor(MCOLOR(0xFFFFFFFF));
pDC->FillRectangle((MGetWorkspaceWidth()), MGetWorkspaceHeight(), ColorBullet2 * MGetWorkspaceWidth(), 0);
sprintf(buffer, "%d / %d", m_nBulletCurrMagazine, m_nBulletSpare);
TextRelative(pDC, 720.f / 800.f, 585.f / 600.f, buffer);
}
I forgot to tell you that declare nMaxCurrBullet in ZCharacter for "struct ZCharacterStatus"
example
PHP:
int nMaxCurrBullet
PHP:
nMaxCurrBullet(0),
Credits: Jorklenis2 (Me)
Last edited: