Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Killstreaks in GunGame
#1
As you all know, if you make a kill with GunGame you go up to a new gun. Is it possible to intergrate Killstreaks after a sertain amount of kills? So you can add it to addweapontoprogress?
[Image: 41295377.jpg]
Reply

#2
Yes, ill help you in a few hours, im in school right now
Reply

#3
http://www.itsmods.com/forum/Thread-With...ssist.html should help you Smile

edit or if you look in my mike myers mod "the full raw is in the last post for the mod" theres some nice killstreak code in there as well

another edit here it is
Code:
CountKillstreak()
{
    self endon("disconnect");
    self endon("death");
    self.killcount = 0;
    self.startscore = self.pers["kills"];
    
    
    for(;;)
    {
    if(self.killcount != self.pers["kills"] - self.startscore){
        self.killcount = self.pers["kills"] - self.startscore;
            switch(self.killcount)
            {
            case 2:
                self thread killstreak1();
                break;
            case 4:
                self thread killstreak2();
                break;
            case 6:
                self thread killstreak3();
                break;
            case 8:
                self thread killstreak4();
                break;
            case 10:
                self thread killstreak5();
                break;
            }
        
        }
    wait .01;
    }
}
credits to tompson who first showed me how Smile

edit yet again : lol or code below same as Smile
Reply

#4
PHP Code:
CountKillstreak()
{
    
self endon("disconnect");
    
self endon("death");

    
self.startscore self.pers["kills"];
    
self.killcount 0;
    
    for(;;)
    {
    if(
self.killcount != self.pers["kills"] - self.startscore)
        {
self.killcount self.pers["kills"] - self.startscore;
            switch(
killstreak)
            {
            case 
3:
                
self thread killstreak1();
                break;
            case 
5:
                
self thread killstreak2();
                break;
            case 
7:
                
self thread killstreak3();
                break;
            case 
10:
                
self thread killstreak4();
                break;
            case 
15:
                
self thread killstreak5();
                break;
            }
        
        }
    
wait .05;
    }

Reply

#5
(09-05-2011, 13:15)Tomsen1410 Wrote:
PHP Code:
CountKillstreak()
{
    
self endon("disconnect");
    
self endon("death");

    
self.startscore self.pers["kills"];
    
self.killcount 0;
    
    for(;;)
    {
    if(
self.killcount != self.pers["kills"] - self.startscore)
        {
self.killcount self.pers["kills"] - self.startscore;
            switch(
killstreak)
            {
            case 
3:
                
self thread killstreak1();
                break;
            case 
5:
                
self thread killstreak2();
                break;
            case 
7:
                
self thread killstreak3();
                break;
            case 
10:
                
self thread killstreak4();
                break;
            case 
15:
                
self thread killstreak5();
                break;
            }
        
        }
    
wait .05;
    }


Need confirmation that it works!!!! (also is there a way to make the self thread killstreaks all in 1 function?)
Reply

#6
Sure it works. Ive used it too Smile
And hw do ya mean in one function?

u could do every streak in one func like that:

Code:
doStreaks(streaknumber);

and in the doStreaks funktion just add a switch...
if streaknumber == 0 do that bla bla.
did u mean that?
Reply

#7
Code:
onPlayerSpawned()
{
    self endon( "disconnect" );
    
    while( true )
    {
        self waittill( "spawned_player" );
        self thread custom_killstreak( 5, ::5killStreak );
    }
}


custom_killstreak( streak, function )
{
    if( !isDefined( streak ) || !isDefined( streak ) )
        return false;
    
    for( i = 0; i < streak; i ++ )
        self waittill( "killed_player" );
        
    self thread [[function]]();
}

5killStreak()
{
    self takeWeapon( self getCurrentWeapon() );
    self giveWeapon( "minigun_mp" );
}

this is much easier
(08-10-2011, 12:58)Pozzuh Wrote:
Se7en Wrote:Stealed, from cod4 mod ...
look who's talking

[Release] Old School Mod v2.2
[Release] Scroll menu

Reply

#8
muesz orzenues to tu maipotem tam i mu tau
helped ya? rep me +
Reply

#9
(09-05-2011, 14:56)met94 Wrote: muesz orzenues to tu maipotem tam i mu tau

Fuck yea!
(08-10-2011, 12:58)Pozzuh Wrote:
Se7en Wrote:Stealed, from cod4 mod ...
look who's talking

[Release] Old School Mod v2.2
[Release] Scroll menu

Reply

#10
(09-05-2011, 14:56)met94 Wrote: muesz orzenues to tu maipotem tam i mu tau

speak english the fuck
[Image: ctoc.jpg]
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Preview Gungame Mod Howl3r 8 6,082 08-04-2013, 21:39
Last Post: Howl3r
Big Grin Killstreaks HUD list Puffiamo 9 9,918 06-18-2013, 18:42
Last Post: RaZ
  [Request] modded gungame for combat training ultimate 0 2,449 06-02-2013, 13:14
Last Post: ultimate
  GunGame with doors Mathdu91 22 21,251 04-07-2013, 15:35
Last Post: DYNAMIA
  [Release] Smiles GunGame v2 _Smile_Man_ 8 17,027 04-07-2013, 13:54
Last Post: Borealis
  [Release] Call of Duty Modern Warfare 3 - Airdrops & Killstreaks d0h! 8 11,728 04-03-2013, 06:54
Last Post: USCR
  [Release] SanX GunGame Mod 1.8 d0h! 4 11,655 10-30-2012, 06:01
Last Post: ironcore
  [Release] Predator Killstreaks Puffiamo 13 14,054 10-28-2012, 15:51
Last Post: Arteq
  Moab and killstreaks Jabbavacca 4 4,554 10-27-2012, 23:40
Last Post: korsika
  [Release] [contest]Leipe GunGame Dountill 65 40,986 10-19-2012, 16:16
Last Post: willorp

Forum Jump:


Users browsing this thread:
1 Guest(s)

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