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

DOD:S Reverse Tag


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Dillxn
Member
Join Date: Jul 2008
Plugin ID:
673
Plugin Version:
1.6.5.9
Plugin Category:
Gameplay
Plugin Game:
Day of Defeat: Source
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    A game of reverse tag, where you WANT to be "It"!
    Old 12-12-2008 , 22:29   DOD:S Reverse Tag
    Reply With Quote #1


    By Dillxn (Dillon Riecke)

    Description
    This is a new gamemode for Day of Defeat: Source. The goal is to get to a set amount of points (100 by default). You only get points if you are "it".

    The first "it" (once the game has just started) is the first person to kill someone on the other team.

    After the initial "it" is chosen, anyone should attempt to kill the "it". The only way to become "it" after the initial "it" is chosen is to kill the it. So even if you are on the same team as the "it", you still would want to kill the "it" so that you would become "it".

    Once the "it" is killed, their points stop rising. The new "it" (the person who killed the old "it")'s points then start rising.

    The first person to get to (100 by default) points wins.

    The "it" will be signified by a beacon.


    Notes
    • You WANT to be 'it'.
    • When a game begins, the first person to be 'it' is the first person to kill someone on the other team.
    • Once the initial 'it' is chosen, anyone can kill the 'it' to become the new 'it', even your own team mates.
    • If you are 'it' your score will gradually go up.
    • The first person to get to the max points (default is 100) wins.

    Install

    Just place the "reversetag.smx" in your "dod\addons\sourcemod\plugins" (or similar) folder.
    Then place the "sounds" folder in your "dod\" (or similar) folder.

    Requirements

    It is absolutely REQUIRED to have 'funcommands' loaded and enabled on your server for the beacon to work in this!

    Usage

    Once in game, you can use the following commands in your console:
    • "reversetag" - This brings up the gamemode menu
    • "ithelp" - Brings up the "notes" section of this post in-game for teaching players how to play.
    • "voterevtag" - Starts a vote on whether or not to begin reverse tag.
    • "itversion" - Displays the current plugin version.
    • "!itboard" - Toggles the leaderboard.

    The in-game menu is pretty self explanatory.

    Current Problems

    Nichts!

    Changelog:

    Beta Releases:

    Version 1.6.5.9
    • [UPDATE] Added a command, "!itboard", to toggle the leaderboard.

    Archived Changelog

    To-do List
    (PM me about any of these (where applicable))
    • Make 'funcommands' not required to be turned on for beacon
    • Translations!
    • Work on Extreme Mode
    • Make the leaderboard a toggle

    ! REMEMBER ! REBOOT YOUR SERVER WHEN INSTALLING / UPGRADING THIS MOD!
    Attached Files
    File Type: zip sound.zip (157.0 KB, 631 views)
    File Type: sp Get Plugin or Get Source (reversetag.sp - 1556 views - 29.2 KB)

    Last edited by Dillxn; 04-10-2009 at 23:44. Reason: Updates
    Dillxn is offline
    ThatGuy
    Senior Member
    Join Date: Nov 2007
    Old 12-13-2008 , 00:52   Re: DOD:S Reverse Tag
    Reply With Quote #2

    I must say, this sounds really awesome.
    __________________
    ThatGuy is offline
    Dillxn
    Member
    Join Date: Jul 2008
    Old 12-13-2008 , 01:24   Re: DOD:S Reverse Tag
    Reply With Quote #3

    Quote:
    Originally Posted by ThatGuy View Post
    I must say, this sounds really awesome.
    Thanks, I'm excited to see what the approvers think
    Dillxn is offline
    FeuerSturm
    AlliedModders Donor
    Join Date: Apr 2004
    Old 12-13-2008 , 04:02   Re: DOD:S Reverse Tag
    Reply With Quote #4

    Quote:
    Originally Posted by Dillxn View Post
    Thanks, I'm excited to see what the approvers think
    You'll have to do some heavy changes before this can get approved:

    - you should replace all of the ServerCommand instances with natives or function calls
    - you should use "MAXPLAYERS" instead of hardcoding a max player amount
    - you should not hardcode the lenght of playernames, use "MAX_NAME_LENGTH" instead
    - you should not rely on the funcommands plugin (sm_beacon) as it might not be loaded
    - you should kill the repeating timer if the plugin is off and restart it once it is enabled
    - you should add a global tracking convar (optional)
    - you should change the post options to "Day of Defeat: Source", currently it says CSS.

    That's what I found on a quick look through it.
    FeuerSturm is offline
    Dillxn
    Member
    Join Date: Jul 2008
    Old 12-13-2008 , 08:09   Re: DOD:S Reverse Tag
    Reply With Quote #5

    Quote:
    Originally Posted by FeuerSturm View Post
    You'll have to do some heavy changes before this can get approved
    Thanks for the kind look at it! I'll make those changes asap!
    Dillxn is offline
    Dillxn
    Member
    Join Date: Jul 2008
    Old 12-13-2008 , 13:10   Re: DOD:S Reverse Tag
    Reply With Quote #6

    Please don't unapprove yet. I'm working on heavily commenting it and fixing those things you mentioned. Althought I'm unsure how to:
    - not rely on the funcommands plugin (sm_beacon) as it might not be loaded
    - kill the repeating timer if the plugin is off and restart it once it is enabled
    - add a global tracking convar (optional)
    any help or guidance is appreciated.
    Dillxn is offline
    Mosalar
    Senior Member
    Join Date: Jul 2004
    Location: Tampa Fl
    Old 12-13-2008 , 14:04   Re: DOD:S Reverse Tag
    Reply With Quote #7

    I'm looking forward to this, it would make a nice addition to our Gungame server. If you look at Tsunamis code for the gungame plugin, he has flag caps optional. You could prob steal his code :-)

    <3 Tsunami
    Mosalar is offline
    Lebson506th
    Veteran Member
    Join Date: Jul 2008
    Old 12-13-2008 , 14:06   Re: DOD:S Reverse Tag
    Reply With Quote #8

    CreateConVar("dodsrevtag_version", PLUGIN_VERSION, "DoD:S Reverse Tag Version", FCVAR_PLUGIN|FCVAR_SPONLY|FCVAR_REPLICATED|FC VAR_NOTIFY|FCVAR_DONTRECORD);


    Where "PLUGIN_VERSION" is the version number.

    #define PLUGIN_VERSION 1.0
    __________________
    My Plugins
    Spray Tracer by Nican, maintained by me
    Simple TK Manager
    DoD:S Admin Weapons

    Links
    Resistance and Liberation (A HL2 Multiplayer Modification)
    Lebson506th is offline
    FeuerSturm
    AlliedModders Donor
    Join Date: Apr 2004
    Old 12-13-2008 , 14:20   Re: DOD:S Reverse Tag
    Reply With Quote #9

    Quote:
    Originally Posted by FeuerSturm
    - not rely on the funcommands plugin (sm_beacon) as it might not be loaded
    the command sm_beacon that you're using is part of the "funcommands"
    plugin that comes with SourceMod and a lot of people (including myself)
    aren't using/loading that plugin at all, so you loose half of the functionality
    of you plugin.
    You could rather take a look at the beacon part and adapt it to your needs
    ("borrow" some code of it and use it in your plugin).
    Either that or clearly state that the funcommands plugin is obligatory
    for your plugin to work.

    Quote:
    Originally Posted by FeuerSturm
    - kill the repeating timer if the plugin is off and restart it once it is enabled
    You are using a repeating timer that calls your function every 2 seconds
    from plugin start on no matter if it's needed or not.
    You should only start it once it is needed and end it once it is not anymore.

    Quote:
    Originally Posted by FeuerSturm
    - add a global tracking convar (optional)
    exactly what Lebson506th said!


    P.S.:
    If you're about to create more DoD:S specific plugins, feel free to head over to
    DoDSP Community and apply to join the Developer group, you'll be able to
    ask for scripting help and review before publically posting your plugin here then.

    Last edited by FeuerSturm; 12-13-2008 at 14:23. Reason: added P.S.!
    FeuerSturm is offline
    Dillxn
    Member
    Join Date: Jul 2008
    Old 12-13-2008 , 20:58   Re: DOD:S Reverse Tag
    Reply With Quote #10

    Woohoo! Major updates!

    I really appreciate you guys for helping me out and encouraging me to continue working hard on my first sourcemod plugin!

    I will still update it (add features, fix bugs), but I think this is a great leap for version 1.2!
    Dillxn 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 23:23.


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