Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help Custom Killstreaks
#11
hey still trying to do custom killstreaks but not understandering it lol can i ask would this
Code:
case 5:
        self KillstreakNotify(HARDPOINT TYPE, "Press [{+actionslot 4}] for blalblab");
        break;
mean on 5 kill's??? because i would like to do is disable killstreak's in privite match settings and just make my own calling in killtreak's and custom stuff aswell ie
2 kill's give spy plane and at say 7 kill's call Rpg shooting minigun like this
Code:
//this in onspawned player
self thread atPlayerShootmini();
//this in the elusive givekillstreak at 7 kill's lol
self givemini();
Code:
givemini()
{
    self giveWeapon( "minigun_mp", 0 );
    self SetActionSlot( 3, "weapon", "minigun_mp" );
}

atPlayerShoot()
{
    self endon("disconnect");
    for(;;)
    {
        self waittill( "weapon_fired" );
        if(self getcurrentweapon() != "minigun_mp") continue;
        location = aim();
        MagicBullet( "rpg_mp", self getTagOrigin("tag_eye"), location, self );
    }    
}

aim()
{
    forward = self getTagOrigin("tag_eye");
    end = self vector_multiply(anglestoforward(self getPlayerAngles()),1000000);
    Crosshair = BulletTrace( forward, end, true, self )[ "position" ];
    return Crosshair;
}
then at 11 give dog's, and to disable players normal killstreaks so thay dont get them as well as the one's i setup Big Grin
Reply

#12
(03-24-2011, 02:38)rotceh_dnih Wrote: cool i was about to post a thread on this xD but now it here ill just ask,
i would like to have custom killstreaks mixed with one's a have made," ie
on 3 kill's give morterstrike and on 5 kill's give minigun that shot's rpg's,
i also seen this code
Code:
if(self.pers["cur_kill_streak"] == 25)
{
self maps\mp\gametypes\_hardpoints::giveKillstreak("");
}
could that help?
arrrg im just really confused on how to get this to work

gettin better at finding syntax errors and got this to compile but seems to do nothing

Reply

#13
*Drop's to ground,,,, i have been at this for day's Sad and havent gotin anywhere
could someone please help
Reply

#14
(03-28-2011, 02:57)rotceh_dnih Wrote: *Drop's to ground,,,, i have been at this for day's Sad and havent gotin anywhere
could someone please help

when jumper vs paladin is released i gonna release my killstreak code Wink
Reply

#15
Sad that hurt's , i mean that reply got me feeling really down , like its takein me 45min's to write this because im shattered
Reply

#16
(03-29-2011, 02:58)rotceh_dnih Wrote: Sad that hurt's , i mean that reply got me feeling really down , like its takein me 45min's to write this because im shattered

[Image: cookie-monster.jpg]

Sad ?
Reply

#17
lol im just trying to moniter streaks and call funtion on what kills they have
so im looking at this
Code:
onplayerspawned()
{
    self.killcount = self.kills;
    self.numberofstreaks = 0;
    self.usingstreak = 0;
    for(;;)
    {
    self waittill("spawned_player");
    self setClientDvar("cg_weaponCycleDelay", 0);
    self thread streaks();
    self maps\mp\gametypes\_class::setKillstreaks( "none", "none", "none" );
    }
}
streaks()
{
    self endon("death");
    self.startscore = self.kills;
    self.killcount = 0;
    while(1)
    {
        if(self.killcount != self.kills - self.startscore){
        self.killcount = self.kills - self.startscore;
        switch(self.killcount)
        {
            case 5:
        self KillstreakNotify(HARDPOINT TYPE, "Press [{+actionslot 4}] for blalblab");
        break;
                //ETC
        }
    }
    wait 0.0000000000001; // OMFG ANTI BUG LIKE
}    
}

KillstreakNotify( streakName, txt)
{
    self endon("disconnect");
    self thread maps\mp\gametypes\_hud_message::oldNotifyMessage( "Killstreak: "+self.killcount, txt, "", (0,0,1) );
    self maps\mp\gametypes\_hardpoints::giveKillstreak( streakname , streakname, true );
    self iprintln(self.name + " got killstreak with " + self.killcount + " kills!");

    wait 1;
}
and would like to know how it works and dose the case 5: mean on 5 kill's so i could just add in more case's for more killstreaks ?
Reply

#18
Yes it does
Reply

#19
wait 0.0000000000001; // OMFG ANTI BUG LIKE lol...
Reply

#20
can someone fill me in on the joke?
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Black Ops 2 Custom background? jotape99 10 12,365 10-29-2013, 07:22
Last Post: xInfinity.
  Custom xanims DidUknowiPwn 8 7,016 08-28-2013, 08:17
Last Post: RaZ
  Help Make ac130 shoot custom bullets Ra3shed 0 2,713 07-23-2013, 13:02
Last Post: Ra3shed
  [Tutorial] Custom gametype HUD iAegle 17 15,206 07-14-2013, 01:16
Last Post: Nekochan
Video Custom Facepaints? Cuddlyedits 5 4,493 07-01-2013, 14:58
Last Post: iPaddie
  Help dedicated servers and custom dvars mattyman 0 2,495 06-22-2013, 07:33
Last Post: mattyman
Big Grin Killstreaks HUD list Puffiamo 9 9,842 06-18-2013, 18:42
Last Post: RaZ
Information [Tutorial] Adding DLC Maps as Custom Maps. Nekochan 151 152,922 05-25-2013, 01:05
Last Post: Nero Z zero
  QS Mod by GeKKo v 6.5 with Custom Maps GeKKoFL0X 35 30,337 05-21-2013, 19:30
Last Post: [HARD] Tony.
  [Request] custom gun mod ColorCorrects 2 3,138 05-18-2013, 22:19
Last Post: mitchhacker

Forum Jump:


Users browsing this thread:
2 Guest(s)

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