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

[Tf2] Extend Humiliation


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Mr. Random
Junior Member
Join Date: Jun 2016
Plugin ID:
5257
Plugin Version:
1.0
Plugin Category:
Fun Stuff
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Adds a cvar to change humiliation period time
    Old 06-22-2016 , 22:55   [Tf2] Extend Humiliation
    Reply With Quote #1

    What this plugin does:
    Ever wanted to add length to the humiliation period or even remove it altogether? Just change the bonus_time cvar added by this plugin to do so!
    (This will bypass the limit to mp_bonusroundtime)

    Example (in server.cfg):
    bonus_time 30

    Installation:
    Just drag and drop to install!

    You have to change bonus_time to be able to raise the max limit of mp_bonusroundtime!



    Inspired by this topic: https://forums.alliedmods.net/showthread.php?t=208304


    This is my first plugin! Please give me constructive criticism on it!
    Attached Files
    File Type: sp Get Plugin or Get Source (ExtendHumiliation.sp - 756 views - 1.1 KB)

    Last edited by Mr. Random; 07-04-2016 at 02:20. Reason: Now works
    Mr. Random is offline
    xjonx
    Member
    Join Date: Nov 2016
    Location: Builders League UnitedHQ
    Old 11-27-2016 , 14:49   Re: [Tf2] Extend Humiliation
    Reply With Quote #2

    Quote:
    Originally Posted by Mr. Random View Post
    What this plugin does:
    Ever wanted to add length to the humiliation period or even remove it altogether? Just change the bonus_time cvar added by this plugin to do so!
    (This will bypass the limit to mp_bonusroundtime)

    Example (in server.cfg):
    bonus_time 30

    Installation:
    Just drag and drop to install!

    You have to change bonus_time to be able to raise the max limit of mp_bonusroundtime!



    Inspired by this topic: https://forums.alliedmods.net/showthread.php?t=208304


    This is my first plugin! Please give me constructive criticism on it!
    Why does this have no views?
    __________________
    I'm sometimes slow at responding... just be patient.
    My favorite quote: "...for I believe in an eye for an eye."
    My Website: http://jon-xjonx-nat.jimdo.com/
    xjonx is offline
    Send a message via Skype™ to xjonx
    friagram
    Veteran Member
    Join Date: Sep 2012
    Location: Silicon Valley
    Old 11-28-2016 , 00:37   Re: [Tf2] Extend Humiliation
    Reply With Quote #3

    because all it does is set convar bounds..
    and servercommand a cvar u can set yourself...
    __________________
    Profile - Plugins
    Add me on steam if you are seeking sp/map/model commissions.
    friagram is offline
    nosoop
    Veteran Member
    Join Date: Aug 2014
    Old 11-28-2016 , 00:57   Re: [Tf2] Extend Humiliation
    Reply With Quote #4

    Nothing wrong with practice.

    Anyways, disregarding the fact that one can just remove the bounds on the ConVar and strip the FCVAR_DEVELOPMENTONLY flag so it can be directly modified:
    I'd recommend using HookConVarChange for event-driven updates from bonus_time, instead of polling for a change in value. Additionally, the FindConVar function and the ConVar.SetFloat method would be preferable over ServerCommand in this particular instance.
    __________________
    I do TF2, TF2 servers, and TF2 plugins.
    I don't do DMs over Discord -- PM me on the forums regarding inquiries.
    AlliedModders Releases / Github / TF2 Server / Donate (BTC / BCH / coffee)

    Last edited by nosoop; 11-28-2016 at 07:22.
    nosoop 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 11:21.


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