Would you like to react to this message? Create an account in a few clicks or log in to continue.

You are not connected. Please login or register

[Snippet] ETH32 Client Killing Spree Text

3 posters

Go down  Message [Page 1 of 1]

Marcus



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.
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

Boo


Admin

Yea thats another way to do it, great job Smile

Also if you want it to look even better you should add the comic font (Register the following font: Syscall.R_RegisterFont("ariblk", 27, ð32.cg.media.fontComic)

This font does look way better :>

https://xfusion.darkbb.com

Free



fontComic look nice Smile

Sponsored content



Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum