Author
|
|
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
|
Plugin ID:
|
2496
|
Plugin Version:
|
1.0.0
|
Plugin Category:
|
Gameplay
|
Plugin Game:
|
Team Fortress 2
|
Plugin Dependencies:
|
|
Servers with this Plugin:
|
|
| |
Plugin Description:
|
Adds an ammo counter to Ullapool Cabers.
|
|
|
08-15-2011
, 14:35
[TF2] Reusable Caber / Caber Ammo
|
#1
|
[TF2] Reusable Caber / Caber Ammo
Version 1.0.0
Description:
Adds an ammo counter to Ullapool Cabers.
I wrote this while writing another plugin for snipers that I will be releasing sometime in the future.
Commands:- sm_caber <player> <value>
- Give the target player(s) X number of caber (re)uses.
- Will last until they are all used or the player reconnects.
- Giving a player -1 uses will give them an unlimited number, giving 0 will remove any uses they had.
- sm_cabertest
- Debug command, replies with your caber state.
- sm_resetcaber
- Debug command, resets your caber.
Cvars:
- sm_caber_version
- caber_uses_base
- The number of extra uses normal players' get.
- Default: 0
- caber_uses_admin
- The number of extra uses players' get if they have access to caber_access.
- Default: 1
- caber_timer
- How long (in seconds) to wait before each wave regenerating players' cabers.
- Default: 0.5
Notes, read 'em!:
- Players always have the 1 caber they spawn with, so the cvar values should be interpreted as value+1. Eg, if a cvar is set to 1, the player will get 2 caber uses.
- If set to -1, an unlimited number of cabers will be given.
- Currently, the timer cvar controls the delay between "cycles". All cabers are regenerated each "cycle", so with a delay of 5 seconds, a player may see a delay anywhere from 0 seconds to 5 seconds.
I may update the plugin to use a timer for each player that starts when a caber is used (like in psychonic's plugin). It really depends how much this feature is requested, let me know.
Install Instructions:
- Place ReusableCaber.smx into your addons/sourcemod/plugins/ folder.
Notes:
- This is not based on psychonic's More Boom plugin, though it does do mostly the same things. I did not even know another version had been written until after I'd almost finished mine.
The differences in the plugins are that his offers exact timers, while mine has ammo counting.
ToDo:
Let me know what features you want to see:
- Better timer handling (regen x seconds after use)
- Hud to show regens left
Version History:
Total downloads as prior to last edit: 0
__________________
Last edited by DarthNinja; 08-15-2011 at 16:16.
|
|
|
|