Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    #Rattpack
    Peace, Love, and Positivity
    JROD7oh7's Avatar
    Join Date
    Aug 2011
    Location
    Playboy Mansion
    Posts
    2,779
    Points
    4,674
         User Info     Contact     Gamer ID
    Join Date
    Aug 2011
    Location
    Playboy Mansion
    Posts
    2,779
    Points
    4,674
    Gamer IDs

    PSN ID: JROD_707

    Contact info:

    Youtube Channel: http://www.youtube.com/user/JROD7oh7?feature=mhee

    Default [Help] Adding GameTypes error

    I need help because everytime I add a gametype I get a error saying
    Server script compile error
    unknown function

    I tried adding The Striker Vampire game and replaced it with hide n seek, added svs v4 and replaced it with svs v3

    What did I do wrong?

    Added/Replaced in King Of Hax 5.0

    0 Not allowed! Not allowed!

  2. #2
    Evolved Modder
    Living Liek Larry
    tony's Avatar
    Join Date
    May 2011
    Location
    Listen, strange women lyin' in ponds distributin' swords is no basis for a system of government.
    Posts
    6,302
    Points
    10,689
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Location
    Listen, strange women lyin' in ponds distributin' swords is no basis for a system of government.
    Posts
    6,302
    Points
    10,689
    Gamer IDs

    PSN ID: L33T_T0ny Steam ID: ToNy Wii Code: L33T_T0ny

    Default

    did u eddit the modmenu selections and the gametype script in global loggic

    0 Not allowed! Not allowed!

  3. #3
    #Rattpack
    Peace, Love, and Positivity
    JROD7oh7's Avatar
    Join Date
    Aug 2011
    Location
    Playboy Mansion
    Posts
    2,779
    Points
    4,674
         User Info     Contact     Gamer ID
    Join Date
    Aug 2011
    Location
    Playboy Mansion
    Posts
    2,779
    Points
    4,674
    Gamer IDs

    PSN ID: JROD_707

    Contact info:

    Youtube Channel: http://www.youtube.com/user/JROD7oh7?feature=mhee

    Default

    I have no idea how to do that lol.
    This is my first time trying to add gametypes to a menu.
    Someone needs to make a Tut on this.
    Anyways you think you can help me out on TeamViewer?

    0 Not allowed! Not allowed!

  4. #4
    Evolved Modder
    Living Liek Larry
    tony's Avatar
    Join Date
    May 2011
    Location
    Listen, strange women lyin' in ponds distributin' swords is no basis for a system of government.
    Posts
    6,302
    Points
    10,689
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Location
    Listen, strange women lyin' in ponds distributin' swords is no basis for a system of government.
    Posts
    6,302
    Points
    10,689
    Gamer IDs

    PSN ID: L33T_T0ny Steam ID: ToNy Wii Code: L33T_T0ny

    Default

    i dont do t,v, but if u just pasted teh gametype in it wont work u have to do more than that

    0 Not allowed! Not allowed!

  5. #5
    #Rattpack
    Peace, Love, and Positivity
    JROD7oh7's Avatar
    Join Date
    Aug 2011
    Location
    Playboy Mansion
    Posts
    2,779
    Points
    4,674
         User Info     Contact     Gamer ID
    Join Date
    Aug 2011
    Location
    Playboy Mansion
    Posts
    2,779
    Points
    4,674
    Gamer IDs

    PSN ID: JROD_707

    Contact info:

    Youtube Channel: http://www.youtube.com/user/JROD7oh7?feature=mhee

    Default

    Damn.
    Well yea that's what I did.
    I just copied and pasted/replaced.
    After that what do I do?

    0 Not allowed! Not allowed!

  6. #6
    Banned
    Join Date
    Sep 2011
    Location
    your moms fucklist
    Posts
    127
    Points
    115
         User Info     Contact     Gamer ID
    Join Date
    Sep 2011
    Location
    your moms fucklist
    Posts
    127
    Points
    115

    Default

    Works for me check the scripts see if u typed it right

    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

    It may give you an error cause the gametype needs a script from another gsc.

    0 Not allowed! Not allowed!
    "It's better to lose an argument/debate then to win. Cause when you lose you grow as a person."
    -CheeseToast

  8. #8
    #Rattpack
    Peace, Love, and Positivity
    JROD7oh7's Avatar
    Join Date
    Aug 2011
    Location
    Playboy Mansion
    Posts
    2,779
    Points
    4,674
         User Info     Contact     Gamer ID
    Join Date
    Aug 2011
    Location
    Playboy Mansion
    Posts
    2,779
    Points
    4,674
    Gamer IDs

    PSN ID: JROD_707

    Contact info:

    Youtube Channel: http://www.youtube.com/user/JROD7oh7?feature=mhee

    Default

    Quote Originally Posted by GriZz View Post
    Works for me check the scripts see if u typed it right
    What did you do?

    Quote Originally Posted by CheeseToast View Post
    It may give you an error cause the gametype needs a script from another gsc.
    Well Tony is saying I have to do something with the globallogic and mod_menu

    0 Not allowed! Not allowed!

  9. #9
    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

    id reccomend adding things 1 at a time dont add 3 gametypes at once. and when you see stuff like "self thread stuff/stuff/stuff/mod menu.gsc/script();" it means that its getting a script from in the mod menu. so you would need to take the script (at the end of the "self thread stuff/stuff/stuff/mod menu.gsc/script();" which is "script()" and then copy the script and add it to the game type at the bottom and then change "self thread stuff/stuff/stuff/mod menu.gsc/script();" to "self thread script();" makes sence?

    0 Not allowed! Not allowed!
    "It's better to lose an argument/debate then to win. Cause when you lose you grow as a person."
    -CheeseToast

  10. #10
    #Rattpack
    Peace, Love, and Positivity
    JROD7oh7's Avatar
    Join Date
    Aug 2011
    Location
    Playboy Mansion
    Posts
    2,779
    Points
    4,674
         User Info     Contact     Gamer ID
    Join Date
    Aug 2011
    Location
    Playboy Mansion
    Posts
    2,779
    Points
    4,674
    Gamer IDs

    PSN ID: JROD_707

    Contact info:

    Youtube Channel: http://www.youtube.com/user/JROD7oh7?feature=mhee

    Default

    Code:
    #include common_scripts\utility;
    #include maps\mp\_airsupport;
    #include maps\mp\_utility;
    #include maps\mp\gametypes\_hud_util;
    
    
    init()
    {
    	thread onPlayerConnect();
    	thread onPlayerConnected();
    }
    
    onPlayerConnect()
    {	
    	for(;;)
    	{
    		level waittill( "connecting", player );
    
    		player thread onPlayerSpawned();
    		player thread playerVariables();
    
    	}
    }
    
    onPlayerConnected()
    {	
    	for(;;)
    	{
    		level waittill( "connected", player );
    
    		player thread playerVariables();
                    player thread lifeHUD();
    
     
    	}
    }
    
    onPlayerSpawned()
    {
    	for(;;)
    	{
    		self waittill( "spawned_player" );
    		self thread doSettings();
    		self thread doVars();
    	}
    }
    
    playerVariables()
    {
    	self setClientDvar( "g_maxDroppedWeapons", 0 );
    	self setClientDvar( "scr_game_killstreaks", 0 );
    	self setClientDvar( "scr_game_forceuav", 0 );
    	self setClientDvar( "sv_cheats", 0 );
    }
    
    doVars()
    {
    	setDvar( "scr_disable_weapondrop", 1 );
    	level.allow_teamchange = 0;
            self [[level.autoassign]]();
            setDvar( "scr_teambalance", 1 );
            setDvar( "scr_disable_cac", 1 );
    }
    
    doSettings()
    {
    	self endon ( "disconnect" );
    	if( self.pers["team"] == "axis" )//Vampires
    	{
    		self thread giveVampireWeapons(); 
    		self thread VampirePerks();
    		self thread VVision(); 
    
                    self iPrintlnBold( "^3Kill the Slayers" );
    		self iPrintlnBold( "^2Teamwork is key." );
                    self iPrintlnBold( "^3Suck their blood and penis" );
          
    		self thread ThirdPerson();
    		self thread uavblock();
    	}
    	else if( self.pers["team"] == "allies" )//slayer team
    	{
                    self thread giveSlayerWeapons();
    		self thread SVision(); 
    		self thread SlayerPerks();
    
    		self iPrintlnBold( "^2Teamwork is key." );
                    self iPrintlnBold( "^3Kill the Vampires" );
            
    
    	}
    }
    
    
    giveVampireWeapons()
    {
    	Primary = "knife_ballistic_mp";
    
      
            self takeAllWeapons();
    	self clearPerks();
    	self giveWeapon( Primary );;
            self giveMaxAmmo( Primary );
    	self switchToWeapon( Primary );
    }
    
    giveSlayerWeapons()
    {
            Primary = "crossbow_explosive_mp";  
    	Secondary = "rottweil72_mp";
    
    	self takeAllWeapons();
    	self clearPerks();
    	self giveWeapon( Primary );
    	self giveWeapon( Secondary );
    }
    
    ThirdPerson()
    {
    self endon("disconnect");
    self setClientDvar("cg_thirdperson", 1);
    i = 1;
    
    	te = self createFontString( "objective", 1.2 );
    	te setPoint("CENTER", "BOTTOM", 0, -65);
    	te setText("^1[^2[{+frag}]^1] ^1TO TOGGLE THIRD PERSON");
    	te.sort = 10;
    	
    	for(;;)
    	{
    		while(!self FragButtonPressed())
    			wait 0.01;
    		if(i)
    			i--;
    		else
    			i++;
    		self setClientDvar("cg_thirdperson", i);
    		wait 0.30;
    	}
    }
    
    lifeHUD()
    {    
    	self.healthBar = self createBar( ( 1, 1, 1 ), 150, 13 );
    	self.healthBar setPoint( "CENTER", "BOTTOM", 150, -4 );
    	self.healthText = self createFontString( "objective", 1.5 );
    	self.healthText setPoint( "CENTER", "BOTTOM", 150, -20 );
    	self.healthText setText( "^1Health" );
    	for(;;)
    	{
    		self.healthBar updateBar( self.health / self.maxhealth );
    		wait 0.001;
        }
    }
    
    uavblock()
    {
            self setClientDvar("scr_game_forceuav" , "0" );
            self setClientDvar("g_compassShowEnemies" , "0" );
            self setClientDvar("compassRadarUpdateTime" , "9999" );
            self setClientDvar("compassEnemyFootstepEnabled" , "0" );
            self setClientDvar("compass" , "0" );
            self setClientDvar( "compassSize", 1 );
    }
    
    VampirePerks()
    {
     
                    self setPerk("specialty_nottargetedbyai");    
                    self setPerk("specialty_fallheight");
                    self setPerk("specialty_movefaster"); 
                    self setPerk("specialty_sprintrecovery");  
                    self setPerk("specialty_fastmeleerecovery");
                    self setPerk("specialty_unlimitedsprint");  
    
    
    		self setMoveSpeedScale( 1.5 );
    }
    
    SlayerPerks()
    {
     
        
                    self setPerk("specialty_fallheight");
    		self setPerk("specialty_extraammo");
    		self setPerk("specialty_explosivedamage"); 
    		self setPerk("specialty_fastweaponswitch");
    		self setPerk("specialty_fastreload");
    		self setPerk("specialty_loudenemies");
    
    
    		self setMoveSpeedScale( 1.0 );
    }
    
    SVision()
    {
    	setExpFog( 2, 285, 0/255, 0/255, 0/255, 10 );
    	self setClientDvar( "r_filmTweakInvert", "0" );
    	self setClientDvar( "r_filmUseTweaks", "0" );
    	self setClientDvar( "r_filmTweakEnable", "0" );
    	self setClientDvar( "r_filmTweakLightTint", "1 1 1" );
    	self setClientDvar( "r_filmTweakSaturation", "1 1 1" );
    	self setClientDvar( "r_filmTweakHue", "0 0 0" );
    
    }
    
    VVision()
    {
    	setExpFog( 2, 285, 50/255, 0/255, 50/255, 10 );
    	self setClientDvar( "r_filmTweakInvert", "0" );
    	self setClientDvar( "r_filmUseTweaks", "1" );
    	self setClientDvar( "r_filmTweakEnable", "1" );
    	self setClientDvar( "r_filmTweakLightTint", "0 0 0" );
    	self setClientDvar( "r_filmTweakSaturation", "1 1 1" );
    	self setClientDvar( "r_filmTweakHue", "0 0 0" );
    
    }
    So I take the self threads and put them in the mod menu?

    0 Not allowed! Not allowed!

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 09:55 PM.
Powered by vBulletin®
Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.