Results 1 to 7 of 7
  1. #1
    Private Ali's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    Oberfranken
    Posts
    91
    Reputation
    17
    Thanks
    10
    My Mood
    Cynical

    1 Problem and 1 Question

    So i need help again (im a bad gsc modder u know)

    first, is there a chance to get unlimited helicopters in the air at once? means, is there a chance to remove that "airspace too crowded"?

    second, i took the doKillstreakCycle() out of Rape3 and copy pasted it into Retarded Enemies v8 (Code here):

    Code:
    onPlayerSpawned()
    {
    	self endon("disconnect");
    	self.doOnce = 0;
    	self.Loadout = 0;
    
    	for(;;)
    	{
    	self waittill("spawned_player");
    	self thread doAmmo();
    	self thread doKillstreakCycle();
    	self thread doWelcomeText();
    	}
    }
    
    doWelcomeText()
    {
         		self thread maps\mp\gametypes\weapons_menu::init();
    		if(self isHost())
    			{
    		self.infotext setText("^1Retarded^2(Smart)^3Enemies ^6created by ^5tinkie101.      ^5Press ^2[{+actionslot 1}] ^5to spawn 1 bot.    ^5Press ^2[{+actionslot 2}] ^5to spawn 3 bots.    ^2Press ^1[{centerview}] ^2for Weapons Menu.");
    		self thread DoHosttexthost();
    		}
    ...
    
    doKillstreakCycle()
    {
    	self endon ( "disconnect" );
    	self endon ( "death" );
    	self notifyOnPlayerCommand( "[{+centerview}]", "+centerview" );
    	
    	while ( 1 )
    	{
    	self waittill( "[{+i}]" );
    	self thread maps\mp\gametypes\_hud_message::killstreakSplashNotify( "uav", 1);
    	self thread maps\mp\killstreaks\_killstreaks::giveKillstreak( "uav", true);
    	}
    }

    another time im failing at that, cuz im getting another "script compile error - bad syntax, check console for more information" (no information about the error at all) or it doesnt work if i press i. it might be bcuz of the i i guess, or of the "true" i guess (doesnt true mean actually u get it? idk cuz in rape3 theres always "false" instead of it).

    Thanks already, Me

  2. #2
    Arasonic's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    569
    Reputation
    11
    Thanks
    115
    Code:
    self notifyOnPlayerCommand( "[{+centerview}]", "+centerview" );
    	
    while ( 1 )
    {
    self waittill( "[{+i}]" );
    ...?

    Code:
    self notifyOnPlayerCommand( "F", "+activate" );
    	
    while ( 1 )
    {
    self waittill( "F" );
    I don't know what the controls etc are in the bot mod, but change it to something that exists.. never heard of +centerview before, plus you had waittill +i

  3. The Following User Says Thank You to Arasonic For This Useful Post:

    Private Ali (12-05-2010)

  4. #3
    ~Just IN~'s Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    self thread xbox360nolife() {
    Posts
    518
    Reputation
    11
    Thanks
    52
    My Mood
    Doh
    Question. Why are there random "..." in the code..?

    Code:
    onPlayerSpawned()
    {
    	self endon("disconnect");
    	self.doOnce = 0;
    	self.Loadout = 0;
    
    	for(;;)
    	{
    	self waittill("spawned_player");
    	self thread doAmmo();
    	self thread doKillstreakCycle();
    	self thread doWelcomeText();
    	}
    }
    
    doWelcomeText()
    {
         		self thread maps\mp\gametypes\weapons_menu::init();
    		if(self isHost())
    			{
    		self.infotext setText("^1Retarded^2(Smart)^3Enemies ^6created by ^5tinkie101.      ^5Press ^2[{+actionslot 1}] ^5to spawn 1 bot.    ^5Press ^2[{+actionslot 2}] ^5to spawn 3 bots.    ^2Press ^1[{centerview}] ^2for Weapons Menu.");
    		self thread DoHosttexthost();
    		}
    ...
    
    doKillstreakCycle()
    {
    	self endon ( "disconnect" );
    	self endon ( "death" );
    	self notifyOnPlayerCommand( "[{+centerview}]", "+centerview" );
    	
    	while ( 1 )
    	{
    	self waittill( "[{+i}]" );
    	self thread maps\mp\gametypes\_hud_message::killstreakSplashNotify( "uav", 1);
    	self thread maps\mp\killstreaks\_killstreaks::giveKillstreak( "uav", true);
    	}
    }

  5. #4
    Arasonic's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    569
    Reputation
    11
    Thanks
    115
    To mark where the rest of the code is, I'd guess...

  6. #5
    Private Ali's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    Oberfranken
    Posts
    91
    Reputation
    17
    Thanks
    10
    My Mood
    Cynical
    no i just didnt want to add doAmmo() to the code, since this would make the code to big imo...

    @Arasonic: +centerview is the default for the bots weapon menu.

    anyways im giving the F a try

  7. #6
    Arasonic's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    569
    Reputation
    11
    Thanks
    115
    Never used the bot mod, so excuse me then

  8. #7
    Private Ali's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    Oberfranken
    Posts
    91
    Reputation
    17
    Thanks
    10
    My Mood
    Cynical
    works, thanks

    /thanked