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

[TF2] Reusable Caber / Caber Ammo


Post New Thread Reply   
 
Thread Tools Display Modes
Author
DarthNinja
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:
    3 
    Plugin Description:
    Adds an ammo counter to Ullapool Cabers.
    Old 08-15-2011 , 14:35   [TF2] Reusable Caber / Caber Ammo
    Reply With Quote #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
      • Plugin 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:

    1. 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 regen time.
    • Hud to show regens left

    Version History:
    • V1.0.0
      • Initial Release

    Total downloads as prior to last edit: 0
    Attached Files
    File Type: sp Get Plugin or Get Source (ReusableCaber.sp - 1930 views - 4.9 KB)
    __________________

    Last edited by DarthNinja; 08-15-2011 at 16:16.
    DarthNinja is offline
    coeocjf
    Member
    Join Date: Apr 2011
    Old 08-15-2011 , 20:26   Re: [TF2] Reusable Caber / Caber Ammo
    Reply With Quote #2

    Good!!!!!!!!
    coeocjf is offline
    luki1412
    Veteran Member
    Join Date: Oct 2008
    Location: OnPluginStart()
    Old 09-04-2013 , 17:31   Re: [TF2] Reusable Caber / Caber Ammo
    Reply With Quote #3

    http://forums.alliedmods.net/showthread.php?p=1424155 was bugged for me because it had no cooldown...I did set the cvar. You could just hit again and again with it... I will try this one.
    __________________
    luki1412 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 12:16.


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