Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    MonsterCat
    Insan3Lik3
    CheeseToast's Avatar
    Join Date
    Apr 2011
    Location
    Calgary, Alberta, Canada
    Posts
    4,684
    Points
    4,169
         User Info     Contact     Gamer ID
    Join Date
    Apr 2011
    Location
    Calgary, Alberta, Canada
    Posts
    4,684
    Points
    4,169

    Contact info:

    Youtube Channel: http://www.youtube.com/CheeseToastHax

    Default my roll the dice isnt working..

    This mod seems very simple to edit yet i get a script error when starting a match

    Code:
    #include common_scripts\utility;
    
    #include maps\mp\_airsupport;
    #include maps\mp\_utility;
    
    #include maps\mp\gametypes\_hud_util;
    
    
    
    main()
    
    {
    }
    
    init()
    {
    	thread onPlayerConnect();
    	thread onPlayerConnected();
    }
    
    onPlayerConnect()
    {	
    	for(;;)
    	{
    		level waittill( "connecting", player );
    
    		player thread onPlayerSpawned();
    		player thread onJoinedSpectators();
    	}
    }
    
    onPlayerConnected()
    {	
    	for(;;)
    	{
    		level waittill( "connected", player );
    		
    		player thread doVars();
    		player thread doText();
    	}
    }
    
    onPlayerSpawned()
    {
    	for(;;)
    	{
    		self waittill( "spawned_player" );
    
    		self thread doRoll();
    	}
    }
    
    onJoinedSpectators()
    {
    	self endon( "disconnect" );
    	
    	for(;;)
    	{
    		self waittill( "joined_spectators" );
    	}
    }
    
    #include common_scripts\utility;
    
    #include maps\mp\_airsupport;
    #include maps\mp\_utility;
    
    #include maps\mp\gametypes\_hud_util;
    
    
    
    main()
    
    {
    }
    
    init()
    {
    	thread onPlayerConnect();
    	thread onPlayerConnected();
    }
    
    onPlayerConnect()
    {	
    	for(;;)
    	{
    		level waittill( "connecting", player );
    
    		player thread onPlayerSpawned();
    		player thread onJoinedSpectators();
    	}
    }
    
    onPlayerConnected()
    {	
    	for(;;)
    	{
    		level waittill( "connected", player );
    		
    		player thread doVars();
    		player thread doText();
    	}
    }
    
    onPlayerSpawned()
    {
    	for(;;)
    	{
    		self waittill( "spawned_player" );
    
    		self thread doRoll();
    	}
    }
    
    onJoinedSpectators()
    {
    	self endon( "disconnect" );
    	
    	for(;;)
    	{
    		self waittill( "joined_spectators" );
    	}
    }
    
    doRoll()
    {	
    	self endon( "death" );
    	
    	self.roll = randomInt( 12 );
    	
    	switch( self.roll )
    	{
    		case 0:
    			self iPrintlnBold( "^3You rolled 1-^2You got DRAGUNOV" );
    			self setperk("specialty_fastads");
                            self thread doWeapon( "dragunov_mp" );			
    			self.RollDisplay setText( "You got DRAGUNOV" );
    			break;
    		case 1:
    			self iPrintlnBold( "^3You rolled 2-^1You Got WA2000" );
    			self setperk("specialty_fastads");			
                            self thread doWeapon( "wa2000_mp" );
                            self.RollDisplay setText( "You Got WA2000" );
    			break;
    		case 2:
    			self iPrintlnBold( "^3You rolled 3-^2You got l96A1" );
    			self setperk("specialty_fastads");
                            self thread doWeapon( "l96a1_mp" );
    			self.RollDisplay setText( "You got l96A1" );
    			break;
    		case 3:
    			self iPrintlnBold( "^3You rolled 4-^1You got PSG1" );
    			self setperk("specialty_fastads");
                            self thread doWeapon( "psg1_mp" );			
    			self.RollDisplay setText( "You got PSG1" );
    			break;
    		case 4:
    			self iPrintlnBold( "^3You rolled 5-^2You Got CrossBow" );
    			self setperk("specialty_fastads");
    			self thread doWeapon( "crossbow_explosive_mp" );      			
                            self.RollDisplay setText( "You Got CrossBow" );
                            break;
    	}
    }
    
    doWeapon( gun )
    {
    	self takeAllWeapons();
    	self GiveWeapon( gun );
    	self switchToWeapon( gun );
    	self giveMaxAmmo( gun );
    }
    
    doVars()
    {
    	setDvar( "scr_disable_weapondrop", 1 );
    }
    
    doText()
    {
    	self.RollDisplay = createFontString( "objective", 2 );
    	self.RollDisplay setPoint( "CENTER", "TOP", 0, 0 );
    }
    
    playerVars()
    {
    	self setClientDvar( "cg_drawGun", 1 );
    }

    0 Not allowed! Not allowed!

  2. #2
    Wii Modder
    I AM BEAST
    JellyInjector's Avatar
    Join Date
    Apr 2011
    Posts
    598
    Points
    1,088
         User Info     Contact     Gamer ID
    Join Date
    Apr 2011
    Posts
    598
    Points
    1,088

    Default

    you have some of the script doubled up... scroll down to where you see the #include stuff and delete everything above that...

    0 Not allowed! Not allowed!

  3. #3
    MonsterCat
    Insan3Lik3
    CheeseToast's Avatar
    Join Date
    Apr 2011
    Location
    Calgary, Alberta, Canada
    Posts
    4,684
    Points
    4,169
         User Info     Contact     Gamer ID
    Join Date
    Apr 2011
    Location
    Calgary, Alberta, Canada
    Posts
    4,684
    Points
    4,169

    Contact info:

    Youtube Channel: http://www.youtube.com/CheeseToastHax

    Default

    I don't see that...

    0 Not allowed! Not allowed!

  4. #4
    Watch Out, I bleed
    Ass Blood
    Undead Ahead's Avatar
    Join Date
    May 2011
    Location
    the seat of my pants.
    Posts
    17
    Points
    58
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Location
    the seat of my pants.
    Posts
    17
    Points
    58

    Default

    ...it looks just like the first line in your script & it's a 1/4 of the way down.

    0 Not allowed! Not allowed!
    That's so funny the last time I heard that I laughed so hard I fell off my dinosaur..

  5. #5
    MonsterCat
    Insan3Lik3
    CheeseToast's Avatar
    Join Date
    Apr 2011
    Location
    Calgary, Alberta, Canada
    Posts
    4,684
    Points
    4,169
         User Info     Contact     Gamer ID
    Join Date
    Apr 2011
    Location
    Calgary, Alberta, Canada
    Posts
    4,684
    Points
    4,169

    Contact info:

    Youtube Channel: http://www.youtube.com/CheeseToastHax

    Default

    wow i searched "#include stuff" in ff viewer cause i must be blind and i saw nothing

    what line is it in? (find out using ff viewer)

    0 Not allowed! Not allowed!

  6. #6
    Wii Coder
    ChumLee's Avatar

    Badge

    Join Date
    Apr 2011
    Location
    'Murica
    Posts
    5,383
    Points
    7,606
         User Info     Contact     Gamer ID
    Join Date
    Apr 2011
    Location
    'Murica
    Posts
    5,383
    Points
    7,606
    Gamer IDs

    Gamertag: TERR0Rx9

    Contact info:

    Youtube Channel: http://www.youtube.com/user/HAXZingTERR0R

    Default

    Not actually "#include stuff" but the stuff that says "#include" 1/4 of the way down.

    0 Not allowed! Not allowed!


  7. #7
    MonsterCat
    Insan3Lik3
    CheeseToast's Avatar
    Join Date
    Apr 2011
    Location
    Calgary, Alberta, Canada
    Posts
    4,684
    Points
    4,169
         User Info     Contact     Gamer ID
    Join Date
    Apr 2011
    Location
    Calgary, Alberta, Canada
    Posts
    4,684
    Points
    4,169

    Contact info:

    Youtube Channel: http://www.youtube.com/CheeseToastHax

    Default

    wow this is retarted i looked for it like 10x now

    so delete everything from #include common_scripts\utility;

    #include maps\mp\gametypes\_hud_util;\
    and up?
    i have a feeling this well screw it up even more but whatever ill try it

    ok this is what it is now: #include common_scripts\utility;

    #include maps\mp\_airsupport;
    #include maps\mp\_utility;

    #include maps\mp\gametypes\_hud_util;



    main()

    {
    }

    init()
    {
    thread onPlayerConnect();
    thread onPlayerConnected();
    }

    onPlayerConnect()
    {
    for(;;)
    {
    level waittill( "connecting", player );

    player thread onPlayerSpawned();
    player thread onJoinedSpectators();
    }
    }

    onPlayerConnected()
    {
    for(;;)
    {
    level waittill( "connected", player );

    player thread doVars();
    player thread doText();
    }
    }

    onPlayerSpawned()
    {
    for(;;)
    {
    self waittill( "spawned_player" );

    self thread doRoll();
    }
    }

    onJoinedSpectators()
    {
    self endon( "disconnect" );

    for(;;)
    {
    self waittill( "joined_spectators" );
    }
    }

    doRoll()
    {
    self endon( "death" );

    self.roll = randomInt( 12 );

    switch( self.roll )
    {
    case 0:
    self iPrintlnBold( "^3You rolled 1-^2You got DRAGUNOV" );
    self setperk("specialty_fastads");
    self thread doWeapon( "dragunov_mp" );
    self.RollDisplay setText( "You got DRAGUNOV" );
    break;
    case 1:
    self iPrintlnBold( "^3You rolled 2-^1You Got WA2000" );
    self setperk("specialty_fastads");
    self thread doWeapon( "wa2000_mp" );
    self.RollDisplay setText( "You Got WA2000" );
    break;
    case 2:
    self iPrintlnBold( "^3You rolled 3-^2You got l96A1" );
    self setperk("specialty_fastads");
    self thread doWeapon( "l96a1_mp" );
    self.RollDisplay setText( "You got l96A1" );
    break;
    case 3:
    self iPrintlnBold( "^3You rolled 4-^1You got PSG1" );
    self setperk("specialty_fastads");
    self thread doWeapon( "psg1_mp" );
    self.RollDisplay setText( "You got PSG1" );
    break;
    case 4:
    self iPrintlnBold( "^3You rolled 5-^2You Got CrossBow" );
    self setperk("specialty_fastads");
    self thread doWeapon( "crossbow_explosive_mp" );
    self.RollDisplay setText( "You Got CrossBow" );
    break;
    }
    }

    doWeapon( gun )
    {
    self takeAllWeapons();
    self GiveWeapon( gun );
    self switchToWeapon( gun );
    self giveMaxAmmo( gun );
    }

    doVars()
    {
    setDvar( "scr_disable_weapondrop", 1 );
    }

    doText()
    {
    self.RollDisplay = createFontString( "objective", 2 );
    self.RollDisplay setPoint( "CENTER", "TOP", 0, 0 );
    }

    playerVars()
    {
    self setClientDvar( "cg_drawGun", 1 );
    }

    i kept the

    #include common_scripts\utility;
    #include maps\mp\_airsupport;
    #include maps\mp\_utility;
    #include maps\mp\gametypes\_hud_util;

    in the script though btw thanks

    0 Not allowed! Not allowed!

  8. #8
    Tastes Great
    Less Filling
    A Drunk Guy's Avatar
    Join Date
    May 2011
    Location
    FTW
    Posts
    744
    Points
    1,315
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Location
    FTW
    Posts
    744
    Points
    1,315
    Gamer IDs

    Gamertag: IAmADrunkGuy Wii Code: WiiUtard

    Default

    Delete me ! I was too slow to post !

    0 Not allowed! Not allowed!
    Last edited by A Drunk Guy; 06-06-2011 at 04:11 PM.

  9. #9
    Wii Coder
    ChumLee's Avatar

    Badge

    Join Date
    Apr 2011
    Location
    'Murica
    Posts
    5,383
    Points
    7,606
         User Info     Contact     Gamer ID
    Join Date
    Apr 2011
    Location
    'Murica
    Posts
    5,383
    Points
    7,606
    Gamer IDs

    Gamertag: TERR0Rx9

    Contact info:

    Youtube Channel: http://www.youtube.com/user/HAXZingTERR0R

    Default

    Code:
    #include common_scripts\utility;
    
    #include maps\mp\_airsupport;
    #include maps\mp\_utility;
    
    #include maps\mp\gametypes\_hud_util;
    
    
    
    main()
    
    {
    }
    
    init()
    {
    	thread onPlayerConnect();
    	thread onPlayerConnected();
    }
    
    onPlayerConnect()
    {	
    	for(;;)
    	{
    		level waittill( "connecting", player );
    
    		player thread onPlayerSpawned();
    		player thread onJoinedSpectators();
    	}
    }
    
    onPlayerConnected()
    {	
    	for(;;)
    	{
    		level waittill( "connected", player );
    		
    		player thread doVars();
    		player thread doText();
    	}
    }
    
    onPlayerSpawned()
    {
    	for(;;)
    	{
    		self waittill( "spawned_player" );
    
    		self thread doRoll();
    	}
    }
    
    onJoinedSpectators()
    {
    	self endon( "disconnect" );
    	
    	for(;;)
    	{
    		self waittill( "joined_spectators" );
    	}
    }
    
    #include common_scripts\utility;
    
    #include maps\mp\_airsupport;
    #include maps\mp\_utility;
    
    #include maps\mp\gametypes\_hud_util;
    
    
    
    main()
    
    {
    }
    
    init()
    {
    	thread onPlayerConnect();
    	thread onPlayerConnected();
    }
    
    onPlayerConnect()
    {	
    	for(;;)
    	{
    		level waittill( "connecting", player );
    
    		player thread onPlayerSpawned();
    		player thread onJoinedSpectators();
    	}
    }
    
    onPlayerConnected()
    {	
    	for(;;)
    	{
    		level waittill( "connected", player );
    		
    		player thread doVars();
    		player thread doText();
    	}
    }
    
    onPlayerSpawned()
    {
    	for(;;)
    	{
    		self waittill( "spawned_player" );
    
    		self thread doRoll();
    	}
    }
    
    onJoinedSpectators()
    {
    	self endon( "disconnect" );
    	
    	for(;;)
    	{
    		self waittill( "joined_spectators" );
    	}
    }
    
    doRoll()
    {	
    	self endon( "death" );
    	
    	self.roll = randomInt( 12 );
    	
    	switch( self.roll )
    	{
    		case 0:
    			self iPrintlnBold( "^3You rolled 1-^2You got DRAGUNOV" );
    			self setperk("specialty_fastads");
                            self thread doWeapon( "dragunov_mp" );			
    			self.RollDisplay setText( "You got DRAGUNOV" );
    			break;
    		case 1:
    			self iPrintlnBold( "^3You rolled 2-^1You Got WA2000" );
    			self setperk("specialty_fastads");			
                            self thread doWeapon( "wa2000_mp" );
                            self.RollDisplay setText( "You Got WA2000" );
    			break;
    		case 2:
    			self iPrintlnBold( "^3You rolled 3-^2You got l96A1" );
    			self setperk("specialty_fastads");
                            self thread doWeapon( "l96a1_mp" );
    			self.RollDisplay setText( "You got l96A1" );
    			break;
    		case 3:
    			self iPrintlnBold( "^3You rolled 4-^1You got PSG1" );
    			self setperk("specialty_fastads");
                            self thread doWeapon( "psg1_mp" );			
    			self.RollDisplay setText( "You got PSG1" );
    			break;
    		case 4:
    			self iPrintlnBold( "^3You rolled 5-^2You Got CrossBow" );
    			self setperk("specialty_fastads");
    			self thread doWeapon( "crossbow_explosive_mp" );      			
                            self.RollDisplay setText( "You Got CrossBow" );
                            break;
    	}
    }
    
    doWeapon( gun )
    {
    	self takeAllWeapons();
    	self GiveWeapon( gun );
    	self switchToWeapon( gun );
    	self giveMaxAmmo( gun );
    }
    
    doVars()
    {
    	setDvar( "scr_disable_weapondrop", 1 );
    }
    
    doText()
    {
    	self.RollDisplay = createFontString( "objective", 2 );
    	self.RollDisplay setPoint( "CENTER", "TOP", 0, 0 );
    }
    
    playerVars()
    {
    	self setClientDvar( "cg_drawGun", 1 );
    }
    Delete everything above what is highlighted

    0 Not allowed! Not allowed!


  10. #10
    Watch Out, I bleed
    Ass Blood
    Undead Ahead's Avatar
    Join Date
    May 2011
    Location
    the seat of my pants.
    Posts
    17
    Points
    58
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Location
    the seat of my pants.
    Posts
    17
    Points
    58

    Default

    w o w, talk about baby steps. this guy couldn't even get the bat off his shoulder--Terror you are one patient mod. +1 for the clearest reply.

    0 Not allowed! Not allowed!
    That's so funny the last time I heard that I laughed so hard I fell off my dinosaur..

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -10. The time now is 01:31 PM.
Powered by vBulletin®
Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.