AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   DOD:S Reverse Tag (https://forums.alliedmods.net/showthread.php?t=81879)

Dillxn 12-12-2008 22:29

DOD:S Reverse Tag
 
2 Attachment(s)
http://www.airtimeseller.com/Dillxn/...rsetaglogo.png
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!

ThatGuy 12-13-2008 00:52

Re: DOD:S Reverse Tag
 
I must say, this sounds really awesome.

Dillxn 12-13-2008 01:24

Re: DOD:S Reverse Tag
 
Quote:

Originally Posted by ThatGuy (Post 726613)
I must say, this sounds really awesome.

Thanks, I'm excited to see what the approvers think :)

FeuerSturm 12-13-2008 04:02

Re: DOD:S Reverse Tag
 
Quote:

Originally Posted by Dillxn (Post 726624)
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.

Dillxn 12-13-2008 08:09

Re: DOD:S Reverse Tag
 
Quote:

Originally Posted by FeuerSturm (Post 726683)
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 12-13-2008 13:10

Re: DOD:S Reverse Tag
 
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.

Mosalar 12-13-2008 14:04

Re: DOD:S Reverse Tag
 
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

Lebson506th 12-13-2008 14:06

Re: DOD:S Reverse Tag
 
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

FeuerSturm 12-13-2008 14:20

Re: DOD:S Reverse Tag
 
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.

Dillxn 12-13-2008 20:58

Re: DOD:S Reverse Tag
 
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!


All times are GMT -4. The time now is 14:10.

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