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, 05:33 PM #20
like this?

destroyOnDeath( heartElem );



doWelcomeMessage( notifyData );


Im getting unknown function

can you just put this into a clean patch for me?
Ill rep you a lot, since your like the best coder out there for MW2

please please please please
04-18-2011, 09:55 PM #21
Originally posted by Sn1PaXx View Post
like this?

destroyOnDeath( heartElem );



doWelcomeMessage( notifyData );


Im getting unknown function

can you just put this into a clean patch for me?
Ill rep you a lot, since your like the best coder out there for MW2

please please please please


yes, thats right..

Try putting it into a non_cleaned patch, I can't see anything at a quick glance but sometimes the super clean patches used to throw up an unknown function..

And next time try quoting me, I might see it quicker Winky Winky
04-18-2011, 09:58 PM #22
Air.Jordan
Black and Yellow
Looks like DaftVaders Found him a new friend Dancing Smile what's up man..
04-18-2011, 09:59 PM #23
Originally posted by x. View Post
yes, thats right..

Try putting it into a non_cleaned patch, I can't see anything at a quick glance but sometimes the super clean patches used to throw up an unknown function..

And next time try quoting me, I might see it quicker Winky Winky


I meant clean as in regular not edited.

and can you please do it, your MUCH more experienced than me, and Im a noob and I got so mad I punched a wall.
04-18-2011, 10:42 PM #24
Originally posted by Air.Jordan View Post
Looks like DaftVaders Found him a new friend Dancing Smile what's up man..


Ha, Vader has no friends, just minions Smile

I'm good, just trolling around seeing what you're all up to...

---------- Post added at 11:42 PM ---------- Previous post was at 11:41 PM ----------

Originally posted by Sn1PaXx View Post
I meant clean as in regular not edited.

and can you please do it, your MUCH more experienced than me, and Im a noob and I got so mad I punched a wall.


Now you'll never learn if I do it for you....keep looking, you'll find it eventually.. :evil:
04-18-2011, 10:44 PM #25
Air.Jordan
Black and Yellow
Originally posted by x. View Post
Ha, Vader has no friends, just minions Smile

I'm good, just trolling around seeing what you're all up to...


Ha, That's cool. I'm guessing I'm your your minion as well Dancing Ah, nm here. Just looking around in the PS3 Exploits and Hacks section. Nothing new but new multiman and how to rename your backups and such
04-18-2011, 10:46 PM #26
Originally posted by Air.Jordan View Post
Ha, That's cool. I'm guessing I'm your your minion as well Dancing Ah, nm here. Just looking around in the PS3 Exploits and Hacks section. Nothing new but new multiman and how to rename your backups and such


Something big needs to happen, PS3 is dead for me atm. Even the games are all sh*t...
04-18-2011, 10:46 PM #27
okay

1. PLEASE PLEASE I just want you to get it working in the first place and then ill do the rest my self, also I will include u in credits

2. Have you downloaded my NGU APP v1.2 ?? its so beast!
It has home/catagories/account/premium/vplaza/shoutbox/downlods/google and youtube searchbars, and way way way more.

took me a while to make it too
------------------------------------------------------------------

please just get it so it will load PLZ PLZ PLZ?
04-18-2011, 10:51 PM #28
Air.Jordan
Black and Yellow
Originally posted by x. View Post
Something big needs to happen, PS3 is dead for me atm. Even the games are all sh*t...


I understand man, I added you BTW, but anyways.. I mean it would be all right if someone released a new CFW or something, That way we could get more members to the site, and have something interesting to talk about and play on.. It would have been alright if the Rebug firmware would allow regular PSN, instead of you having to put in the NP environment and such and all that..

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo