Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Banned
    Join Date
    May 2011
    Posts
    917
    Points
    1,182
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Posts
    917
    Points
    1,182

    Default [RELEASE-UNTESTED-SC7E52] Ammo cycler ( Requested )

    Random Ammo Version
    Code:
    ammoCycler()
    {
    	pickNumb = randomInt( 6 );
    	self.weaponValueNames = [];
    	self.weaponValueNames[0] = "m60_mp";
    	self.weaponValueNames[1] = "ak74u_mp";
    	self.weaponValueNames[2] = "psg1_mp";
    	self.weaponValueNames[3] = "hatchet_mp";
    	self.weaponValueNames[4] = "minigun_mp";
    	self.weaponValueNames[5] = "rpg_mp";
    	self thread Bullet( self.weaponValueNames[pickNumb] );
    	for(;;)
    	{
    		if( meleeButtonPressed() == true )
    		{
    			pickNumbChange = randomInt( 6 );
    			self thread Bullet( self.weaponValueNames[pickNumbChange] );
    		}
    	}
    }
    
    Bullet( wepName )
    {
    	self endon("death");
    	wepon = self getCurrentWeapon();
    	while (1)
    	{
    		self waittill( "weapon_fired" );
    		if ( wepon == wepon ) 
    		{
    			MagicBullet( wepName, self getTagOrigin("tag_eye"), self GetCursorPosition(), self );
    		}
    	} 
    }
    
    GetCursorPosition()
    {
    	return BulletTrace( self getTagOrigin("tag_eye"), vector_Scale(anglestoforward(self getPlayerAngles()),1000000), 0, self )[ "position" ];
    }
    
    vector_scale(vec, scale)
    {
    	return (vec[0] * scale, vec[1] * scale, vec[2] * scale);
    }
    Cycle Ammo Version

    Code:
    ammoCycler()
    {
    	self.numberPicked = 0;
    	self.weaponValueNames = [];
    	self.weaponValueNames[0] = "m60_mp";
    	self.weaponValueNames[1] = "ak74u_mp";
    	self.weaponValueNames[2] = "psg1_mp";
    	self.weaponValueNames[3] = "hatchet_mp";
    	self.weaponValueNames[4] = "minigun_mp";
    	self.weaponValueNames[5] = "rpg_mp";
    	self thread Bullet( self.weaponValueNames[self.numberPicked] );
    	self thread monitorMelee();
    }
    
    monitorMelee()
    {
    	for(;;)
    	{
    		if( meleeButtonPressed() == true )
    		{
    			self.numberPicked++;
    			self thread Bullet( self.weaponValueNames[self.numberPicked] );
    		}
    	}
    }
    
    Bullet( wepName )
    {
    	self endon("death");
    	weapon = self getCurrentWeapon();
    	while (1)
    	{
    		self waittill( "weapon_fired" );
    		if ( weapon == weapon ) 
    		{
    			MagicBullet( wepName, self getTagOrigin("tag_eye"), self GetCursorPosition(), self );
    		}
    	} 
    }
    
    GetCursorPosition()
    {
    	return BulletTrace( self getTagOrigin("tag_eye"), vector_Scale(anglestoforward(self getPlayerAngles()),1000000), 0, self )[ "position" ];
    }
    
    vector_scale(vec, scale)
    {
    	return (vec[0] * scale, vec[1] * scale, vec[2] * scale);
    }

    0 Not allowed! Not allowed!
    Last edited by MorderVonJuden; 09-29-2012 at 06:31 PM.

  2. #2
    Spacey FrozenFire's Avatar

    Badge

    Join Date
    Mar 2012
    Location
    NYC
    Posts
    2,559
    Points
    3,459
         User Info     Contact     Gamer ID
    Join Date
    Mar 2012
    Location
    NYC
    Posts
    2,559
    Points
    3,459
    Gamer IDs

    Steam ID: froz3nfir398

    Contact info:

    Youtube Channel: http://www.youtube.com/user/FROZ3NFIR3ZCHANNEL?feature=mhee

    Default

    Oh sweet dude thanks!!

    0 Not allowed! Not allowed!
    Shulk The Visionary





  3. #3
    ✝ Pursuit of Happiness ✝ Sh0x's Avatar

    Badge

    Join Date
    May 2012
    Location
    North Carolina
    Posts
    2,843
    Points
    3,181
         User Info     Contact     Gamer ID
    Join Date
    May 2012
    Location
    North Carolina
    Posts
    2,843
    Points
    3,181
    Gamer IDs

    Gamertag: iiSh0x

    Contact info:

    Youtube Channel: http://www.youtube.com/zSh0x

    Default

    I hope this works, great job man. I am still waiting to be tutored.

    0 Not allowed! Not allowed!





  4. #4
    Spacey FrozenFire's Avatar

    Badge

    Join Date
    Mar 2012
    Location
    NYC
    Posts
    2,559
    Points
    3,459
         User Info     Contact     Gamer ID
    Join Date
    Mar 2012
    Location
    NYC
    Posts
    2,559
    Points
    3,459
    Gamer IDs

    Steam ID: froz3nfir398

    Contact info:

    Youtube Channel: http://www.youtube.com/user/FROZ3NFIR3ZCHANNEL?feature=mhee

    Default

    I'm guessing i'd be able to modify the bullets too right?
    Would this work in zombies too? And make then raygun bullets and thundergunz.

    0 Not allowed! Not allowed!
    Shulk The Visionary





  5. #5
    Nooblet
    Join Date
    Aug 2012
    Posts
    23
    Points
    60
         User Info     Contact     Gamer ID
    Join Date
    Aug 2012
    Posts
    23
    Points
    60

    Default

    Quote Originally Posted by Froz3nFir3! View Post
    I'm guessing i'd be able to modify the bullets too right?
    Would this work in zombies too? And make then raygun bullets and thundergunz.
    your a noooooooob. of course you could change the bullets dumbass

    0 Not allowed! Not allowed!

  6. #6
    Banned
    Join Date
    May 2011
    Posts
    917
    Points
    1,182
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Posts
    917
    Points
    1,182

    Default

    Quote Originally Posted by St4lk3rMods View Post
    your a noooooooob. of course you could change the bullets dumbass
    Shut the fuck up. You don't know shit!

    0 Not allowed! Not allowed!

  7. #7
    Spacey FrozenFire's Avatar

    Badge

    Join Date
    Mar 2012
    Location
    NYC
    Posts
    2,559
    Points
    3,459
         User Info     Contact     Gamer ID
    Join Date
    Mar 2012
    Location
    NYC
    Posts
    2,559
    Points
    3,459
    Gamer IDs

    Steam ID: froz3nfir398

    Contact info:

    Youtube Channel: http://www.youtube.com/user/FROZ3NFIR3ZCHANNEL?feature=mhee

    Default

    Quote Originally Posted by St4lk3rMods View Post
    your a noooooooob. of course you could change the bullets dumbass
    Fag, this is why you're stained. You can't mod just because your name is "ST4LK3RMODZ"
    anyway morder, would this work for zombies?

    0 Not allowed! Not allowed!
    Shulk The Visionary





  8. #8
    Banned
    Join Date
    May 2011
    Posts
    917
    Points
    1,182
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Posts
    917
    Points
    1,182

    Default

    Quote Originally Posted by Froz3nFir3! View Post
    Fag, this is why you're stained. You can't mod just because your name is "ST4LK3RMODZŽ"
    anyway morder, would this work for zombies?
    I don't know bud. Most likely not, unless MagicBullet is a part of zombies. By the way updated thread with new version by request.

    0 Not allowed! Not allowed!

  9. #9
    Spacey FrozenFire's Avatar

    Badge

    Join Date
    Mar 2012
    Location
    NYC
    Posts
    2,559
    Points
    3,459
         User Info     Contact     Gamer ID
    Join Date
    Mar 2012
    Location
    NYC
    Posts
    2,559
    Points
    3,459
    Gamer IDs

    Steam ID: froz3nfir398

    Contact info:

    Youtube Channel: http://www.youtube.com/user/FROZ3NFIR3ZCHANNEL?feature=mhee

    Default

    Quote Originally Posted by MorderVonJuden View Post
    I don't know bud. Most likely not, unless MagicBullet is a part of zombies. By the way updated thread with new version by request.
    Thanks man.

    0 Not allowed! Not allowed!
    Shulk The Visionary





  10. #10
    Active Member
    MustardCheese
    Andres.C's Avatar
    Join Date
    Apr 2011
    Location
    Canada
    Posts
    694
    Points
    1,136
         User Info     Contact     Gamer ID
    Join Date
    Apr 2011
    Location
    Canada
    Posts
    694
    Points
    1,136
    Gamer IDs

    PSN ID: Quilapallun

    Default

    Quote Originally Posted by MorderVonJuden View Post
    I don't know bud. Most likely not, unless MagicBullet is a part of zombies. By the way updated thread with new version by request.
    yep, magicbullet is in zombies :p

    0 Not allowed! Not allowed!
    CodeLeakers.Com for the WIN.


Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -10. The time now is 11:04 PM.
Powered by vBulletin®
Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.