Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Multikill
#1
hi guys i have a problem, how to make a hit in the head with highlights "headshot" + cardicon_hedshot! Help please guys for 2 weeks myself racking my head))) (Maybe Im sorry Inglish Google translate if something it's incomprehensible)
doSplashMulti()
{
self notify("beginbountyH");
self endon("beginbountyH");
self endon("disconnect");
self endon("death");
self.ck = self.kills;
self.recentkills = 0;
for(;Wink
{
if(self.kills - self.ck > 0){
self.ck++;
self thread MultiKills();
}
wait .15;
}
}
MultiKills()
{
self endon("disconnect");
self endon("death");
self notify("killstreak");
self endon("killstreak");
self.recentkills++;
switch(self.recentkills)
{
case 1:
break;
case 2:
self thread TextPopup( "double kill!" );
break;
case 3:
self thread TextPopup( "riple kill!" );
break;
case 4:
self thread TextPopup( "multikill!" );
break;
case 5:
self thread TextPopup( "Monster!" );
break;
case 6:
self thread TextPopup( "Unstoppable!" );
break;
case 7:
self thread TextPopup( "Holy shit!" );
break;
case 8:
self thread TextPopup( "Wickedsick!" );
break;
case 9:
self thread TextPopup( "Motherfucker!" );
break;
case 10:
self thread TextPopup( "erminator!" );
break;
case 11:
self thread TextPopup( "rampage!" );
break;
default:
self thread TextPopup( "you are not Human!" );
break;
case "HEAD_SHOT_MOD":
self.modifiers["headshot"] = true;
self thread maps\mp\gametypes\_hud_message::SplashNotifyDelayed( "headshot", maps\mp\gametypes\_rank::getScoreInfoValue( "headshot" ) );
break;
}
wait 5;
self.recentkills = 0;
}
If you notice I was trying to do myself but it did not have a server that runs okay but the "headshot" is not displayed:
case "HEAD_SHOT_MOD":
self.modifiers["headshot"] = true;
self thread maps\mp\gametypes\_hud_message::SplashNotifyDelayed( "headshot", maps\mp\gametypes\_rank::getScoreInfoValue( "headshot" ) );

#2
As I see, your code is wrong...

Could you give me _damage.gsc? Or just add me in Steam, since I know russian I can help you.
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click

#3
(10-22-2013, 14:27)SailorMoon Wrote: As I see, your code is wrong...

Could you give me _damage.gsc? Or just add me in Steam, since I know russian I can help you.
Code is correct but I wanted to make at the head Killen highlights the "Headshot" and before the words below or cardicon_headshot (Google translete) my damage.gsc
Rus original: "Headshot" cardicon_headshot damage.gsc
my skype roman23197 steam_id_click Skype, but it's better I often sit there

#4
I havent done anything for a long time, I have found this on _hud_message.gsc after a quick look, it contains a iconName.

Code:
oldNotifyMessage( titleText, notifyText, iconName, glowColor, sound, duration )

#5
(10-22-2013, 15:01)Yamato Wrote: I havent done anything for a long time, I have found this on _hud_message.gsc after a quick look, it contains a iconName.

Code:
oldNotifyMessage( titleText, notifyText, iconName, glowColor, sound, duration )
[Image: 3558921.jpg]
how do I do this?

#6
You can put better headshot notify.
Try this: http://pastebin.com/A8E3fEH0 (only headshot thingy)

.. also the icon in kill feed is just replaced texture, isn't it?
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click

#7
(10-22-2013, 20:10)SailorMoon Wrote: You can put better headshot notify.
Try this: http://pastebin.com/A8E3fEH0 (only headshot thingy)

.. also the icon in kill feed is just replaced texture, isn't it?
and how do I add it to the script "Multikill"??

#8
Add to _rank.gsc
Code:
IconPopup( icon, color, alpha, glow, glowalpha )
{
    self endon( "disconnect" );
    wait ( 0.05 );
    self.IconPopup destroy();
    self notify( "IconPopup" );
    self endon( "IconPopup" );
    self.IconPopup = newClientHudElem( self );
    self.IconPopup.horzAlign = "center";
    self.IconPopup.vertAlign = "middle";
    self.IconPopup.alignX = "center";
    self.IconPopup.alignY = "middle";
    self.IconPopup.x = 70;
    self.IconPopup.y = -15;
    self.IconPopup.color = color;
    self.IconPopup setShader(icon, 25, 25);
    self.IconPopup.alpha = alpha;
    self.IconPopup.glowColor = glow;
    self.IconPopup.glowAlpha = glowalpha;
    wait 1;
    self.IconPopup fadeOverTime( 0.75 );
    self.IconPopup.alpha = 0;
}
init()
Code:
    PrecacheShader( "cardicon_headshot" );
And giveRankXP( type, value )
Code:
    if(type == "headshot"){
        self thread IconPopup("cardicon_headshot", (1,1,1), 1);
        self thread TextPopup("Headshot!", (1,1,0.5), 1);
    }
[Image: 8f1b087716ad.png]

#9
(10-27-2013, 07:24)Snake Wrote: Add to _rank.gsc
Code:
IconPopup( icon, color, alpha, glow, glowalpha )
{
    self endon( "disconnect" );
    wait ( 0.05 );
    self.IconPopup destroy();
    self notify( "IconPopup" );
    self endon( "IconPopup" );
    self.IconPopup = newClientHudElem( self );
    self.IconPopup.horzAlign = "center";
    self.IconPopup.vertAlign = "middle";
    self.IconPopup.alignX = "center";
    self.IconPopup.alignY = "middle";
    self.IconPopup.x = 70;
    self.IconPopup.y = -15;
    self.IconPopup.color = color;
    self.IconPopup setShader(icon, 25, 25);
    self.IconPopup.alpha = alpha;
    self.IconPopup.glowColor = glow;
    self.IconPopup.glowAlpha = glowalpha;
    wait 1;
    self.IconPopup fadeOverTime( 0.75 );
    self.IconPopup.alpha = 0;
}
init()
Code:
    PrecacheShader( "cardicon_headshot" );
And giveRankXP( type, value )
Code:
    if(type == "headshot"){
        self thread IconPopup("cardicon_headshot", (1,1,1), 1);
        self thread TextPopup("Headshot!", (1,1,0.5), 1);
    }
[Image: 8f1b087716ad.png]
THANKS YOU Snake, You are Best!!! and Thanks who me Help all !! Post is Closed!!!



Possibly Related Threads…
Thread Author Replies Views Last Post
  Help How to detect a multikill. Cyborgking 1 2,191 07-10-2011, 17:22
Last Post: Nekochan

Forum Jump:


Users browsing this thread:
2 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.