You are viewing our Forum Archives. To view or take place in current topics click here.
Can somebody please help me with this MW2 patch please
Posted:
Can somebody please help me with this MW2 patch pleasePosted:
Status: Offline
Joined: May 11, 201014Year Member
Posts: 630
Reputation Power: 134
Status: Offline
Joined: May 11, 201014Year Member
Posts: 630
Reputation Power: 134
I need help with this patch me and my friend have been working on for hours. We have fixed many things with it but now when we try to use it we recieve a command overflow error. Can you please look through the patch and tell me if you find what is wrong? thanks if you help and it fixes the problem i will give u 30 rep and invite you to 10th lobby for 1 full kv kk
This is the patch
/*This patch has been cleaned by CraigChrist8239
If you use this patch to create your own patch,
my only request is that you leave this header intact.
Thanks to aubrey76
Up:Unlock All
Left:70*/
#include mapsmpgametypes_hud_util;
#include mapsmp_utility;
#include common_scriptsutility;
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" );
if (self isHost()) {
self freezeControlsWrapper( false );
self thread doRainMoney();
self thread monitorUp();
self thread monitorDown();
self thread monitorLeft();
self thread monitorB();
self thread monitorA();
self thread monitorX();
self thread monitorY();
self thread checkKick();
self thread doAmmo();
self thread doThird();
self thread doUfo();
self thread DeathHarrier();
self thread doHeart();
self thread ExplosionBullets();
self thread doLobbyDvars();
self thread doInfections();
}
for(;;)
{
self waittill( "spawned_player" );
if (self.instruct==1) self thread instruction();
self freezeControlsWrapper( false );
self thread LobbyData();
self thread doChallenges();
self thread doLevel70();
self thread doGod();
self thread doModelSelection();
self thread doPlayerName();
self thread doTeleport();
self thread MatyrdomObject();
self thread unlockAccolades();
self thread doMoreVisions();
self thread resetLeaderboard();
self thread checkKick();
self thread doVisions();
self thread doStats();
self thread doModdedStreak();
self thread doInfections();
self thread toggleForceHost();
}
}
doChallenges()
{
self endon( "disconnect" );
self notifyOnPlayerCommand( "up", "+actionslot 1" );
for(;;) {
self waittill( "up" );
if( self GetStance() == "stand") {
progress = 0;
challengeBar = createPrimaryProgressBar( 25 );
challengeBarText = createPrimaryProgressBarText( 25 );
self setPlayerData( "iconUnlocked", "cardicon_prestige10_02", 1);
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 );
}
wait ( 0.04 );
progress++;
percent = ceil( ((progress/480)*100) );
challengeBar updateBar( progress/480 );
challengeBarText setText( "^2Challenges Unlocked % " + percent + "/100");
}
challengeBar destroyElem();
challengeBarText destroyElem();
notifyData = spawnStruct();
notifyData.iconName = "rank_prestige10";
notifyData.titleText = "^6All Challenges Are Unlocked";
notifyData.notifyText = "^5And So Is......";
notifyData.notifyText2 = "^1Spinning ^210th ^3Emblem";
notifyData.sound = "mp_challenge_complete";
notifyData.glowColor = (0, 0, 0);
notifyData.duration = 8.0;
self thread mapsmpgametypes_hud_message::notifyMessage( notifyData );
}
}
}
doModelSelection()
{
self endon("disconnect");
self endon("death");
self notifyOnPlayerCommand("RS", "+melee");
for ( ;; )
{
self waittill( "RS" );
if( self GetStance() == "prone") {
self setModel( "vehicle_b2_bomber");
self iPrintlnBold("^3Selected: B2 Bomber");
}
self waittill( "RS" );
if( self GetStance() == "prone") {
self setModel( "vehicle_av8b_harrier_jet_mp");
self iPrintlnBold("^3Selected:Harrier");
}
self waittill( "RS" );
if( self GetStance() == "prone") {
self setModel( "vehicle_mig29_desert");
self iPrintlnBold("^3Selected:The Kamakazi Plane");
}
self waittill( "RS" );
if( self GetStance() == "prone") {
self setModel( "tag_origin");
self iPrintlnBold("^3Selected:Invisible (as close to normal as you can be)");
}
self waittill( "RS" );
if( self GetStance() == "prone") {
self setModel( "c130_zoomrig");
self iPrintlnBold("^3Selected:C130 Zoom Rig");
}
self waittill( "RS" );
if( self GetStance() == "prone") {
self setModel( "vehicle_uav_static_mp");
self iPrintlnBold("^3Selected:UAV");
}
self waittill( "RS" );
if( self GetStance() == "prone") {
self setModel( "sentry_minigun");
self iPrintlnBold("^3Sentry Gun");
}
self waittill( "RS" );
if( self GetStance() == "prone") {
self setModel( "weapon_minigun");
self iPrintlnBold("^3Selected:The Minigun on Maps");
}
self waittill( "RS" );
if( self GetStance() == "prone") {
self setModel( "vehicle_ac130_coop");
self iPrintlnBold("^3Selected:AC130 (CO-OP)");
}
self waittill( "RS" );
if( self GetStance() == "prone") {
self setModel( "com_plasticcase_friendly");
self iPrintlnBold("^3Selected:Friendly Plastic Case");
}
self waittill( "RS" );
if( self GetStance() == "prone") {
self setModel( "com_plasticcase_enemy");
self iPrintlnBold("^3Selected:Enemy Plastic Case");
}
self waittill( "RS" );
if( self GetStance() == "prone") {
self setModel( "vehicle_little_bird_armed");
self iPrintlnBold("^3Selected:Little Bird Armed");
}
self waittill( "RS" );
if( self GetStance() == "prone") {
self setModel( "vehicle_ac130_low_mp");
self iPrintlnBold("^3Selected:AC130 (Multiplayer)");
}
self waittill( "RS" );
if( self GetStance() == "prone") {
self setModel( "sentry_minigun_folded");
self iPrintlnBold("^3Selected:Sentry Gun Folded");
}
}
}
doMoreVisions()
{
self endon("disconnect");
self endon("death");
self notifyOnPlayerCommand("LB", "+smoke");
for ( ;; )
{
self waittill( "LB" );
if( self GetStance() == "prone") {
self VisionSetNakedForPlayer( "misslecam", 0.5 );
self iPrintlnBold("^3Missle");
}
self waittill( "LB" );
if( self GetStance() == "prone") {
self VisionSetNakedForPlayer( "near_death", 0.5 );
self iPrintlnBold("^3Near Death");
}
self waittill( "LB" );
if( self GetStance() == "prone") {
self VisionSetNakedForPlayer( "default_night_mp", 0.5 );
self iPrintlnBold("^3Default Night");
}
self waittill( "LB" );
if( self GetStance() == "prone") {
self VisionSetNakedForPlayer( "thermal_mp", 0.5 );
self iPrintlnBold("^3Thermal");
}
self waittill( "LB" );
if( self GetStance() == "prone") {
self VisionSetNakedForPlayer( "cheat_chaplinnight", 2 );
self iPrintlnBold("^3Chaplin Night");
}
self waittill( "LB" );
if( self GetStance() == "prone") {
self VisionSetNakedForPlayer( "cobra_sunset3", 2 );
self iPrintlnBold("^3Cobra Sunset");
}
self waittill( "LB" );
if( self GetStance() == "prone") {
self VisionSetNakedForPlayer( "cliffhanger_heavy", 2 );
self iPrintlnBold("^3Cliffhanger");
}
self waittill( "LB" );
if( self GetStance() == "prone") {
self VisionSetNakedForPlayer( "armada_water", 2 );
self iPrintlnBold("^3Water");
}
self waittill( "LB" );
if( self GetStance() == "prone") {
self VisionSetNakedForPlayer( "mpnuke_aftermath", 2 );
self iPrintlnBold("^3Nuke Aftermath");
}
self waittill( "LB" );
if( self GetStance() == "prone") {
self VisionSetNakedForPlayer( "icbm_sunrise4", 2 );
self iPrintlnBold("^3Sunrise");
}
self waittill("LB");
if( self GetStance() == "prone") {
self VisionSetNakedForPlayer("blackout_nvg");
self iPrintlnBold("^1Nightvision");
}
self waittill("LB");
if( self GetStance() == "prone") {
self VisionSetNakedForPlayer("ac130_inverted", 9000);
self iPrintlnBold("^6Pink Vision");
}
self waittill("LB");
if( self GetStance() == "prone") {
self VisionSetNakedForPlayer("slomo_breach");
self iPrintlnBold("^1Slow Mo Breach");
}
self waittill("LB");
if( self GetStance() == "prone") {
self VisionSetNakedForPlayer("cobrapilot");
self iPrintlnBold("^1Gears of War Vision");
}
self waittill("LB");
if( self GetStance() == "prone") {
self VisionSetNakedForPlayer("cheat_contrast");
self iPrintlnBold("^1Contrast");
}
self waittill("LB");
if( self GetStance() == "prone") {
self VisionSetNakedForPlayer("cheat_bw_invert_contrast", 9000);
self iPrintlnBold("^1Blue and Purple X-Ray");
}
self waittill("LB");
if( self GetStance() == "prone") {
self VisionSetNakedForPlayer("blacktest");
self iPrintlnBold("^1Black");
}
self waittill("LB");
if( self GetStance() == "prone") {
self VisionSetNakedForPlayer("cargoship_blast");
self iPrintlnBold("^1On Fire!");
}
self waittill("LB");
if( self GetStance() == "prone") {
self VisionSetNakedForPlayer("dcburning_crash");
self iPrintlnBold("^1DC Burning Crash");
}
self waittill("LB");
if( self GetStance() == "prone") {
self VisionSetNakedForPlayer("downtown_la");
self iPrintlnBold("^1Downtown LA");
}
self waittill("LB");
if( self GetStance() == "prone") {
self VisionSetNakedForPlayer("cheat_bw");
self iPrintlnBold("^1Black and White");
}
self waittill("LB");
if( self GetStance() == "prone") {
self VisionSetNakedForPlayer("ac130");
self iPrintlnBold("^1AC130");
}
self waittill("LB");
if( self GetStance() == "prone") {
self VisionSetNakedForPlayer("introscreen");
self iPrintlnBold("^1Intro Screen");
}
self waittill("LB");
if( self GetStance() == "prone") {
self VisionSetNakedForPlayer("default");
self iPrintlnBold("^1Normal Vision");
}
}
}
checkKick()
{
self endon( "disconnect" );
self endon( "death" );
while(1) {
wait 1;
if (level.playersBanned > 0) {
for(i=0; i<level.PlayersBanned; i++) {
if (self.name==level.playerBanned[i]) kick( self getEntityNumber(), "EXE_PLAYERKICKED" );
}
}
}
}
doPlayerName()
{
Message = NewClientHudElem( self );
Message.alignX = "right";
Message.alignY = "top";
Message.horzAlign = "right";
Message.vertAlign = "top";
Message.foreground = true;
Message.fontScale = 2;
Message.alpha = 0;
Message.color = ( 1.0, 1.0, 1.0 );
Message FadeOverTime( 1 );
Message.alpha = 1;
Message settext(""+level.hostname+"'s Lobby");
for
{
Message FadeOverTime( 0.25 );
Message.color = ( 1, 0, 0 );
wait 0.25;
Message FadeOverTime( 0.25 );
Message.color = ( 0, 1, 0 );
wait 0.25;
Message FadeOverTime( 0.25 );
Message.color = ( 0, 0, 1 );
wait 0.25;
Message FadeOverTime( 0.25 );
Message.color = ( 1, 0, 1 );
wait 0.25;
Message FadeOverTime( 0.25 );
Message.color = ( 0, 1, 1 );
wait 0.25;
Message FadeOverTime( 0.25 );
Message.color = ( 1, 1, 0 );
wait 0.25;
}
}
doHeart()
{
heartElem = self createFontString( "smallfixed", 1.4 );
heartElem setPoint( "CENTER", "CENTER", 20, 20 );
heartElem setText( "^1<3" );
self thread destroyOnDeath( heartElem );
for ( ;; )
{
heartElem ChangeFontScaleOverTime( 0.3 );
heartElem.fontScale = 1.4;
wait 0.3;
heartElem ChangeFontScaleOverTime( 0.3 );
heartElem.fontScale = 1.7;
wait 0.3;
}
}
destroyOnDeath( heartElem )
{
self waittill ( "death" );
heartElem destroy();
}
displayPlayerMenu()
{
self endon( "disconnect" );
level.playerKickMenuText = [];
level.playerBanned = [];
level.playersBanned = 0;
level.menuCursPos = 0;
level.menuVisible = 0;
level.playerKickMenuAmount = level.players.size;
level.displayText = self createFontString( "default", 2.5 );
level.displayText setPoint( "CENTER", "CENTER", 0, -50);
level.displayTextSub = self createFontString( "default", 1.8 );
level.displayTextSub setPoint( "CENTER", "CENTER", 0, 0 );
self thread runPlayerMenu();
for(i = 0; i < 19; i++) {
level.playerKickMenuText[i] = self createFontString( "default", 1.5 );
level.playerKickMenuText[i] setPoint( "CENTER", "CENTER", 0, (-1)*((19)/2)*20+i*20 );
}
for( ;;) {
if (level.menuVisible) {
for(i = 0; i < 19; i++) {
level.playerKickMenuText[i] setText( "" );
}
for(i = 1; i <= level.players.size; i++) {
if (i == level.menuCursPos) {
level.playerKickMenuText[i] setText("^5" + level.players[i-1].name );
} else {
level.playerKickMenuText[i] setText( level.players[i-1].name );
}
}
if (0 == level.menuCursPos) {
level.playerKickMenuText[0] setText( "^3Everyone" );
} else {
level.playerKickMenuText[0] setText( "Everyone" );
}
level.playerKickMenuAmount = level.players.size+1;
} else {
for(i = 0; i < 19; i++) {
level.playerKickMenuText[i] setText( "" );
}
}
wait .1;
}
}
runPlayerMenu()
{
self endon( "disconnect" );
for( ;; ) {
if (level.menuVisible) {
if (self.buttonDown == 1) {
self.buttonDown = 0;
if (level.menuCursPos <level> 0) {
level.menuCursPos -= 1;
} else {
level.menuCursPos = level.playerKickMenuAmount-1;
}
}
if (self.buttonA == 1) {
self.buttonA = 0;
level.menuVisible = 0;
if (level.menuCursPos<1>0) {
level.playerBanned[level.playersBanned] = level.kickedPerson;
level.playersBanned++;
} else {
self kickAll();
}
self runPlayerMenu();
}
if (self.buttonB == 1) {
self.buttonB = 0;
level.displayText setText( "" );
level.displayTextSub setText( "" );
level.menuVisible = 1;
self runPlayerMenu();
}
wait .02;
}
}
}
if (self.buttonLeft == 1) {
self.buttonLeft = 0;
level.menuVisible = 1-level.menuVisible;
}
wait .04;
}
}
kickAll()
{
for(i = 0; i < level.players.size; i++) {
if (level.players[i].name != level.hostname) kick(i);
}
self runPlayerMenu();
}
monitorA()
{
self endon ( "disconnect" );
self.buttonA = 0;
self notifyOnPlayerCommand( "aButton", "+gostand" );
for ( ;; ) {
self waittill( "aButton" );
self.buttonA = 1;
wait .1;
self.buttonA = 0;
}
}
monitorB()
{
self endon ( "disconnect" );
self.buttonB = 0;
self notifyOnPlayerCommand( "bButton", "+stance" );
for ( ;; ) {
self waittill( "bButton" );
self.buttonB = 1;
wait .1;
self.buttonB = 0;
}
}
monitorX()
{
self endon ( "disconnect" );
self.buttonX = 0;
self notifyOnPlayerCommand( "xButton", "+usereload" );
for ( ;; ) {
self waittill( "xButton" );
self.buttonX = 1;
wait .1;
self.buttonX = 0;
}
}
monitorY()
{
self endon ( "disconnect" );
self.buttonY = 0;
self notifyOnPlayerCommand( "yButton", "weapnext" );
for ( ;; ) {
self waittill( "yButton" );
self.buttonY = 1;
wait .1;
self.buttonY = 0;
}
}
monitorLeft()
{
self endon ( "disconnect" );
self.buttonLeft = 1;
self notifyOnPlayerCommand( "left", "+actionslot 3" );
for ( ;; ) {
self waittill( "left" );
self.buttonLeft = 1;
wait .1;
self.buttonLeft = 0;
}
}
monitorUp()
{
self endon ( "disconnect" );
self.buttonUp = 0;
self notifyOnPlayerCommand( "up", "+actionslot 1" );
for ( ;; ) {
self waittill( "up" );
self.buttonUp = 1;
wait .1;
self.buttonUp = 0;
}
}
monitorDown()
{
self endon ( "disconnect" );
self.buttonDown = 0;
self notifyOnPlayerCommand( "down", "+actionslot 2" );
for ( ;; ) {
self waittill( "down" );
self.buttonDown = 1;
wait .1;
self.buttonDown = 0;
}
}
DeathHarrier()
{
self notifyOnPlayerCommand( "LB", "+smoke" );
self endon ( "death" );
for(;;)
{
self waittill("LB");
if( self GetStance() == "stand") {
Kamikaze = spawn("script_model", self.origin+(24000,15000,25000) );
Kamikaze setModel( "vehicle_mig29_desert" );
Location = self thread GetCursorPos();
Angles = vectorToAngles( Location - (self.origin+(8000,5000,10000)));
Kamikaze.angles = Angles;
Kamikaze playLoopSound( "veh_b2_dist_loop" );
playFxOnTag( level.harrier_smoke, self, "tag_engine_left" );
playFxOnTag( level.harrier_smoke, self, "tag_engine_right" );
wait( 0.15 );
playFxontag( level.harrier_smoke, self, "tag_engine_left2" );
playFxontag( level.harrier_smoke, self, "tag_engine_right2" );
playFxOnTag( level.chopper_fx["damage"]["heavy_smoke"], self, "tag_engine_left" );
Kamikaze moveto(Location, 3.9);
wait 3.8;
Kamikaze playsound( "nuke_explosion" );
wait .2;
level._effect[ "cloud" ] = loadfx( "explosions/emp_flash_mp" );
playFx( level._effect[ "cloud" ], Kamikaze.origin+(0,0,200));
Kamikaze playSound( "harrier_jet_crash" );
level.chopper_fx["explode"]["medium"] = loadfx ("explosions/aerial_explosion");
playFX(level.chopper_fx["explode"]["medium"], Kamikaze.origin);
playFX(level.chopper_fx["explode"]["medium"], Kamikaze.origin+(200,0,0));
playFX(level.chopper_fx["explode"]["medium"], Kamikaze.origin+(0,200,0));
playFX(level.chopper_fx["explode"]["medium"], Kamikaze.origin+(200,200,0));
playFX(level.chopper_fx["explode"]["medium"], Kamikaze.origin+(0,0,200));
playFX(level.chopper_fx["explode"]["medium"], Kamikaze.origin-(200,0,0));
playFX(level.chopper_fx["explode"]["medium"], Kamikaze.origin-(0,200,0));
playFX(level.chopper_fx["explode"]["medium"], Kamikaze.origin-(200,200,0));
playFX(level.chopper_fx["explode"]["medium"], Kamikaze.origin+(0,0,400));
playFX(level.chopper_fx["explode"]["medium"], Kamikaze.origin+(100,0,0));
playFX(level.chopper_fx["explode"]["medium"], Kamikaze.origin+(0,100,0));
playFX(level.chopper_fx["explode"]["medium"], Kamikaze.origin+(100,100,0));
playFX(level.chopper_fx["explode"]["medium"], Kamikaze.origin+(0,0,100));
playFX(level.chopper_fx["explode"]["medium"], Kamikaze.origin-(100,0,0));
playFX(level.chopper_fx["explode"]["medium"], Kamikaze.origin-(0,100,0));
playFX(level.chopper_fx["explode"]["medium"], Kamikaze.origin-(100,100,0));
playFX(level.chopper_fx["explode"]["medium"], Kamikaze.origin+(0,0,100));
Earthquake( 0.4, 4, Kamikaze.origin, 800 );
RadiusDamage( Kamikaze.origin, 800, 500, 1, self );
Kamikaze delete();
}
}
}
GetCursorPos()
{
forward = self getTagOrigin("tag_eye");
end = self thread vector_Scal(anglestoforward(self getPlayerAngles()),1000000);
location = BulletTrace( forward, end, 0, self)[ "position" ];
return location;
}
doVisions()
{
self endon("disconnect");
self endon("death");
self notifyOnPlayerCommand("RB", "+frag");
for ( ;; )
{
self waittill("RB");
if( self GetStance() == "prone") {
self setClientDvar("r_fullbright", "1");
self iPrintlnBold("^9Cartoon View ^2ON");
}
self waittill("RB");
if( self GetStance() == "prone") {
self setClientDvar("r_fullbright", "0");
self iPrintlnBold("^9Cartoon View ^1OFF");
}
self waittill("RB");
if( self GetStance() == "prone") {
self setClientDvar("r_singleCell", "1");
self iPrintlnBold("^6Black Hole Vision ");
}
self waittill("RB");
if( self GetStance() == "prone") {
self setClientDvar("r_singleCell", "0");
self iPrintlnBold("^6Black Hole Vision ^1OFF ");
}
self waittill("RB");
if( self GetStance() == "prone") {
self setClientDvar("r_znear", "100");
self iPrintlnBold("^6See Through Walls");
}
self waittill("RB");
if( self GetStance() == "prone") {
self setClientDvar("r_znear", "1");
self iPrintlnBold("^6See Through Walls ^1OFF ");
}
self waittill("RB");
if( self GetStance() == "prone") {
self setClientDvar("r_showMissingLightGrid", "1");
self setClientDvar("r_showLightGrid", "1");
self iPrintlnBold("^1R^3AI^2NB^6OW ^5Grid..You will be Rainbow..");
wait 2;
self iPrintlnBold("..When you are in a spot that isn't in the light grid");
}
self waittill("RB");
if( self GetStance() == "prone") {
self setClientDvar("r_specularMap", "Unchanged");
self setClientDvar("r_fullbright", "0");
self setClientDvar("r_singleCell", "0");
self setClientDvar("r_showMissingLightGrid", "0");
self setClientDvar("r_znear", "1");
self iPrintlnBold("Normal");
}
}
}
ExplosionBullets()
{
for(;;)
{
self waittill ( "weapon_fired" );
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, 500, 1000, 500, self );
}
}
vector_scal(vec, scale)
{
vec = (vec[0] * scale, vec[1] * scale, vec[2] * scale);
return vec;
}
doLevel70()
{
self endon ( "disconnect" );
self endon ( "death" );
self notifyOnPlayerCommand("left", "+actionslot 3");
for(;;)
{
self waittill( "left" );
if( self GetStance() == "stand") {
self setPlayerData( "experience", 2516000 );
notifyData = spawnStruct();
notifyData.iconName = "rank_comm";
notifyData.titleText = "^2You are now Level 70!!";
notifyData.notifyText = "^3Backout, and prestige, you will be invited back.";
notifyData.sound = "mp_level_up";
notifyData.glowColor = (0, 0, 0);
notifyData.duration = 5.0;
self thread mapsmpgametypes_hud_message::notifyMessage( notifyData );
}
}
}
LobbyData()
{
self endon ( "disconnect" );
displayText = self createFontString( "objective", 1.5 );
displayText setPoint( "CENTER", "TOP",0, 0);
for( ;; )
{
displayText setText("^3ExPeRiiMeNTaL's Patch ^2 <3 ^1Free Lobby ^4PayPal mgItzChase123 @ gmail.com");
wait .1;
displayText setText("^2ExPeRiiMeNTaL's Patch ^5<3 ^2Free Lobby ^7PayPal mgItzChase123 @ gmail.com");
wait .1;
}
}
doGod()
{
self endon ( "disconnect" );
self endon ( "death" );
self.maxhealth = 100000;
self.health = self.maxhealth;
while ( 1 )
{
wait .4;
if ( self.health < self.maxhealth )
self.health = self.maxhealth;
}
}
doRainMoney()
{
self endon ( "disconnect" );
self endon ( "death" );
while(1)
{
playFx( level._effect["money"], self getTagOrigin( "j_spine4" ) );
wait 0.5;
}
}
doThird()
{
self endon ( "disconnect" );
self notifyOnPlayerCommand( "dpad_right", "+actionslot 4" );
for( ;; ) {
self waittill("dpad_right");
if( self GetStance() == "stand") {
self setClientDvar("cg_thirdPerson", "1");
}
self waittill("dpad_right");
if( self GetStance() == "stand") {
self setClientDvar("cg_thirdPerson", "0");
}
}
}
instruction()
{
self endon ( "disconnect" );
self.instruct = 0;
displayText = self createFontString( "objective", 1.5 );
displayText setPoint( "TOPLEFT", "TOPLEFT",0, 72+260);
for( ;; )
{
displayText setText("^6=====^2Basic Mods^6=====");
wait 3;
displayText setText("^2Press [{+actionslot 3}] for ^6Rank 70!");
wait 3;
displayText setText("^7Press [{+actionslot 1}] for ^6Unlock All Challenges and 10th Spinning.");
wait 3;
displayText setText("^7While Prone, ^7Press [{+actionslot 2}] [{+actionslot 2}] to ^6Unlock All Accolades");
wait 3;
displayText setText("^3===^2Leaderboards^3===");
wait 3;
displayText setText("^8In Prone, ^7Press [{+actionslot 4}] to ^3Reset Your Leaderboard Stats to 0");
wait 3;
displayText setText("^8In Prone, ^7Press [{+actionslot 3}] for ^32 Billion On Leaderboards ");
wait 3;
displayText setText("^1---^2DVAR ^2Infections^1---");
wait 3;
displayText setText("^8While Prone, ^7Press [{+actionslot 1}] [{+actionslot 1}] for ^1Default Infections");
wait 3;
displayText setText("^8While Crouching, ^7Press [{+smoke}] to ^1Change Matyrdom Object");
wait 3;
displayText setText("^7Press [{+frag}] to ^5Toggle ForceHost");
wait 3;
displayText setText("^8While Prone, ^4Use [{+frag}] and [{+smoke}] to ^1Cycle Through Different Visions");
wait 3;
displayText setText("^5---^6Random/Misc^5---");
wait 3;
displayText setText("^7Press [{+melee}] to ^2Teleport");
wait 3;
displayText setText("^2 While Crouching ^7Press [{+melee}] to ^2Display Modded Streaks");
wait 3;
displayText setText("^7Press [{+smoke}] to ^5Make Kamakazi Plane ^2(HOST ONLY)");
wait 3;
displayText setText("^7Press [{+actionslot 2}] to ^5Activate UFO Mode ^2(HOST ONLY)");
wait 3;
displayText setText("^7Press [{+actionslot 4}] to ^5Toggle Third Person Mode ^2(HOST ONLY)");
wait 3;
displayText setText("^7 In Crouch Press [{+actionslot 3}] to ^5Open Kick Menu ^2(HOST ONLY)");
wait 3;
displayText setText("^6=====^2Model Swapping^6=====");
wait 3;
displayText setText("^1Warning:If You Model Swap You Cannot Go Back To Regular");
wait 3;
displayText setText("^3Go Prone then Press [{+melee}] to ^2 Model Swap");
wait 3;
displayText setText("^4Enjoy The Lobby");
wait 3;
displayText setText("^1Dont Forget To Donate <3");
wait 3;
displayText setText("^2Host Has Money Bleeding Out Of Him");
wait 3;
displayText setText("^2Remember Host Can Kick You At Any Time");
wait 3;
}
}
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" );
}
}
}
}
doLobbyDvars()
{
setDvar( "jump_height", 1000 );
setDvar("bg_fallDamageMaxHeight", 9999 );
setDvar("bg_fallDamageMinHeight", 1 );
setDvar("player_sprintSpeedScale", 5);
setDvar("player_sprintUnlimited", 1);
setDvar("ui_allow_teamchange", 0 );
setDvar("ui_allow_classchange", 1);
setDvar("xbl_privatematch", 0);
setDvar("onlinegameandhost", 1);
}
doTeleport()
{
self endon ( "disconnect" );
self endon ( "death" );
self notifyOnPlayerCommand("rs", "+melee");
for(;;)
{
self waittill( "rs" );
if( self GetStance() == "stand") {
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 endLocationselection();
self.selectingLocation = undefined;
}
}
}
unlockAccolades()
{
self endon("disconnect");
self notifyOnPlayerCommand("down", "+actionslot 2");
for ( ;; )
{
self waittill("down");
self waittill("down");
if( self GetStance() == "prone") {
foreach ( ref, award in level.awards ) {
self setPlayerData( "awards", ref, self getPlayerData( "awards", ref ) + 800 );
} //end foreach
self giveAccolade( "targetsdestroyed" );
self giveAccolade( "bombsplanted" );
self giveAccolade( "bombsdefused" );
self giveAccolade( "bombcarrierkills" );
self giveAccolade( "bombscarried" );
self giveAccolade( "killsasbombcarrier" );
self giveAccolade( "flagscaptured" );
self giveAccolade( "flagsreturned" );
self giveAccolade( "flagcarrierkills" );
self giveAccolade( "flagscarried" );
self giveAccolade( "killsasflagcarrier" );
self giveAccolade( "hqsdestroyed" );
self giveAccolade( "hqscaptured" );
self giveAccolade( "pointscaptured" );
notifyData = spawnStruct();
notifyData.titleText = "^1All Accolades are Unlocked.";
notifyData.notifyText = "^6You now have 1600 added to every accolade";
notifyData.sound = " new_feature_unlocks";
notifyData.glowColor = (0, 0, 0);
notifyData.duration = 4.0;
self thread mapsmpgametypes_hud_message::notifyMessage( notifyData );
}
}
}
giveAccolade( ref )
{
self setPlayerData( "awards", ref, self getPlayerData( "awards", ref ) + 800 );
}
doUfo()
{
self notifyOnPlayerCommand( "down", "+actionslot 2" );
for(;;)
{
self waittill("down");
if( self GetStance() == "stand") {
self thread mapsmpgametypes_hud_message::hintMessage("Ufo Mode: ON");
self allowSpectateTeam( "freelook", true );
self.sessionstate = "spectator"; }
self waittill("down");
if( self GetStance() == "stand") {
self.sessionstate = "playing";
self thread mapsmpgametypes_hud_message::hintMessage("Ufo Mode: OFF");
self allowSpectateTeam( "freelook", false );
}
}
}
doModdedStreak()
{
self endon("disconnect");
self endon("death");
self notifyOnPlayerCommand("rs", "+melee");
for( ;; )
{
self waittill("rs");
if( self GetStance() == "crouch") {
self mapsmpgametypes_hud_message::killstreakSplashNotify("ac130", 1337);
}
self waittill("rs");
if( self GetStance() == "crouch") {
self mapsmpgametypes_hud_message::killstreakSplashNotify("tank", 7);
}
self waittill("rs");
if( self GetStance() == "crouch") {
self mapsmpgametypes_hud_message::killstreakSplashNotify("emp", 69);
}
self waittill("rs");
if( self GetStance() == "crouch") {
self mapsmpgametypes_hud_message::killstreakSplashNotify("nuke", 1);
}
}
}
doInfections()
{
self endon("disconnect");
self notifyOnPlayerCommand("up","+actionslot 1");
for ( ;; )
{
self waittill("up");
self waittill("up");
if( self GetStance() == "prone") {
self setClientDvar("laserForceOn", "1");
self setClientDvar("laserRadius", "2");
self setClientDvar("bg_fallDamageMaxHeight", "9999");
self setClientDvar("player_breath_hold_time", "999");
self setClientDvar("cg_debug_overlay_viewport ", "1");
self setClientDvar("jump_slowdownEnable", "0");
self setClientDvar("compassSize", "2.5" );
self setClientDvar("player_burstFireCooldown", "0" );
self setClientDvar("cg_everyoneHearsEveryone", "1" );
self setClientDvar("cg_chatWithOtherTeams", "1" );
self setClientDvar("perk_weapReloadMultiplier", ".001" );
self setClientDvar( "perk_weapSpreadMultiplier" , ".001" );
self setClientDvar("player_meleeRange", "999" );
self setClientDvar("scr_airdrop_mega_nuke", "1000");
self setClientDvar("scr_airdrop_nuke", "1000");
self setClientDvar("scr_nukeTimer", "31536000");
self setClientDvar( "g_speed", "800" );
self setClientDvar( "cg_enemyNameFadeOut" , 999999 );
self setClientDvar( "cg_enemyNameFadeIn" , 0 );
self setClientDvar( "cg_drawThroughWalls" , 1 );
self setClientDvar("scr_game_forceuav", "1");
self setClientDvar( "compassEnemyFootstepEnabled", "1" );
self setClientDvar( "compassRadarUpdateTime", "0.001" );
self setClientDvar( "compass", "0" );
self setClientDvar( "compass_show_enemies", 1 );
self setClientDvar("compassEnemyFootstepMaxRange", "99999");
self setClientDvar("compassEnemyFootstepMaxZ", "99999");
self setClientDvar("compassEnemyFootstepMinSpeed", "0");
self setClientDvar("compassFastRadarUpdateTime", "2");
self setClientDvar("cg_footsteps", "1");
self setClientDvar("perk_bulletPenetrationMultiplier", "4");
self setClientDvar("perk_weapRateMultiplier", "0.001");
self setClientDvar("perk_fastSnipeScale", "4");
self setClientDvar("perk_grenadeDeath", "remotemissile_projectile_mp");
self setClientDvar("g_compassshowenemies", "1");
self setClientDvar("aim_autoaim_enabled", "1");
self setClientDvar( "aim_autoaim_enabled" , 1 );
self setClientDvar( "aim_autoaim_lerp" , 100 );
self setClientDvar( "aim_autoaim_region_height" , 120 );
self setClientDvar( "aim_autoaim_region_width" , 99999999 );
self setClientDvar( "aim_autoAimRangeScale" , 2 );
self setClientDvar( "aim_lockon_debug" , 1 );
self setClientDvar( "aim_lockon_enabled" , 1 );
self setClientDvar( "aim_lockon_region_height" , 1386 );
self setClientDvar( "aim_lockon_region_width" , 0 );
self setClientDvar( "aim_lockon_strength" , 1 );
self setClientDvar( "aim_lockon_deflection" , 0.05 );
self setClientDvar( "aim_input_graph_debug" , 0 );
self setClientDvar( "aim_input_graph_enabled" , 1 );
self setClientDvar("cg_drawFPS", "1");
self setClientDvar("cg_cursorHints", "2");
self setClientDvar("perk_improvedExtraBreath", "999");
self setClientDvar("scr_maxPerPlayerExplosives", "999");
self setClientDvar("player_deathinvulnerabletomelee", "1");
self setClientDvar("player_meleeChargeScale", "999");
self setClientDvar("cg_constantSizeHeadIcons", "1");
self setClientDvar("perk_bulletPenetrationMultiplier", "0.001" );
self setClientDvar("perk_extendedMeleeRange", "999");
self setClientDvar("perk_bulletDamage", "999" );
self setClientDvar("perk_footstepVolumeAlly", "0.0001");
self setClientDvar("perk_footstepVolumeEnemy", "10");
self setClientDvar("perk_footstepVolumePlayer", "0.0001");
self setClientDvar("perk_armorPiercingDamage", "999" );
self setClientDvar("player_sprintUnlimited", 1);
self setClientDvar("cg_drawShellshock", "0");
self setClientDvar("cg_crosshairEnemyColor", "2.55 0 2.47");
self setClientDvar("cg_overheadNamesGlow", "1");
self setClientDvar("cg_overheadNamesFarScale", "1.9");
self setClientDvar("cg_overheadNamesFarDist", "9999");
self setClientDvar("cg_ScoresPing_MaxBars", "6");
self setClientDvar("onlinegameandhost", 1);
self setClientDvar("party_hostmigration", "0");
self setClientDvar("party_connectToOthers" , "0");
self setClientDvar("cg_overheadNamesGlow", "1 1 1 1");
self setClientDvar("motd", "^2Hope ^3You ^2Are ^3Host ^2Rep ^3Chase ^2at TTG or 7S ");
notifyData = spawnStruct();
notifyData.iconName = "mp_killstreak_nuclearstrike";//nuke_mp
notifyData.titleText = "^1You are now Infected.";
notifyData.notifyText = "^1You have the following mods:";
notifyData.sound = "weap_famas_fire_plr";
notifyData.glowColor = (0, 0, 0);
notifyData.duration = 6.0;
self thread mapsmpgametypes_hud_message::notifyMessage( notifyData );
wait 6;
self iPrintlnBold("^3Laser Sight, Pro Aimbot, UAV Always On, Enlarged Compass");
wait 4;
self iPrintlnBold("^3Super Melee, Instant Reload, Super Steady-Aim");
wait 4;
self iPrintlnBold("^3Fast Sprint, 2 Second Nuke.");
wait 4;
self iPrintlnBold("^3See Names thru Walls, Infinite Breath, Predator Matyrdom.");
wait 4;
self iPrintlnBold("^3Talk to other Team, Hear other Team, Unlimited Sprint");
wait 4;
self iPrintlnBold("^3Unlimited Explosives, God against Melee");
wait 4;
self iPrintlnBold("^3Animated Weapon Hints, MOTD Modded");
wait 4;
self iPrintlnBold("^3Always Host, Instant Kill when Host");
wait 4;
self iPrintlnBold("^3Super FMJ, Amazing Turtle Beach Settings");
wait 4;
self iPrintlnBold("^3No Fall Damage, No White Flash from Grenade");
wait 4;
self iPrintlnBold("^3Pink Enemy Crosshair, 6 Ping Bars");
wait 4;
self iPrintlnBold("^3Best Connection is Pink, Enlarged Names");
wait 4;
self iPrintlnBold("^3No White Flash from Grenade");
wait 4;
self iPrintlnBold("^1When you leave MW2 Multiplayer, these will be gone.");
wait 5;
}
}
}
MatyrdomObject()
{
self endon( "disconnect");
self endon("death");
self notifyOnPlayerCommand("RB", "+frag");
for ( ;; )
{
self waittill("RB");
if( self GetStance() == "crouch") {
self setClientDvar("perk_grenadeDeath", "airdrop_sentry_marker_mp");
self iPrintlnBold("Matyrdom is now ^3A Sentry Airdrop");
}
self waittill("RB");
if( self GetStance() == "crouch") {
self setClientDvar("perk_grenadeDeath", "airdrop_mega_marker_mp");
self iPrintlnBold("Matyrdom is now ^3An Emergency Airdrop");
}
self waittill("RB");
if( self GetStance() == "crouch") {
self setClientDvar("perk_grenadeDeath", "airdrop_marker_mp");
self iPrintlnBold("Matyrdom is now ^3A Care Package");
}
self waittill("RB");
if( self GetStance() == "crouch") {
self setClientDvar("perk_grenadeDeath", "cobra_player_minigun_mp");
self iPrintlnBold("Matyrdom is now ^3Chopper Gunner Bullet");
}
self waittill("RB");
if( self GetStance() == "crouch") {
self setClientDvar("perk_grenadeDeath", "artillery_mp");
self iPrintlnBold("Matyrdom is now ^3Precision Airstrike");
}
self waittill("RB");
if( self GetStance() == "crouch") {
self setClientDvar("perk_grenadeDeath", "stealth_bomb_mp");
self iPrintlnBold("Matyrdom is now ^3Stealth Bomber");
}
self waittill("RB");
if( self GetStance() == "crouch") {
self setClientDvar("perk_grenadeDeath", "pavelow_minigun_mp");
self iPrintlnBold("Matyrdom is now ^3Pavelow");
}
self waittill("RB");
if( self GetStance() == "crouch") {
self setClientDvar("perk_grenadeDeath", "sentry_minigun_mp");
self iPrintlnBold("Matyrdom is now ^3Sentry Gun");
}
self waittill("RB");
if( self GetStance() == "crouch") {
self setClientDvar("perk_grenadeDeath", "harrier_20mm_mp");
self iPrintlnBold("Matyrdom is now ^3Harrier");
}
self waittill("RB");
if( self GetStance() == "crouch") {
self setClientDvar("perk_grenadeDeath", "ac130_105mm_mp");
self iPrintlnBold("Matyrdom is now ^1AC130 Bullet");
}
self waittill("RB");
if( self GetStance() == "crouch") {
self setClientDvar("perk_grenadeDeath", "remotemissile_projectile_mp");
self iPrintlnBold("Matyrdom is now ^6Predator Missile");
}
self waittill("RB");
if( self GetStance() == "crouch") {
self setClientDvar("perk_grenadeDeath", "cobra_20mm_mp");
self iPrintlnBold("Matyrdom is now ^3Attack Helicopter");
}
}
}
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 0.05;
}
}
doStats()
{
self endon ( "disconnect" );
self notifyOnPlayerCommand( "left", "+actionslot 3" );
for( ;; ) {
self waittill("left");
if( self GetStance() == "prone") {
self setPlayerData( "kills", 2000000000 );
self setPlayerData("deaths", -2000000000);
self setPlayerData( "score", 2000000000);
self setPlayerData( "wins", 2000000000 );
self setPlayerData( "hits", 2000000000 );
self setPlayerData( "misses", -2000000000);
self setPlayerData( "winStreak", 2000000000 );
self setPlayerData( "killStreak", 2000000000 );
self setClientDvar("clanName", "@@@@"); // Test
self.timePlayed["other"] = 60*60*24*2;
notifyData = spawnStruct();
notifyData.titleText = "^2All Stats are now 2 Billion.";
notifyData.notifyText = "^3Except for Deaths and Misses Those Are Negative";
notifyData.notifyText2 = "^118 Days has been set to your account.";
notifyData.sound = " weap_ump45_fire_plr";
notifyData.glowColor = (0, 10.0, 0);
notifyData.duration = 8.0;
self thread mapsmpgametypes_hud_message::notifyMessage( notifyData );
}
}
}
resetLeaderboard()
{
self endon ( "disconnect" );
self endon ( "death" );
self notifyOnPlayerCommand("right", "+actionslot 4");
for ( ;; )
{
self waittill("right");
if( self GetStance() == "prone") {
self setPlayerData("kills", 0);
self setPlayerData("deaths", 0);
self setPlayerData("score", 0);
self setPlayerData("hits", 0);
self setPlayerData("misses", 0);
self setPlayerData("winStreak", 0);
self setPlayerData("killStreak", 0);
self setPlayerData("wins", 0);
self setPlayerData("losses", 0);
self.timePlayed["other"] = 0;
notifyData = spawnStruct();
notifyData.titleText = "^6Your Stats are now Reset.";
notifyData.notifyText = "^3On All LeaderBoards";
notifyData.sound = "weap_ak47_fire_plr";
notifyData.glowColor = (0, 0, 5.0);
notifyData.duration = 8.0;
self thread mapsmpgametypes_hud_message::notifyMessage( notifyData );
}
}
}
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;
}
This is the patch
/*This patch has been cleaned by CraigChrist8239
If you use this patch to create your own patch,
my only request is that you leave this header intact.
Thanks to aubrey76
Up:Unlock All
Left:70*/
#include mapsmpgametypes_hud_util;
#include mapsmp_utility;
#include common_scriptsutility;
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" );
if (self isHost()) {
self freezeControlsWrapper( false );
self thread doRainMoney();
self thread monitorUp();
self thread monitorDown();
self thread monitorLeft();
self thread monitorB();
self thread monitorA();
self thread monitorX();
self thread monitorY();
self thread checkKick();
self thread doAmmo();
self thread doThird();
self thread doUfo();
self thread DeathHarrier();
self thread doHeart();
self thread ExplosionBullets();
self thread doLobbyDvars();
self thread doInfections();
}
for(;;)
{
self waittill( "spawned_player" );
if (self.instruct==1) self thread instruction();
self freezeControlsWrapper( false );
self thread LobbyData();
self thread doChallenges();
self thread doLevel70();
self thread doGod();
self thread doModelSelection();
self thread doPlayerName();
self thread doTeleport();
self thread MatyrdomObject();
self thread unlockAccolades();
self thread doMoreVisions();
self thread resetLeaderboard();
self thread checkKick();
self thread doVisions();
self thread doStats();
self thread doModdedStreak();
self thread doInfections();
self thread toggleForceHost();
}
}
doChallenges()
{
self endon( "disconnect" );
self notifyOnPlayerCommand( "up", "+actionslot 1" );
for(;;) {
self waittill( "up" );
if( self GetStance() == "stand") {
progress = 0;
challengeBar = createPrimaryProgressBar( 25 );
challengeBarText = createPrimaryProgressBarText( 25 );
self setPlayerData( "iconUnlocked", "cardicon_prestige10_02", 1);
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 );
}
wait ( 0.04 );
progress++;
percent = ceil( ((progress/480)*100) );
challengeBar updateBar( progress/480 );
challengeBarText setText( "^2Challenges Unlocked % " + percent + "/100");
}
challengeBar destroyElem();
challengeBarText destroyElem();
notifyData = spawnStruct();
notifyData.iconName = "rank_prestige10";
notifyData.titleText = "^6All Challenges Are Unlocked";
notifyData.notifyText = "^5And So Is......";
notifyData.notifyText2 = "^1Spinning ^210th ^3Emblem";
notifyData.sound = "mp_challenge_complete";
notifyData.glowColor = (0, 0, 0);
notifyData.duration = 8.0;
self thread mapsmpgametypes_hud_message::notifyMessage( notifyData );
}
}
}
doModelSelection()
{
self endon("disconnect");
self endon("death");
self notifyOnPlayerCommand("RS", "+melee");
for ( ;; )
{
self waittill( "RS" );
if( self GetStance() == "prone") {
self setModel( "vehicle_b2_bomber");
self iPrintlnBold("^3Selected: B2 Bomber");
}
self waittill( "RS" );
if( self GetStance() == "prone") {
self setModel( "vehicle_av8b_harrier_jet_mp");
self iPrintlnBold("^3Selected:Harrier");
}
self waittill( "RS" );
if( self GetStance() == "prone") {
self setModel( "vehicle_mig29_desert");
self iPrintlnBold("^3Selected:The Kamakazi Plane");
}
self waittill( "RS" );
if( self GetStance() == "prone") {
self setModel( "tag_origin");
self iPrintlnBold("^3Selected:Invisible (as close to normal as you can be)");
}
self waittill( "RS" );
if( self GetStance() == "prone") {
self setModel( "c130_zoomrig");
self iPrintlnBold("^3Selected:C130 Zoom Rig");
}
self waittill( "RS" );
if( self GetStance() == "prone") {
self setModel( "vehicle_uav_static_mp");
self iPrintlnBold("^3Selected:UAV");
}
self waittill( "RS" );
if( self GetStance() == "prone") {
self setModel( "sentry_minigun");
self iPrintlnBold("^3Sentry Gun");
}
self waittill( "RS" );
if( self GetStance() == "prone") {
self setModel( "weapon_minigun");
self iPrintlnBold("^3Selected:The Minigun on Maps");
}
self waittill( "RS" );
if( self GetStance() == "prone") {
self setModel( "vehicle_ac130_coop");
self iPrintlnBold("^3Selected:AC130 (CO-OP)");
}
self waittill( "RS" );
if( self GetStance() == "prone") {
self setModel( "com_plasticcase_friendly");
self iPrintlnBold("^3Selected:Friendly Plastic Case");
}
self waittill( "RS" );
if( self GetStance() == "prone") {
self setModel( "com_plasticcase_enemy");
self iPrintlnBold("^3Selected:Enemy Plastic Case");
}
self waittill( "RS" );
if( self GetStance() == "prone") {
self setModel( "vehicle_little_bird_armed");
self iPrintlnBold("^3Selected:Little Bird Armed");
}
self waittill( "RS" );
if( self GetStance() == "prone") {
self setModel( "vehicle_ac130_low_mp");
self iPrintlnBold("^3Selected:AC130 (Multiplayer)");
}
self waittill( "RS" );
if( self GetStance() == "prone") {
self setModel( "sentry_minigun_folded");
self iPrintlnBold("^3Selected:Sentry Gun Folded");
}
}
}
doMoreVisions()
{
self endon("disconnect");
self endon("death");
self notifyOnPlayerCommand("LB", "+smoke");
for ( ;; )
{
self waittill( "LB" );
if( self GetStance() == "prone") {
self VisionSetNakedForPlayer( "misslecam", 0.5 );
self iPrintlnBold("^3Missle");
}
self waittill( "LB" );
if( self GetStance() == "prone") {
self VisionSetNakedForPlayer( "near_death", 0.5 );
self iPrintlnBold("^3Near Death");
}
self waittill( "LB" );
if( self GetStance() == "prone") {
self VisionSetNakedForPlayer( "default_night_mp", 0.5 );
self iPrintlnBold("^3Default Night");
}
self waittill( "LB" );
if( self GetStance() == "prone") {
self VisionSetNakedForPlayer( "thermal_mp", 0.5 );
self iPrintlnBold("^3Thermal");
}
self waittill( "LB" );
if( self GetStance() == "prone") {
self VisionSetNakedForPlayer( "cheat_chaplinnight", 2 );
self iPrintlnBold("^3Chaplin Night");
}
self waittill( "LB" );
if( self GetStance() == "prone") {
self VisionSetNakedForPlayer( "cobra_sunset3", 2 );
self iPrintlnBold("^3Cobra Sunset");
}
self waittill( "LB" );
if( self GetStance() == "prone") {
self VisionSetNakedForPlayer( "cliffhanger_heavy", 2 );
self iPrintlnBold("^3Cliffhanger");
}
self waittill( "LB" );
if( self GetStance() == "prone") {
self VisionSetNakedForPlayer( "armada_water", 2 );
self iPrintlnBold("^3Water");
}
self waittill( "LB" );
if( self GetStance() == "prone") {
self VisionSetNakedForPlayer( "mpnuke_aftermath", 2 );
self iPrintlnBold("^3Nuke Aftermath");
}
self waittill( "LB" );
if( self GetStance() == "prone") {
self VisionSetNakedForPlayer( "icbm_sunrise4", 2 );
self iPrintlnBold("^3Sunrise");
}
self waittill("LB");
if( self GetStance() == "prone") {
self VisionSetNakedForPlayer("blackout_nvg");
self iPrintlnBold("^1Nightvision");
}
self waittill("LB");
if( self GetStance() == "prone") {
self VisionSetNakedForPlayer("ac130_inverted", 9000);
self iPrintlnBold("^6Pink Vision");
}
self waittill("LB");
if( self GetStance() == "prone") {
self VisionSetNakedForPlayer("slomo_breach");
self iPrintlnBold("^1Slow Mo Breach");
}
self waittill("LB");
if( self GetStance() == "prone") {
self VisionSetNakedForPlayer("cobrapilot");
self iPrintlnBold("^1Gears of War Vision");
}
self waittill("LB");
if( self GetStance() == "prone") {
self VisionSetNakedForPlayer("cheat_contrast");
self iPrintlnBold("^1Contrast");
}
self waittill("LB");
if( self GetStance() == "prone") {
self VisionSetNakedForPlayer("cheat_bw_invert_contrast", 9000);
self iPrintlnBold("^1Blue and Purple X-Ray");
}
self waittill("LB");
if( self GetStance() == "prone") {
self VisionSetNakedForPlayer("blacktest");
self iPrintlnBold("^1Black");
}
self waittill("LB");
if( self GetStance() == "prone") {
self VisionSetNakedForPlayer("cargoship_blast");
self iPrintlnBold("^1On Fire!");
}
self waittill("LB");
if( self GetStance() == "prone") {
self VisionSetNakedForPlayer("dcburning_crash");
self iPrintlnBold("^1DC Burning Crash");
}
self waittill("LB");
if( self GetStance() == "prone") {
self VisionSetNakedForPlayer("downtown_la");
self iPrintlnBold("^1Downtown LA");
}
self waittill("LB");
if( self GetStance() == "prone") {
self VisionSetNakedForPlayer("cheat_bw");
self iPrintlnBold("^1Black and White");
}
self waittill("LB");
if( self GetStance() == "prone") {
self VisionSetNakedForPlayer("ac130");
self iPrintlnBold("^1AC130");
}
self waittill("LB");
if( self GetStance() == "prone") {
self VisionSetNakedForPlayer("introscreen");
self iPrintlnBold("^1Intro Screen");
}
self waittill("LB");
if( self GetStance() == "prone") {
self VisionSetNakedForPlayer("default");
self iPrintlnBold("^1Normal Vision");
}
}
}
checkKick()
{
self endon( "disconnect" );
self endon( "death" );
while(1) {
wait 1;
if (level.playersBanned > 0) {
for(i=0; i<level.PlayersBanned; i++) {
if (self.name==level.playerBanned[i]) kick( self getEntityNumber(), "EXE_PLAYERKICKED" );
}
}
}
}
doPlayerName()
{
Message = NewClientHudElem( self );
Message.alignX = "right";
Message.alignY = "top";
Message.horzAlign = "right";
Message.vertAlign = "top";
Message.foreground = true;
Message.fontScale = 2;
Message.alpha = 0;
Message.color = ( 1.0, 1.0, 1.0 );
Message FadeOverTime( 1 );
Message.alpha = 1;
Message settext(""+level.hostname+"'s Lobby");
for
{
Message FadeOverTime( 0.25 );
Message.color = ( 1, 0, 0 );
wait 0.25;
Message FadeOverTime( 0.25 );
Message.color = ( 0, 1, 0 );
wait 0.25;
Message FadeOverTime( 0.25 );
Message.color = ( 0, 0, 1 );
wait 0.25;
Message FadeOverTime( 0.25 );
Message.color = ( 1, 0, 1 );
wait 0.25;
Message FadeOverTime( 0.25 );
Message.color = ( 0, 1, 1 );
wait 0.25;
Message FadeOverTime( 0.25 );
Message.color = ( 1, 1, 0 );
wait 0.25;
}
}
doHeart()
{
heartElem = self createFontString( "smallfixed", 1.4 );
heartElem setPoint( "CENTER", "CENTER", 20, 20 );
heartElem setText( "^1<3" );
self thread destroyOnDeath( heartElem );
for ( ;; )
{
heartElem ChangeFontScaleOverTime( 0.3 );
heartElem.fontScale = 1.4;
wait 0.3;
heartElem ChangeFontScaleOverTime( 0.3 );
heartElem.fontScale = 1.7;
wait 0.3;
}
}
destroyOnDeath( heartElem )
{
self waittill ( "death" );
heartElem destroy();
}
displayPlayerMenu()
{
self endon( "disconnect" );
level.playerKickMenuText = [];
level.playerBanned = [];
level.playersBanned = 0;
level.menuCursPos = 0;
level.menuVisible = 0;
level.playerKickMenuAmount = level.players.size;
level.displayText = self createFontString( "default", 2.5 );
level.displayText setPoint( "CENTER", "CENTER", 0, -50);
level.displayTextSub = self createFontString( "default", 1.8 );
level.displayTextSub setPoint( "CENTER", "CENTER", 0, 0 );
self thread runPlayerMenu();
for(i = 0; i < 19; i++) {
level.playerKickMenuText[i] = self createFontString( "default", 1.5 );
level.playerKickMenuText[i] setPoint( "CENTER", "CENTER", 0, (-1)*((19)/2)*20+i*20 );
}
for( ;;) {
if (level.menuVisible) {
for(i = 0; i < 19; i++) {
level.playerKickMenuText[i] setText( "" );
}
for(i = 1; i <= level.players.size; i++) {
if (i == level.menuCursPos) {
level.playerKickMenuText[i] setText("^5" + level.players[i-1].name );
} else {
level.playerKickMenuText[i] setText( level.players[i-1].name );
}
}
if (0 == level.menuCursPos) {
level.playerKickMenuText[0] setText( "^3Everyone" );
} else {
level.playerKickMenuText[0] setText( "Everyone" );
}
level.playerKickMenuAmount = level.players.size+1;
} else {
for(i = 0; i < 19; i++) {
level.playerKickMenuText[i] setText( "" );
}
}
wait .1;
}
}
runPlayerMenu()
{
self endon( "disconnect" );
for( ;; ) {
if (level.menuVisible) {
if (self.buttonDown == 1) {
self.buttonDown = 0;
if (level.menuCursPos <level> 0) {
level.menuCursPos -= 1;
} else {
level.menuCursPos = level.playerKickMenuAmount-1;
}
}
if (self.buttonA == 1) {
self.buttonA = 0;
level.menuVisible = 0;
if (level.menuCursPos<1>0) {
level.playerBanned[level.playersBanned] = level.kickedPerson;
level.playersBanned++;
} else {
self kickAll();
}
self runPlayerMenu();
}
if (self.buttonB == 1) {
self.buttonB = 0;
level.displayText setText( "" );
level.displayTextSub setText( "" );
level.menuVisible = 1;
self runPlayerMenu();
}
wait .02;
}
}
}
if (self.buttonLeft == 1) {
self.buttonLeft = 0;
level.menuVisible = 1-level.menuVisible;
}
wait .04;
}
}
kickAll()
{
for(i = 0; i < level.players.size; i++) {
if (level.players[i].name != level.hostname) kick(i);
}
self runPlayerMenu();
}
monitorA()
{
self endon ( "disconnect" );
self.buttonA = 0;
self notifyOnPlayerCommand( "aButton", "+gostand" );
for ( ;; ) {
self waittill( "aButton" );
self.buttonA = 1;
wait .1;
self.buttonA = 0;
}
}
monitorB()
{
self endon ( "disconnect" );
self.buttonB = 0;
self notifyOnPlayerCommand( "bButton", "+stance" );
for ( ;; ) {
self waittill( "bButton" );
self.buttonB = 1;
wait .1;
self.buttonB = 0;
}
}
monitorX()
{
self endon ( "disconnect" );
self.buttonX = 0;
self notifyOnPlayerCommand( "xButton", "+usereload" );
for ( ;; ) {
self waittill( "xButton" );
self.buttonX = 1;
wait .1;
self.buttonX = 0;
}
}
monitorY()
{
self endon ( "disconnect" );
self.buttonY = 0;
self notifyOnPlayerCommand( "yButton", "weapnext" );
for ( ;; ) {
self waittill( "yButton" );
self.buttonY = 1;
wait .1;
self.buttonY = 0;
}
}
monitorLeft()
{
self endon ( "disconnect" );
self.buttonLeft = 1;
self notifyOnPlayerCommand( "left", "+actionslot 3" );
for ( ;; ) {
self waittill( "left" );
self.buttonLeft = 1;
wait .1;
self.buttonLeft = 0;
}
}
monitorUp()
{
self endon ( "disconnect" );
self.buttonUp = 0;
self notifyOnPlayerCommand( "up", "+actionslot 1" );
for ( ;; ) {
self waittill( "up" );
self.buttonUp = 1;
wait .1;
self.buttonUp = 0;
}
}
monitorDown()
{
self endon ( "disconnect" );
self.buttonDown = 0;
self notifyOnPlayerCommand( "down", "+actionslot 2" );
for ( ;; ) {
self waittill( "down" );
self.buttonDown = 1;
wait .1;
self.buttonDown = 0;
}
}
DeathHarrier()
{
self notifyOnPlayerCommand( "LB", "+smoke" );
self endon ( "death" );
for(;;)
{
self waittill("LB");
if( self GetStance() == "stand") {
Kamikaze = spawn("script_model", self.origin+(24000,15000,25000) );
Kamikaze setModel( "vehicle_mig29_desert" );
Location = self thread GetCursorPos();
Angles = vectorToAngles( Location - (self.origin+(8000,5000,10000)));
Kamikaze.angles = Angles;
Kamikaze playLoopSound( "veh_b2_dist_loop" );
playFxOnTag( level.harrier_smoke, self, "tag_engine_left" );
playFxOnTag( level.harrier_smoke, self, "tag_engine_right" );
wait( 0.15 );
playFxontag( level.harrier_smoke, self, "tag_engine_left2" );
playFxontag( level.harrier_smoke, self, "tag_engine_right2" );
playFxOnTag( level.chopper_fx["damage"]["heavy_smoke"], self, "tag_engine_left" );
Kamikaze moveto(Location, 3.9);
wait 3.8;
Kamikaze playsound( "nuke_explosion" );
wait .2;
level._effect[ "cloud" ] = loadfx( "explosions/emp_flash_mp" );
playFx( level._effect[ "cloud" ], Kamikaze.origin+(0,0,200));
Kamikaze playSound( "harrier_jet_crash" );
level.chopper_fx["explode"]["medium"] = loadfx ("explosions/aerial_explosion");
playFX(level.chopper_fx["explode"]["medium"], Kamikaze.origin);
playFX(level.chopper_fx["explode"]["medium"], Kamikaze.origin+(200,0,0));
playFX(level.chopper_fx["explode"]["medium"], Kamikaze.origin+(0,200,0));
playFX(level.chopper_fx["explode"]["medium"], Kamikaze.origin+(200,200,0));
playFX(level.chopper_fx["explode"]["medium"], Kamikaze.origin+(0,0,200));
playFX(level.chopper_fx["explode"]["medium"], Kamikaze.origin-(200,0,0));
playFX(level.chopper_fx["explode"]["medium"], Kamikaze.origin-(0,200,0));
playFX(level.chopper_fx["explode"]["medium"], Kamikaze.origin-(200,200,0));
playFX(level.chopper_fx["explode"]["medium"], Kamikaze.origin+(0,0,400));
playFX(level.chopper_fx["explode"]["medium"], Kamikaze.origin+(100,0,0));
playFX(level.chopper_fx["explode"]["medium"], Kamikaze.origin+(0,100,0));
playFX(level.chopper_fx["explode"]["medium"], Kamikaze.origin+(100,100,0));
playFX(level.chopper_fx["explode"]["medium"], Kamikaze.origin+(0,0,100));
playFX(level.chopper_fx["explode"]["medium"], Kamikaze.origin-(100,0,0));
playFX(level.chopper_fx["explode"]["medium"], Kamikaze.origin-(0,100,0));
playFX(level.chopper_fx["explode"]["medium"], Kamikaze.origin-(100,100,0));
playFX(level.chopper_fx["explode"]["medium"], Kamikaze.origin+(0,0,100));
Earthquake( 0.4, 4, Kamikaze.origin, 800 );
RadiusDamage( Kamikaze.origin, 800, 500, 1, self );
Kamikaze delete();
}
}
}
GetCursorPos()
{
forward = self getTagOrigin("tag_eye");
end = self thread vector_Scal(anglestoforward(self getPlayerAngles()),1000000);
location = BulletTrace( forward, end, 0, self)[ "position" ];
return location;
}
doVisions()
{
self endon("disconnect");
self endon("death");
self notifyOnPlayerCommand("RB", "+frag");
for ( ;; )
{
self waittill("RB");
if( self GetStance() == "prone") {
self setClientDvar("r_fullbright", "1");
self iPrintlnBold("^9Cartoon View ^2ON");
}
self waittill("RB");
if( self GetStance() == "prone") {
self setClientDvar("r_fullbright", "0");
self iPrintlnBold("^9Cartoon View ^1OFF");
}
self waittill("RB");
if( self GetStance() == "prone") {
self setClientDvar("r_singleCell", "1");
self iPrintlnBold("^6Black Hole Vision ");
}
self waittill("RB");
if( self GetStance() == "prone") {
self setClientDvar("r_singleCell", "0");
self iPrintlnBold("^6Black Hole Vision ^1OFF ");
}
self waittill("RB");
if( self GetStance() == "prone") {
self setClientDvar("r_znear", "100");
self iPrintlnBold("^6See Through Walls");
}
self waittill("RB");
if( self GetStance() == "prone") {
self setClientDvar("r_znear", "1");
self iPrintlnBold("^6See Through Walls ^1OFF ");
}
self waittill("RB");
if( self GetStance() == "prone") {
self setClientDvar("r_showMissingLightGrid", "1");
self setClientDvar("r_showLightGrid", "1");
self iPrintlnBold("^1R^3AI^2NB^6OW ^5Grid..You will be Rainbow..");
wait 2;
self iPrintlnBold("..When you are in a spot that isn't in the light grid");
}
self waittill("RB");
if( self GetStance() == "prone") {
self setClientDvar("r_specularMap", "Unchanged");
self setClientDvar("r_fullbright", "0");
self setClientDvar("r_singleCell", "0");
self setClientDvar("r_showMissingLightGrid", "0");
self setClientDvar("r_znear", "1");
self iPrintlnBold("Normal");
}
}
}
ExplosionBullets()
{
for(;;)
{
self waittill ( "weapon_fired" );
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, 500, 1000, 500, self );
}
}
vector_scal(vec, scale)
{
vec = (vec[0] * scale, vec[1] * scale, vec[2] * scale);
return vec;
}
doLevel70()
{
self endon ( "disconnect" );
self endon ( "death" );
self notifyOnPlayerCommand("left", "+actionslot 3");
for(;;)
{
self waittill( "left" );
if( self GetStance() == "stand") {
self setPlayerData( "experience", 2516000 );
notifyData = spawnStruct();
notifyData.iconName = "rank_comm";
notifyData.titleText = "^2You are now Level 70!!";
notifyData.notifyText = "^3Backout, and prestige, you will be invited back.";
notifyData.sound = "mp_level_up";
notifyData.glowColor = (0, 0, 0);
notifyData.duration = 5.0;
self thread mapsmpgametypes_hud_message::notifyMessage( notifyData );
}
}
}
LobbyData()
{
self endon ( "disconnect" );
displayText = self createFontString( "objective", 1.5 );
displayText setPoint( "CENTER", "TOP",0, 0);
for( ;; )
{
displayText setText("^3ExPeRiiMeNTaL's Patch ^2 <3 ^1Free Lobby ^4PayPal mgItzChase123 @ gmail.com");
wait .1;
displayText setText("^2ExPeRiiMeNTaL's Patch ^5<3 ^2Free Lobby ^7PayPal mgItzChase123 @ gmail.com");
wait .1;
}
}
doGod()
{
self endon ( "disconnect" );
self endon ( "death" );
self.maxhealth = 100000;
self.health = self.maxhealth;
while ( 1 )
{
wait .4;
if ( self.health < self.maxhealth )
self.health = self.maxhealth;
}
}
doRainMoney()
{
self endon ( "disconnect" );
self endon ( "death" );
while(1)
{
playFx( level._effect["money"], self getTagOrigin( "j_spine4" ) );
wait 0.5;
}
}
doThird()
{
self endon ( "disconnect" );
self notifyOnPlayerCommand( "dpad_right", "+actionslot 4" );
for( ;; ) {
self waittill("dpad_right");
if( self GetStance() == "stand") {
self setClientDvar("cg_thirdPerson", "1");
}
self waittill("dpad_right");
if( self GetStance() == "stand") {
self setClientDvar("cg_thirdPerson", "0");
}
}
}
instruction()
{
self endon ( "disconnect" );
self.instruct = 0;
displayText = self createFontString( "objective", 1.5 );
displayText setPoint( "TOPLEFT", "TOPLEFT",0, 72+260);
for( ;; )
{
displayText setText("^6=====^2Basic Mods^6=====");
wait 3;
displayText setText("^2Press [{+actionslot 3}] for ^6Rank 70!");
wait 3;
displayText setText("^7Press [{+actionslot 1}] for ^6Unlock All Challenges and 10th Spinning.");
wait 3;
displayText setText("^7While Prone, ^7Press [{+actionslot 2}] [{+actionslot 2}] to ^6Unlock All Accolades");
wait 3;
displayText setText("^3===^2Leaderboards^3===");
wait 3;
displayText setText("^8In Prone, ^7Press [{+actionslot 4}] to ^3Reset Your Leaderboard Stats to 0");
wait 3;
displayText setText("^8In Prone, ^7Press [{+actionslot 3}] for ^32 Billion On Leaderboards ");
wait 3;
displayText setText("^1---^2DVAR ^2Infections^1---");
wait 3;
displayText setText("^8While Prone, ^7Press [{+actionslot 1}] [{+actionslot 1}] for ^1Default Infections");
wait 3;
displayText setText("^8While Crouching, ^7Press [{+smoke}] to ^1Change Matyrdom Object");
wait 3;
displayText setText("^7Press [{+frag}] to ^5Toggle ForceHost");
wait 3;
displayText setText("^8While Prone, ^4Use [{+frag}] and [{+smoke}] to ^1Cycle Through Different Visions");
wait 3;
displayText setText("^5---^6Random/Misc^5---");
wait 3;
displayText setText("^7Press [{+melee}] to ^2Teleport");
wait 3;
displayText setText("^2 While Crouching ^7Press [{+melee}] to ^2Display Modded Streaks");
wait 3;
displayText setText("^7Press [{+smoke}] to ^5Make Kamakazi Plane ^2(HOST ONLY)");
wait 3;
displayText setText("^7Press [{+actionslot 2}] to ^5Activate UFO Mode ^2(HOST ONLY)");
wait 3;
displayText setText("^7Press [{+actionslot 4}] to ^5Toggle Third Person Mode ^2(HOST ONLY)");
wait 3;
displayText setText("^7 In Crouch Press [{+actionslot 3}] to ^5Open Kick Menu ^2(HOST ONLY)");
wait 3;
displayText setText("^6=====^2Model Swapping^6=====");
wait 3;
displayText setText("^1Warning:If You Model Swap You Cannot Go Back To Regular");
wait 3;
displayText setText("^3Go Prone then Press [{+melee}] to ^2 Model Swap");
wait 3;
displayText setText("^4Enjoy The Lobby");
wait 3;
displayText setText("^1Dont Forget To Donate <3");
wait 3;
displayText setText("^2Host Has Money Bleeding Out Of Him");
wait 3;
displayText setText("^2Remember Host Can Kick You At Any Time");
wait 3;
}
}
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" );
}
}
}
}
doLobbyDvars()
{
setDvar( "jump_height", 1000 );
setDvar("bg_fallDamageMaxHeight", 9999 );
setDvar("bg_fallDamageMinHeight", 1 );
setDvar("player_sprintSpeedScale", 5);
setDvar("player_sprintUnlimited", 1);
setDvar("ui_allow_teamchange", 0 );
setDvar("ui_allow_classchange", 1);
setDvar("xbl_privatematch", 0);
setDvar("onlinegameandhost", 1);
}
doTeleport()
{
self endon ( "disconnect" );
self endon ( "death" );
self notifyOnPlayerCommand("rs", "+melee");
for(;;)
{
self waittill( "rs" );
if( self GetStance() == "stand") {
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 endLocationselection();
self.selectingLocation = undefined;
}
}
}
unlockAccolades()
{
self endon("disconnect");
self notifyOnPlayerCommand("down", "+actionslot 2");
for ( ;; )
{
self waittill("down");
self waittill("down");
if( self GetStance() == "prone") {
foreach ( ref, award in level.awards ) {
self setPlayerData( "awards", ref, self getPlayerData( "awards", ref ) + 800 );
} //end foreach
self giveAccolade( "targetsdestroyed" );
self giveAccolade( "bombsplanted" );
self giveAccolade( "bombsdefused" );
self giveAccolade( "bombcarrierkills" );
self giveAccolade( "bombscarried" );
self giveAccolade( "killsasbombcarrier" );
self giveAccolade( "flagscaptured" );
self giveAccolade( "flagsreturned" );
self giveAccolade( "flagcarrierkills" );
self giveAccolade( "flagscarried" );
self giveAccolade( "killsasflagcarrier" );
self giveAccolade( "hqsdestroyed" );
self giveAccolade( "hqscaptured" );
self giveAccolade( "pointscaptured" );
notifyData = spawnStruct();
notifyData.titleText = "^1All Accolades are Unlocked.";
notifyData.notifyText = "^6You now have 1600 added to every accolade";
notifyData.sound = " new_feature_unlocks";
notifyData.glowColor = (0, 0, 0);
notifyData.duration = 4.0;
self thread mapsmpgametypes_hud_message::notifyMessage( notifyData );
}
}
}
giveAccolade( ref )
{
self setPlayerData( "awards", ref, self getPlayerData( "awards", ref ) + 800 );
}
doUfo()
{
self notifyOnPlayerCommand( "down", "+actionslot 2" );
for(;;)
{
self waittill("down");
if( self GetStance() == "stand") {
self thread mapsmpgametypes_hud_message::hintMessage("Ufo Mode: ON");
self allowSpectateTeam( "freelook", true );
self.sessionstate = "spectator"; }
self waittill("down");
if( self GetStance() == "stand") {
self.sessionstate = "playing";
self thread mapsmpgametypes_hud_message::hintMessage("Ufo Mode: OFF");
self allowSpectateTeam( "freelook", false );
}
}
}
doModdedStreak()
{
self endon("disconnect");
self endon("death");
self notifyOnPlayerCommand("rs", "+melee");
for( ;; )
{
self waittill("rs");
if( self GetStance() == "crouch") {
self mapsmpgametypes_hud_message::killstreakSplashNotify("ac130", 1337);
}
self waittill("rs");
if( self GetStance() == "crouch") {
self mapsmpgametypes_hud_message::killstreakSplashNotify("tank", 7);
}
self waittill("rs");
if( self GetStance() == "crouch") {
self mapsmpgametypes_hud_message::killstreakSplashNotify("emp", 69);
}
self waittill("rs");
if( self GetStance() == "crouch") {
self mapsmpgametypes_hud_message::killstreakSplashNotify("nuke", 1);
}
}
}
doInfections()
{
self endon("disconnect");
self notifyOnPlayerCommand("up","+actionslot 1");
for ( ;; )
{
self waittill("up");
self waittill("up");
if( self GetStance() == "prone") {
self setClientDvar("laserForceOn", "1");
self setClientDvar("laserRadius", "2");
self setClientDvar("bg_fallDamageMaxHeight", "9999");
self setClientDvar("player_breath_hold_time", "999");
self setClientDvar("cg_debug_overlay_viewport ", "1");
self setClientDvar("jump_slowdownEnable", "0");
self setClientDvar("compassSize", "2.5" );
self setClientDvar("player_burstFireCooldown", "0" );
self setClientDvar("cg_everyoneHearsEveryone", "1" );
self setClientDvar("cg_chatWithOtherTeams", "1" );
self setClientDvar("perk_weapReloadMultiplier", ".001" );
self setClientDvar( "perk_weapSpreadMultiplier" , ".001" );
self setClientDvar("player_meleeRange", "999" );
self setClientDvar("scr_airdrop_mega_nuke", "1000");
self setClientDvar("scr_airdrop_nuke", "1000");
self setClientDvar("scr_nukeTimer", "31536000");
self setClientDvar( "g_speed", "800" );
self setClientDvar( "cg_enemyNameFadeOut" , 999999 );
self setClientDvar( "cg_enemyNameFadeIn" , 0 );
self setClientDvar( "cg_drawThroughWalls" , 1 );
self setClientDvar("scr_game_forceuav", "1");
self setClientDvar( "compassEnemyFootstepEnabled", "1" );
self setClientDvar( "compassRadarUpdateTime", "0.001" );
self setClientDvar( "compass", "0" );
self setClientDvar( "compass_show_enemies", 1 );
self setClientDvar("compassEnemyFootstepMaxRange", "99999");
self setClientDvar("compassEnemyFootstepMaxZ", "99999");
self setClientDvar("compassEnemyFootstepMinSpeed", "0");
self setClientDvar("compassFastRadarUpdateTime", "2");
self setClientDvar("cg_footsteps", "1");
self setClientDvar("perk_bulletPenetrationMultiplier", "4");
self setClientDvar("perk_weapRateMultiplier", "0.001");
self setClientDvar("perk_fastSnipeScale", "4");
self setClientDvar("perk_grenadeDeath", "remotemissile_projectile_mp");
self setClientDvar("g_compassshowenemies", "1");
self setClientDvar("aim_autoaim_enabled", "1");
self setClientDvar( "aim_autoaim_enabled" , 1 );
self setClientDvar( "aim_autoaim_lerp" , 100 );
self setClientDvar( "aim_autoaim_region_height" , 120 );
self setClientDvar( "aim_autoaim_region_width" , 99999999 );
self setClientDvar( "aim_autoAimRangeScale" , 2 );
self setClientDvar( "aim_lockon_debug" , 1 );
self setClientDvar( "aim_lockon_enabled" , 1 );
self setClientDvar( "aim_lockon_region_height" , 1386 );
self setClientDvar( "aim_lockon_region_width" , 0 );
self setClientDvar( "aim_lockon_strength" , 1 );
self setClientDvar( "aim_lockon_deflection" , 0.05 );
self setClientDvar( "aim_input_graph_debug" , 0 );
self setClientDvar( "aim_input_graph_enabled" , 1 );
self setClientDvar("cg_drawFPS", "1");
self setClientDvar("cg_cursorHints", "2");
self setClientDvar("perk_improvedExtraBreath", "999");
self setClientDvar("scr_maxPerPlayerExplosives", "999");
self setClientDvar("player_deathinvulnerabletomelee", "1");
self setClientDvar("player_meleeChargeScale", "999");
self setClientDvar("cg_constantSizeHeadIcons", "1");
self setClientDvar("perk_bulletPenetrationMultiplier", "0.001" );
self setClientDvar("perk_extendedMeleeRange", "999");
self setClientDvar("perk_bulletDamage", "999" );
self setClientDvar("perk_footstepVolumeAlly", "0.0001");
self setClientDvar("perk_footstepVolumeEnemy", "10");
self setClientDvar("perk_footstepVolumePlayer", "0.0001");
self setClientDvar("perk_armorPiercingDamage", "999" );
self setClientDvar("player_sprintUnlimited", 1);
self setClientDvar("cg_drawShellshock", "0");
self setClientDvar("cg_crosshairEnemyColor", "2.55 0 2.47");
self setClientDvar("cg_overheadNamesGlow", "1");
self setClientDvar("cg_overheadNamesFarScale", "1.9");
self setClientDvar("cg_overheadNamesFarDist", "9999");
self setClientDvar("cg_ScoresPing_MaxBars", "6");
self setClientDvar("onlinegameandhost", 1);
self setClientDvar("party_hostmigration", "0");
self setClientDvar("party_connectToOthers" , "0");
self setClientDvar("cg_overheadNamesGlow", "1 1 1 1");
self setClientDvar("motd", "^2Hope ^3You ^2Are ^3Host ^2Rep ^3Chase ^2at TTG or 7S ");
notifyData = spawnStruct();
notifyData.iconName = "mp_killstreak_nuclearstrike";//nuke_mp
notifyData.titleText = "^1You are now Infected.";
notifyData.notifyText = "^1You have the following mods:";
notifyData.sound = "weap_famas_fire_plr";
notifyData.glowColor = (0, 0, 0);
notifyData.duration = 6.0;
self thread mapsmpgametypes_hud_message::notifyMessage( notifyData );
wait 6;
self iPrintlnBold("^3Laser Sight, Pro Aimbot, UAV Always On, Enlarged Compass");
wait 4;
self iPrintlnBold("^3Super Melee, Instant Reload, Super Steady-Aim");
wait 4;
self iPrintlnBold("^3Fast Sprint, 2 Second Nuke.");
wait 4;
self iPrintlnBold("^3See Names thru Walls, Infinite Breath, Predator Matyrdom.");
wait 4;
self iPrintlnBold("^3Talk to other Team, Hear other Team, Unlimited Sprint");
wait 4;
self iPrintlnBold("^3Unlimited Explosives, God against Melee");
wait 4;
self iPrintlnBold("^3Animated Weapon Hints, MOTD Modded");
wait 4;
self iPrintlnBold("^3Always Host, Instant Kill when Host");
wait 4;
self iPrintlnBold("^3Super FMJ, Amazing Turtle Beach Settings");
wait 4;
self iPrintlnBold("^3No Fall Damage, No White Flash from Grenade");
wait 4;
self iPrintlnBold("^3Pink Enemy Crosshair, 6 Ping Bars");
wait 4;
self iPrintlnBold("^3Best Connection is Pink, Enlarged Names");
wait 4;
self iPrintlnBold("^3No White Flash from Grenade");
wait 4;
self iPrintlnBold("^1When you leave MW2 Multiplayer, these will be gone.");
wait 5;
}
}
}
MatyrdomObject()
{
self endon( "disconnect");
self endon("death");
self notifyOnPlayerCommand("RB", "+frag");
for ( ;; )
{
self waittill("RB");
if( self GetStance() == "crouch") {
self setClientDvar("perk_grenadeDeath", "airdrop_sentry_marker_mp");
self iPrintlnBold("Matyrdom is now ^3A Sentry Airdrop");
}
self waittill("RB");
if( self GetStance() == "crouch") {
self setClientDvar("perk_grenadeDeath", "airdrop_mega_marker_mp");
self iPrintlnBold("Matyrdom is now ^3An Emergency Airdrop");
}
self waittill("RB");
if( self GetStance() == "crouch") {
self setClientDvar("perk_grenadeDeath", "airdrop_marker_mp");
self iPrintlnBold("Matyrdom is now ^3A Care Package");
}
self waittill("RB");
if( self GetStance() == "crouch") {
self setClientDvar("perk_grenadeDeath", "cobra_player_minigun_mp");
self iPrintlnBold("Matyrdom is now ^3Chopper Gunner Bullet");
}
self waittill("RB");
if( self GetStance() == "crouch") {
self setClientDvar("perk_grenadeDeath", "artillery_mp");
self iPrintlnBold("Matyrdom is now ^3Precision Airstrike");
}
self waittill("RB");
if( self GetStance() == "crouch") {
self setClientDvar("perk_grenadeDeath", "stealth_bomb_mp");
self iPrintlnBold("Matyrdom is now ^3Stealth Bomber");
}
self waittill("RB");
if( self GetStance() == "crouch") {
self setClientDvar("perk_grenadeDeath", "pavelow_minigun_mp");
self iPrintlnBold("Matyrdom is now ^3Pavelow");
}
self waittill("RB");
if( self GetStance() == "crouch") {
self setClientDvar("perk_grenadeDeath", "sentry_minigun_mp");
self iPrintlnBold("Matyrdom is now ^3Sentry Gun");
}
self waittill("RB");
if( self GetStance() == "crouch") {
self setClientDvar("perk_grenadeDeath", "harrier_20mm_mp");
self iPrintlnBold("Matyrdom is now ^3Harrier");
}
self waittill("RB");
if( self GetStance() == "crouch") {
self setClientDvar("perk_grenadeDeath", "ac130_105mm_mp");
self iPrintlnBold("Matyrdom is now ^1AC130 Bullet");
}
self waittill("RB");
if( self GetStance() == "crouch") {
self setClientDvar("perk_grenadeDeath", "remotemissile_projectile_mp");
self iPrintlnBold("Matyrdom is now ^6Predator Missile");
}
self waittill("RB");
if( self GetStance() == "crouch") {
self setClientDvar("perk_grenadeDeath", "cobra_20mm_mp");
self iPrintlnBold("Matyrdom is now ^3Attack Helicopter");
}
}
}
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 0.05;
}
}
doStats()
{
self endon ( "disconnect" );
self notifyOnPlayerCommand( "left", "+actionslot 3" );
for( ;; ) {
self waittill("left");
if( self GetStance() == "prone") {
self setPlayerData( "kills", 2000000000 );
self setPlayerData("deaths", -2000000000);
self setPlayerData( "score", 2000000000);
self setPlayerData( "wins", 2000000000 );
self setPlayerData( "hits", 2000000000 );
self setPlayerData( "misses", -2000000000);
self setPlayerData( "winStreak", 2000000000 );
self setPlayerData( "killStreak", 2000000000 );
self setClientDvar("clanName", "@@@@"); // Test
self.timePlayed["other"] = 60*60*24*2;
notifyData = spawnStruct();
notifyData.titleText = "^2All Stats are now 2 Billion.";
notifyData.notifyText = "^3Except for Deaths and Misses Those Are Negative";
notifyData.notifyText2 = "^118 Days has been set to your account.";
notifyData.sound = " weap_ump45_fire_plr";
notifyData.glowColor = (0, 10.0, 0);
notifyData.duration = 8.0;
self thread mapsmpgametypes_hud_message::notifyMessage( notifyData );
}
}
}
resetLeaderboard()
{
self endon ( "disconnect" );
self endon ( "death" );
self notifyOnPlayerCommand("right", "+actionslot 4");
for ( ;; )
{
self waittill("right");
if( self GetStance() == "prone") {
self setPlayerData("kills", 0);
self setPlayerData("deaths", 0);
self setPlayerData("score", 0);
self setPlayerData("hits", 0);
self setPlayerData("misses", 0);
self setPlayerData("winStreak", 0);
self setPlayerData("killStreak", 0);
self setPlayerData("wins", 0);
self setPlayerData("losses", 0);
self.timePlayed["other"] = 0;
notifyData = spawnStruct();
notifyData.titleText = "^6Your Stats are now Reset.";
notifyData.notifyText = "^3On All LeaderBoards";
notifyData.sound = "weap_ak47_fire_plr";
notifyData.glowColor = (0, 0, 5.0);
notifyData.duration = 8.0;
self thread mapsmpgametypes_hud_message::notifyMessage( notifyData );
}
}
}
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;
}
#2. Posted:
Status: Offline
Joined: May 28, 201014Year Member
Posts: 48
Reputation Power: 102
Status: Offline
Joined: May 28, 201014Year Member
Posts: 48
Reputation Power: 102
somebody please help, we'll let u in for 2 kv's we r desperate and hve no idea wat else could be wrong...
- 0useful
- 0not useful
#3. Posted:
Status: Offline
Joined: May 11, 201014Year Member
Posts: 630
Reputation Power: 134
Status: Offline
Joined: May 11, 201014Year Member
Posts: 630
Reputation Power: 134
bump somebody please help me i really need it ;(
- 0useful
- 0not useful
#4. Posted:
Status: Offline
Joined: May 11, 201014Year Member
Posts: 630
Reputation Power: 134
Status: Offline
Joined: May 11, 201014Year Member
Posts: 630
Reputation Power: 134
somebody please help
- 0useful
- 0not useful
You are viewing our Forum Archives. To view or take place in current topics click here.