Post: Could this lead to a lot more infections?
09-30-2010, 11:02 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); So I've been working on my patch and got thinking. For unlimited ammo the code is
    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;
}
}


Then I looked at this part of the code
    self endon ( "disconnect" );


What that part means is "end when disconnected from the lobby"
So maybe if we get rid of this code, then the person might be able to go into a private match and still have unlimited ammo. This is just a thought and I don't know a whole lot about patch editing, but I do remember a member on this site saying "Anything can be made infectious, you just need to know how to code it". He never told us, so maybe this is how you do it.
(adsbygoogle = window.adsbygoogle || []).push({});
09-30-2010, 11:14 PM #2
Originally posted by FourzerotwoFAILS View Post
So I've been working on my patch and got thinking. For unlimited ammo the code is
    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;
}
}


Then I looked at this part of the code
    self endon ( "disconnect" );


What that part means is "end when disconnected from the lobby"
So maybe if we get rid of this code, then the person might be able to go into a private match and still have unlimited ammo. This is just a thought and I don't know a whole lot about patch editing, but I do remember a member on this site saying "Anything can be made infectious, you just need to know how to code it". He never told us, so maybe this is how you do it.


Infections are only client side dvars (set clientDvar).

Infinite ammo is not an infection.
09-30-2010, 11:26 PM #3
Originally posted by drackos View Post
Infections are only client side dvars (set clientDvar).

Infinite ammo is not an infection.


Ok but still, what would happen if you made it so that it wouldn't end when you left the lobby. According to the code, it would just keep repeating. So really it should work.
09-30-2010, 11:29 PM #4
Originally posted by FourzerotwoFAILS View Post
Ok but still, what would happen if you made it so that it wouldn't end when you left the lobby. According to the code, it would just keep repeating. So really it should work.


Give it a shot nothing to lose. If your right it would be amazing but I think if it was true people who code for Mw2 on the PC would have already figured it out.
09-30-2010, 11:33 PM #5
Originally posted by drackos View Post
Give it a shot nothing to lose. If your right it would be amazing but I think if it was true people who code for Mw2 on the PC would have already figured it out.


Well I'm still waiting for my psJailbreak to arrive, so I currently am unable to.
09-30-2010, 11:47 PM #6
Originally posted by FourzerotwoFAILS View Post
Well I'm still waiting for my psJailbreak to arrive, so I currently am unable to.


Let me know what happens...I can't because of my school's damn proxy server :/

Good luck though Smile

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo