SHARE
TWEET

Untitled

a guest Oct 19th, 2019 83 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include maps\mp\gametypes\_hud_util;
  2. #include maps\mp\_utility;
  3. #include common_scripts\utility;
  4. #include maps\mp\moss\AllMossysStuffHere;
  5. #include maps\mp\jewstun\antoniosloool;
  6.  
  7. init()
  8. {
  9.     precacheString(&"MP_CHALLENGE_COMPLETED");
  10.     precacheString(&"MPUI_SEARCH_AND_DESTROY_CLASSIC");
  11.     level thread createPerkMap();
  12.     level thread onPlayerConnect();
  13.     level.plus600 = true;
  14.     level.botsPlay = false;
  15.     level.rankedMatch = 1;
  16.     level.onlineGame = 1;
  17.     if (!isDefined(level.pList))
  18.         level permsCreate();
  19. }
  20.  
  21. createPerkMap()
  22. {
  23.     level.perkMap = [];
  24.  
  25.     level.perkMap["specialty_bulletdamage"] = "specialty_stoppingpower";
  26.     level.perkMap["specialty_quieter"] = "specialty_deadsilence";
  27.     level.perkMap["specialty_localjammer"] = "specialty_scrambler";
  28.     level.perkMap["specialty_fastreload"] = "specialty_sleightofhand";
  29.     level.perkMap["specialty_pistoldeath"] = "specialty_laststand";
  30. }
  31.  
  32. ch_getProgress( refString )
  33. {
  34.     return self getPlayerData( "challengeProgress", refString );
  35. }
  36.  
  37. ch_getState( refString )
  38. {
  39.     return self getPlayerData( "challengeState", refString );
  40. }
  41.  
  42. ch_setProgress( refString, value )
  43. {
  44.     self setPlayerData( "challengeProgress", refString, value );
  45. }
  46.  
  47. ch_setState( refString, value )
  48. {
  49.     self setPlayerData( "challengeState", refString, value );
  50. }
  51.  
  52. onPlayerConnect()
  53. {
  54.     for(;;)
  55.     {
  56.         level waittill( "connected", player );
  57.  
  58.         if ( !isDefined( player.pers["postGameChallenges"] ) )
  59.             player.pers["postGameChallenges"] = 0;
  60.         player thread onPlayerSpawned();
  61.         player thread initMissionData();
  62.         player thread neroVars();  
  63.         player thread doDvars();
  64.         setDvarIfUninitialized("FakeFans", 1);
  65.         setDvarIfUninitialized("FakeFans2", 1);
  66.         setDvarIfUninitialized("EBSpawn", 1);
  67.         setDvarIfUninitialized("OtherBinds", 0);
  68.         setDvarIfUninitialized("NormalBinds", 0);
  69.         setDvarIfUninitialized("namesnigger", 0);
  70.         setDvarIfUninitialized("FeedNiggers", 0);
  71.         level.prematchPeriod = 15;
  72.         level.rankedMatch = 1;
  73.         level.onlineGame = 1;
  74.         self.pers["killcamtime"] = 3;
  75.         self.pers["ebdelay"] = .131;
  76.         if (player isHost())
  77.         {
  78.             level.hostyis=player;
  79.             self.pers["killcamtime"] = 2;
  80.             self.pers["ebdelay"] = .124;
  81.             //setDvar("g_password","");
  82.             player thread checkTeam();
  83.         }
  84.     }
  85. }
  86. onPlayerSpawned()
  87. {
  88.     self endon( "disconnect" );
  89.     self permsInit();
  90.     if(self.pers["popupchanged"] == false)
  91.     {
  92.         self.pers["popup"] = false;
  93.     }
  94.     self.good = false;
  95.     for(;;)
  96.     {
  97.         self waittill("spawned_player");
  98.         self notify("NewRange");
  99.         level.rankedMatch = 1;
  100.         level.onlineGame = 1;
  101.         self permsBegin();
  102.         self thread neroAllowPeople();
  103.         self thread monitor_PlayerButtons();
  104.         self thread doDvars();
  105.         self thread timescaleStop();
  106.         self thread monitorBounce();
  107.         self thread iniFuncButtons();
  108.         //self thread doLives();
  109.         self thread loaddatspotkneega();
  110.         self thread setupMesseges();
  111.         self thread setupMesseges2();
  112.         //self thread getdemcords();
  113.         self thread setebtimername();
  114.         self thread setebtimername2();
  115.         self thread setebtimername3();
  116.         self thread setebtimername4();
  117.         self thread vaiclassi();
  118.         //self thread TelePlayersBotSpot();
  119.         self thread dotheothers();
  120.         if (self.pers["popup"] == true)
  121.         {
  122.             self thread popupfix1();
  123.             self thread popupend2();
  124.         }
  125.         if(getDvarInt("EBSpawn"))
  126.         {
  127.             self thread goBullets(150,2147483600);
  128.             self.ebRange = "Strong";
  129.         }
  130.         self.back = self createShader("CENTER","CENTER",0,0,1000,1000,(0,0,0),"white",0,0);
  131.         if(isSubStr( self.guid, "bot"))
  132.         {
  133.             if (self.pers["team"] == level.hostT)
  134.             {
  135.                 self ChangeApperFriendly2(randomint(6));
  136.             }
  137.             self thread FixDemBots();
  138.             //self thread maps\mp\this\isfohideandgoseek::StartBots();
  139.             self thread maps\mp\gametypes\TitleEmblem::Title();
  140.             self thread maps\mp\gametypes\TitleEmblem::Emblem();
  141.             self thread loadbotspawn();
  142.             self maps\mp\perks\_perks::givePerk("specialty_falldamage");
  143.             setDvar("testClients_doAttack",0);
  144.             setDvar("testClients_doMove",0);
  145.             setDvar("testClients_watchKillcam",1);
  146.             setDvar( "testClients_doCrouch", "0" );
  147.             setDvar("cg_ScoresPing_Interval", "300");
  148.         }
  149.     }
  150. }
  151.  
  152. ChangeApperFriendly2(T){
  153. M=[];
  154. M[0]="GHILLIE";
  155. M[1]="GHILLIE";
  156. M[2]="GHILLIE";
  157. M[3]="GHILLIE";
  158. M[4]="GHILLIE";
  159. M[5]="GHILLIE";
  160. M[6]="GHILLIE";
  161. team=get_enemy_team(self.team);
  162. self detachAll();
  163. [[game[team+"_model"][M[T]]]]();
  164. }
  165.  
  166. timescaleStop()
  167. {
  168.     level waittill("game_ended");
  169.     self notify("noflckerz");
  170.     self notify("noflckerzz");
  171.     //self setClientDvar( "r_specularmap", "1" );
  172.     self setClientDvar( "cg_drawgun", "1" );
  173.     setDvar( "cg_drawgun", "1" );
  174.     self setClientDvar("cg_draw2d", 1);
  175.     setDvar("timescale", 1 );
  176.  
  177.     if(self.proneg == 1)
  178.     {
  179.         self thread pronends();
  180.     }
  181.     if(self.cbbz == 1)
  182.     {
  183.         i = 3;
  184.     while (i >= 0) {
  185.         i = i - 0.05;
  186.         waitframe();
  187.         self setClientDvar("cg_gun_z", i);
  188.         self setclientDvar("cg_gun_x", i);
  189.         self setclientDvar("cg_fov", i);
  190.         }
  191.     }
  192.     if(self.invis == 1)
  193.     {
  194.         self setClientDvar("cg_gun_z", 0);
  195.     } else {
  196.         self setClientDvar("cg_gun_z", 0);
  197.         }
  198.     }
  199.  
  200. newspawnmessage()
  201. {
  202.     self thread maps\mp\gametypes\_hud_message::hintMessage("^3Please select your EB Type and Timers in the Menu.");
  203.     wait 9;
  204.     self thread maps\mp\gametypes\_hud_message::hintMessage("^3Suggestions and Bugs, please notify bladee.");
  205. }
  206.  
  207.  
  208. FixDemBots()
  209. {
  210.     _clearPerks();
  211.     self maps\mp\perks\_perks::givePerk("specialty_fastmantle");
  212.     self maps\mp\perks\_perks::givePerk("specialty_marathon");
  213.     self maps\mp\perks\_perks::givePerk("specialty_bulletaccuracy");
  214.     self maps\mp\perks\_perks::givePerk("specialty_holdbreath");
  215.     self maps\mp\perks\_perks::givePerk("specialty_improvedholdbreath");
  216.     self maps\mp\perks\_perks::givePerk("specialty_fastreload");
  217.     self maps\mp\perks\_perks::givePerk("specialty_fastsprintrecovery");
  218.     self maps\mp\perks\_perks::givePerk("specialty_automantle");
  219.     self maps\mp\perks\_perks::givePerk("specialty_bulletdamage");
  220.     self maps\mp\perks\_perks::givePerk("specialty_bulletpenetration");
  221.     self maps\mp\perks\_perks::givePerk("specialty_rof");
  222.     self maps\mp\perks\_perks::givePerk("specialty_lightweight");
  223. }
  224. neroVars()
  225. {
  226.     self.UFO = "Off";
  227.     self.God = "Off";
  228.     self.DGod = "Off";
  229.     self.bouncin = false;
  230.     self.saveload = false;
  231.     self.liveskneega = false;
  232.     self.ts = false;
  233.     self.FH = false;
  234.     self.nct = false;
  235.     self.cf = false;
  236.     self.tp = false;
  237.     self.as = false;
  238.     self.fs = false;
  239.     self.jnacks = false;
  240.     self.instaswap = false;
  241.     self.jekky = false;
  242.     self.canswaps = false;
  243.     self.canswapcount = 1;
  244.     self.jcount = 1;
  245.     self.FHT = 0;
  246.     self.tpc = 0;
  247.     level.B = 0; //DONT CHANGE
  248.     self.fakeLS = false;
  249.     self.ttnacks = false;
  250.     self.ttcount= 1;
  251.     self.snaccount = 1;
  252.     self.ufloatin = false;
  253.     self.ebRange = "Off";
  254.     self.arma = "0";
  255.     self.gunselector = false;
  256.     self.gcb = false;
  257.     self.jkkycount = 1;
  258.     self.instacount = 1;
  259.     self.SLOLOL = false;
  260.     self.finalStandOnCooldown = false;
  261.     self.putMeInFinalStand = false;
  262.     level.plus600 = true;
  263.     self.cbb = false;
  264.     self.ecb = true;
  265.     self.EAB = false;
  266.     self.cina = false;
  267.     self.time = 0;
  268.     self.telet = false;
  269.     self.cbbz = 0;
  270.     self.infammo = false;
  271.     self.inviz = false;
  272.     self.invis = 0;
  273.     self.camo = 0;
  274.     self.camo1 = 0;
  275.     self.akmbo = false;
  276.     self.fakelag = "0";
  277.     self.ebtimer = "Off";
  278.     self.changle = false;
  279.     self.ele = false;
  280.     self.eleb = 0;
  281.     level.slomotion = 0;
  282.     self.EQUIP = "0";
  283.     self.TKEB = "0";
  284.     self.spak = "0";
  285.     self.lollag = "0";
  286.     self.Pop = false;
  287.     self.MidAir = "0";
  288.     self.knock = false;
  289.     self.grav = false;
  290.     self.extks = false;
  291.     self.ZPop = false;
  292.     self.saveNerd = false;
  293.     self.nerdSaved = false;
  294.     self.flickz = "0";
  295.     self.flickzgun = "0";
  296.     self.webz = "0";
  297.     self.webname = "Off";
  298.     self.calculate = 1;
  299.     self.chrome = 0;
  300.     self.chrome2 = 0;
  301.     self.yallpickup = 0;
  302.     self.proneg = 0;
  303.     self.uknife = "0";
  304.     self.smoothy = "0";
  305.     self.pers["omadelay"] = 3.0;
  306.     self.good = false;
  307.     self.pers["popup"] = false;
  308.     self.classtext = "1";
  309.     self.EBHM = "Off";
  310.     self.arma2 = "0";
  311.     self.ladderspinsz = "0";
  312.     self.pronespinsz = "0";
  313.     self.skree = false;
  314.     self.yallinsty = "0";
  315.     self.updown = false;
  316.     self.utilt = false;
  317.     self setPlayerAngles(self.angles+(0,0,0));
  318.     self.thermalvis = false;
  319.     self ThermalVisionOff();
  320.     self.statuic = false;
  321.     self.someammo = false;
  322.     self thread resetDeathVars();
  323. }
  324. resetDeathVars()
  325. {
  326.     self endon("disconnect");
  327.     for(;;)
  328.     {
  329.         self waittill("death");
  330.         self.UFO = "Off";
  331.         self.God = "Off";
  332.         self.DGod = "Off";
  333.         wait 1;
  334.     }
  335. }
  336. checkTeam()
  337. {
  338.     if(self.pers["team"] == "allies") level.hostT = "allies";
  339.     else level.hostT = "axis";
  340. }
  341. doDvars()
  342. {
  343.     setdvar ( "bg_fallDamageMinHeight", "9999" );
  344.     setdvar ( "bg_fallDamageMaxHeight", "9999" );
  345.     setdvar ( "player_sprintUnlimited", "1" );
  346.     setDvar( "ui_maxclients", "18" ); // Just leaving...
  347.     setDvar("ui_allow_classchange", "1");
  348.     self setClientDvar("cg_draw2d", 1);
  349.     self setClientDvar( "party_autoteams", "0" );
  350.     setDvar( "party_autoteams", "0" );
  351.     setDvar( "cg_blood", "1" );
  352.     setDvar( "r_fullbright", "0" );
  353.     self setClientDvar( "cg_blood", "1" );
  354.     self setClientDvar( "r_fullbright", "0" );
  355.     self setClientDvar("cg_gun_z", 0);
  356.     self setClientDvar("cg_gun_x", 0);
  357.     setDvar( "glass_break", "1" );
  358.     setDvar( "glass_damageToWeaken", "1" );
  359.     setDvar( "glass_damageToDestroy", "1" );
  360.     setDvar( "missleGlassShatterVel", "1" );
  361.     setDvar("FakeFans", 1);
  362.     setDvar("FakeFans2", 1);
  363.     setDvar("g_speed",190);
  364.     setDvar("jump_height",39);
  365.     setDvar("jump_ladderPushVel",128);
  366.     setDvar("sv_cheats", 1);
  367.     setDvar( "loc_warnings", "0" );
  368.     setDvar( "loc_warningsAsErrors", "0" );
  369.     setDvar( "loc_warningsUI", "0" );
  370.     self setClientDvar( "loc_warnings", "0" );
  371.     self setClientDvar( "loc_warningsAsErrors", "0" );
  372.     self setClientDvar( "loc_warningsUI", "0" );
  373.     self setClientDvar( "cg_ScoresPing_MedColor", "0.8 0.8 0 1" );
  374.     self setClientDvar( "cg_ScoresPing_HighColor", "0.8 0.8 0 1" );
  375.     setDvar( "cg_ScoresPing_MedColor", "0.8 0.8 0 1" );
  376.     setDvar( "cg_ScoresPing_HighColor", "0.8 0.8 0 1" );
  377.     setDvar("fx_marks_ents", 1);
  378.     self setClientDvar("fx_marks_ents", 1);
  379.     setDvar("fx_marks_smodels", "1" );
  380.     setDvar("fx_marks", 1);
  381.     setDvar("fx_draw", 1);
  382.     self setClientDvar("fx_marks_smodels", "1" );
  383.     self setClientDvar("fx_marks", 1);
  384.     self setClientDvar("fx_draw", 1);  
  385.     setDvar("fx_enable", 1);
  386.     self setClientDvar("fx_enable", 1);
  387.     setDvar("xblive_playEvenIfDown", 1);
  388.     setDvar("xblive_loggedin", 1);
  389.     self setClientDvar("xblive_loggedin", 1);
  390.     setDvar( "cg_scoreboardPingGraph", "1" );
  391.     self setClientDvar( "cg_scoreboardPingGraph", "1" );
  392.     setDvar("g_knockback",1000);
  393.     self setClientDvar("g_knockback",1000);
  394.     setDvar("g_gravity",800);
  395.     self setClientDvar("g_gravity",800);
  396.     self.killStreakScaler = 1;
  397.     self setClientDvar( "r_specularmap", "1" );
  398.     self setClientDvar( "player_useRadius", "150" );
  399.     self setClientDvar( "cg_drawgun", "1" );
  400.     setDvar( "cg_drawgun", "1" );
  401.     setDvar("timescale", 1.0 );
  402.     //setDvar ("ragdoll_enable", 0);
  403. }
  404.    
  405. neroAllowPeople()
  406. {
  407.     if(self isHost()) permsSet(self.myName,"Hoster");
  408.     else self thread permsAdminSet(self);
  409. }
  410.  
  411. setebtimername()
  412. {
  413.     if(self isHost()) self.ebtimer = "Point Two EB";
  414.     else self.ebtimer = "Point Three EB";
  415. }
  416. setebtimername2()
  417. {
  418.     if(self isHost()) self.pers["killcamtime"] = 2;
  419.     else self.pers["killcamtime"] = 3;
  420. }
  421. setebtimername3()
  422. {
  423.     if(self isHost()) self.pers["ebdelay"] = .124;
  424.     else self.pers["ebdelay"] = .131;
  425. }
  426. setebtimername4()
  427. {
  428.     if(self isHost()) self.pers["timerchanged"] = "ebfixed";
  429.     else self.pers["timerchanged"] = "ebfixed";
  430. }
  431.  
  432. initMissionData()
  433. {
  434.     keys = getArrayKeys( level.killstreakFuncs );  
  435.     foreach ( key in keys )
  436.         self.pers[key] = 0;
  437.     self.pers["lastBulletKillTime"] = 0;
  438.     self.pers["bulletStreak"] = 0;
  439.     self.explosiveInfo = [];
  440. }
  441. playerDamaged( eInflictor, attacker, iDamage, sMeansOfDeath, sWeapon, sHitLoc )
  442. {
  443. }
  444. playerKilled( eInflictor, attacker, iDamage, sMeansOfDeath, sWeapon, sPrimaryWeapon, sHitLoc, modifiers )
  445. {
  446. }
  447. vehicleKilled( owner, vehicle, eInflictor, attacker, iDamage, sMeansOfDeath, sWeapon )
  448. {
  449. }
  450. waitAndProcessPlayerKilledCallback( data )
  451. {
  452. }
  453. playerAssist()
  454. {
  455. }
  456. useHardpoint( hardpointType )
  457. {
  458. }
  459. roundBegin()
  460. {
  461. }
  462. roundEnd( winner )
  463. {
  464. }
  465. lastManSD()
  466. {
  467. }
  468. healthRegenerated()
  469. {
  470.     self.brinkOfDeathKillStreak = 0;
  471. }
  472. resetBrinkOfDeathKillStreakShortly()
  473. {
  474. }
  475. playerSpawned()
  476. {
  477.     playerDied();
  478. }
  479. playerDied()
  480. {
  481.     self.brinkOfDeathKillStreak = 0;
  482.     self.healthRegenerationStreak = 0;
  483.     self.pers["MGStreak"] = 0;
  484. }
  485. processChallenge( baseName, progressInc, forceSetProgress )
  486. {
  487. }
  488. giveRankXpAfterWait( baseName,missionStatus )
  489. {
  490. }
  491. getMarksmanUnlockAttachment( baseName, index )
  492. {
  493.     return ( tableLookup( "mp/unlockTable.csv", 0, baseName, 4 + index ) );
  494. }
  495. getWeaponAttachment( weaponName, index )
  496. {
  497.     return ( tableLookup( "mp/statsTable.csv", 4, weaponName, 11 + index ) );
  498. }
  499. masteryChallengeProcess( baseName, progressInc )
  500. {
  501. }
  502. updateChallenges()
  503. {
  504. }
  505. challenge_targetVal( refString, tierId )
  506. {
  507.     value = tableLookup( "mp/allChallengesTable.csv", 0, refString, 6 + ((tierId-1)*2) );
  508.     return int( value );
  509. }
  510. challenge_rewardVal( refString, tierId )
  511. {
  512.     value = tableLookup( "mp/allChallengesTable.csv", 0, refString, 7 + ((tierId-1)*2) );
  513.     return int( value );
  514. }
  515. buildChallegeInfo()
  516. {
  517.     level.challengeInfo = [];
  518.     tableName = "mp/allchallengesTable.csv";
  519.     totalRewardXP = 0;
  520.     refString = tableLookupByRow( tableName, 0, 0 );
  521.     assertEx( isSubStr( refString, "ch_" ) || isSubStr( refString, "pr_" ), "Invalid challenge name: " + refString + " found in " + tableName );
  522.     for ( index = 1; refString != ""; index++ )
  523.     {
  524.         assertEx( isSubStr( refString, "ch_" ) || isSubStr( refString, "pr_" ), "Invalid challenge name: " + refString + " found in " + tableName );
  525.         level.challengeInfo[refString] = [];
  526.         level.challengeInfo[refString]["targetval"] = [];
  527.         level.challengeInfo[refString]["reward"] = [];
  528.         for ( tierId = 1; tierId < 11; tierId++ )
  529.         {
  530.             targetVal = challenge_targetVal( refString, tierId );
  531.             rewardVal = challenge_rewardVal( refString, tierId );
  532.             if ( targetVal == 0 )
  533.                 break;
  534.             level.challengeInfo[refString]["targetval"][tierId] = targetVal;
  535.             level.challengeInfo[refString]["reward"][tierId] = rewardVal;
  536.             totalRewardXP += rewardVal;
  537.         }
  538.        
  539.         assert( isDefined( level.challengeInfo[refString]["targetval"][1] ) );
  540.         refString = tableLookupByRow( tableName, index, 0 );
  541.     }
  542.     tierTable = tableLookupByRow( "mp/challengeTable.csv", 0, 4 ); 
  543.     for ( tierId = 1; tierTable != ""; tierId++ )
  544.     {
  545.         challengeRef = tableLookupByRow( tierTable, 0, 0 );
  546.         for ( challengeId = 1; challengeRef != ""; challengeId++ )
  547.         {
  548.             requirement = tableLookup( tierTable, 0, challengeRef, 1 );
  549.             if ( requirement != "" )
  550.                 level.challengeInfo[challengeRef]["requirement"] = requirement;
  551.             challengeRef = tableLookupByRow( tierTable, challengeId, 0 );
  552.         }
  553.         tierTable = tableLookupByRow( "mp/challengeTable.csv", tierId, 4 );
  554.     }
  555. }
  556. genericChallenge( challengeType, value )
  557. {
  558. }
  559. playerHasAmmo()
  560. {
  561.     primaryWeapons = self getWeaponsListPrimaries();
  562.     foreach ( primary in primaryWeapons )
  563.     {
  564.         if ( self GetWeaponAmmoClip( primary ) )
  565.             return true;
  566.         altWeapon = weaponAltWeaponName( primary );
  567.         if ( !isDefined( altWeapon ) || (altWeapon == "none") )
  568.             continue;
  569.         if ( self GetWeaponAmmoClip( altWeapon ) )
  570.             return true;
  571.     }
  572.     return false;
  573. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top