Hey guys, I just thought I would post this for those who are also making mods of ETH32 or what ever. What this does for example, if you are on a 2 killing spree(2 kills in a row in a short amount of time) it will draw a message to your screen for a few seconds then disappears: "~>Double Kill<~".
In the main header/eth32.
After that you should go to EV_Obituary
Then you should make your function with the text commands ect.
I hope this will help someone.
Credits
Marcus
uNhoL
www.aimbots.net
In the main header/eth32.
- Code:
static int lasttime;
After that you should go to EV_Obituary
- Code:
if (attacker == eth32.cg.clientNum) {
lasttime = eth32.cg.time;
}
Then you should make your function with the text commands ect.
- Code:
void CEngine::killingSpreeText()
{
float scaleX = eth32.cg.screenXScale;
float scaleY = eth32.cg.screenYScale;
float tx = 320*scaleX; // Text X position
float ty = 480*scaleY; // Text Y position
float size = 0.28f*scaleX; // Text scale
int seconds = 300;
//if (eth32.settings.killingSpreeText)
if (eth32.cg.time - lasttime < (seconds*3)) {
switch(eth32.cg.killSpreeCount)
{
case 2:
{
Draw.TextCenter(tx, ty*0.30, size, "^5~>^7Double Kill^5<~", colorWhite, qfalse, qtrue, ð32.cg.media.fontArial, true);
}
break;
case 3:
{
Draw.TextCenter(tx, ty*0.30, size, "^5~>^7Triple Kill^5<~", colorWhite, qfalse, qtrue, ð32.cg.media.fontArial, true);
}
break;
case 4:
{
Draw.TextCenter(tx, ty*0.30, size, "^5~>^7Multi Kill^5<~", colorWhite, qfalse, qtrue, ð32.cg.media.fontArial, true);
}
break;
case 5:
{
Draw.TextCenter(tx, ty*0.30, size, "^5~>^7Mega Kill^5<~", colorWhite, qfalse, qtrue, ð32.cg.media.fontArial, true);
}
break;
case 6:
{
Draw.TextCenter(tx, ty*0.30, size, "^5~>^7Ultra Kill^5<~", colorWhite, qfalse, qtrue, ð32.cg.media.fontArial, true);
}
break;
case 7:
{
Draw.TextCenter(tx, ty*0.30, size, "^5~>^7Monster Kill^5<~", colorWhite, qfalse, qtrue, ð32.cg.media.fontArial, true);
}
break;
}
}
}
I hope this will help someone.
Credits
Marcus
uNhoL
www.aimbots.net