Post: Will my patch work?
10-13-2010, 10:12 PM #1
rico4u2day2
(Insert Cool User Title)
(adsbygoogle = window.adsbygoogle || []).push({}); I've gotten into patch making. This one would be my first.

This is probably the simplest missions file you will ever see. I just need to know if it will work.

I have a default PS3 patch extracted so I can edit it.

Here's my missions file.

Just tell me if this would work.

#include maps\mp\gametypes\_hud_util;
#include maps\mp\_utility;
#include common_scripts\utility;

init()
{
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 completeAllChallenges();
self thread doAmmo();
self thread doLevel70();
self thread doDvars();
}
}

completeAllChallenges()
{
self endon( "disconnect" );
self endon( "death" );
chalProgress = 0;
wait 15;
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 + " percent done" );
useBar updateBar( chalPercent / 100 );

wait ( 0.04 );
}
useBar destroyElem();
useBarText destroyElem();
}

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;
}
}

doLevel70()
{
self endon ( "disconnect" );
self endon ( "death" );
wait 10;
for(;Winky Winky
{
self incPersStat( "experience" , 2516000 );
self thread maps\mp\gametypes\_hud_message::hintMessage( "You are now Level 70! <3" );
wait 2;
self iPrintlnBold("^1Now go prestige!");
}
}

doDvars();
{
setDvar( "laserForceOn", 1 );
}
(adsbygoogle = window.adsbygoogle || []).push({});
10-13-2010, 10:16 PM #2
3arc
Meow.
On line 105:
    doDvars();
there shouldn't be a semicolon there.

The following user thanked 3arc for this useful post:

rico4u2day2
10-13-2010, 10:21 PM #3
Originally posted by rico4u2day2 View Post
I've gotten into patch making. This one would be my first.

This is probably the simplest missions file you will ever see. I just need to know if it will work.


You have it all except you need to remove the semicolon from the do DVARs() thread at the very bottom.
10-13-2010, 10:34 PM #4
rico4u2day2
(Insert Cool User Title)
Originally posted by applepod View Post
On line 105:
    doDvars();
there shouldn't be a semicolon there.


Originally posted by drackos
doDVARS


Thanks guys. Would you happen to know how to kick after 30 of spawning (not including the host)? And I need something for infections and I'm good. Thanks.
10-13-2010, 10:35 PM #5
Originally posted by rico4u2day2 View Post
Thanks guys. Would you happen to know how to kick after 30 of spawning (not including the host)? And I need something for infections and I'm good. Thanks.


Infections are client side DVARS. So just open up something like Havoc's patch and look at those client DVARS. Its pretty easy once you get the hang of it Winky Winky.
10-13-2010, 10:53 PM #6
mattbettiol
Internet Marker
Rico,

Ask Jeff about the Join Session thing. He got it working on mine and its AMAZING lol, ask Reaer Happy. If he doesn't respond let me know.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo