Raised This Month: $12 Target: $400
 3% 

[TF2] Unlimited Ammo Plugin


Post New Thread Reply   
 
Thread Tools Display Modes
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 10-17-2009 , 10:04   Re: [TF2] Unlimited Ammo Plugin
Reply With Quote #11

You set sm_iammo_enable "1" (allow infinite ammo with the command)
Then use the admin_kick command " sm_iammo <user id | name | @<team> | @all> <0 | 1>" to give just that user infinite ammo.

So,
sm_cvar sm_iammo_enable 1
sm_iammo DarthNinja 1

Would give me but nobody else infinite ammo.
__________________
DarthNinja is offline
noodleboy347
AlliedModders Donor
Join Date: Mar 2009
Old 10-17-2009 , 12:09   Re: [TF2] Unlimited Ammo Plugin
Reply With Quote #12

Quote:
Originally Posted by DarthNinja View Post
You set sm_iammo_enable "1" (allow infinite ammo with the command)
Then use the admin_kick command " sm_iammo <user id | name | @<team> | @all> <0 | 1>" to give just that user infinite ammo.

So,
sm_cvar sm_iammo_enable 1
sm_iammo DarthNinja 1

Would give me but nobody else infinite ammo.
Yeah, but how do you do infinite Sandman balls?
noodleboy347 is offline
WiKer
Member
Join Date: Apr 2009
Old 10-17-2009 , 12:11   Re: [TF2] Unlimited Ammo Plugin
Reply With Quote #13

Can you make plugin to give infinitive ammo to everyone, who joins/is on the server?
WiKer is offline
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 10-17-2009 , 21:24   Re: [TF2] Unlimited Ammo Plugin
Reply With Quote #14

Quote:
Originally Posted by noodleboy347 View Post
Yeah, but how do you do infinite Sandman balls?
I don't know if it can be done, I'm just saying that theres a cvar that lets you do it(for the whole server).
__________________
DarthNinja is offline
Dessix
Junior Member
Join Date: Oct 2009
Old 10-22-2009 , 01:36   Re: [TF2] Unlimited Ammo Plugin
Reply With Quote #15

Quote:
Originally Posted by noodleboy347 View Post
Could you put the command in the main post... wait... is there even a command?

EDIT: Bug. Scattergun ammo shows up as 2... when it should probably be 6. I think the plugin thinks it's the FaN.
its all done via admin menu for now. i was lazy and didn't feel like dealing with the player id/name.

and i'll look into the scattergun bug (i'm not totally sure my method for finding scattergun vs FaN is perfect)

Quote:
Originally Posted by DarthNinja View Post
For the the Sandman ball, if you want to give it infinite ammo, you might want to play around with the hidden cvar " tf_scout_stunball_ball_regen_rate".
I don't recommend setting it to 0 as it effectively gives scouts a stunball minigun. Also, large numbers of balls rolling around will make clients and the server lag.
Here's the list of scout cvars I got the stunball one from: Linky

Just FYI there is another infinite ammo plugin by twistedeuphoria (linky), however a lot of times it bugs and has to be manually reloaded.
Also it doesnt quite work for the pyro as (s)he runs out of ammo after a while.
will look into, i'll probably set the regen rate to 1 second or so. i'll have to play with that number to keep it from being too retarded.

also what pyro weapon(s) run out of ammo?

Quote:
Originally Posted by WiKer View Post
Can you make plugin to give infinitive ammo to everyone, who joins/is on the server?
planning on it. (i have some of the pieces commented out in the source, just need to get around to it)

we'll see how bored i am this week.
Dessix is offline
TheSpyHunter
Senior Member
Join Date: Jul 2009
Old 10-22-2009 , 04:51   Re: [TF2] Unlimited Ammo Plugin
Reply With Quote #16

Quote:
Originally Posted by DarthNinja View Post
I don't know if it can be done, I'm just saying that theres a cvar that lets you do it(for the whole server).

I have a plugin that allows you to set the number of sandman balls per player.

It was sent to me by Damizean

Using the candymod, players can buy themselves 25 Sandman balls until they die.
__________________

Last edited by TheSpyHunter; 10-22-2009 at 04:58.
TheSpyHunter is offline
TheSpyHunter
Senior Member
Join Date: Jul 2009
Old 10-22-2009 , 05:09   Re: [TF2] Unlimited Ammo Plugin
Reply With Quote #17

Found this:

tf_scout_stunball_ball_regen_rate 0.2

Wouldnt know how to apply cvar per user though.
__________________
TheSpyHunter is offline
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 10-22-2009 , 22:01   Re: [TF2] Unlimited Ammo Plugin
Reply With Quote #18

@Dessix

I would set the regen rate to 3 seconds or so, 1 sec still gives scouts a ball-cannon.
I was referring to twisted's infinite ammo plugin running out of ammo on pyros - after a while the flamethrower goes to 0 and cant be used. He mentions it in his thread.
__________________
DarthNinja is offline
ChIck3n115
Junior Member
Join Date: Sep 2009
Old 10-27-2009 , 11:21   Re: [TF2] Unlimited Ammo Plugin
Reply With Quote #19

Ok, I am having a somewhat annoying bug. If the person who has infitinte ammo goes spectator, it spams my srcds command prompt window (idk what it is called) with a lot of "stuff" (a block of text about 8 lines long, coming at 3 blocks per second). Not really major, but still annoying. Maybe set something to auto disable that person's unlimited ammo if they go spec.
ChIck3n115 is offline
amohanlall32
SourceMod Donor
Join Date: Sep 2009
Location: Female
Old 11-01-2009 , 06:08   Re: [TF2] Unlimited Ammo Plugin
Reply With Quote #20

Code:
L 11/01/2009 - 09:46:59: [SM] Native "GetEntProp" reported: Entity -1 is invalid

L 11/01/2009 - 09:46:59: [SM] Displaying call stack trace for plugin "UnlimitedAmmo.smx":

L 11/01/2009 - 09:46:59: [SM]   [0]  Line 331, /home/groups/alliedmodders/forums/files/6/2/0/1/9/51676.attach::GetIsWeaponAnUnlock()

L 11/01/2009 - 09:46:59: [SM]   [1]  Line 305, /home/groups/alliedmodders/forums/files/6/2/0/1/9/51676.attach::GiveFullAmmo()

L 11/01/2009 - 09:46:59: [SM]   [2]  Line 272, /home/groups/alliedmodders/forums/files/6/2/0/1/9/51676.attach::g_tmrGiveAmmo_TimerTick()
Plugin works, just spams my logs with this. Thought you might wanna check it out.
amohanlall32 is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:43.


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