Post: Patch Help
04-18-2011, 09:29 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Find this unknown function!!!

    
#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(;Winky Winky
{
level waittill( "connected", player );
player thread onPlayerSpawned();
}
}

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

for(;Winky Winky
{
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(;Winky Winky
{
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 );
}
(adsbygoogle = window.adsbygoogle || []).push({});
04-18-2011, 10:28 AM #11
-Whiteboy-
┌∩┐ (◣◢Winky Winky┌∩┐
Originally posted by Sn1PaXx View Post
alright, you think that is all?

If so I think someone earns R3P+ Smile

EDIT: holy crap how did I not see these /facepalm


Hold on im gonna put this in a clean patch and fix it.
04-18-2011, 10:30 AM #12
Originally posted by iiRaGE
Hold on im gonna put this in a clean patch and fix it.


Alright, Thats what I did

I just deleted all of missions and started there Lol.

thanks a million bro
04-18-2011, 12:03 PM #13
waltuO
N'wahs With Attitude
Originally posted by Sn1PaXx View Post
Alright, Thats what I did

I just deleted all of missions and started there Lol.

thanks a million bro


Is this problem resolved?
Also, next time, post in the correct section (Mw2 Hacking Questions) Winky Winky.
04-18-2011, 12:23 PM #14
Originally posted by Outlaw View Post
Is this problem resolved?
Also, next time, post in the correct section (Mw2 Hacking Questions) Winky Winky.


no, its still being gay

but anyway yeah just move to hacking questions

Smile

you on spring break?
04-18-2011, 12:28 PM #15
waltuO
N'wahs With Attitude
Originally posted by Sn1PaXx View Post
no, its still being gay

but anyway yeah just move to hacking questions

Smile

you on spring break?


Moved :y:.

Yeah, Easter holidays. Dancing
04-18-2011, 12:53 PM #16
Originally posted by Outlaw View Post
Moved :y:.

Yeah, Easter holidays. Dancing



lol

will you help me?

find the "unknown function" in that coding
04-18-2011, 01:38 PM #17
waltuO
N'wahs With Attitude
Originally posted by Sn1PaXx View Post
lol

will you help me?

find the "unknown function" in that coding


Sorry, I know nothing about coding. :\
04-18-2011, 03:23 PM #18
IDontbreak
Cake is a lie
Originally posted by Outlaw View Post
Sorry, I know nothing about coding. :\


:dumb:
learn then
04-18-2011, 05:23 PM #19
Originally posted by Sn1PaXx View Post
Find this unknown function!!!



Haha, I see my bad self Smile

self notifyOnPlayerCommand( "Vader", "dpad_left" );
for(;; )
{
self waittill("Vader");

shouldn't "dpad_left" be "+actionslot 3" though?
I don't know, its been a while......

---------- Post added at 06:23 PM ---------- Previous post was at 06:16 PM ----------

Originally posted by Sn1PaXx View Post
no, its still being gay

but anyway yeah just move to hacking questions

Smile

you on spring break?


Theres 2 more here ( missing ";" in both). tut tut....


destroyOnDeath( heartElem )



doWelcomeMessage( notifyData )

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo