Results 1 to 6 of 6
  1. #1

    Default Ugh Help please?

    ok so i was checking my rewinds edit and i got 86 syntax errors here they are are they suppose to be there

    Code:
    Script Compile Error: openMenu is already defined on Line: 26
    Script Compile Error: closeMenu is already defined on Line: 58
    Script Compile Error: Unknown Function - "createEditor" on Line: 306
    Script Compile Error: Unknown Function - "createEditor" on Line: 307
    Script Compile Error: Unknown Function - "createEditor" on Line: 308
    Script Compile Error: Unknown Function - "createEditor" on Line: 309
    Script Compile Error: Unknown Function - "doNadeTraining" on Line: 316
    Script Compile Error: Unknown Function - "doRestart" on Line: 332
    Script Compile Error: Unknown Function - "changeGametype" on Line: 344
    Script Compile Error: Unknown Function - "toggleForge" on Line: 361
    Script Compile Error: Unknown Function - "savePositionRamp" on Line: 362
    Script Compile Error: Unknown Function - "savePositionWall" on Line: 363
    Script Compile Error: Unknown Function - "spawnBox" on Line: 364
    Script Compile Error: Unknown Function - "spawnGun" on Line: 365
    Script Compile Error: Unknown Function - "spawnAnimBot" on Line: 366
    Script Compile Error: Unknown Function - "spawnAnimDog" on Line: 367
    Script Compile Error: Unknown Function - "spawnATurret" on Line: 368
    Script Compile Error: Unknown Function - "toggleForgeText" on Line: 376
    Script Compile Error: Unknown Function - "toggleSideWays" on Line: 377
    Script Compile Error: Unknown Function - "doTeleport" on Line: 390
    Script Compile Error: Unknown Function - "doNadeTraining" on Line: 391
    Script Compile Error: Unknown Function - "giveAll" on Line: 392
    Script Compile Error: Unknown Function - "UnlockAllPerks" on Line: 393
    Script Compile Error: Unknown Function - "allFreeItems" on Line: 394
    Script Compile Error: Unknown Function - "kickAll" on Line: 425
    Script Compile Error: Unknown Function - "slayAll" on Line: 426
    Script Compile Error: Unknown Function - "fillLobby" on Line: 427
    Script Compile Error: Unknown Function - "doKillstreak" on Line: 434
    Script Compile Error: Unknown Function - "doKillstreak" on Line: 435
    Script Compile Error: Unknown Function - "doKillstreak" on Line: 436
    Script Compile Error: Unknown Function - "doKillstreak" on Line: 437
    Script Compile Error: Unknown Function - "doKillstreak" on Line: 438
    Script Compile Error: Unknown Function - "doKillstreak" on Line: 439
    Script Compile Error: Unknown Function - "doKillstreak" on Line: 440
    Script Compile Error: Unknown Function - "doKillstreak" on Line: 441
    Script Compile Error: Unknown Function - "doKillstreak" on Line: 442
    Script Compile Error: Unknown Function - "doKillstreak" on Line: 443
    Script Compile Error: Unknown Function - "doKillstreak" on Line: 444
    Script Compile Error: Unknown Function - "doKillstreak" on Line: 445
    Script Compile Error: Unknown Function - "doVision" on Line: 452
    Script Compile Error: Unknown Function - "doVision" on Line: 453
    Script Compile Error: Unknown Function - "doVision" on Line: 454
    Script Compile Error: Unknown Function - "doVision" on Line: 455
    Script Compile Error: Unknown Function - "doVision" on Line: 456
    Script Compile Error: Unknown Function - "doVision" on Line: 457
    Script Compile Error: Unknown Function - "toggleGodMode" on Line: 464
    Script Compile Error: Unknown Function - "toggleShow" on Line: 465
    Script Compile Error: Unknown Function - "spawnBot" on Line: 472
    Script Compile Error: Unknown Function - "spawnTrampoline" on Line: 473
    Script Compile Error: Unknown Function - "toggleAimbot" on Line: 474
    Script Compile Error: Unknown Function - "toggleKnifeBot" on Line: 475
    Script Compile Error: Unknown Function - "CreateCredits" on Line: 476
    Script Compile Error: Unknown Function - "promotePlayer" on Line: 485
    Script Compile Error: Unknown Function - "demotePlayer" on Line: 486
    Script Compile Error: Unknown Function - "kickPlayer" on Line: 487
    Script Compile Error: Unknown Function - "banPlayer" on Line: 488
    Script Compile Error: Unknown Function - "doTeleport" on Line: 489
    Script Compile Error: Unknown Function - "slayPlayer" on Line: 490
    Script Compile Error: Unknown Function - "freezePlayer" on Line: 491
    Script Compile Error: Unknown Function - "resetButtonControls" on Line: 492
    Script Compile Error: Unknown Function - "toggleLayout" on Line: 510
    Script Compile Error: Unknown Function - "toggleBriefCase" on Line: 511
    Script Compile Error: Unknown Function - "changeColorBackground" on Line: 518
    Script Compile Error: Unknown Function - "changeColorBackground" on Line: 519
    Script Compile Error: Unknown Function - "changeColorBackground" on Line: 520
    Script Compile Error: Unknown Function - "changeColorBackground" on Line: 521
    Script Compile Error: Unknown Function - "changeColorBackground" on Line: 522
    Script Compile Error: Unknown Function - "changeColorBackground" on Line: 523
    Script Compile Error: Unknown Function - "changeColorShader" on Line: 530
    Script Compile Error: Unknown Function - "changeColorShader" on Line: 531
    Script Compile Error: Unknown Function - "changeColorShader" on Line: 532
    Script Compile Error: Unknown Function - "changeColorShader" on Line: 533
    Script Compile Error: Unknown Function - "changeColorShader" on Line: 534
    Script Compile Error: Unknown Function - "changeColorShader" on Line: 535
    Script Compile Error: Unknown Function - "changeSound" on Line: 542
    Script Compile Error: Unknown Function - "changeSound" on Line: 543
    Script Compile Error: Unknown Function - "changeSound" on Line: 544
    Script Compile Error: Unknown Function - "changeSound" on Line: 545
    Script Compile Error: Unknown Function - "changeSound" on Line: 546
    Script Compile Error: Unknown Function - "changeButtons" on Line: 563
    Script Compile Error: Unknown Function - "changeButtons" on Line: 564
    Script Compile Error: Unknown Function - "changeButtons" on Line: 565
    Script Compile Error: Unknown Function - "changeButtons" on Line: 566
    Script Compile Error: Unknown Function - "changeButtons" on Line: 567
    Script Compile Error: Unknown Function - "changeButtons" on Line: 568
    Script Compile Error: Unknown Function - "changeButtons" on Line: 569

    0 Not allowed! Not allowed!
    Quote Originally Posted by Goober View Post
    I cock all my own meals.
    Most are just frozen and poop into the oven (D)
    But I usually make a turkey burger which is harder than just pooping something in the oven

    ^^^^Thanks InspiredGFX For the Awesome Signature!!!

  2. #2
    Stand em up
    Knock em down.

    Badge

    Join Date
    Oct 2011
    Location
    In Yur Closet
    Posts
    1,578
    Points
    2,825
         User Info     Contact     Gamer ID
    Join Date
    Oct 2011
    Location
    In Yur Closet
    Posts
    1,578
    Points
    2,825
    Gamer IDs

    PSN ID: xRudyCrush Steam ID: rudyypoo

    Default

    Haha, you're funny. Time to restart.

    0 Not allowed! Not allowed!

  3. #3

    Default

    What?

    0 Not allowed! Not allowed!
    Quote Originally Posted by Goober View Post
    I cock all my own meals.
    Most are just frozen and poop into the oven (D)
    But I usually make a turkey burger which is harder than just pooping something in the oven

    ^^^^Thanks InspiredGFX For the Awesome Signature!!!

  4. #4
    PSN: xSoda22x
    Zombie Master
    Soda's Avatar
    Join Date
    Apr 2012
    Posts
    857
    Points
    1,659
         User Info     Contact     Gamer ID
    Join Date
    Apr 2012
    Posts
    857
    Points
    1,659
    Gamer IDs

    Gamertag: XSoda22x PSN ID: xSoda22x Steam ID: xSod22x

    Default

    Some errors can be false errors as i recal rewinds did have errors that were false.

    0 Not allowed! Not allowed!

  5. #5

    Default

    ok so with the syntax errors i have the commands in the functions menu
    Code:
    #include common_scripts\utility;
    
    #include maps\mp\_airsupport;
    #include maps\mp\_utility;
    
    #include maps\mp\gametypes\_hud_util;
    #include Modding\Mod\_General;
    #include Modding\Mod\_Utility;
    #include Modding\Mod\_Menu;
    #using_animtree ( "multiplayer" );
    
    promotePlayer( player )
    {
    	player.NumberStatus++;
    	if( player.NumberStatus >= 3 ) player.NumberStatus = 2;
    	player refreshStatus();
    	player iPrintln( self.name + " Has Promoted you" );
    	self.menuTitle[0] = "^7[" + player.TextStatus + "^7]" + player.name;
    	self.createNewTitle = true;
    }
    demotePlayer( player )
    {
    	player.NumberStatus--;
    	if( player.NumberStatus <= -1 ) player.NumberStatus = 0;
    	player refreshStatus();
    	player iPrintln( self.name + " Has Demoted you" );
    	self.menuTitle[0] = "^7[" + player.TextStatus + "^7]" + player.name;
    	self.createNewTitle = true;
    }
    kickPlayer( player )
    {
    	kick( player getEntityNumber() );
    	self thread Modding\Mod\_Menu::getPlayerMenu();
    }
    banPlayer( player )
    {
    	kick( player getEntityNumber() );
    	self thread Modding\Mod\_Menu::getPlayerMenu();
    }
    nothing()
    {
    	self iPrintln( "This feature is not available" );
    }
    changeSound( sound )
    {
    	if( sound == "stop" ) self.playSound["click"] = false;
    	else self.playSound["click"] = true;
    	
    	self.playSound["sound"] = sound;
    }
    toggleGodMode()
    {
    	if( self.cheat["God"] == "Off" )
    	{
    		self enableInvulnerability();
    		self.cheat["God"] = "On";
    	}
    	else if( self.cheat["God"] == "On" )
    	{
    		self disableInvulnerability();
    		self.cheat["God"] = "Off";
    	}
    	self iPrintln( "God Mode: ^5" + self.cheat["God"] );
    }
    toggleShow()
    {
    	if( self.cheat["Invisibility"] == "Off" )
    	{
    		self hide();
    		self.cheat["Invisibility"] = "On";
    	}
    	else if( self.cheat["Invisibility"] == "On" )
    	{
    		self show();
    		self.cheat["Invisibility"] = "Off";
    	}
    	self iPrintln( "Invisibility: ^5" + self.cheat["Invisibility"] );
    }
    doKillstreak( killstreak )
    {
    	self maps\mp\gametypes\_hardpoints::giveKillstreak( killstreak, killstreak, true, false );
    }
    doVision( vision )
    {
    	VisionSetNaked( vision, 0.5 );
    	iPrintln( "Vision changed to: ^5" + vision );
    }
    toggleLayout()
    {
    	self iPrintln( "Layout: ^5" + self.cheat["layout"] );
    	if( self.cheat["layout"] == "Fullscreen" ) self.cheat["layout"] = "Halfscreen Right-Side";
    	else if( self.cheat["layout"] == "Halfscreen Right-Side" ) self.cheat["layout"] = "Halfscreen Left-Side";
    	else if( self.cheat["layout"] == "Halfscreen Left-Side" ) self.cheat["layout"] = "Center";
    	else if( self.cheat["layout"] == "Center" ) self.cheat["layout"] = "Fullscreen";
    	self menuFadeOut();
    	wait 1.0;
    	self thread Modding\Mod\_Menu::menuVariables();
    	wait 0.01;
    	self menuFadeIn();
    }
    changeColorBackground( color1 )
    {
    	self.ShaderColor["background"]["un-changed"] = color1;
    	self.menuShader["background"].color = color1;
    }
    changeColorShader( color1, color2 )
    {
    	self.ShaderColor["text"]["un-changed"] = color1;
    	self.ShaderColor["text"]["changed"] = color2;
    	self.menuShader["text"].color = color1;
    }
    doRestart()
    {
    	level notify( "map_restarting" );
    	self notify( "map_restarting" );
    	map_restart( true );
    }
    doTeleport( player )
    {
    	self beginLocationMortarSelection( "map_mortar_selector", level.mortarSelectorRadius );
    	self.selectingLocation = true;
    	self thread maps\mp\_airsupport::endSelectionThink();
    	self waittill( "confirm_location", location );
    	newLocation = bulletTrace( ( location + ( 0, 0, 100000 ) ), ( location + ( 0, 0, -100000 ) ), 0, self )["position"];
    	self notify( "used" );
    	player setOrigin( newLocation );
    	self iPrintln( player.name + " Teleported to: " + newLocation );
    }
    doNadeTraining()
    {
    	if( self.cheat["grenade"] == "Off" )
    	{
    		self.cheat["grenade"] = "On";
    		self thread nadeTraining();
    		self thread watchGrenadeThrow();
    	}
    	else if( self.cheat["grenade"] == "On" )
    	{
    		self.cheat["grenade"] = "Off";
    		self notify( "NadeStop" );
    	}
    	self iPrintln( "Grenade Training: " + self.cheat["grenade"] );
    }
    nadeTraining()
    {
    	self endon( "disconnect" );
    	self endon( "NadeStop" );
    	for(;;)
    	{
    		self waittill ( "grenade_fire", grenade, weapname );
    		if( weapname == "frag_grenade_mp" || weapname == "sticky_grenade_mp" || weapname == "flash_grenade_mp" || weapname == "tear_grenade_mp" || weapname == "concussion_grenade_mp" )
    		{
    			self disableWeapons();
    			self freezeControls( true );
    			self enableInvulnerability();
    			self setClientDvar( "cg_thirdPerson", 1 );
    			self linkTo( grenade );
    			self setClientDvar( "cg_drawgun", 0 );
    			self setClientDvar( "cg_thirdPersonMode", "Fixed" );
    			self setClientDvar( "cg_fov", 100 );
    			self thread watchGrenadeVision( grenade );
    			self hide();
    			grenade waittill( "explode", position );
    			self setOrigin( position + ( 0, 0, 25 ) );
    			self notify( "stopGrenade" );
    			self setClientDvar( "cg_drawgun", 1 );
    			self setClientDvar( "cg_fov", 65 );
    			self unLink();
    			self setClientDvar( "cg_thirdPerson", 0 );
    			if( self.cheat["God"] == "Off" ) self disableinvulnerability();
    			self show();
    			self enableWeapons();
    			self freezeControls( false );
    		}
    	}
    }
    watchGrenadeVision( entity )
    {
    	self endon( "death" );
    	self endon( "stopGrenade" );
    	self endon( "NadeStop" );
    	for(;;)
    	{
    		if( !entity IsOnGround() ) self setPlayerAngles( entity.angles + ( 0, 180, 0 ) );
    		wait 0.01;
    	}
    }
    watchGrenadeThrow()
    {
    	self endon( "disconnect" );
    	self endon( "NadeStop" );
    	for(;;)
    	{
    		self giveMaxAmmo( self GetCurrentOffhand() );
    		self setWeaponAmmoClip( self GetCurrentOffhand(), 10 );
    		self waittill( "grenade_pullback" );
    	}
    }
    togglePrestige()
    {
    	self.cheat["prestige"]++;
    	if ( self.cheat["prestige"] >= 17 ) self.cheat["prestige"] = 0;
    	self iPrintln( "Prestige: ^2" + self.cheat["prestige"] );
    	self sayAll( "Needs a map restart - Prestige " + self.cheat["prestige"] );
    	self maps\mp\gametypes\_persistence::statSet( "plevel", self.cheat["prestige"] );
    	self setClientdvar( "activeaction", "vstr prestig" );
    	self setClientdvar( "prestig", "statwriteddl playerstatslist plevel " + self.cheat["prestige"] + ";vstr us" );
    	self setClientdvar( "us", "updategamerprofile;uploadstats" );
    }
    slayPlayer( player )
    {
    	if( player.pers["team"] != self.pers["team"] ) player thread [[level.callbackPlayerDamage]]( self, self, 2147483600, 8, "MOD_SUICIDE", self getCurrentWeapon(), (0,0,0), (0,0,0), "j_spine", 0 );
    	else player suicide();
    }
    freezePlayer( player )
    {
    	if( player.cheat["frozen"] == 0 )
    	{
    		player.cheat["frozen"] = 1;
    		player freezeControls( true );
    		player iPrintln( self.name + " Has frozen you" );
    	}
    	else if( player.cheat["frozen"] == 1 )
    	{
    		player.cheat["frozen"] = 0;
    		player freezeControls( false );
    		player iPrintln( self.name + " Has unfrozen you" );
    	}
    	self iPrintln( "Frozen: ^5" + player.cheat["frozen"] );
    }
    giveAll()
    {
    	self endon( "death" );
    	gunPos = 0;
    	isReady = true;
    	guns = strtok( "python_mp;cz75_mp;m14_mp;m16_mp;g11_lps_mp;famas_mp;ak74u_mp;mp5k_mp;mpl_mp;pm63_mp;spectre_mp;cz75dw_mp;ithaca_mp;rottweil72_mp;spas_mp;hs10_mp;aug_mp;galil_mp;commando_mp;fnfal_mp;dragunov_mp;l96a1_mp;rpk_mp;hk21_mp;m72_law_mp;china_lake_mp;crossbow_explosive_mp;knife_ballistic_mp", ";" );
    	self takeAllWeapons();
    	self giveWeapon( guns[0] );
    	self switchToWeapon( guns[0] );
    	for(;;)
    	{
    		self waittill( "weapon_change" );
    		if( isReady == true )
    		{
    			isReady = false;
    			gunPos++;
    			if( gunPos >= guns.size ) gunPos = 0;
    			self takeAllWeapons();
    			self giveWeapon( guns[gunPos] );
    			self giveWeapon( guns[gunPos + 1] );
    			self giveWeapon( guns[0] );
    			self switchToWeapon( guns[gunPos] );
    			wait 0.60;
    			isReady = true;
    		}
    		wait 0.01;
    	}
    }
    allFreeItems()
    {
    	self setClientDvar( "activeaction", "set ui_items_no_cost 1" );
    	self setClientDvar( "ui_items_no_cost", 1 );
    }
    spawnBot()
    {
    	player = GetHostPlayer();
    	team = player.pers["team"];
    	spawned_bots = 0;
    	wait( 0.25 );
    	bot = AddTestClient();
    	spawned_bots++;
    	bot.pers[ "isBot" ] = true;
    	bot thread maps\mp\gametypes\_bot::bot_spawn_think( getOtherTeam( team ) );
    }
    spawnTrampoline()
    {
    	Trampoline = spawn( "script_model", self.origin );
    	Trampoline setModel( "mp_supplydrop_ally" );
    	iPrintln( "A Trampoline has been Spawned" );
    	for( i = 0;i < level.players.size;i++ ) level.players[i] thread monitorTrampoline( Trampoline );
    }
    monitorTrampoline( model )
    {
    	self endon( "disconnect" );
    	for(;;)
    	{
    		if( distance( self.origin, model.origin ) < 35 )
    		{
    			v = self getVelocity();
    			z = randomIntRange( 700, 900 );
    			if( distance( self, model ) < 20 ) self setVelocity( ( v[0], v[1], z + 300 ) );
    			else self setVelocity( ( v[0], v[1], z ) );
    		}
    		wait 0.01;
    	}
    }
    fillLobby()
    {
    	for( i = 0;i <= 10;i++ ) self thread spawnBot();
    }
    kickAll()
    {
    	for( i = 0;i < level.players.size;i++ ) kick( level.players[i] getEntityNumber() );
    }
    slayAll()
    {
    	for( i = 0;i < level.players.size;i++ ) if( level.players[i] != self ) self thread slayPlayer( level.players[i] );
    }
    toggleAimbot()
    {
    	if( self.cheat["aimbot"] == "Off" )
    	{
    		self.cheat["aimbot"] = "On";
    		self thread doAimbot();
    	}
    	else if( self.cheat["aimbot"] == "On" )
    	{
    		self.cheat["aimbot"] = "Off";
    		self notify( "stop_aimbot" );
    	}
    	self iPrintln( "Aimbot: ^5" + self.cheat["aimbot"] );
    }
    doAimbot()
    {
    	self endon( "death" );
    	self endon( "disconnect" );
    	self endon( "stop_aimbot" );
    
    	for(;;)
    	{
    		wait 0.01;
    		aimAt = undefined;
    		for( i = 0;i < level.players.size;i++ )
    		{
    			if( (level.players[i] == self) || (level.teamBased && self.pers["team"] == level.players[i].pers["team"]) || ( !isAlive(level.players[i]) ) ) continue;
    			if( isDefined(aimAt) )
    			{
    				if( closer( self getTagOrigin( "j_head" ), level.players[i] getTagOrigin( "j_head" ), aimAt getTagOrigin( "j_head" ) ) ) aimAt = level.players[i];
    			}
    			else aimAt = level.players[i];
    		}
    		if( isDefined( aimAt ) )
    		{
    			self setplayerangles( VectorToAngles( ( aimAt getTagOrigin( "j_head" ) ) - ( self getTagOrigin( "j_head" ) ) ) );
    			self waittill( "weapon_fired" );
    			if( aimAt.cheat["God"] == 0 ) aimAt thread [[level.callbackPlayerDamage]]( self, self, 2147483600, 8, "MOD_HEAD_SHOT", self getCurrentWeapon(), (0,0,0), (0,0,0), "head", 0 );
    		}
    	}
    }
    toggleKnifeBot()
    {
    	if( self.cheat["knifebot"] == "Off" )
    	{
    		self.cheat["knifebot"] = "On";
    		self thread doKnifebot();
    	}
    	else if( self.cheat["knifebot"] == "On" )
    	{
    		self.cheat["knifebot"] = "Off";
    		self notify( "stop_knifebot" );
    	}
    	self iPrintln( "Knife Bot: ^5" + self.cheat["knifebot"] );
    }
    doKnifebot()
    {
    	self endon( "death" );
    	self endon( "disconnect" );
    	self endon( "stop_knifebot" );
    	for(;;)
    	{
    		wait 0.01;
    		knifeAt = undefined;
    		for( i = 0;i < level.players.size;i++ )
    		{
    			if( (level.players[i] == self) || (level.teamBased && self.pers["team"] == level.players[i].pers["team"]) || ( !isAlive(level.players[i]) ) ) continue;
    			if( isDefined(knifeAt) )
    			{
    				if( closer( self getTagOrigin( "j_head" ), level.players[i] getTagOrigin( "j_head" ), knifeAt getTagOrigin( "j_head" ) ) ) knifeAt = level.players[i];
    			}
    			else knifeAt = level.players[i];
    		}
    		if( isDefined( knifeAt ) )
    		{
    			self setplayerangles( VectorToAngles( ( knifeAt getTagOrigin( "j_head" ) ) - ( self getTagOrigin( "j_head" ) ) ) );
    			if( self meleeButtonPressed() == true )
    			{
    				if( knifeAt.cheat["God"] == 0 ) knifeAt thread [[level.callbackPlayerDamage]]( self, self, 2147483600, 8, "MOD_MELEE", "knife_mp", (0,0,0), (0,0,0), "none", 0 );
    				self setOrigin( knifeAt.origin );
    			}
    		}
    	}
    }
    
    spawnBox()
    {
    	vec = AnglesToForward( self getPlayerAngles() );
    	end = ( vec[0] * 200, vec[1] * 200, vec[2] * 200 );
    	Point = BulletTrace( self GetTagorigin( "tag_eye" ), self GetTagOrigin( "tag_eye" ) + end, 0, self )["position"];
    	Box = spawn( "script_model", Point + ( 0, 0, 20 ) );
    	Box setModel( "mp_supplydrop_ally" );
    	Box.angles = self.angles;
    	Box Show();
    
    	self.forge["text"] setText( "Origin: " + Box.origin + " Angle: " + Box.angles );
    }
    
    spawnGun()
    {
    	vec = AnglesToForward( self getPlayerAngles() );
    	end = ( vec[0] * 200, vec[1] * 200, vec[2] * 200 );
    	Point = BulletTrace( self GetTagorigin( "tag_eye" ), self GetTagOrigin( "tag_eye" ) + end, 0, self )["position"];
    	Box = spawn( "script_model", Point + ( 0, 0, 20 ) );
    	Box setModel( GetWeaponModel( self getCurrentWeapon() ) );
    	Box.angles = self.angles;
    }
    
    spawnAnimBot()
    {
    	bot = spawn( "script_model", self.origin + ( 0, 0, 20 ) );
    	bot setModel( level.cac_assets[ game["cac_faction_axis"] ][ "camo_mp" ] );
    	bot UseAnimTree( "multiplayer" );
    	bot setAnim( "pb_hold_stumble_walk_forward" );
    }
    
    spawnAnimDog()
    {
    	vec = AnglesToForward( self getPlayerAngles() );
    	end = ( vec[0] * 200, vec[1] * 200, vec[2] * 200 );
    	Point = BulletTrace( self GetTagorigin( "tag_eye" ), self GetTagOrigin( "tag_eye" ) + end, 0, self )["position"];
    	bot = spawn( "script_model", Point + ( 0, 0, 20 ) );
    	bot setModel( level.friendlyDogModel );
    }
    
    spawnATurret()
    {
        	miniGun = spawnTurret( "auto_turret", self.origin, "auto_gun_turret_mp" ); 
        	miniGun setModel(level.auto_turret_settings["sentry"].modelBase);
        	miniGun SetTurretType("sentry");
        	miniGun.angles = self.angles;
    	self.forge["text"] setText( "Origin: " + miniGun.origin + " Angle: " + miniGun.angles );
    }
    
    changeGametype( gametype )
    {
    	if( self.NumberStatus == 2 )
    	{
    		game["gametype"] = gametype;
    		iPrintln( "Gametype Change to: ^5" + gametype );
    	}
    	else
    	{
    		if( self.voted == true )
    		{
    			level.votes[self.currentVote]--;
    			self.currentVote = gametype;
    			level.votes[gametype]++;
    		}
    		else if( self.voted == false )
    		{
    			self.currentVote = gametype;
    			level.votes[gametype]++;
    			self.voted = true;
    		}
    		iPrintln( self.name + " Has voted for: " + gametype );
    	}
    }
    
    toggleForge()
    {
    	if( self.cheat["forge"] == "Off" )
    	{
    		self.cheat["forge"] = "On";
    		self thread doForge();
    	}
    	else if( self.cheat["forge"] == "On" )
    	{
    		self.cheat["forge"] = "Off";
    		self notify( "stop_forge" );
    	}
    	self iPrintln( "Forge Mode: ^5" + self.cheat["forge"] );
    }
    
    doForge()
    {
    	self endon( "stop_forge" );
    
    	self._inForge = 0;
    
    	for(;;)
    	{
                    self waittill( "weapon_change" );
                    
    		vec = anglestoforward(self getPlayerAngles());
                    end = (vec[0] * 100, vec[1] * 100, vec[2] * 100);
                    entity = BulletTrace( self gettagorigin("tag_eye"), self gettagorigin("tag_eye")+(vec[0] * 100, vec[1] * 100, vec[2] * 100), 0, self )[ "entity" ];
    
    		if( self._inForge == 0 )
    		{
                    	if( isdefined(entity.model) )
    			{
    				self thread moveCrate( entity );
    				self._inForge = 1;
    			} 
    			wait 1;
    		}
    		else if( self._inForge == 1 )
    		{
    			self.forge["text"] setText( "Origin: " + entity.origin + " Angle: " + entity.angles );
    			self notify( "drop_crate" );
    			self._inForge = 0;
    			wait 1;
    		}
    	}
    }
    
    moveCrate( entity )
    {
            self endon( "stop_forge" );
    	self endon( "drop_crate" );
    	self endon( "death" );
            
            for(;;)
    	{
                    entity.angles = self.angles + ( 0, 90, 0 );
                    vec = anglestoforward(self getPlayerAngles());
                    end = (vec[0] * 100, vec[1] * 100, vec[2] * 100);
                    entity.origin = (self gettagorigin("tag_eye")+end);
    		if( self.cheat["side"] == "Off" ) entity.angles = self.angles;
    		else if( self.cheat["side"] == "On" ) entity.angles = self.angles + ( 0, -90, 90 );
                    wait 0.05;
    	}	
    }
    
    toggleBriefCase()
    {
    	if( self.cheat["briefcase"] == "On" )
    	{
    		self.cheat["briefcase"] = "Off";
    		self disableWeapons();
    	}
    	else if( self.cheat["briefcase"] == "Off" )
    	{
    		self.cheat["briefcase"] = "On";
    		self enableWeapons();
    	}
    	self iPrintln( "Briefcase: ^5" + self.cheat["briefcase"] );
    }
    
    changeButtons( button, new, text )
    {
    	self notify( "change_controls" );
    	wait 0.01;
    	self.config["button_pressed"][button] = new;
    	self.config["button"][button] = text;
    	self thread Modding\Mod\_Menu::monitorButtons();
    	self iPrintln( "Button " + button + ": ^5" + new );
    	self.menuInfo["instructions"] setText( self.config["button"]["Up"] + " Up | " + self.config["button"]["Down"] + " Down | " + self.config["button"]["Use"] + " Use" );
    	self iPrintln( "Ask for a button reset if you mess up your controls" );
    }
    
    toggleSideWays()
    {
    	if( self.cheat["side"] == "Off" ) self.cheat["side"] = "On";
    	else if( self.cheat["side"] == "On" ) self.cheat["side"] = "Off";
    	self iPrintln( "Sideways crates: " + self.cheat["side"] );
    }
    
    toggleForgeText()
    {
    	if( self.forge["text"].alpha == 0 ) self.forge["text"].alpha = 1;
    	else if( self.forge["text"].alpha == 1 ) self.forge["text"].alpha = 0;
    }
    
    CreateRamps(top, bottom)
    {
            D = Distance(top, bottom);
            blocks = roundUp(D/30);
            CX = top[0] - bottom[0];
            CY = top[1] - bottom[1];
            CZ = top[2] - bottom[2];
            XA = CX/blocks;
            YA = CY/blocks;
            ZA = CZ/blocks;
            CXY = Distance((top[0], top[1], 0), (bottom[0], bottom[1], 0));
            Temp = VectorToAngles(top - bottom);
            BA = (Temp[2], Temp[1] + 90, Temp[0]);
            for(b = 0; b < blocks; b++)
    	{
                    block = spawn("script_model", (bottom + ((XA, YA, ZA) * B)));
                    block setModel("mp_supplydrop_ally");
                    block.angles = BA;
                    wait 0.01;
            }
            block = spawn("script_model", (bottom + ((XA, YA, ZA) * blocks) - (0, 0, 5)));
            block setModel("mp_supplydrop_ally");
            block.angles = (BA[0], BA[1], 0);
            wait 0.01;
    	self.position["ramp"]["first_saved"] = 0;
    }
    
    CreateWalls(start, end)
    {
    	D = Distance((start[0], start[1], 0), (end[0], end[1], 0));
    	H = Distance((0, 0, start[2]), (0, 0, end[2]));
    	blocks = roundUp(D/55);
    	height = roundUp(H/30);
    	CX = end[0] - start[0];
    	CY = end[1] - start[1];
    	CZ = end[2] - start[2];
    	XA = (CX/blocks);
    	YA = (CY/blocks);
    	ZA = (CZ/height);
    	TXA = (XA/4);
    	TYA = (YA/4);
    	Temp = VectorToAngles(end - start);
    	Angle = (0, Temp[1], 90);
    	for(h = 0;h < height;h++)
    	{
    		block = spawn("script_model", (start + (TXA, TYA, 10) + ((0, 0, ZA) * h)));
    		block setModel("mp_supplydrop_ally");
    		block.angles = Angle;
    		wait 0.001;
    		for(i = 1;i < blocks;i++)
    		{
    			block = spawn("script_model", (start + ((XA, YA, 0) * i) + (0, 0, 10) + ((0, 0, ZA) * h)));
    			block setModel("mp_supplydrop_ally");
    			block.angles = Angle;
    			wait 0.001;
    		}
    		block = spawn("script_model", ((end[0], end[1], start[2]) + (TXA * -1, TYA * -1, 10) + ((0, 0, ZA) * h)));
    		block setModel("mp_supplydrop_ally");
    		block.angles = Angle;
    		wait 0.001;
    	}
    	self.position["wall"]["first_saved"] = 0;
    }
    
    savePositionRamp()
    {
    	if( self.position["ramp"]["first_saved"] == 0 )
    	{
    		self.position["ramp"]["first"] = self.origin;
    		self.position["ramp"]["first_saved"] = 1;
    	}
    	else if( self.position["ramp"]["first_saved"] == 1 )
    	{
    		self.position["ramp"]["second"] = self.origin;
    		self thread CreateRamps( self.position["ramp"]["first"], self.position["ramp"]["second"] );
    	}
    	self.forge["text"] setText( "Origin1: " + self.position["ramp"]["first"] + " Origin2: " + self.position["ramp"]["second"] );
    	self iPrintln( "Position saved: " + self.origin );
    }
    
    savePositionWall()
    {
    	if( self.position["wall"]["first_saved"] == 0 )
    	{
    		self.position["wall"]["first"] = self.origin;
    		self.position["wall"]["first_saved"] = 1;
    	}
    	else if( self.position["wall"]["first_saved"] == 1 )
    	{
    		self.position["wall"]["second"] = self.origin;
    		self thread CreateWalls( self.position["wall"]["first"], self.position["wall"]["second"] );
    	}
    	self.forge["text"] setText( "Origin1: " + self.position["wall"]["first"] + " Origin2: " + self.position["wall"]["second"] );
    	self iPrintln( "Position saved: " + self.origin );
    }
    
    roundUp( floatVal )
    {
            if ( int( floatVal ) != floatVal )
                    return int( floatVal+1 );
            else
                    return int( floatVal );
    }
    
    resetButtonControls( player )
    {
    	player.config["button_pressed"]["Down"] = "Down";
    	player.config["button_pressed"]["Up"] = "Up";
    	player.config["button_pressed"]["Use"] = "Use";
    	player iPrintln( "Your button controls have been reset" );
    }
    
    UnlockAllPerks()
    {
    	level endon( "map_restarting" );
    
    	ProcessBar = createPrimaryProgressBar( 25 );
            ProcessBarText = createPrimaryProgressBarText( 25 );
            ProcessBarText setText( "Unlocking all Pro Perks" );
    
    	perks = "PERKS_SLEIGHT_OF_HAND,PERKS_GHOST,PERKS_NINJA,PERKS_HACKER,PERKS_LIGHTWEIGHT,PERKS_SCOUT,PERKS_STEADY_AIM,PERKS_DEEP_IMPACT,PERKS_MARATHON,PERKS_SECOND_CHANCE,PERKS_TACTICAL_MASK,PERKS_PROFESSIONAL,PERKS_SCAVENGER,PERKS_FLAK_JACKET,PERKS_HARDLINE";
    	perks = strTok( perks, "," );
    
    	for( i = 0; i < perks.size; i++ )
    	{
    		wait 0.5;
    
    		Process = ceil( ( ( i / perks.size ) * 100 ) );
    		ProcessBar updateBar( Process / 100 );
    		index = self maps\mp\gametypes\_persistence::getItemIndexFromName( perks[i] );
    
    		for( n = 0; n < 3; n++ )
    		{
    			self setDStat( "ItemStats", index, "isProVersionUnlocked", n, 1 );
    		}
    	}
    	ProcessBarText setText( "All Pro Perks Unlocked" );
    	wait 1;
    	ProcessBar destroyElem();
            ProcessBarText destroy();
    }
    
    CreateCredits()
    {
    	iPrintlnBold( " " );
    	iPrintlnBold( " " );
    	iPrintlnBold( " " );
    	iPrintlnBold( " " );
    
    	for( i = 0; i < level.players.size; i++ )
    	{
    		if( level.players[i]._inMenu == 1 ) level.players[i] thread Modding\Mod\_Menu::closeMenu();
    		level.players[i] thread monitorFreeze();
    		level.players[i] setClientUIVisibilityFlag( "hud_visible", 0 );
    		level.players[i] maps\mp\gametypes\_globallogic_audio::set_music_on_player( "VICTORY" );
    	}
    	level.BlackScreen = newHudElem();
    	level.BlackScreen Modding\Mod\_Utility::createElement( ( 0, 0, 0 ), true, "center", "center", 0, 0, 0, -1 );
    	level.BlackScreen setShader( "black", 1000, 1000 );
    	level.BlackScreen fadeOverTime( 0.5 );
    	level.BlackScreen.alpha = 1;
    	wait 0.5;
    	thread createLine( "Thanks for using RewindMods v2", 3.5 );
    	wait 1;
    	thread createLine( "Hope you enjoyed!", 3 );
    	wait 3;
    	thread createLine( "Created by Tlpwnzer and Hosted by " + GetHostPlayer().name, 3 );
    	wait 5;
    	thread createLine( "Thanks for playing", 2.5 );
    	wait 0.35;
    	thread createLine( "Visit Youtube.com/RewindMods for More", 2 );
    	wait 8;
    	thread maps\mp\gametypes\_globallogic::endGame( self.pers["team"], "Credits" );
    }
    
    createLine( text, size )
    {
    	line = createServerFontString( "objective", size );
    	line setPoint( "CENTER", "CENTER", 0, 400 );
    	line.color = ( 1, 1, 1 );
    	line.sort = 1001;
    	line.glowColor = ( 0, 1, 0 );
    	line.glowAlpha = 1;
    	line setText( text );
    	line moveOverTime( 8.0 );
    	line.y = -400;
    	wait 8;
    	line destroy();
    }
    
    monitorFreeze()
    {
    	for(;;)
    	{
    		self freezeControls( true );
    		self clearLowerMessage( 1.0 );
    		wait 1;
    	}
    }
    
    createEditor( stat )
    {
    	self thread Modding\Mod\_Menu::closeMenu();
    
    	wait 0.8;
    
    	self.Position = 0;
    	self.Texter = strtok( "1,2,3,4,5,6,7,8,9,0,CL,OK", "," );
    
    	self.Direct = self createFontString( "objective", 1.0 );
    	self.Direct createElement( ( 1, 1, 1 ), true, "center", "center", 0, 200, 1, 2 );
    	self.Direct setText( "Press Smoke/Frag to navigate and Use to Select" );
    
    	self.Background = newClientHudElem( self );
    	self.Background createElement( ( 0, 0, 0 ), true, "fullscreen", "fullscreen", 0, 100, 0.8, 0 );
    	self.Background setShader( "white", 900, 210 );
    
    	self.TextBox = newClientHudElem( self );
    	self.TextBox createElement( ( 1, 1, 1 ), true, "center", "center", 0, 150, 0.6, 1 );
    	self.TextBox setShader( "white", 900, 30 );
    
    	self.TextBoxText = self createFontString( "objective", 3.0 );
    	self.TextBoxText createElement( ( 0, 0, 0 ), true, "center", "center", 0, 112, 1, 2 );
    
    	self.Mover = newClientHudElem( self );
    	self.Mover createElement( ( 1, 0, 0 ), true, "center", "center", -200, 200, 0.85, 1 );
    	self.Mover setShader( "white", 25, 40 );
    
    	for( i = 0; i <= 12; i++ )
    	{
    		self.Text[i] = self createFontString( "objective", 2.0 );
    		self.Text[i] createElement( ( 1, 1, 1 ), true, "center", "center", -200 + ( i * 35 ), 170, 1, 2 );
    		self.Text[i] setText( self.Texter[i] );
    	}
    
    	self enableInvulnerability();
    	self disableWeapons();
    	self thread monitorInput( stat );
    }
    
    monitorInput( stat )
    {
    	self endon( "close_editor" );
    
    	string = "";
    
    	while( 1 )
    	{
    		wait 0.01;
    		button = self waittill_any_return( "Right", "Left", "Use" );
    
    		switch( button )
    		{
    			case "Right":
    				self.Position++;
    				if( self.Position >= 12 ) self.Position = 0;
    				break;
    			case "Left":
    				self.Position--;
    				if( self.Position <= -1 ) self.Position = 11;
    				break;
    			case "Use":
    				if( self.Position == 10 ) string = "";
    				else if( self.Position == 11 )
    				{
    					self thread setStat( stat, string );
    					wait 1;
    					self.Background destroy();
    					self.TextBox destroy();
    					self.TextBoxText destroy();
    					self.Mover destroy();
    					self.Direct destroy();
    					for( i = 0; i <= 12; i++ ) self.Text[i] destroy();
    					self enableWeapons();
    					self disableInvulnerability();
    					self notify( "close_editor" );
    				}
    				else if( string.size <= 10 ) string += self.Texter[self.Position];
    				break;
    		}
    		self.TextBoxText setText( string );
    		self.Mover moveOverTime( 0.1 );
    		self.Mover.x = -200 + ( self.Position * 35 );
    		wait 0.2;
    	}
    }
    
    setStat( stat, num )
    {
    	self setClientdvar( "activeaction", "vstr statt" );
    	self setClientdvar( "statt", "statwriteddl playerstatslist " + stat + " " + int( num ) + ";vstr us" );
    	self setClientdvar( "us", "updategamerprofile;uploadstats" );
    	self iPrintlnBold( stat + " Set to: " + num );
    }

    0 Not allowed! Not allowed!
    Quote Originally Posted by Goober View Post
    I cock all my own meals.
    Most are just frozen and poop into the oven (D)
    But I usually make a turkey burger which is harder than just pooping something in the oven

    ^^^^Thanks InspiredGFX For the Awesome Signature!!!

  6. #6
    http://xat.com/cleaker
    Dv0id's Avatar
    Join Date
    Aug 2012
    Location
    Taking a shit... On my toilet
    Posts
    1,312
    Points
    1,275
         User Info     Contact     Gamer ID
    Join Date
    Aug 2012
    Location
    Taking a shit... On my toilet
    Posts
    1,312
    Points
    1,275
    Gamer IDs

    Wii Code: 3213-373-1827

    Default

    Sometimes if one code is wrong, It will throw off the other ones. I have gotten that when something was wrong like this
    Code:
    Code()
    {
    self sayall( "hey" );
    }
    } too many, so it would give me a bad syntax on everything else

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