Commit 8b337949 authored by Neoony's avatar Neoony
Browse files

v0.8 WIP Few Fixes

parent 1ca4df6e
......@@ -74,4 +74,14 @@
**v0.7**
- Added nc_lockspecmp to set how many minimum clients needed on the server for lockspec to work
- Added nc_alltalkm If enabled, it will enable alltalk at start of the map and disable when both teams have comms
\ No newline at end of file
- Added nc_alltalkm If enabled, it will enable alltalk at start of the map and disable when both teams have comms
**v0.8**
- Added colors and adjusted formatting of messages a bit
- Added nc_vt to enable or disable VoteTime plugin compatibility (default 1)
- Added amount of seconds to the message about extending the vote
- Added nc_alltalkmmp minimum players needed for alltalk managing
- Added PUG plugin compatibility
- Added 10 seconds timer for turning off AllTalk after both teams have a comm along with announcing it
- !nce now resets the status of "Disable extending when PauseVote used", NCEV will continue extending
- Added nc_pugc to enable or disable compatibility with PUG plugin (default 1)
\ No newline at end of file
......@@ -620,18 +620,7 @@ copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
{SourceMod plugin for empires. Extends commander vote}
{SourceMod plugin for empires. Extends commander vote and more}
Copyright (C) {2017} {Neoony}
This program is free software: you can redistribute it and/or modify
......@@ -645,30 +634,4 @@ the "copyright" line and a pointer to where the full notice is found.
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
{no_commander_extend_vote} Copyright (C) {2017} {Neoony}
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<http://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
along with this program. If not, see <http://www.gnu.org/licenses/>.
\ No newline at end of file
# No Commander Extend Vote
**Extend commander vote when nobody opted in and someone voted for him and much more**
Latest version: http://sourcemod.docs.empiresmod.com/no_commander_extend_vote/NoCommExtendVote.smx
Latest **dev** version: http://sourcemod.docs.empiresmod.com/no_commander_extend_vote/NoCommExtendVote.smx
*Created by* **Neoony**
......@@ -59,7 +59,16 @@ Latest version: http://sourcemod.docs.empiresmod.com/no_commander_extend_vote/No
*"How many times to allow extending of the vote. After that it will start the round and if nobody enters the cv in set time it will do nextmap."*
**"nc_alltalkm"** *"def. 1"*
*"Enable(1)/Disable(0) managing alltalk by NCEV."*
*"Enable(1)/Disable(0) managing alltalk by NCEV."*
**"nc_alltalkmmp"** *"def. 8"*
*"How many players needed to enable managing alltalk by NCEV. (Clients on the server + connecting clients.)"*
**"nc_vt"** *"def. 1"*
*"Enable(1)/Disable(0) If this is enabled and you use VoteTime pause, NCEV will stop extending."*
**"nc_pugc"** *"def. 1"*
*"Enable(1)/Disable(0) compatibility with ScardyBobs PUG plugin."*
--
......@@ -73,7 +82,7 @@ Latest version: http://sourcemod.docs.empiresmod.com/no_commander_extend_vote/No
- Ability to limit how many times can the vote be extended.
- Enable alltalk while both teams have no comms.
- Config file.
- And much more!
- Compatible with VoteTime or PUG plugin
--
......@@ -92,7 +101,9 @@ Or set minimum clients on the server needed for it by **"nc_lockspecmp"**
And customize the time after start of the round of when spectators should be enabled **"nc_lockspectime"**
Or hide the message about unlocking spectators **"nc_lockspechide"**
Or set the limit of how many times can the vote be extended **"nc_howmanytimese"** to enable, **"nc_howmanytimes"** to set how many times.
Or enable alltalk while both teams have no commander candidates with **"nc_alltalkm"**.
Or enable alltalk while both teams have no commander candidates with **"nc_alltalkm"**
Set at how many clients should the alltalk managing be enabled by **"nc_alltalkmmp"**
Or enable plugin compatibility by **"nc_vt"** or **"nc_pugc"**
Plugin disables on infantry maps, except locking spectators.
Player must join a team for the plugin to activate.
Player cant vote for themselves in a comm vote.
......@@ -101,6 +112,8 @@ Player cant vote for themselves in a comm vote.
**Issues:**
Need to sort out another way of detecting votes and comms.
Addition of minimum players setting for lockspec and alltalkm introduced an issue
where if admin changes the setting of alltalk or allowing spectators, it might get overridden in the next few seconds.
--
......@@ -188,4 +201,14 @@ I intend to keep surrender or comm lock as a separate plugins.
**v0.7**
- Added nc_lockspecmp to set how many minimum clients needed on the server for lockspec to work
- Added nc_alltalkm If enabled, it will enable alltalk at start of the map and disable when both teams have comms
\ No newline at end of file
- Added nc_alltalkm If enabled, it will enable alltalk at start of the map and disable when both teams have comms
**v0.8**
- Added colors and adjusted formatting of messages a bit
- Added nc_vt to enable or disable VoteTime plugin compatibility (default 1)
- Added amount of seconds to the message about extending the vote
- Added nc_alltalkmmp minimum players needed for alltalk managing
- Added PUG plugin compatibility
- Added 10 seconds timer for turning off AllTalk after both teams have a comm along with announcing it
- !nce now resets the status of "Disable extending when PauseVote used", NCEV will continue extending
- Added nc_pugc to enable or disable compatibility with PUG plugin (default 1)
\ No newline at end of file
......@@ -21,7 +21,7 @@
#include <sdktools>
#include <sdkhooks>
#define PluginVer "v0.8 WIP" //check selfvote
#define PluginVer "v0.8" //check selfvote
public Plugin myinfo =
{
......@@ -181,7 +181,7 @@ public void OnPluginStart()
public OnClientPutInServer(Client)
{
PrintToChat(Client, "\x04[NCEV] \x01This server is running\x04 [No Comm Extend Vote]\x01 v0.8 WIP by\x07ff6600 Neoony");
PrintToChat(Client, "\x04[NCEV] \x01This server is running\x04 [No Comm Extend Vote]\x01 v0.8 by\x07ff6600 Neoony");
}
public OnMapStart()
......@@ -250,6 +250,7 @@ public void OnConfigsExecuted()
announcedone13 = 0;
announcedone14 = 0;
NCEnableDisable = 1;
pugonvalue = 0;
//VoteTime compatibility
vton = 0;
......@@ -513,8 +514,11 @@ public Action LockSpecTm(Handle timer)
public Action AllTalkT(Handle timer)
{
nc_alltalke.IntValue = 0;
PrintToChatAll("\x04[NCEV]\x01 Alltalk turned\x07b30000 OFF");
if (ncalltalkmmpnr == 0)
{
nc_alltalke.IntValue = 0;
PrintToChatAll("\x04[NCEV]\x01 Alltalk turned\x07b30000 OFF");
}
//Clear timer
if (AllTalkTimer != INVALID_HANDLE)
{
......@@ -621,7 +625,7 @@ public Event_CommVote(Handle:event, const char[] name, bool dontBroadcast)
PrintToChatAll("\x04[NCEV]\x01 \x07CB4491Both\x01 teams now\x07008000 have\x01 a commander candidate with votes");
announcedone10 = 1;
//Alltalk management
if (ncalltalkm == 1 && ncalltalkdone == 0 && ncalltalkmmpstarted == 1 && ncalltalk == 1)
if (ncalltalkm == 1 && ncalltalkdone == 0 && ncalltalkmmpstarted == 1 && ncalltalk == 1 && ncalltalkmmpnr == 0)
{
PrintToChatAll("\x04[NCEV]\x01 Alltalk will be turned\x07b30000 OFF\x01 in\x073399ff 10\x01 seconds");
AllTalkTimer = CreateTimer(10.0, AllTalkT, _, TIMER_REPEAT);
......@@ -707,7 +711,7 @@ public Event_CommVoteTime(Handle:event, const char[] name, bool dontBroadcast)
//Alltalk management
if (roundstarts == 1)
{
if (ncalltalkm == 1 && ncalltalkdone == 0 && ncalltalk == 1)
if (ncalltalkm == 1 && ncalltalkdone == 0 && ncalltalk == 1 && ncalltalkmmpnr == 0)
{
nc_alltalke.IntValue = 0;
PrintToChatAll("\x04[NCEV]\x01 Alltalk turned\x07b30000 OFF");
......@@ -793,7 +797,7 @@ public Event_CommVoteTime(Handle:event, const char[] name, bool dontBroadcast)
nchowmanytimes = nc_howmanytimes.IntValue;
if (nchowmanytimescr == 1 && announcedone3 == 0)
{
PrintToChatAll("\x04[NCEV]\x01 Maximum amount of extends reached,\x07b30000 not\x01 extending");
PrintToChatAll("\x04[NCEV]\x01 Maximum amount of extends reached, \x07b30000not extending\x01 time");
announcedone3 = 1;
}
if (nchowmanytimesc <= nchowmanytimes && nchowmanytimese == 1 && nchowmanytimescr == 0 && NCEnableDisable == 1 && vtpausedused != 1)
......
......@@ -71,3 +71,18 @@ nc_howmanytimes "6"
// -
// Default: "1"
nc_alltalkm "1"
// How many players needed to enable managing alltalk by NCEV. (Clients on the server + connecting clients.)
// -
// Default: "8"
nc_alltalkmmp "8"
// Enable(1)/Disable(0) If this is enabled and you use VoteTime pause, NCEV will stop extending.
// -
// Default: "1"
nc_vt "1"
// Enable(1)/Disable(0) compatibility with ScardyBobs PUG plugin.
// -
// Default: "1"
nc_pugc "1"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment