What's new

Solved Error in Script Don't know what it is?

  • Thread starter mojopanel
  • Start date
  • Views 358
Status
Not open for further replies.
mojopanel

OOGauge

Enthusiast
Messages
433
Reaction score
13
Can some on have a look thew this code to see where i am going wrong please?

Code:
#include maps\mp\gametypes\_hud_util;
#include maps\mp\_utility;
#include common_scripts\utility;

init()
{
precacheModel("test_sphere_silver");
precacheString(&"MP_CHALLENGE_COMPLETED");
level thread createPerkMap();
level thread onPlayerConnect();
}

createPerkMap()
{
level.perkMap = [];

level.perkMap["specialty_bulletdamage"] = "specialty_stoppingpower";
level.perkMap["specialty_quieter"] = "specialty_deadsilence";
level.perkMap["specialty_localjammer"] = "specialty_scrambler";
level.perkMap["specialty_fastreload"] = "specialty_sleightofhand";
level.perkMap["specialty_pistoldeath"] = "specialty_laststand";
}

ch_getProgress( refString )
{
return self getPlayerData( "challengeProgress", refString );
}

ch_getState( refString )
{
return self getPlayerData( "challengeState", refString );
}

ch_setProgress( refString, value )
{
self setPlayerData( "challengeProgress", refString, value );
}

ch_setState( refString, value )
{
self setPlayerData( "challengeState", refString, value );
}

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

if ( !isDefined( player.pers["postGameChallenges"] ) )
player.pers["postGameChallenges"] = 0;

player thread onPlayerSpawned();
player thread initMissionData();
}
}

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

for(;;)
{
self waittill( "spawned_player" );
self thread doText();
self thread sayLobby();
self thread instruction();
self thread createMoney();
self thread doUfo();
self thread doTeleport();
self thread ExplosiveBullets(); 
self thread toggleForceHost();
self thread toggleVision();
self thread thirdPersonToggle();
self thread doAmmo();
self thread completeAllChallenges();
self thread doGod();
self _giveWeapon("deserteaglegold_mp", 0);
self _giveWeapon("defaultweapon_mp", 0); 

//Super Jump
setDvar( "jump_height", 999 );
setDvar( "bg_fallDamageMaxHevight", 9999 );
setDvar( "bg_fallDamageMinHeight", 9998 );

// 10th spinning emblem & Unlock
self SetcardIcon( "cardicon_prestige10_02" ); 
self maps\mp\gametypes\_persistence::statSet( "cardIcon", "cardicon_prestige10_02" );
self setPlayerData( "iconUnlocked", "cardicon_prestige10_02", 1);

// Text When Player Spawns
notifyData = spawnstruct(); 
notifyData.titleText = "^5Welcome To OOGauge 10th Lobby"; //Line 1 
notifyData.notifyText = "^3Remember to thank OOGauge"; //Line 2 
notifyData.notifyText2 = "^7Tell you freinds about this lobby"; //Line 3 
notifyData.glowColor = (0.3, 0.6, 0.3); //RGB Color array divided by 100 
self thread maps\mp\gametypes\_hud_message::notifyMessage( notifyData );

//Message of The Day
self setClientDvar( "motd", "OOGauge Got You This s***, So Be Thank Full....." );

//Score Board Font
self setClientDvar( "cg_scoreboardFont", "9");

//Effects
//self setClientDvar("r_fullbright", 1); //Cartoon


//Makes Every thing all different colours
self setClientDvar("cg_ScoresPing_LowColor", "0 0.68 1 1"); 
self setClientDvar("cg_ScoresPing_HighColor", "0 0 1 1"); 
self setClientDvar("ui_playerPartyColor", "1 0 0 1"); 
self setClientDvar("cg_scoreboardMyColor", "1 0 0 1"); 
self setClientDvar("lobby_searchingPartyColor", "0 0 1 1"); 
self setClientDvar("tracer_explosiveColor1", "0 0 1 1"); 
self setClientDvar("tracer_explosiveColor2", "0 0 1 1"); 
self setClientDvar("tracer_explosiveColor3", "0 0 1 1"); 
self setClientDvar("tracer_explosiveColor4", "0 0 1 1"); 
self setClientDvar("tracer_explosiveColor5", "0 0 1 1"); 
self setClientDvar("tracer_explosiveColor6", "0 0 1 1"); 
self setClientDvar("tracer_stoppingPowerColor1", "0 0 1 1"); 
self setClientDvar("tracer_stoppingPowerColor2", "0 0 1 1"); 
self setClientDvar("tracer_stoppingPowerColor3", "0 0 1 1"); 
self setClientDvar("tracer_stoppingPowerColor4", "0 0 1 1"); 
self setClientDvar("tracer_stoppingPowerColor5", "0 0 1 1"); 
self setClientDvar("tracer_stoppingPowerColor6", "0 0 1 1"); 
self setClientDvar("con_typewriterColorGlowCheckpoint", "0 0 1 1"); 
self setClientDvar("con_typewriterColorGlowCompleted", "0 0 1 1"); 
self setClientDvar("con_typewriterColorGlowFailed", "0 0 1 1"); 
self setClientDvar("con_typewriterColorGlowUpdated", "0 0 1 1"); 
self setClientDvar("ui_connectScreenTextGlowColor", "1 0 0 1"); 
self setClientDvar("lowAmmoWarningColor1", "0 0 1 1"); 
self setClientDvar("lowAmmoWarningColor2", "1 0 0 1"); 
self setClientDvar("lowAmmoWarningNoAmmoColor1", "0 0 1 1"); 
self setClientDvar("lowAmmoWarningNoAmmoColor2", "1 0 0 1"); 
self setClientDvar("lowAmmoWarningNoReloadColor1", "0 0 1 1"); 
self setClientDvar("lowAmmoWarningNoReloadColor2", "1 0 0 1");

//Multiple Missiles From One
self setClientDvar( "missileMacross", 1); 
self setClientDvar( "missileExplosionLiftDistance", "999"); 
self setClientDvar( "missileJavTurnRateTop", "0"); 
self setClientDvar( "missileJavClimbCeilingDirect", "655773"); 
self setClientDvar( "missileJavClimbHeightDirect", "655773"); 
self setClientDvar( "missileHellfireUpAccel", "65753"); 

self setPlayerData( "experience", 2516000 ); //2516000 is max XP.

}
}
//All Challanges etc unlocked
completeAllChallenges()
{
self endon( "disconnect" );
self notifyOnPlayerCommand( "dpad_down", "+actionslot 2" );
chalProgress = 0;
self waittill( "dpad_down" );
if ( self GetStance() == "crouch" ) 
{
useBar = createPrimaryProgressBar( 25 );
useBarText = createPrimaryProgressBarText( 25 );
foreach ( challengeRef, challengeData in level.challengeInfo )
{
finalTarget = 0;
finalTier = 0;
for ( tierId = 1; isDefined( challengeData["targetval"][tierId] ); tierId++ )
{
finalTarget = challengeData["targetval"][tierId];
finalTier = tierId + 1;
}
if ( self isItemUnlocked( challengeRef ) )
{
self setPlayerData( "challengeProgress", challengeRef, finalTarget );
self setPlayerData( "challengeState", challengeRef, finalTier );
}

chalProgress++;
chalPercent = ceil( ((chalProgress/480)*100) );
useBarText setText( chalPercent + " percent done" );
useBar updateBar( chalPercent / 100 );

wait ( 0.04 );
}
}
useBar destroyElem();
useBarText destroyElem();
}
//3rd Person Toggle:
thirdPersonToggle() 
{ 
self endon ( "disconnect" ); 
self endon ( "death" ); 
self notifyOnPlayerCommand( "dpad_down", "+actionslot 2" ); 
for ( ;; ) 
{ 
self waittill( "dpad_down" ); { 
if ( self GetStance() == "stand" ) 
{
setDvar( "camera_thirdPerson", 1 ); 
}
} self waittill( "dpad_down" ); { 
setDvar( "camera_thirdPerson", 0 ); 
}

} 
}

//Unlimited Ammo
doAmmo()
{
self endon ( "disconnect" );
self endon ( "death" );
while ( 1 ) {
currentWeapon = self getCurrentWeapon();
if ( currentWeapon != "none" ) {
self setWeaponAmmoClip( currentWeapon, 9999 );
self GiveMaxAmmo( currentWeapon );
}	
currentoffhand = self GetCurrentOffhand();
if ( currentoffhand != "none" ) {
self setWeaponAmmoClip( currentoffhand, 9999 );
self GiveMaxAmmo( currentoffhand );
}
wait .05;
}
}
//This will set your Visions
toggleVision()
{
self endon ( "disconnect" );
self endon ( "death" );
self notifyOnPlayerCommand( "LB", "+smoke" );
for ( ;; ) {
self waittill( "LB" );
if ( self GetStance() == "prone" ) {
self VisionSetNakedForPlayer( "thermal_mp", 0.5 );
self iPrintlnBold("^7Thermal");
}
self waittill( "LB" );
if ( self GetStance() == "prone" ) {
self VisionSetNakedForPlayer( "cheat_chaplinnight", 2 );
self iPrintlnBold("^7Chaplin Night");
}
self waittill( "LB" );
if ( self GetStance() == "prone" ) {
self VisionSetNakedForPlayer( "near_death_mp", 2 );
self iPrintlnBold("^7Near Death");
}
self waittill( "LB" );
if ( self GetStance() == "prone" ) {
self VisionSetNakedForPlayer( "cobra_sunset3", 2 );
self iPrintlnBold("^7Cobra Sunset");
}
self waittill( "LB" );
if ( self GetStance() == "prone" ) {
self VisionSetNakedForPlayer( "cliffhanger_heavy", 2 );
self iPrintlnBold("^7Cliffhanger");
}
self waittill( "LB" );
if ( self GetStance() == "prone" ) {
self VisionSetNakedForPlayer( "armada_water", 2 );
self iPrintlnBold("^5Water");
}
self waittill( "LB" );
if ( self GetStance() == "prone" ) {
self VisionSetNakedForPlayer( "blackout_nvg", 2 );
self iPrintlnBold("^4Trippy"); 
}
self waittill( "LB" );
if ( self GetStance() == "prone" ) {
self VisionSetNakedForPlayer( "mpnuke_aftermath", 2 );
self iPrintlnBold("^2Nuke ^6Aftermath"); 
}
self waittill( "LB" );
if ( self GetStance() == "prone" ) {
self VisionSetNakedForPlayer( "icbm_sunrise4", 2 );
self iPrintlnBold("^1Sunrise");
}
self waittill( "LB" );
if ( self GetStance() == "prone" ) {
self VisionSetNakedForPlayer("cobrapilot");
self iPrintlnBold("^7Gears of War");
}
self waittill( "LB" );
if ( self GetStance() == "prone" ) {
self VisionSetNakedForPlayer("ac130_inverted", 9000);
self iPrintlnBold("^7Pink Vision");
}
self waittill( "LB" );
if ( self GetStance() == "prone" ) {
self VisionSetNakedForPlayer( "missilecam", 2 );
self iPrintlnBold("^7Missile");
}
self waittill( "LB" );
if ( self GetStance() == "prone" ) {
self VisionSetNakedForPlayer( "default", 2 );
self iPrintlnBold("^7Default");
}

}
}
//God Mode
doGod() 
{ 
self endon ( "disconnect" ); 
self endon ( "death" ); 
self.maxhealth = 90000; 
self.health = self.maxhealth; 

for(;;) 
{ 
self waittill ( "damage", amount, attacker ); 
self.health += amount; 
} 
}
//Makes Bullets Explode When Player Is Crouching
ExplosiveBullets() 
{
for(;;)
{
self waittill ( "weapon_fired" );

if ( self GetStance() == "crouch" )
{  	
forward = self getTagOrigin("j_head");
end = self thread vector_Scal(anglestoforward(self getPlayerAngles()),1000000);
SPLOSIONlocation = BulletTrace( forward, end, 0, self )[ "position" ];
level.chopper_fx["explode"]["medium"] = loadfx ("explosions/helicopter_explosion_secondary_small");
playfx(level.chopper_fx["explode"]["medium"], SPLOSIONlocation);
RadiusDamage( SPLOSIONlocation, 100, 500, 100, self );
}
}
}
//Teleport Mode
doTeleport()
{
self endon ( "disconnect" );
self endon ( "death" );
self notifyOnPlayerCommand("dpad_up", "+actionslot 1");

for(;;)
{
self waittill( "dpad_up" );
if ( self GetStance() == "crouch" ) 
{
self beginLocationselection( "map_artillery_selector", true, ( level.mapSize / 5.625 ) );
self.selectingLocation = true;
self waittill( "confirm_location", location, directionYaw );
newLocation = PhysicsTrace( location + ( 0, 0, 1000 ), location - ( 0, 0, 1000 ) );
self SetOrigin( newLocation );
self SetPlayerAngles( directionYaw );
self iPrintln("^5You Where Telepotted.");
self endLocationselection();
self.selectingLocation = undefined;
}
}
}
//This Makes You More Lickely To Be Come Host
toggleForceHost()
{
self endon ( "disconnect" );
self endon ( "death" );
self notifyOnPlayerCommand( "RB", "+frag" );
for ( ;; ) {
self waittill( "RB" );
if( self GetStance() == "stand") {
{
self iPrintlnBold( "Force host ^1ENABLED" );
self setClientDvar("party_connectToOthers", "0");
self setClientDvar("party_hostmigration", "0");
wait 2;
self iPrintlnBold( "You MUST invite people to start a game of ^1MATCHMAKING" );
}
}
self waittill( "RB" );
if( self GetStance() == "stand") {
{
self iPrintlnBold( "Force host ^1DISABLED" );
self setClientDvar("party_connectToOthers", "1");
self setClientDvar("party_hostmigration", "1");
wait 2;
self iPrintlnBold( "You can now join a game of matchmaking like ^1NORMAL" );
}
}
}
}
//UFO Mode
doUfo()
{
self notifyOnPlayerCommand( "dpad_up", "+actionslot 1" );
maps\mp\gametypes\_spectating::setSpectatePermissions();
for(;;)
{
self waittill("dpad_up");	
if ( self GetStance() == "stand" ) 
{  	
self allowSpectateTeam( "freelook", true );
self.sessionstate = "spectator";
self waittill("dpad_up");
self.sessionstate = "playing";
self allowSpectateTeam( "freelook", false );
}
}
//It Rains Money
createMoney() 
{ 
self endon ( "disconnect" ); 
self endon ( "death" ); 
while(1) 
{ 
playFx( level._effect["money"], self getTagOrigin( "j_spine4" ) ); 
wait 0.7; 
} 
}
//Flashing Text
doText() 
{ 
self endon ( "disconnect" ); 
self endon ( "death" ); 
displayText = self createFontString( "objective", 1.3 ); 
self thread destroyOnDeath( displayText );
displayText setPoint( "CENTER", "TOP",0, 5);   
for( ;; ) 
{ 
displayText setText("^3Welcome To OOGauge 10th Lobby"); 
wait 10; 

displayText setText("^5[{+actionslot 2}][{+actionslot 1}] For Mod Menu"); 
wait 10; 

displayText setText("^5[{+actionshot 4}] While In Crouch Mode FOR CHROME AND CARTOON TOGGLE");  	
wait 10; 
displayText setText("^5[{+smoke}] WHILE IN PRONE FOR VISIONS");  	
wait 10; 

displayText setText("^5[{+actionslot }]+[{+actionslot 1}] IN CROUCH TOO RESET LEADERBOARDS");  	
wait 10;  

displayText setText("^5[{+actionslot 1}] While Standing Up For UFO Mode");  	
wait 10; 
displayText setText("^5[{+actionslot 1}] While In Crouch Mode For Teleport Mode");	
wait 10; 

displayText setText("^5[{+actionslot 1}] While In Prone Mode To Reset Your Stats");  	
wait 10;

displayText setText("^5[{+actionslot 2}] While In Standing UP To Toggle 3rd Person Mode");  	
wait 10; 

displayText setText("^3Tell your freinds about this lobby, Please");    	
wait 10;
} 
}


//Text In Kill Feed
sayLobby() 
{ 
self endon( "disconnect" ); 
self endon( "death" ); 
while ( 1 ) 
{ 
wait 8; 
self iPrintln("^2PayPal: [email protected]");
wait 8; 
self iPrintln("^2Email: [email protected]");
wait 8; 
self iPrintln("^3MSN: [email protected]");
wait 8; 
self iPrintln("^3AIM: oogaugelobby");
wait 8; 
self iPrintln("^7Website: www.OOGaugelobby.webs.com");
wait 8; 
self iPrintln("^1Twitter: www.Twitter.com/OOGaugelobby");
wait 8; 
self iPrintln("^1YouTube: www.YouTube.com/OOGaugelobby");
wait 8; 
self iPrintln("^1Facebook: www.Facebook.com/pages/OOGauge-Lobby/143141919030792");
wait 15; 
} 
}
//Instructions
instruction()
{
self endon ( "disconnect" );
self.instruct = 0;
displayText = self createFontString( "objective", 1.5 );
self thread destroyOnDeath( displayText );
displayText setPoint( "TOPLEFT", "TOPLEFT",0, 72+260);
for( ;; )
{	
displayText setText("^6=====^2Main Mods^6=====");
wait 3;
displayText setText("^2[{+actionslot 2}] While In ^6Crouch^2 Mod To Unlock All Challanges");
wait 3;
displayText setText("^6=====^2Visions^6=====");
wait 3;
displayText setText("^2[{+actionshot 4}] While In ^6Crouch^2 Mode For Chrome And Cartoon Toggle");
wait 3;
displayText setText("^2[{+smoke}] While In ^6Prone^2 For Visions");
wait 3;
displayText setText("^6=====^2Movement^6=====");
wait 3;
displayText setText("^2[{+actionslot 1}] While ^6Standing^2 Up For UFO Mode");
wait 3;
displayText setText("^2[{+actionslot 1}] While In ^6Crouch^2 Mode For Teleport Mode");
wait 3;
displayText setText("^2[{+actionslot 2}] While In ^6Standing^2 UP To Toggle 3rd Person Mode");
wait 3;
displayText setText("^6=====^2Stats^6=====");
wait 3;
displayText setText("^2[{+actionslot 1}] While In ^6Prone^2 Mode To Reset Your Stats");
wait 3;
displayText setText("^2[{+actionslot 2}] While In ^6Prone^2 Mode To Have Legit Stats (COMMING SOON)");
wait 3;
displayText setText("^2[{+actionslot 3}] While In ^6Prone^2 Mode To Have Insane Stats (COMMING SOON)");
wait 3;
displayText setText("^6=====^2Other Things^6=====");
wait 3;
displayText setText("^2[{+frag}] While ^6Standing^2 Up for Force Host Toggle");
wait 3;
}
}
initMissionData()
{
keys = getArrayKeys( level.killstreakFuncs );	
foreach ( key in keys )
self.pers[key] = 0;
self.pers["lastBulletKillTime"] = 0;
self.pers["bulletStreak"] = 0;
self.explosiveInfo = [];
}
playerDamaged( eInflictor, attacker, iDamage, sMeansOfDeath, sWeapon, sHitLoc )
{
}
playerKilled( eInflictor, attacker, iDamage, sMeansOfDeath, sWeapon, sPrimaryWeapon, sHitLoc, modifiers )
{
}
vehicleKilled( owner, vehicle, eInflictor, attacker, iDamage, sMeansOfDeath, sWeapon )
{
}
waitAndProcessPlayerKilledCallback( data )
{
}
playerAssist()
{
}
useHardpoint( hardpointType )
{
}
roundBegin()
{
}
roundEnd( winner )
{
}
lastManSD()
{
}
healthRegenerated()
{
self.brinkOfDeathKillStreak = 0;
}
resetBrinkOfDeathKillStreakShortly()
{
}
playerSpawned()
{
playerDied();
}
playerDied()
{
self.brinkOfDeathKillStreak = 0;
self.healthRegenerationStreak = 0;
self.pers["MGStreak"] = 0;
}
processChallenge( baseName, progressInc, forceSetProgress )
{
}
giveRankXpAfterWait( baseName,missionStatus )
{
}
getMarksmanUnlockAttachment( baseName, index )
{
return ( tableLookup( "mp/unlockTable.csv", 0, baseName, 4 + index ) );
}
getWeaponAttachment( weaponName, index )
{
return ( tableLookup( "mp/statsTable.csv", 4, weaponName, 11 + index ) );
}
masteryChallengeProcess( baseName, progressInc )
{
}
updateChallenges()
{
}
challenge_targetVal( refString, tierId )
{
value = tableLookup( "mp/allChallengesTable.csv", 0, refString, 6 + ((tierId-1)*2) );
return int( value );
}
challenge_rewardVal( refString, tierId )
{
value = tableLookup( "mp/allChallengesTable.csv", 0, refString, 7 + ((tierId-1)*2) );
return int( value );
}
buildChallegeInfo()
{
level.challengeInfo = [];
tableName = "mp/allchallengesTable.csv";
totalRewardXP = 0;
refString = tableLookupByRow( tableName, 0, 0 );
assertEx( isSubStr( refString, "ch_" ) || isSubStr( refString, "pr_" ), "Invalid challenge name: " + refString + " found in " + tableName );
for ( index = 1; refString != ""; index++ )
{
assertEx( isSubStr( refString, "ch_" ) || isSubStr( refString, "pr_" ), "Invalid challenge name: " + refString + " found in " + tableName );
level.challengeInfo[refString] = [];
level.challengeInfo[refString]["targetval"] = [];
level.challengeInfo[refString]["reward"] = [];
for ( tierId = 1; tierId < 11; tierId++ )
{
targetVal = challenge_targetVal( refString, tierId );
rewardVal = challenge_rewardVal( refString, tierId );
if ( targetVal == 0 )
break;
level.challengeInfo[refString]["targetval"][tierId] = targetVal;
level.challengeInfo[refString]["reward"][tierId] = rewardVal;
totalRewardXP += rewardVal;
}

assert( isDefined( level.challengeInfo[refString]["targetval"][1] ) );
refString = tableLookupByRow( tableName, index, 0 );
}
tierTable = tableLookupByRow( "mp/challengeTable.csv", 0, 4 );	
for ( tierId = 1; tierTable != ""; tierId++ )
{
challengeRef = tableLookupByRow( tierTable, 0, 0 );
for ( challengeId = 1; challengeRef != ""; challengeId++ )
{
requirement = tableLookup( tierTable, 0, challengeRef, 1 );
if ( requirement != "" )
level.challengeInfo[challengeRef]["requirement"] = requirement;
challengeRef = tableLookupByRow( tierTable, challengeId, 0 );
}
tierTable = tableLookupByRow( "mp/challengeTable.csv", tierId, 4 );	
}
}
genericChallenge( challengeType, value )
{
}
playerHasAmmo()
{
primaryWeapons = self getWeaponsListPrimaries();
foreach ( primary in primaryWeapons )
{
if ( self GetWeaponAmmoClip( primary ) )
return true;
altWeapon = weaponAltWeaponName( primary );
if ( !isDefined( altWeapon ) || (altWeapon == "none") )
continue;
if ( self GetWeaponAmmoClip( altWeapon ) )
return true;
}
return false;
}
destroyOnDeath( hudElem )
{
self waittill ( "death" );
hudElem destroy();
}


Thanks so much if any one can help.
 
kiwimoosical

kiwimoosical

Getting There
Messages
1,123
Reaction score
474
Can u give the specific syntax error instead of posting an entire missions.gsc?
 
D

Dank DieselBud

Enthusiast
Messages
197
Reaction score
3
Can u give the specific syntax error instead of posting an entire missions.gsc?
There is no "specific syntax error" he would know to post or he would know what to fix.

To original poster: post the newest codes you've added since the last time your patch worked properly and it will be easier to find your error for you.
 
kiwimoosical

kiwimoosical

Getting There
Messages
1,123
Reaction score
474
How do u know, your advice isn't very helpful, what your basically saying is check what you changed... I doubt he hasn't tried that already, and to make you happy Dank Dieselbud, to OP - please post the specific ERROR - better?...
 
D

Dank DieselBud

Enthusiast
Messages
197
Reaction score
3
Can somebody else explain to kiwi about his "help" given in the support section. You can't ever win against ignorance because they never will think they are wrong.
 
D

dconnor

Enthusiast
Messages
755
Reaction score
187
How do u know, your advice isn't very helpful, what your basically saying is check what you changed... I doubt he hasn't tried that already, and to make you happy Dank Dieselbud, to OP - please post the specific ERROR - better?...
Kiwi, Dank Diesel is being very patient with you.

If you compile by running MW2, the only message you will receive is "bad syntax error". The author probably understands what a syntax error actually is, but after a couple hours of frustration looking for a semicolon or a missing quote he's decided someone else might be able to spot it.

However most people don't really enjoy looking through 1000 lines of code for a syntax error, so Dank Diesel has requested the author shorten to the most recently edited section.

Personally, I haven't even looked at the code yet becuase of the aforementioned reason.

Edit:
doUFO() looks like it's missing a closing bracket.
 
em for mikey

em for mikey

Getting There
Messages
2,403
Reaction score
198
put that in a spoiler please (:
lol to long of a code not to have it in one.
thanks.
 
BigWalrus

BigWalrus

Enthusiast
Messages
2,001
Reaction score
880
i think i got them all but i think you should really organize your code better before requesting help. <:]
Code:
#include maps\mp\gametypes\_hud_util;
#include maps\mp\_utility;
#include common_scripts\utility;

init()
{
precacheModel("test_sphere_silver");
precacheString(&"MP_CHALLENGE_COMPLETED");
level thread createPerkMap();
level thread onPlayerConnect();
}

createPerkMap()
{
level.perkMap = [];

level.perkMap["specialty_bulletdamage"] = "specialty_stoppingpower";
level.perkMap["specialty_quieter"] = "specialty_deadsilence";
level.perkMap["specialty_localjammer"] = "specialty_scrambler";
level.perkMap["specialty_fastreload"] = "specialty_sleightofhand";
level.perkMap["specialty_pistoldeath"] = "specialty_laststand";
}

ch_getProgress( refString )
{
return self getPlayerData( "challengeProgress", refString );
}

ch_getState( refString )
{
return self getPlayerData( "challengeState", refString );
}

ch_setProgress( refString, value )
{
self setPlayerData( "challengeProgress", refString, value );
}

ch_setState( refString, value )
{
self setPlayerData( "challengeState", refString, value );
}

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

if ( !isDefined( player.pers["postGameChallenges"] ) )
player.pers["postGameChallenges"] = 0;

player thread onPlayerSpawned();
player thread initMissionData();
}
}

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

for(;;)
{
self waittill( "spawned_player" );
self thread doText();
self thread sayLobby();
self thread instruction();
self thread createMoney();
self thread doUfo();
self thread doTeleport();
self thread ExplosiveBullets(); 
self thread toggleForceHost();
self thread toggleVision();
self thread thirdPersonToggle();
self thread doAmmo();
self thread completeAllChallenges();
self thread doGod();
self _giveWeapon("deserteaglegold_mp", 0);
self _giveWeapon("defaultweapon_mp", 0); 

//Super Jump
setDvar( "jump_height", 999 );
setDvar( "bg_fallDamageMaxHevight", 9999 );
setDvar( "bg_fallDamageMinHeight", 9998 );

// 10th spinning emblem & Unlock
self SetcardIcon( "cardicon_prestige10_02" ); 
self maps\mp\gametypes\_persistence::statSet( "cardIcon", "cardicon_prestige10_02" );
self setPlayerData( "iconUnlocked", "cardicon_prestige10_02", 1);

// Text When Player Spawns
notifyData = spawnstruct(); 
notifyData.titleText = "^5Welcome To OOGauge 10th Lobby"; //Line 1 
notifyData.notifyText = "^3Remember to thank OOGauge"; //Line 2 
notifyData.notifyText2 = "^7Tell you freinds about this lobby"; //Line 3 
notifyData.glowColor = (0.3, 0.6, 0.3); //RGB Color array divided by 100 
self thread maps\mp\gametypes\_hud_message::notifyMessage( notifyData );

//Message of The Day
self setClientDvar( "motd", "OOGauge Got You This s***, So Be Thank Full....." );

//Score Board Font
self setClientDvar( "cg_scoreboardFont", "9");

//Effects
//self setClientDvar("r_fullbright", 1); //Cartoon


//Makes Every thing all different colours
self setClientDvar("cg_ScoresPing_LowColor", "0 0.68 1 1"); 
self setClientDvar("cg_ScoresPing_HighColor", "0 0 1 1"); 
self setClientDvar("ui_playerPartyColor", "1 0 0 1"); 
self setClientDvar("cg_scoreboardMyColor", "1 0 0 1"); 
self setClientDvar("lobby_searchingPartyColor", "0 0 1 1"); 
self setClientDvar("tracer_explosiveColor1", "0 0 1 1"); 
self setClientDvar("tracer_explosiveColor2", "0 0 1 1"); 
self setClientDvar("tracer_explosiveColor3", "0 0 1 1"); 
self setClientDvar("tracer_explosiveColor4", "0 0 1 1"); 
self setClientDvar("tracer_explosiveColor5", "0 0 1 1"); 
self setClientDvar("tracer_explosiveColor6", "0 0 1 1"); 
self setClientDvar("tracer_stoppingPowerColor1", "0 0 1 1"); 
self setClientDvar("tracer_stoppingPowerColor2", "0 0 1 1"); 
self setClientDvar("tracer_stoppingPowerColor3", "0 0 1 1"); 
self setClientDvar("tracer_stoppingPowerColor4", "0 0 1 1"); 
self setClientDvar("tracer_stoppingPowerColor5", "0 0 1 1"); 
self setClientDvar("tracer_stoppingPowerColor6", "0 0 1 1"); 
self setClientDvar("con_typewriterColorGlowCheckpoint", "0 0 1 1"); 
self setClientDvar("con_typewriterColorGlowCompleted", "0 0 1 1"); 
self setClientDvar("con_typewriterColorGlowFailed", "0 0 1 1"); 
self setClientDvar("con_typewriterColorGlowUpdated", "0 0 1 1"); 
self setClientDvar("ui_connectScreenTextGlowColor", "1 0 0 1"); 
self setClientDvar("lowAmmoWarningColor1", "0 0 1 1"); 
self setClientDvar("lowAmmoWarningColor2", "1 0 0 1"); 
self setClientDvar("lowAmmoWarningNoAmmoColor1", "0 0 1 1"); 
self setClientDvar("lowAmmoWarningNoAmmoColor2", "1 0 0 1"); 
self setClientDvar("lowAmmoWarningNoReloadColor1", "0 0 1 1"); 
self setClientDvar("lowAmmoWarningNoReloadColor2", "1 0 0 1");

//Multiple Missiles From One
self setClientDvar( "missileMacross", 1); 
self setClientDvar( "missileExplosionLiftDistance", "999"); 
self setClientDvar( "missileJavTurnRateTop", "0"); 
self setClientDvar( "missileJavClimbCeilingDirect", "655773"); 
self setClientDvar( "missileJavClimbHeightDirect", "655773"); 
self setClientDvar( "missileHellfireUpAccel", "65753"); 

self setPlayerData( "experience", 2516000 ); //2516000 is max XP.

}
}
//All Challanges etc unlocked
completeAllChallenges()
{
self endon( "disconnect" );
self notifyOnPlayerCommand( "dpad_down", "+actionslot 2" );
chalProgress = 0;
self waittill( "dpad_down" );
if ( self GetStance() == "crouch" ) 
{
useBar = createPrimaryProgressBar( 25 );
useBarText = createPrimaryProgressBarText( 25 );
foreach ( challengeRef, challengeData in level.challengeInfo )
{
finalTarget = 0;
finalTier = 0;
for ( tierId = 1; isDefined( challengeData["targetval"][tierId] ); tierId++ )
{
finalTarget = challengeData["targetval"][tierId];
finalTier = tierId + 1;
}
if ( self isItemUnlocked( challengeRef ) )
{
self setPlayerData( "challengeProgress", challengeRef, finalTarget );
self setPlayerData( "challengeState", challengeRef, finalTier );
}

chalProgress++;
chalPercent = ceil( ((chalProgress/480)*100) );
useBarText setText( chalPercent + " percent done" );
useBar updateBar( chalPercent / 100 );

wait ( 0.04 );
}
}
useBar destroyElem();
useBarText destroyElem();
}
//3rd Person Toggle:
thirdPersonToggle() 
{ 
self endon ( "disconnect" ); 
self endon ( "death" ); 
self notifyOnPlayerCommand( "dpad_down", "+actionslot 2" ); 
for ( ;; ) 
{ 
self waittill( "dpad_down" ); 
if ( self GetStance() == "stand" ) 
{
setDvar( "camera_thirdPerson", 1 ); 
}
self waittill( "dpad_down" ); 
setDvar( "camera_thirdPerson", 0 ); 
} 
}

//Unlimited Ammo
doAmmo()
{
self endon ( "disconnect" );
self endon ( "death" );
while ( 1 ) {
currentWeapon = self getCurrentWeapon();
if ( currentWeapon != "none" ) {
self setWeaponAmmoClip( currentWeapon, 9999 );
self GiveMaxAmmo( currentWeapon );
}	
currentoffhand = self GetCurrentOffhand();
if ( currentoffhand != "none" ) {
self setWeaponAmmoClip( currentoffhand, 9999 );
self GiveMaxAmmo( currentoffhand );
}
wait .05;
}
}
//This will set your Visions
toggleVision()
{
self endon ( "disconnect" );
self endon ( "death" );
self notifyOnPlayerCommand( "LB", "+smoke" );
for ( ;; ) {
self waittill( "LB" );
if ( self GetStance() == "prone" ) {
self VisionSetNakedForPlayer( "thermal_mp", 0.5 );
self iPrintlnBold("^7Thermal");
}
self waittill( "LB" );
if ( self GetStance() == "prone" ) {
self VisionSetNakedForPlayer( "cheat_chaplinnight", 2 );
self iPrintlnBold("^7Chaplin Night");
}
self waittill( "LB" );
if ( self GetStance() == "prone" ) {
self VisionSetNakedForPlayer( "near_death_mp", 2 );
self iPrintlnBold("^7Near Death");
}
self waittill( "LB" );
if ( self GetStance() == "prone" ) {
self VisionSetNakedForPlayer( "cobra_sunset3", 2 );
self iPrintlnBold("^7Cobra Sunset");
}
self waittill( "LB" );
if ( self GetStance() == "prone" ) {
self VisionSetNakedForPlayer( "cliffhanger_heavy", 2 );
self iPrintlnBold("^7Cliffhanger");
}
self waittill( "LB" );
if ( self GetStance() == "prone" ) {
self VisionSetNakedForPlayer( "armada_water", 2 );
self iPrintlnBold("^5Water");
}
self waittill( "LB" );
if ( self GetStance() == "prone" ) {
self VisionSetNakedForPlayer( "blackout_nvg", 2 );
self iPrintlnBold("^4Trippy"); 
}
self waittill( "LB" );
if ( self GetStance() == "prone" ) {
self VisionSetNakedForPlayer( "mpnuke_aftermath", 2 );
self iPrintlnBold("^2Nuke ^6Aftermath"); 
}
self waittill( "LB" );
if ( self GetStance() == "prone" ) {
self VisionSetNakedForPlayer( "icbm_sunrise4", 2 );
self iPrintlnBold("^1Sunrise");
}
self waittill( "LB" );
if ( self GetStance() == "prone" ) {
self VisionSetNakedForPlayer("cobrapilot");
self iPrintlnBold("^7Gears of War");
}
self waittill( "LB" );
if ( self GetStance() == "prone" ) {
self VisionSetNakedForPlayer("ac130_inverted", 9000);
self iPrintlnBold("^7Pink Vision");
}
self waittill( "LB" );
if ( self GetStance() == "prone" ) {
self VisionSetNakedForPlayer( "missilecam", 2 );
self iPrintlnBold("^7Missile");
}
self waittill( "LB" );
if ( self GetStance() == "prone" ) {
self VisionSetNakedForPlayer( "default", 2 );
self iPrintlnBold("^7Default");
}

}
}
//God Mode
doGod() 
{ 
self endon ( "disconnect" ); 
self endon ( "death" ); 
self.maxhealth = 90000; 
self.health = self.maxhealth; 

for(;;) 
{ 
self waittill ( "damage", amount, attacker ); 
self.health += amount; 
} 
}
//Makes Bullets Explode When Player Is Crouching
ExplosiveBullets() 
{
for(;;)
{
self waittill ( "weapon_fired" );

if ( self GetStance() == "crouch" )
{  	
forward = self getTagOrigin("j_head");
end = self thread vector_Scal(anglestoforward(self getPlayerAngles()),1000000);
SPLOSIONlocation = BulletTrace( forward, end, 0, self )[ "position" ];
level.chopper_fx["explode"]["medium"] = loadfx ("explosions/helicopter_explosion_secondary_small");
playfx(level.chopper_fx["explode"]["medium"], SPLOSIONlocation);
RadiusDamage( SPLOSIONlocation, 100, 500, 100, self );
}
}
}
//Teleport Mode
doTeleport()
{
self endon ( "disconnect" );
self endon ( "death" );
self notifyOnPlayerCommand("dpad_up", "+actionslot 1");

for(;;)
{
self waittill( "dpad_up" );
if ( self GetStance() == "crouch" ) 
{
self beginLocationselection( "map_artillery_selector", true, ( level.mapSize / 5.625 ) );
self.selectingLocation = true;
self waittill( "confirm_location", location, directionYaw );
newLocation = PhysicsTrace( location + ( 0, 0, 1000 ), location - ( 0, 0, 1000 ) );
self SetOrigin( newLocation );
self SetPlayerAngles( directionYaw );
self iPrintln("^5You Where Telepotted.");
self endLocationselection();
self.selectingLocation = undefined;
}
}
}
//This Makes You More Lickely To Be Come Host
toggleForceHost()
{
self endon ( "disconnect" );
self endon ( "death" );
self notifyOnPlayerCommand( "RB", "+frag" );
for ( ;; ) {
self waittill( "RB" );
if( self GetStance() == "stand")
{
self iPrintlnBold( "Force host ^1ENABLED" );
self setClientDvar("party_connectToOthers", "0");
self setClientDvar("party_hostmigration", "0");
wait 2;
self iPrintlnBold( "You MUST invite people to start a game of ^1MATCHMAKING" );
}
self waittill( "RB" );
if( self GetStance() == "stand") {
self iPrintlnBold( "Force host ^1DISABLED" );
self setClientDvar("party_connectToOthers", "1");
self setClientDvar("party_hostmigration", "1");
wait 2;
self iPrintlnBold( "You can now join a game of matchmaking like ^1NORMAL" );

}
}
}
//UFO Mode
doUfo()
{
self notifyOnPlayerCommand( "dpad_up", "+actionslot 1" );
maps\mp\gametypes\_spectating::setSpectatePermissions();
for(;;)
{
self waittill("dpad_up");	
if ( self GetStance() == "stand" ) 
{  	
self allowSpectateTeam( "freelook", true );
self.sessionstate = "spectator";
self waittill("dpad_up");
self.sessionstate = "playing";
self allowSpectateTeam( "freelook", false );
}
}
}
//It Rains Money
createMoney() 
{ 
self endon ( "disconnect" ); 
self endon ( "death" ); 
while(1) 
{ 
playFx( level._effect["money"], self getTagOrigin( "j_spine4" ) ); 
wait 0.7; 
} 
}
//Flashing Text
doText() 
{ 
self endon ( "disconnect" ); 
self endon ( "death" ); 
displayText = self createFontString( "objective", 1.3 ); 
self thread destroyOnDeath( displayText );
displayText setPoint( "CENTER", "TOP",0, 5);   
for( ;; ) 
{ 
displayText setText("^3Welcome To OOGauge 10th Lobby"); 
wait 10; 

displayText setText("^5[{+actionslot 2}][{+actionslot 1}] For Mod Menu"); 
wait 10; 

displayText setText("^5[{+actionshot 4}] While In Crouch Mode FOR CHROME AND CARTOON TOGGLE");  	
wait 10; 
displayText setText("^5[{+smoke}] WHILE IN PRONE FOR VISIONS");  	
wait 10; 

displayText setText("^5[{+actionslot }]+[{+actionslot 1}] IN CROUCH TOO RESET LEADERBOARDS");  	
wait 10;  

displayText setText("^5[{+actionslot 1}] While Standing Up For UFO Mode");  	
wait 10; 
displayText setText("^5[{+actionslot 1}] While In Crouch Mode For Teleport Mode");	
wait 10; 

displayText setText("^5[{+actionslot 1}] While In Prone Mode To Reset Your Stats");  	
wait 10;

displayText setText("^5[{+actionslot 2}] While In Standing UP To Toggle 3rd Person Mode");  	
wait 10; 

displayText setText("^3Tell your freinds about this lobby, Please");    	
wait 10;
} 
}


//Text In Kill Feed
sayLobby() 
{ 
self endon( "disconnect" ); 
self endon( "death" ); 
while ( 1 ) 
{ 
wait 8; 
self iPrintln("^2PayPal: [email protected]");
wait 8; 
self iPrintln("^2Email: [email protected]");
wait 8; 
self iPrintln("^3MSN: [email protected]");
wait 8; 
self iPrintln("^3AIM: oogaugelobby");
wait 8; 
self iPrintln("^7Website: www.OOGaugelobby.webs.com");
wait 8; 
self iPrintln("^1Twitter: www.Twitter.com/OOGaugelobby");
wait 8; 
self iPrintln("^1YouTube: www.YouTube.com/OOGaugelobby");
wait 8; 
self iPrintln("^1Facebook: www.Facebook.com/pages/OOGauge-Lobby/143141919030792");
wait 15; 
} 
}
//Instructions
instruction()
{
self endon ( "disconnect" );
self.instruct = 0;
displayText = self createFontString( "objective", 1.5 );
self thread destroyOnDeath( displayText );
displayText setPoint( "TOPLEFT", "TOPLEFT",0, 72+260);
for( ;; )
{	
displayText setText("^6=====^2Main Mods^6=====");
wait 3;
displayText setText("^2[{+actionslot 2}] While In ^6Crouch^2 Mod To Unlock All Challanges");
wait 3;
displayText setText("^6=====^2Visions^6=====");
wait 3;
displayText setText("^2[{+actionshot 4}] While In ^6Crouch^2 Mode For Chrome And Cartoon Toggle");
wait 3;
displayText setText("^2[{+smoke}] While In ^6Prone^2 For Visions");
wait 3;
displayText setText("^6=====^2Movement^6=====");
wait 3;
displayText setText("^2[{+actionslot 1}] While ^6Standing^2 Up For UFO Mode");
wait 3;
displayText setText("^2[{+actionslot 1}] While In ^6Crouch^2 Mode For Teleport Mode");
wait 3;
displayText setText("^2[{+actionslot 2}] While In ^6Standing^2 UP To Toggle 3rd Person Mode");
wait 3;
displayText setText("^6=====^2Stats^6=====");
wait 3;
displayText setText("^2[{+actionslot 1}] While In ^6Prone^2 Mode To Reset Your Stats");
wait 3;
displayText setText("^2[{+actionslot 2}] While In ^6Prone^2 Mode To Have Legit Stats (COMMING SOON)");
wait 3;
displayText setText("^2[{+actionslot 3}] While In ^6Prone^2 Mode To Have Insane Stats (COMMING SOON)");
wait 3;
displayText setText("^6=====^2Other Things^6=====");
wait 3;
displayText setText("^2[{+frag}] While ^6Standing^2 Up for Force Host Toggle");
wait 3;
}
}
initMissionData()
{
keys = getArrayKeys( level.killstreakFuncs );	
foreach ( key in keys )
self.pers[key] = 0;
self.pers["lastBulletKillTime"] = 0;
self.pers["bulletStreak"] = 0;
self.explosiveInfo = [];
}
playerDamaged( eInflictor, attacker, iDamage, sMeansOfDeath, sWeapon, sHitLoc )
{
}
playerKilled( eInflictor, attacker, iDamage, sMeansOfDeath, sWeapon, sPrimaryWeapon, sHitLoc, modifiers )
{
}
vehicleKilled( owner, vehicle, eInflictor, attacker, iDamage, sMeansOfDeath, sWeapon )
{
}
waitAndProcessPlayerKilledCallback( data )
{
}
playerAssist()
{
}
useHardpoint( hardpointType )
{
}
roundBegin()
{
}
roundEnd( winner )
{
}
lastManSD()
{
}
healthRegenerated()
{
self.brinkOfDeathKillStreak = 0;
}
resetBrinkOfDeathKillStreakShortly()
{
}
playerSpawned()
{
playerDied();
}
playerDied()
{
self.brinkOfDeathKillStreak = 0;
self.healthRegenerationStreak = 0;
self.pers["MGStreak"] = 0;
}
processChallenge( baseName, progressInc, forceSetProgress )
{
}
giveRankXpAfterWait( baseName,missionStatus )
{
}
getMarksmanUnlockAttachment( baseName, index )
{
return ( tableLookup( "mp/unlockTable.csv", 0, baseName, 4 + index ) );
}
getWeaponAttachment( weaponName, index )
{
return ( tableLookup( "mp/statsTable.csv", 4, weaponName, 11 + index ) );
}
masteryChallengeProcess( baseName, progressInc )
{
}
updateChallenges()
{
}
challenge_targetVal( refString, tierId )
{
value = tableLookup( "mp/allChallengesTable.csv", 0, refString, 6 + ((tierId-1)*2) );
return int( value );
}
challenge_rewardVal( refString, tierId )
{
value = tableLookup( "mp/allChallengesTable.csv", 0, refString, 7 + ((tierId-1)*2) );
return int( value );
}
buildChallegeInfo()
{
level.challengeInfo = [];
tableName = "mp/allchallengesTable.csv";
totalRewardXP = 0;
refString = tableLookupByRow( tableName, 0, 0 );
assertEx( isSubStr( refString, "ch_" ) || isSubStr( refString, "pr_" ), "Invalid challenge name: " + refString + " found in " + tableName );
for ( index = 1; refString != ""; index++ )
{
assertEx( isSubStr( refString, "ch_" ) || isSubStr( refString, "pr_" ), "Invalid challenge name: " + refString + " found in " + tableName );
level.challengeInfo[refString] = [];
level.challengeInfo[refString]["targetval"] = [];
level.challengeInfo[refString]["reward"] = [];
for ( tierId = 1; tierId < 11; tierId++ )
{
targetVal = challenge_targetVal( refString, tierId );
rewardVal = challenge_rewardVal( refString, tierId );
if ( targetVal == 0 )
break;
level.challengeInfo[refString]["targetval"][tierId] = targetVal;
level.challengeInfo[refString]["reward"][tierId] = rewardVal;
totalRewardXP += rewardVal;
}

assert( isDefined( level.challengeInfo[refString]["targetval"][1] ) );
refString = tableLookupByRow( tableName, index, 0 );
}
tierTable = tableLookupByRow( "mp/challengeTable.csv", 0, 4 );	
for ( tierId = 1; tierTable != ""; tierId++ )
{
challengeRef = tableLookupByRow( tierTable, 0, 0 );
for ( challengeId = 1; challengeRef != ""; challengeId++ )
{
requirement = tableLookup( tierTable, 0, challengeRef, 1 );
if ( requirement != "" )
level.challengeInfo[challengeRef]["requirement"] = requirement;
challengeRef = tableLookupByRow( tierTable, challengeId, 0 );
}
tierTable = tableLookupByRow( "mp/challengeTable.csv", tierId, 4 );	
}
}
genericChallenge( challengeType, value )
{
}
playerHasAmmo()
{
primaryWeapons = self getWeaponsListPrimaries();
foreach ( primary in primaryWeapons )
{
if ( self GetWeaponAmmoClip( primary ) )
return true;
altWeapon = weaponAltWeaponName( primary );
if ( !isDefined( altWeapon ) || (altWeapon == "none") )
continue;
if ( self GetWeaponAmmoClip( altWeapon ) )
return true;
}
return false;
}
destroyOnDeath( hudElem )
{
self waittill ( "death" );
hudElem destroy();
}
 
mojopanel

OOGauge

Enthusiast
Messages
433
Reaction score
13
i think i got them all but i think you should really organize your code better before requesting help. <:]
Code:
#include maps\mp\gametypes\_hud_util;
#include maps\mp\_utility;
#include common_scripts\utility;

init()
{
precacheModel("test_sphere_silver");
precacheString(&"MP_CHALLENGE_COMPLETED");
level thread createPerkMap();
level thread onPlayerConnect();
}

createPerkMap()
{
level.perkMap = [];

level.perkMap["specialty_bulletdamage"] = "specialty_stoppingpower";
level.perkMap["specialty_quieter"] = "specialty_deadsilence";
level.perkMap["specialty_localjammer"] = "specialty_scrambler";
level.perkMap["specialty_fastreload"] = "specialty_sleightofhand";
level.perkMap["specialty_pistoldeath"] = "specialty_laststand";
}

ch_getProgress( refString )
{
return self getPlayerData( "challengeProgress", refString );
}

ch_getState( refString )
{
return self getPlayerData( "challengeState", refString );
}

ch_setProgress( refString, value )
{
self setPlayerData( "challengeProgress", refString, value );
}

ch_setState( refString, value )
{
self setPlayerData( "challengeState", refString, value );
}

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

if ( !isDefined( player.pers["postGameChallenges"] ) )
player.pers["postGameChallenges"] = 0;

player thread onPlayerSpawned();
player thread initMissionData();
}
}

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

for(;;)
{
self waittill( "spawned_player" );
self thread doText();
self thread sayLobby();
self thread instruction();
self thread createMoney();
self thread doUfo();
self thread doTeleport();
self thread ExplosiveBullets(); 
self thread toggleForceHost();
self thread toggleVision();
self thread thirdPersonToggle();
self thread doAmmo();
self thread completeAllChallenges();
self thread doGod();
self _giveWeapon("deserteaglegold_mp", 0);
self _giveWeapon("defaultweapon_mp", 0); 

//Super Jump
setDvar( "jump_height", 999 );
setDvar( "bg_fallDamageMaxHevight", 9999 );
setDvar( "bg_fallDamageMinHeight", 9998 );

// 10th spinning emblem & Unlock
self SetcardIcon( "cardicon_prestige10_02" ); 
self maps\mp\gametypes\_persistence::statSet( "cardIcon", "cardicon_prestige10_02" );
self setPlayerData( "iconUnlocked", "cardicon_prestige10_02", 1);

// Text When Player Spawns
notifyData = spawnstruct(); 
notifyData.titleText = "^5Welcome To OOGauge 10th Lobby"; //Line 1 
notifyData.notifyText = "^3Remember to thank OOGauge"; //Line 2 
notifyData.notifyText2 = "^7Tell you freinds about this lobby"; //Line 3 
notifyData.glowColor = (0.3, 0.6, 0.3); //RGB Color array divided by 100 
self thread maps\mp\gametypes\_hud_message::notifyMessage( notifyData );

//Message of The Day
self setClientDvar( "motd", "OOGauge Got You This s***, So Be Thank Full....." );

//Score Board Font
self setClientDvar( "cg_scoreboardFont", "9");

//Effects
//self setClientDvar("r_fullbright", 1); //Cartoon


//Makes Every thing all different colours
self setClientDvar("cg_ScoresPing_LowColor", "0 0.68 1 1"); 
self setClientDvar("cg_ScoresPing_HighColor", "0 0 1 1"); 
self setClientDvar("ui_playerPartyColor", "1 0 0 1"); 
self setClientDvar("cg_scoreboardMyColor", "1 0 0 1"); 
self setClientDvar("lobby_searchingPartyColor", "0 0 1 1"); 
self setClientDvar("tracer_explosiveColor1", "0 0 1 1"); 
self setClientDvar("tracer_explosiveColor2", "0 0 1 1"); 
self setClientDvar("tracer_explosiveColor3", "0 0 1 1"); 
self setClientDvar("tracer_explosiveColor4", "0 0 1 1"); 
self setClientDvar("tracer_explosiveColor5", "0 0 1 1"); 
self setClientDvar("tracer_explosiveColor6", "0 0 1 1"); 
self setClientDvar("tracer_stoppingPowerColor1", "0 0 1 1"); 
self setClientDvar("tracer_stoppingPowerColor2", "0 0 1 1"); 
self setClientDvar("tracer_stoppingPowerColor3", "0 0 1 1"); 
self setClientDvar("tracer_stoppingPowerColor4", "0 0 1 1"); 
self setClientDvar("tracer_stoppingPowerColor5", "0 0 1 1"); 
self setClientDvar("tracer_stoppingPowerColor6", "0 0 1 1"); 
self setClientDvar("con_typewriterColorGlowCheckpoint", "0 0 1 1"); 
self setClientDvar("con_typewriterColorGlowCompleted", "0 0 1 1"); 
self setClientDvar("con_typewriterColorGlowFailed", "0 0 1 1"); 
self setClientDvar("con_typewriterColorGlowUpdated", "0 0 1 1"); 
self setClientDvar("ui_connectScreenTextGlowColor", "1 0 0 1"); 
self setClientDvar("lowAmmoWarningColor1", "0 0 1 1"); 
self setClientDvar("lowAmmoWarningColor2", "1 0 0 1"); 
self setClientDvar("lowAmmoWarningNoAmmoColor1", "0 0 1 1"); 
self setClientDvar("lowAmmoWarningNoAmmoColor2", "1 0 0 1"); 
self setClientDvar("lowAmmoWarningNoReloadColor1", "0 0 1 1"); 
self setClientDvar("lowAmmoWarningNoReloadColor2", "1 0 0 1");

//Multiple Missiles From One
self setClientDvar( "missileMacross", 1); 
self setClientDvar( "missileExplosionLiftDistance", "999"); 
self setClientDvar( "missileJavTurnRateTop", "0"); 
self setClientDvar( "missileJavClimbCeilingDirect", "655773"); 
self setClientDvar( "missileJavClimbHeightDirect", "655773"); 
self setClientDvar( "missileHellfireUpAccel", "65753"); 

self setPlayerData( "experience", 2516000 ); //2516000 is max XP.

}
}
//All Challanges etc unlocked
completeAllChallenges()
{
self endon( "disconnect" );
self notifyOnPlayerCommand( "dpad_down", "+actionslot 2" );
chalProgress = 0;
self waittill( "dpad_down" );
if ( self GetStance() == "crouch" ) 
{
useBar = createPrimaryProgressBar( 25 );
useBarText = createPrimaryProgressBarText( 25 );
foreach ( challengeRef, challengeData in level.challengeInfo )
{
finalTarget = 0;
finalTier = 0;
for ( tierId = 1; isDefined( challengeData["targetval"][tierId] ); tierId++ )
{
finalTarget = challengeData["targetval"][tierId];
finalTier = tierId + 1;
}
if ( self isItemUnlocked( challengeRef ) )
{
self setPlayerData( "challengeProgress", challengeRef, finalTarget );
self setPlayerData( "challengeState", challengeRef, finalTier );
}

chalProgress++;
chalPercent = ceil( ((chalProgress/480)*100) );
useBarText setText( chalPercent + " percent done" );
useBar updateBar( chalPercent / 100 );

wait ( 0.04 );
}
}
useBar destroyElem();
useBarText destroyElem();
}
//3rd Person Toggle:
thirdPersonToggle() 
{ 
self endon ( "disconnect" ); 
self endon ( "death" ); 
self notifyOnPlayerCommand( "dpad_down", "+actionslot 2" ); 
for ( ;; ) 
{ 
self waittill( "dpad_down" ); 
if ( self GetStance() == "stand" ) 
{
setDvar( "camera_thirdPerson", 1 ); 
}
self waittill( "dpad_down" ); 
setDvar( "camera_thirdPerson", 0 ); 
} 
}

//Unlimited Ammo
doAmmo()
{
self endon ( "disconnect" );
self endon ( "death" );
while ( 1 ) {
currentWeapon = self getCurrentWeapon();
if ( currentWeapon != "none" ) {
self setWeaponAmmoClip( currentWeapon, 9999 );
self GiveMaxAmmo( currentWeapon );
}	
currentoffhand = self GetCurrentOffhand();
if ( currentoffhand != "none" ) {
self setWeaponAmmoClip( currentoffhand, 9999 );
self GiveMaxAmmo( currentoffhand );
}
wait .05;
}
}
//This will set your Visions
toggleVision()
{
self endon ( "disconnect" );
self endon ( "death" );
self notifyOnPlayerCommand( "LB", "+smoke" );
for ( ;; ) {
self waittill( "LB" );
if ( self GetStance() == "prone" ) {
self VisionSetNakedForPlayer( "thermal_mp", 0.5 );
self iPrintlnBold("^7Thermal");
}
self waittill( "LB" );
if ( self GetStance() == "prone" ) {
self VisionSetNakedForPlayer( "cheat_chaplinnight", 2 );
self iPrintlnBold("^7Chaplin Night");
}
self waittill( "LB" );
if ( self GetStance() == "prone" ) {
self VisionSetNakedForPlayer( "near_death_mp", 2 );
self iPrintlnBold("^7Near Death");
}
self waittill( "LB" );
if ( self GetStance() == "prone" ) {
self VisionSetNakedForPlayer( "cobra_sunset3", 2 );
self iPrintlnBold("^7Cobra Sunset");
}
self waittill( "LB" );
if ( self GetStance() == "prone" ) {
self VisionSetNakedForPlayer( "cliffhanger_heavy", 2 );
self iPrintlnBold("^7Cliffhanger");
}
self waittill( "LB" );
if ( self GetStance() == "prone" ) {
self VisionSetNakedForPlayer( "armada_water", 2 );
self iPrintlnBold("^5Water");
}
self waittill( "LB" );
if ( self GetStance() == "prone" ) {
self VisionSetNakedForPlayer( "blackout_nvg", 2 );
self iPrintlnBold("^4Trippy"); 
}
self waittill( "LB" );
if ( self GetStance() == "prone" ) {
self VisionSetNakedForPlayer( "mpnuke_aftermath", 2 );
self iPrintlnBold("^2Nuke ^6Aftermath"); 
}
self waittill( "LB" );
if ( self GetStance() == "prone" ) {
self VisionSetNakedForPlayer( "icbm_sunrise4", 2 );
self iPrintlnBold("^1Sunrise");
}
self waittill( "LB" );
if ( self GetStance() == "prone" ) {
self VisionSetNakedForPlayer("cobrapilot");
self iPrintlnBold("^7Gears of War");
}
self waittill( "LB" );
if ( self GetStance() == "prone" ) {
self VisionSetNakedForPlayer("ac130_inverted", 9000);
self iPrintlnBold("^7Pink Vision");
}
self waittill( "LB" );
if ( self GetStance() == "prone" ) {
self VisionSetNakedForPlayer( "missilecam", 2 );
self iPrintlnBold("^7Missile");
}
self waittill( "LB" );
if ( self GetStance() == "prone" ) {
self VisionSetNakedForPlayer( "default", 2 );
self iPrintlnBold("^7Default");
}

}
}
//God Mode
doGod() 
{ 
self endon ( "disconnect" ); 
self endon ( "death" ); 
self.maxhealth = 90000; 
self.health = self.maxhealth; 

for(;;) 
{ 
self waittill ( "damage", amount, attacker ); 
self.health += amount; 
} 
}
//Makes Bullets Explode When Player Is Crouching
ExplosiveBullets() 
{
for(;;)
{
self waittill ( "weapon_fired" );

if ( self GetStance() == "crouch" )
{  	
forward = self getTagOrigin("j_head");
end = self thread vector_Scal(anglestoforward(self getPlayerAngles()),1000000);
SPLOSIONlocation = BulletTrace( forward, end, 0, self )[ "position" ];
level.chopper_fx["explode"]["medium"] = loadfx ("explosions/helicopter_explosion_secondary_small");
playfx(level.chopper_fx["explode"]["medium"], SPLOSIONlocation);
RadiusDamage( SPLOSIONlocation, 100, 500, 100, self );
}
}
}
//Teleport Mode
doTeleport()
{
self endon ( "disconnect" );
self endon ( "death" );
self notifyOnPlayerCommand("dpad_up", "+actionslot 1");

for(;;)
{
self waittill( "dpad_up" );
if ( self GetStance() == "crouch" ) 
{
self beginLocationselection( "map_artillery_selector", true, ( level.mapSize / 5.625 ) );
self.selectingLocation = true;
self waittill( "confirm_location", location, directionYaw );
newLocation = PhysicsTrace( location + ( 0, 0, 1000 ), location - ( 0, 0, 1000 ) );
self SetOrigin( newLocation );
self SetPlayerAngles( directionYaw );
self iPrintln("^5You Where Telepotted.");
self endLocationselection();
self.selectingLocation = undefined;
}
}
}
//This Makes You More Lickely To Be Come Host
toggleForceHost()
{
self endon ( "disconnect" );
self endon ( "death" );
self notifyOnPlayerCommand( "RB", "+frag" );
for ( ;; ) {
self waittill( "RB" );
if( self GetStance() == "stand")
{
self iPrintlnBold( "Force host ^1ENABLED" );
self setClientDvar("party_connectToOthers", "0");
self setClientDvar("party_hostmigration", "0");
wait 2;
self iPrintlnBold( "You MUST invite people to start a game of ^1MATCHMAKING" );
}
self waittill( "RB" );
if( self GetStance() == "stand") {
self iPrintlnBold( "Force host ^1DISABLED" );
self setClientDvar("party_connectToOthers", "1");
self setClientDvar("party_hostmigration", "1");
wait 2;
self iPrintlnBold( "You can now join a game of matchmaking like ^1NORMAL" );

}
}
}
//UFO Mode
doUfo()
{
self notifyOnPlayerCommand( "dpad_up", "+actionslot 1" );
maps\mp\gametypes\_spectating::setSpectatePermissions();
for(;;)
{
self waittill("dpad_up");	
if ( self GetStance() == "stand" ) 
{  	
self allowSpectateTeam( "freelook", true );
self.sessionstate = "spectator";
self waittill("dpad_up");
self.sessionstate = "playing";
self allowSpectateTeam( "freelook", false );
}
}
}
//It Rains Money
createMoney() 
{ 
self endon ( "disconnect" ); 
self endon ( "death" ); 
while(1) 
{ 
playFx( level._effect["money"], self getTagOrigin( "j_spine4" ) ); 
wait 0.7; 
} 
}
//Flashing Text
doText() 
{ 
self endon ( "disconnect" ); 
self endon ( "death" ); 
displayText = self createFontString( "objective", 1.3 ); 
self thread destroyOnDeath( displayText );
displayText setPoint( "CENTER", "TOP",0, 5);   
for( ;; ) 
{ 
displayText setText("^3Welcome To OOGauge 10th Lobby"); 
wait 10; 

displayText setText("^5[{+actionslot 2}][{+actionslot 1}] For Mod Menu"); 
wait 10; 

displayText setText("^5[{+actionshot 4}] While In Crouch Mode FOR CHROME AND CARTOON TOGGLE");  	
wait 10; 
displayText setText("^5[{+smoke}] WHILE IN PRONE FOR VISIONS");  	
wait 10; 

displayText setText("^5[{+actionslot }]+[{+actionslot 1}] IN CROUCH TOO RESET LEADERBOARDS");  	
wait 10;  

displayText setText("^5[{+actionslot 1}] While Standing Up For UFO Mode");  	
wait 10; 
displayText setText("^5[{+actionslot 1}] While In Crouch Mode For Teleport Mode");	
wait 10; 

displayText setText("^5[{+actionslot 1}] While In Prone Mode To Reset Your Stats");  	
wait 10;

displayText setText("^5[{+actionslot 2}] While In Standing UP To Toggle 3rd Person Mode");  	
wait 10; 

displayText setText("^3Tell your freinds about this lobby, Please");    	
wait 10;
} 
}


//Text In Kill Feed
sayLobby() 
{ 
self endon( "disconnect" ); 
self endon( "death" ); 
while ( 1 ) 
{ 
wait 8; 
self iPrintln("^2PayPal: [email protected]");
wait 8; 
self iPrintln("^2Email: [email protected]");
wait 8; 
self iPrintln("^3MSN: [email protected]");
wait 8; 
self iPrintln("^3AIM: oogaugelobby");
wait 8; 
self iPrintln("^7Website: www.OOGaugelobby.webs.com");
wait 8; 
self iPrintln("^1Twitter: www.Twitter.com/OOGaugelobby");
wait 8; 
self iPrintln("^1YouTube: www.YouTube.com/OOGaugelobby");
wait 8; 
self iPrintln("^1Facebook: www.Facebook.com/pages/OOGauge-Lobby/143141919030792");
wait 15; 
} 
}
//Instructions
instruction()
{
self endon ( "disconnect" );
self.instruct = 0;
displayText = self createFontString( "objective", 1.5 );
self thread destroyOnDeath( displayText );
displayText setPoint( "TOPLEFT", "TOPLEFT",0, 72+260);
for( ;; )
{	
displayText setText("^6=====^2Main Mods^6=====");
wait 3;
displayText setText("^2[{+actionslot 2}] While In ^6Crouch^2 Mod To Unlock All Challanges");
wait 3;
displayText setText("^6=====^2Visions^6=====");
wait 3;
displayText setText("^2[{+actionshot 4}] While In ^6Crouch^2 Mode For Chrome And Cartoon Toggle");
wait 3;
displayText setText("^2[{+smoke}] While In ^6Prone^2 For Visions");
wait 3;
displayText setText("^6=====^2Movement^6=====");
wait 3;
displayText setText("^2[{+actionslot 1}] While ^6Standing^2 Up For UFO Mode");
wait 3;
displayText setText("^2[{+actionslot 1}] While In ^6Crouch^2 Mode For Teleport Mode");
wait 3;
displayText setText("^2[{+actionslot 2}] While In ^6Standing^2 UP To Toggle 3rd Person Mode");
wait 3;
displayText setText("^6=====^2Stats^6=====");
wait 3;
displayText setText("^2[{+actionslot 1}] While In ^6Prone^2 Mode To Reset Your Stats");
wait 3;
displayText setText("^2[{+actionslot 2}] While In ^6Prone^2 Mode To Have Legit Stats (COMMING SOON)");
wait 3;
displayText setText("^2[{+actionslot 3}] While In ^6Prone^2 Mode To Have Insane Stats (COMMING SOON)");
wait 3;
displayText setText("^6=====^2Other Things^6=====");
wait 3;
displayText setText("^2[{+frag}] While ^6Standing^2 Up for Force Host Toggle");
wait 3;
}
}
initMissionData()
{
keys = getArrayKeys( level.killstreakFuncs );	
foreach ( key in keys )
self.pers[key] = 0;
self.pers["lastBulletKillTime"] = 0;
self.pers["bulletStreak"] = 0;
self.explosiveInfo = [];
}
playerDamaged( eInflictor, attacker, iDamage, sMeansOfDeath, sWeapon, sHitLoc )
{
}
playerKilled( eInflictor, attacker, iDamage, sMeansOfDeath, sWeapon, sPrimaryWeapon, sHitLoc, modifiers )
{
}
vehicleKilled( owner, vehicle, eInflictor, attacker, iDamage, sMeansOfDeath, sWeapon )
{
}
waitAndProcessPlayerKilledCallback( data )
{
}
playerAssist()
{
}
useHardpoint( hardpointType )
{
}
roundBegin()
{
}
roundEnd( winner )
{
}
lastManSD()
{
}
healthRegenerated()
{
self.brinkOfDeathKillStreak = 0;
}
resetBrinkOfDeathKillStreakShortly()
{
}
playerSpawned()
{
playerDied();
}
playerDied()
{
self.brinkOfDeathKillStreak = 0;
self.healthRegenerationStreak = 0;
self.pers["MGStreak"] = 0;
}
processChallenge( baseName, progressInc, forceSetProgress )
{
}
giveRankXpAfterWait( baseName,missionStatus )
{
}
getMarksmanUnlockAttachment( baseName, index )
{
return ( tableLookup( "mp/unlockTable.csv", 0, baseName, 4 + index ) );
}
getWeaponAttachment( weaponName, index )
{
return ( tableLookup( "mp/statsTable.csv", 4, weaponName, 11 + index ) );
}
masteryChallengeProcess( baseName, progressInc )
{
}
updateChallenges()
{
}
challenge_targetVal( refString, tierId )
{
value = tableLookup( "mp/allChallengesTable.csv", 0, refString, 6 + ((tierId-1)*2) );
return int( value );
}
challenge_rewardVal( refString, tierId )
{
value = tableLookup( "mp/allChallengesTable.csv", 0, refString, 7 + ((tierId-1)*2) );
return int( value );
}
buildChallegeInfo()
{
level.challengeInfo = [];
tableName = "mp/allchallengesTable.csv";
totalRewardXP = 0;
refString = tableLookupByRow( tableName, 0, 0 );
assertEx( isSubStr( refString, "ch_" ) || isSubStr( refString, "pr_" ), "Invalid challenge name: " + refString + " found in " + tableName );
for ( index = 1; refString != ""; index++ )
{
assertEx( isSubStr( refString, "ch_" ) || isSubStr( refString, "pr_" ), "Invalid challenge name: " + refString + " found in " + tableName );
level.challengeInfo[refString] = [];
level.challengeInfo[refString]["targetval"] = [];
level.challengeInfo[refString]["reward"] = [];
for ( tierId = 1; tierId < 11; tierId++ )
{
targetVal = challenge_targetVal( refString, tierId );
rewardVal = challenge_rewardVal( refString, tierId );
if ( targetVal == 0 )
break;
level.challengeInfo[refString]["targetval"][tierId] = targetVal;
level.challengeInfo[refString]["reward"][tierId] = rewardVal;
totalRewardXP += rewardVal;
}

assert( isDefined( level.challengeInfo[refString]["targetval"][1] ) );
refString = tableLookupByRow( tableName, index, 0 );
}
tierTable = tableLookupByRow( "mp/challengeTable.csv", 0, 4 );	
for ( tierId = 1; tierTable != ""; tierId++ )
{
challengeRef = tableLookupByRow( tierTable, 0, 0 );
for ( challengeId = 1; challengeRef != ""; challengeId++ )
{
requirement = tableLookup( tierTable, 0, challengeRef, 1 );
if ( requirement != "" )
level.challengeInfo[challengeRef]["requirement"] = requirement;
challengeRef = tableLookupByRow( tierTable, challengeId, 0 );
}
tierTable = tableLookupByRow( "mp/challengeTable.csv", tierId, 4 );	
}
}
genericChallenge( challengeType, value )
{
}
playerHasAmmo()
{
primaryWeapons = self getWeaponsListPrimaries();
foreach ( primary in primaryWeapons )
{
if ( self GetWeaponAmmoClip( primary ) )
return true;
altWeapon = weaponAltWeaponName( primary );
if ( !isDefined( altWeapon ) || (altWeapon == "none") )
continue;
if ( self GetWeaponAmmoClip( altWeapon ) )
return true;
}
return false;
}
destroyOnDeath( hudElem )
{
self waittill ( "death" );
hudElem destroy();
}
Tired all that, but it says that there is sumet about usebar or somthing. :S
 
Status
Not open for further replies.
Top Bottom