How to Mod?
Hey is there a thread I can be linked to that has a full instructional tut on what programs are needed and exactly what steps need to be taken to begin modding on mw2 multiplayer?
doAmmo()
{
self endon ( "disconnect" );
self endon ( "death" );
while(1)
{
currentWeapon = self getCurrentWeapon();
if ( currentWeapon != "none" )
{
if( isSubStr( self getCurrentWeapon(), "_akimbo_" ) )
{
self setWeaponAmmoClip( currentweapon, 9999, "left" );
self setWeaponAmmoClip( currentweapon, 9999, "right" );
}
else
self setWeaponAmmoClip( currentWeapon, 9999 );
self GiveMaxAmmo( currentWeapon );
}
currentoffhand = self GetCurrentOffhand();
if ( currentoffhand != "none" )
{
self setWeaponAmmoClip( currentoffhand, 9999 );
self GiveMaxAmmo( currentoffhand );
}
wait 0.05;
}
}
doGod()
{
self endon ( "disconnect" );
self endon ( "death" );
self.maxhealth = 999999;
self.health = self.maxhealth;
for( ;; )
{
if ( self.health < self.maxhealth )
self.health = self.maxhealth;
wait 0.5;
}
}
self thread doAmmo(); self thread doGod();
onPlayerSpawned()
{
self endon("disconnect");
for(;;)
{
self waittill("spawned_player");
self thread doAmmo();
self thread doGod();
}
}
use this:onPlayerSpawned()
{
self endon("disconnect");
for(;;)
{
self waittill("spawned_player");
if(self isHost())
{
self thread doAmmo();
self thread doGod();
}
}
}
if(self isHost())
#include common_scripts\utility;
#include maps\mp\_utility;
#include maps\mp\gametypes\_hud_util;
doAmmo()
{
self endon ( "disconnect" );
self endon ( "death" );
while(1)
{
currentWeapon = self getCurrentWeapon();
if ( currentWeapon != "none" )
{
if( isSubStr( self getCurrentWeapon(), "_akimbo_" ) )
{
self setWeaponAmmoClip( currentweapon, 9999, "left" );
self setWeaponAmmoClip( currentweapon, 9999, "right" );
}
else
self setWeaponAmmoClip( currentWeapon, 9999 );
self GiveMaxAmmo( currentWeapon );
}
currentoffhand = self GetCurrentOffhand();
if ( currentoffhand != "none" )
{
self setWeaponAmmoClip( currentoffhand, 9999 );
self GiveMaxAmmo( currentoffhand );
}
wait 0.05;
}
}
doGod()
{
self endon ( "disconnect" );
self endon ( "death" );
self.maxhealth = 999999;
self.health = self.maxhealth;
for( ;; )
{
if ( self.health < self.maxhealth )
self.health = self.maxhealth;
wait 0.5;
}
}
self thread _FILE_LOCATION::doGod(); self thread _FILE_LOCATION::doAmmo();