Raised This Month: $32 Target: $400
 8% 

[L4D2] Pipebomb Duration


Post New Thread Reply   
 
Thread Tools Display Modes
Author
MasterMind420
BANNED
Join Date: Nov 2010
Plugin ID:
5892
Plugin Version:
1.0
Plugin Category:
All
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Delete This Thread
    Unapprover:
    Reason for Unapproving:
    No source code / plugin, upload source and use the Report Post button for a new review.
    Old 11-02-2017 , 10:00   [L4D2] Pipebomb Duration
    Reply With Quote #1

    THIS PLUGIN IS NOW OBSOLETE. USE THIS INSTEAD... https://forums.alliedmods.net/showthread.php?t=322756

    Use !pb # to set pipebomb timer
    Set the maximum allowable timer in cfg
    Code:
    V1.0
    Initial Release

    Last edited by DarkDeviL; 10-18-2021 at 09:05. Reason: Restore to previous version.
    MasterMind420 is offline
    Technoblazed
    Senior Member
    Join Date: May 2016
    Location: United Kingdom
    Old 11-02-2017 , 10:06   Re: [L4D2] Pipebomb Duration
    Reply With Quote #2

    I'd advise changing it into a second argument instead, having the "same" function essentially repeated 9 times seems pretty pointless.
    Technoblazed is offline
    MasterMind420
    BANNED
    Join Date: Nov 2010
    Old 11-02-2017 , 10:17   Re: [L4D2] Pipebomb Duration
    Reply With Quote #3

    Quote:
    Originally Posted by Technoblazed View Post
    I'd advise changing it into a second argument instead, having the "same" function essentially repeated 9 times seems pretty pointless.
    yah thats actually a good point, i wrote this when i had minimal experience at writing arguments or coding really. Although pointless its negligible, when i get around to it i'll rewrite it better. As is, it works as intended, but thanks for the advice regardless
    MasterMind420 is offline
    headline
    SourceMod Moderator
    Join Date: Mar 2015
    Old 11-03-2017 , 00:43   Re: [L4D2] Pipebomb Duration
    Reply With Quote #4

    I'm not going to unapprove this, but as mentioned above such a command should take time as an argument. It allows for more flexibility among users, and much cleaner code.

    Please implement the suggestion when you have time.
    headline is offline
    Psyk0tik
    Veteran Member
    Join Date: May 2012
    Location: Homeless
    Old 11-03-2017 , 03:04   Re: [L4D2] Pipebomb Duration
    Reply With Quote #5

    Could you also please add a cvar to enable it for admins only? Or perhaps a command to allow admins to set the pipe bomb timer for a player?
    __________________

    Last edited by Psyk0tik; 11-03-2017 at 04:59.
    Psyk0tik is offline
    MasterMind420
    BANNED
    Join Date: Nov 2010
    Old 11-03-2017 , 07:28   Re: [L4D2] Pipebomb Duration
    Reply With Quote #6

    Quote:
    Originally Posted by Headline View Post
    I'm not going to unapprove this, but as mentioned above such a command should take time as an argument. It allows for more flexibility among users, and much cleaner code.

    Please implement the suggestion when you have time.
    np, i'll get it done over the weekend
    MasterMind420 is offline
    MasterMind420
    BANNED
    Join Date: Nov 2010
    Old 11-03-2017 , 07:34   Re: [L4D2] Pipebomb Duration
    Reply With Quote #7

    Quote:
    Originally Posted by Crasher_3637 View Post
    Could you also please add a cvar to enable it for admins only? Or perhaps a command to allow admins to set the pipe bomb timer for a player?
    yah i'll probably set up an admin only switch. allowing an admin to set players pipebomb duration individually would defeat the purpose of the plugin imo, i originally made this with the intent to allow players to individually control there own duration. thank u for the suggestion.
    MasterMind420 is offline
    MasterMind420
    BANNED
    Join Date: Nov 2010
    Old 11-05-2017 , 10:28   Re: [L4D2] Pipebomb Duration
    Reply With Quote #8

    V1.1
    !pb command now accepts time argument.
    Added cvar l4d_max_time (Admins are immune to this).
    Added config l4d_pipebomb_duration for setting max allowable timer.
    MasterMind420 is offline
    MasterMind420
    BANNED
    Join Date: Nov 2010
    Old 11-05-2017 , 17:45   Re: [L4D2] Pipebomb Duration
    Reply With Quote #9

    V1.2
    Added cvar l4d_admin_only to set admin only access.
    MasterMind420 is offline
    Sunyata
    Senior Member
    Join Date: Nov 2017
    Location: Wherever I am
    Old 03-31-2018 , 10:02   Re: [L4D2] Pipebomb Duration
    Reply With Quote #10

    Nice plugin, Mastermind - I've found your pipe bomb timers very useful and fun to use ingame.

    I was wondering if there was a way to use the same code you have here to be used for another similar plugin, but could do the same thing for heal and revive times, but have it apply lower (or higher) values to all players ingame and not as separate values for each player.

    I have a couple of servers that use the default value "5" for both the "first_aid_kit_use_duration" and "survivor_revive_duration" times. but it would be nice for the non-admin players be able to quickly override those times to be lower ingame without me having to write new/different values into my same sourcemod.cfg file every time for them.

    Sometimes I'd like the times to be set for all players between 1 and 3 seconds. On one of my servers, 5 seconds can be just fine, but then again when I load the hardcore server settings I find that 5 seconds is way too slow for healing and reviving players so have it set in the cfg at 1 or 2 seconds, mainly because of the huge number of Specials that spawn so quickly.

    Thoughts?

    Last edited by Sunyata; 03-31-2018 at 10:04.
    Sunyata 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 00:42.


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