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

[TF2/Any] Ammunition Regen


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Cerise
Senior Member
Join Date: Jun 2009
Location: debug_backtrace()
Old 08-10-2014 , 17:49   [TF2/Any] Ammunition Regen
Reply With Quote #1

Hello,

Based on this plugin : https://forums.alliedmods.net/showthread.php?p=977167 (Metal Regen by DathNinja).

Could it be possible to modify it so it could regenerate ammunition to players?

Currently the plugins available are either giving full infinite ammo (bad for heavy/Pyro in my case) or having a regen for a fixed amount (ie : +50 ammo flat per X seconds) that will lead to weapons having more ammo than intended.

If anyone could help, i know its quite simple to modify but can't get my mind on it

Have a nice day
__________________
Cerise is offline
DeepVoices
Junior Member
Join Date: Jul 2014
Location: Small russian town
Old 08-11-2014 , 23:27   Re: [TF2/Any] Ammunition Regen
Reply With Quote #2

In TF2 you can use attributes 112|ammo regen.(P.S:Maybe not work sience valve rebuild items_game.txt and moved to .vpk it)
__________________
MOAR BACON!
DeepVoices is offline
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 08-12-2014 , 00:04   Re: [TF2/Any] Ammunition Regen
Reply With Quote #3

There are a few options, but you'll have to have a programmer write something.
Editing items game is not a good idea and never has been.
1- use tf2items and manually create entries with the manager plugin to add regen stats
2- use tf2attributes and add regen stats to each weapon on post inventory or ogni post
3- loop over weapons on a timer, incrementing and resetting ammo values. You'll have to grab the max on spawn or something here.
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.
friagram is offline
Reply



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 20:13.


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