AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [TF2] Advanced Infinite Ammo (https://forums.alliedmods.net/showthread.php?t=190562)

Horsedick 07-20-2012 12:11

Re: [TF2] Advanced Infinite Ammo
 
Quote:

Originally Posted by Tylerst (Post 1754463)
If you're worried about lag, I released a plugin to fix that a couple days ago: Ball Projectile Limit

Otherwise, I left the code in for the admin check:
Code:

//Sandman, Wrap Assassin - Admin Check(Old Plugin Behavior)
case 44, 648:
{
    if(!CheckCommandAccess(client, "sm_fia_adminflag", ADMFLAG_SLAY)) return;
    SetAmmo(client, iWeapon);
}

Just remove the cases from the Type2 Weapons area and uncomment this(remove the /* */ )

Ok going to make the edits I did to your code as seen above.... that way only those with SLAY permissions can access unlimited ammo for both sandman and wrap assassin but not someone else I give it to or that can enable it such as thru flag "o" or CUSTOM1 .. correct?

Tylerst 07-20-2012 15:17

Re: [TF2] Advanced Infinite Ammo
 
Quote:

Originally Posted by Horsedick (Post 1754485)
Ok going to make the edits I did to your code as seen above.... that way only those with SLAY permissions can access unlimited ammo for both sandman and wrap assassin but not someone else I give it to or that can enable it such as thru flag "o" or CUSTOM1 .. correct?

Specifically, it will first check for an sm_aia_adminflag override, but if you don't have one set, then yes, it will use the slay flag, and only people with the slay flag will have infinite balls.

mal415 07-20-2012 17:03

Re: [TF2] Advanced Infinite Ammo
 
I use this plugin as a donator perk (using a custom admin flag). Can this plugin allow players to toggle it on themselves but not allow them to give it to others?

If you have access to sm_aia you have access to both or is there a way to split them?

Tylerst 07-20-2012 21:05

Re: [TF2] Advanced Infinite Ammo
 
Quote:

Originally Posted by mal415 (Post 1754689)
I use this plugin as a donator perk (using a custom admin flag). Can this plugin allow players to toggle it on themselves but not allow them to give it to others?

If you have access to sm_aia you have access to both or is there a way to split them?

There is now. :)
Just override sm_aia_targetflag and they will only be able to use sm_aia and sm_aia @me 1/sm_aia @me 0


Update to 1.0.1
-Added sm_aia_targetflag ovverride to control which admins can target others
-Fixed a typo in the self-targetting

Diviara27 07-20-2012 23:31

Re: [TF2] Advanced Infinite Ammo
 
Just a suggestion:

Can you add a infinite rockets loaded in the Beggar's Bazooka?

Tylerst 07-20-2012 23:35

Re: [TF2] Advanced Infinite Ammo
 
Quote:

Originally Posted by Diviara27 (Post 1754859)
Just a suggestion:

Can you add a infinite rockets loaded in the Beggar's Bazooka?

I tried it like that during testing.

With infinite clip, it never stops firing, and you can't change weapons.

I decided to change it to just infinite ammo as a solution, but if you really want to the other way.
Move case 730 from Type 2 weapons to Type 1 weapons and recompile.

Edit: Unless you just mean being able to load more than 3 shots at once, in which case that's not doable with this plugin. TF2Items' config can let you do that though.

Edit 2: As of 1.0.2, the Beggar's Bazooka has a hold right-click(alt-fire) option for infinite rockets.

Minoost 07-21-2012 08:21

Re: [TF2] Advanced Infinite Ammo
 
Nice work!

siren 07-21-2012 20:46

Re: [TF2] Advanced Infinite Ammo
 
seems to work nice for me but not for anyone else

Diviara27 07-22-2012 02:29

Re: [TF2] Advanced Infinite Ammo
 
Quote:

Originally Posted by Tylerst (Post 1754860)
I tried it like that during testing.

With infinite clip, it never stops firing, and you can't change weapons.

I decided to change it to just infinite ammo as a solution, but if you really want to the other way.
Move case 730 from Type 2 weapons to Type 1 weapons and recompile.

Edit: Unless you just mean being able to load more than 3 shots at once, in which case that's not doable with this plugin. TF2Items' config can let you do that though.

What is this plugin's version that uses the infinite clip but never stops firing and change weapons?

Tylerst 07-22-2012 05:10

Re: [TF2] Advanced Infinite Ammo
 
Quote:

Originally Posted by Diviara27 (Post 1755552)
What is this plugin's version that uses the infinite clip but never stops firing and change weapons?

This code would give it infinite clip, just compile and use.

Edit: Removed Code. As of 1.0.2, the Beggar's Bazooka has a hold right-click(alt-fire) option for infinite rockets.


All times are GMT -4. The time now is 03:30.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.