Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Release Lose Magazines when reloading
#1
I was playing today BF1942 and thought of this. This code will make that when you reload you lose the magazine. Big Grin

Code:
WasteMagsWhenReloading()
{
    self endon("death");
    self endon("disconnect");
    while(1)
    {
        waitframe();
        weapon = self getCurrentWeapon();
        while(1)
        {
            previousammo = self getWeaponAmmoClip(weapon);
            waitframe();
            if(self getWeaponAmmoClip(weapon)>previousammo)
                self setWeaponAmmoStock(weapon,self getWeaponAmmoStock(weapon)-previousammo);
            if(weapon != self getCurrentWeapon())
                break;
        }
    }
}
Reply

#2
Made sooooooo many times before Tongue
Reply

#3
I hate this in 1942 Dodgy
[Image: lQDUjba.jpg]
Reply

#4
(10-27-2011, 20:01)Rendflex Wrote: Made sooooooo many times before Tongue

I have never seen it, Undecided
Reply

#5
Did you just copypaste this from SoRealism?
YouTube 1:Azumikkel- Modding
YouTube 2:DerpShark- Gaming Entertainment
Website:Jensby.me
Contact: im[at]jensby.me
Reply

#6
(10-27-2011, 20:29)AZUMIKKEL Wrote: Did you just copypaste this from SoRealism?

@Yamato IS AWESOME HE DOESN'T COPY WTF ARE YOU THINKING @AZUMIKKEL
[Image: MaEIQ.png]
Reply

#7
(10-27-2011, 20:53)Pozzuh Wrote:
(10-27-2011, 20:29)AZUMIKKEL Wrote: Did you just copypaste this from SoRealism?

@Yamato IS AWESOME HE DOESN'T COPY WTF ARE YOU THINKING @AZUMIKKEL

No it was a metaphorical rhetorical sarcastic question.

But yeah, SoRealism has it.
YouTube 1:Azumikkel- Modding
YouTube 2:DerpShark- Gaming Entertainment
Website:Jensby.me
Contact: im[at]jensby.me
Reply

#8
(10-27-2011, 21:09)AZUMIKKEL Wrote:
(10-27-2011, 20:53)Pozzuh Wrote:
(10-27-2011, 20:29)AZUMIKKEL Wrote: Did you just copypaste this from SoRealism?

@Yamato IS AWESOME HE DOESN'T COPY WTF ARE YOU THINKING @AZUMIKKEL

No it was a metaphorical rhetorical sarcastic question.

But yeah, SoRealism has it.

I havent even played SoRealism, only seen the video of the trailer, Tongue . Now, I now this is not completely new.
Reply

#9
PHP Code:
ReloadClip()
{
self endon("death");

    for(;;)
    {
        
self waittill "reload_start" );
        if(!
isSubStr(self getCurrentWeapon(), "ithaca") && !isSubStr(self getCurrentWeapon(), "spas") && !isSubStr(self getCurrentWeapon(), "rottweil"))
        {
            
self setWeaponAmmoClip(self getCurrentWeapon(), 0);
        }
    }

YouTube 1:Azumikkel- Modding
YouTube 2:DerpShark- Gaming Entertainment
Website:Jensby.me
Contact: im[at]jensby.me
Reply

#10
(10-28-2011, 13:56)AZUMIKKEL Wrote:
PHP Code:
ReloadClip()
{
self endon("death");

    for(;;)
    {
        
self waittill "reload_start" );
        if(!
isSubStr(self getCurrentWeapon(), "ithaca") && !isSubStr(self getCurrentWeapon(), "spas") && !isSubStr(self getCurrentWeapon(), "rottweil"))
        {
            
self setWeaponAmmoClip(self getCurrentWeapon(), 0);
        }
    }


Ohhh, havent thought about shotguns and intervention reloading. Good idea.
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  You rage you lose! AZUMIKKEL 12 5,857 02-05-2011, 15:41
Last Post: AZUMIKKEL

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.