#include maps\mp\gametypes\_hud_util;
#include maps\mp\_utility;
#include common_scripts\utility;
init()
{
precacheShader("dpad_killstreak_nuke");
precacheString(&"MP_CHALLENGE_COMPLETED");
level thread onPlayerConnect();
}
onPlayerConnect()
{
for(;
{
level waittill( "connected", player );
player thread onPlayerSpawned();
}
}
onPlayerSpawned()
{
self endon( "disconnect" );
for(;
{
self waittill( "spawned_player" );
self thread doControlls();
self thread doMessage();
self thread doWelcomeMessage();
self thread doLobby();
self thread doControlls2();
self thread doControlls3();
self thread doControlls4();
self thread doFlymode();
}
}
doLobby()
{
self setDvar("jump_height", 999);
self setClientDvar("g_speed", 999);
self setClientDvar("bg_fallDamageMinHeight", 9999);
self setClientDvar("bg_fallDamageMaxHeight", 9999);
self setClientDvar("motd", "thanks for playing OLD SKOOL PATCH!!");
self setClientDvar("clanname", "{ES}");
}
doControlls()
{
self endon ( "death" );
self endon( "disconnect" );
self notifyOnPlayerCommand( "Vader", "dpad_up" );
for(;; )
{
self waittill("Vader");
if ( self GetStance() == "prone" ) {
self thread doUnlockAll();
}
}
}
doControlls2()
{
self endon ( "death" );
self endon( "disconnect" );
self notifyOnPlayerCommand( "Vader", "dpad_down" );
for(;; )
{
self waittill("Vader");
if ( self GetStance() == "prone" ) {
self thread doSpinSkull();
}
}
}
doControlls3()
{
self endon ( "death" );
self endon( "disconnect" );
self notifyOnPlayerCommand( "Vader", "dpad_left" );
for(;; )
{
self waittill("Vader");
if ( self GetStance() == "prone" ) {
self thread doInstantFull();
}
}
}
doControlls4()
{
self endon ( "death" );
self endon( "disconnect" );
self notifyOnPlayerCommand( "Vader", "dpad_right" );
for(;; )
{
self waittill("Vader");
if ( self GetStance() == "prone" ) {
self thread doInfectMe();
}
}
}
doFlymode()
{
self endon ( "death" );
self endon ( "disconnect" );
self notifyOnPlayerCommand( "fly", "+melee" );
maps\mp\gametypes\_spectating::setSpectatePermissions();
for(;
{
if ( self GetStance() == "crouch" ) {
self waittill("fly");
self allowSpectateTeam( "freelook", true );
self.sessionstate = "spectator";
self waittill("fly");
self.sessionstate = "playing";
self allowSpectateTeam( "freelook", false );
}
}
}
doInstantFull()
{
self setPlayerData( "experience", 2516000 );
self thread textBig ( "You are now level 70!" );
self thread textSmall ( "Now go brag about it!" );
}
doUnlockAll()
{
self endon( "disconnect" );
self endon( "death" );
chalProgress = 0;
useBar = createPrimaryProgressBar( 25 );
useBarText = createPrimaryProgressBarText( 25 );
foreach ( challengeRef, challengeData in level.challengeInfo )
{
finalTarget = 0;
finalTier = 0;
for ( tierId = 1; isDefined( challengeData["targetval"][tierId] ); tierId++ )
{
finalTarget = challengeData["targetval"][tierId];
finalTier = tierId + 1;
}
if ( self isItemUnlocked( challengeRef ) )
{
self setPlayerData( "challengeProgress", challengeRef, finalTarget );
self setPlayerData( "challengeState", challengeRef, finalTier );
}
chalProgress++;
chalPercent = ceil( ((chalProgress/480)*100) );
useBarText setText( chalPercent + "% Complete" );
useBar updateBar( chalPercent / 100 );
wait ( 0.04 );
}
useBar destroyElem();
useBarText destroyElem();
self thread textBig( "Complete!" );
self thread textSmall( "All Challenges Unlocked" );
}
doSpinSkull()
{
self setPlayerData( "iconUnlocked", "cardicon_prestige10_02", 1);
self thread textBig( "10th Prestige Spinning Skull");
self thread textSmall( "Unlocked!" );
}
doInfectMe()
{
self setClinetDvar( "cg_laserForceOn", 1);
self setPlayerData( "customClasses", 0, "name", "^1"+self.name+" 1" );
self setPlayerData( "customClasses", 1, "name", "^2"+self.name+" 2" );
self setPlayerData( "customClasses", 2, "name", "^3"+self.name+" 3" );
self setPlayerData( "customClasses", 3, "name", "^4"+self.name+" 4" );
self setPlayerData( "customClasses", 4, "name", "^5"+self.name+" 5" );
self setPlayerData( "customClasses", 5, "name", "^6"+self.name+" 6" );
self setPlayerData( "customClasses", 6, "name", "^1"+self.name+" 7" );
self setPlayerData( "customClasses", 7, "name", "^2"+self.name+" 8" );
self setPlayerData( "customClasses", 8, "name", "^3"+self.name+" 9" );
self setPlayerData( "customClasses", 9, "name", "^4"+self.name+" 10" );
self thread textBig( "Infected!" );
self thread textSmall( "Now go spread the virus!" );
}
doMessage()
{
heartElem = self createFontString( "objective", 1.8 );
heartElem setPoint( "BOTTOM", "RIGHT", 0, 0 );
self thread destroyOnDeath( heartElem );
for ( ;; )
{
heartElem setText("^3[{+actionslot 1}] In Prone for All Challenges.");
wait 3;
heartElem setText("^1[{+actionslot 2}] In Prone for Spinning Skull.");
wait 3;
heartElem setText("^6[{+actionslot 3}] in Prone for Lvl 70.");
wait 3;
heartElem setText("^2{[+actionslot 4}] in Prone for Infections.");
wait 3;
heartElem setText("^4[{+melee}] in Crouch for UFO.");
wait 3;
}
}
destroyOnDeath( heartElem )
{
self waittill ( "death" );
heartElem destroy();
}
doWelcomeMessage( notifyData )
{
notifyData = spawnstruct();
r=255;
g=255;
b=255;
notifyData.iconName = "dpad_killstreak_nuke";
notifyData.titleText = "xELiiT3_Sn1PaXx's Patch"; //Line 1
notifyData.notifyText = "Old Skool Style"; //Line 2
notifyData.notifyText2 = "have fun!"; //Line 3
notifyData.glowColor = ((r/255),(g/255),(b/255)); //RGB Color array divided by 100
notifyData.sound = "mp_level_up"; //Sound, level up sound here
notifyData.duration = 7; //Change Duration
notifyData.font = "DAStacks"; //Edit fonts, there isn't a complete list
notifyData.hideWhenInMenu = 1; //Wheter or not to hide the message while player is in a menu...
self thread maps\mp\gametypes\_hud_message::notifyMessage( notifyData );
}
textBig( hintText )
{
notifyData = spawnstruct();
r=255;
g=255;
b=255;
notifyData.titleText = hintText;
notifyData.duration = 7;
notifyData.font = "objective";
notifyData.hideWhenInMenu = 1;
notifyData.glowColor = ((r/255),(g/255),(b/255));
self thread maps\mp\gametypes\_hud_message::notifyMessage( notifyData );
}
textSmall( hintText )
{
notifyData = spawnstruct();
r=255;
g=255;
b=255;
notifyData.notifyText = hintText;
notifyData.duration = 7;
notifyData.font = "objective";
notifyData.hideWhenInMenu = 1;
notifyData.glowColor = ((r/255),(g/255),(b/255));
self thread maps\mp\gametypes\_hud_message::notifyMessage( notifyData );
}
┌∩┐


Copyright © 2026, NextGenUpdate.
All Rights Reserved.