19 Dec 10, 12:16AM
(This post was last modified: 19 Dec 10, 10:27PM by eftertanke.)
There is a diff patch on Sourceforge for Team Last Swiss Standing.
I was wondering if it is possible for me to test that patch, and if so, whether or not it will need to be both client and server side.
Here is the contents of the patch as well:
Also I'm curious as well what people think of that mode. Would you like to try it out?
I was wondering if it is possible for me to test that patch, and if so, whether or not it will need to be both client and server side.
Here is the contents of the patch as well:
[SELECT ALL] Code:
Index: ac/config/docs.cfg
===================================================================
--- ac/config/docs.cfg (revision 4491)
+++ ac/config/docs.cfg (working copy)
@@ -3072,6 +3072,14 @@
+docident [tlss] [Starts a map with the mode "Team Last Swiss Standing"];
+
+docargument [M] [The name of the map you wish to play] [] [1];
+
+docexample [tlss ac_complex] [];
+
+
+
docident [mode] [Sets the gameplay mode to N for the next map loaded.];
docargument [N] [The mode number] [] [0];
@@ -3108,6 +3116,8 @@
docargument [] [] [15 - Keep the Flag] [0];
+docargument [] [] [16 - Team Last Swiss Standing] [0];
+
docremark [You will need to define mode before loading the map or it will stay as the last mode played.];
Index: ac/config/menus_multiplayer.cfg
===================================================================
--- ac/config/menus_multiplayer.cfg (revision 4491)
+++ ac/config/menus_multiplayer.cfg (working copy)
@@ -104,6 +104,7 @@
menuitem "Team Keep the Flag" "mode 14; showmenu maps_flags"
menuitem "Pistol Frenzy" "mode 6; showmenu maps"
menuitem "Last Swiss Standing" "mode 9; showmenu maps"
+menuitem "Team Last Swiss Standing" "mode 16; showmenu maps"
menuitem "One Shot, One Kill" "mode 10; showmenu maps"
menuitem "Team One Shot, One Kill" "mode 11; showmenu maps"
Index: ac/config/scripts.cfg
===================================================================
--- ac/config/scripts.cfg (revision 4491)
+++ ac/config/scripts.cfg (working copy)
@@ -23,7 +23,7 @@
// Auto-completions
alias mapcomplete [complete $arg1 "packages/maps/official packages/maps" cgz]
-mapcommands = "map tdm coop dm lms ts ctf pf lss osok tosok htf vip tktf ktf sendmap"
+mapcommands = "map tdm coop dm lms ts ctf pf lss osok tosok htf vip tktf ktf tlss sendmap"
loop i (listlen $mapcommands) [
mapcomplete (at $mapcommands $i)
]
@@ -52,6 +52,7 @@
gamemodedesc 13 [Hunt the Flag: Find the enemy flag, frag the flag bearer and collect the flag to score. Protect your own team flag. If the flag bearer collects the enemy flag, they gain a 1 point bonus.]
gamemodedesc 14 [Team Keep the Flag: There is only one flag. Get the flag and keep it. You score one point every 15 seconds. If your teammate has the flag, protect him. If the flag bearer collects the enemy flag, they gain a 1 point bonus.]
gamemodedesc 15 [Keep the Flag: Get the flag and keep it. You score one point every 15 seconds. Everybody else will want to destroy you!]
+gamemodedesc 16 [Team Last Swiss Standing: Knive and bomb the enemy team!]
// "resetbinds" command.
alias resetbinds [ exec config/resetbinds.cfg; echo "3All binds have been reset to default values!" ]
@@ -79,6 +80,7 @@
alias vip [ votemap 13 $arg1 ]
alias tktf [ votemap 14 $arg1 ]
alias ktf [ votemap 15 $arg1 ]
+alias tlss [ votemap 16 $arg1 ]
// Weapon switching/action utilities.
alias primary [ weapon (currentprimary) ]
Index: ac/docs/reference.xml
===================================================================
--- ac/docs/reference.xml (revision 4491)
+++ ac/docs/reference.xml (working copy)
@@ -3664,6 +3664,18 @@
</arguments>
</command>
+ <command name="tlss">
+ <description>Starts a map with the mode "Team Last Swiss Standing"</description>
+ <examples>
+ <example>
+ <code><![CDATA[tlss ac_complex]]></code>
+ </example>
+ </examples>
+ <arguments>
+ <variableArgument token="M" description="The name of the map you wish to play"/>
+ </arguments>
+ </command>
+
<command name="mode">
<description>
Sets the gameplay mode to N for the next map loaded.
Index: ac/source/src/protocol.cpp
===================================================================
--- ac/source/src/protocol.cpp (revision 4491)
+++ ac/source/src/protocol.cpp (working copy)
@@ -164,14 +164,14 @@
"demo playback",
"team deathmatch", "coopedit", "deathmatch", "survivor",
"team survivor", "ctf", "pistol frenzy", "bot team deathmatch", "bot deathmatch", "last swiss standing",
- "one shot, one kill", "team one shot, one kill", "bot one shot, one kill", "hunt the flag", "team keep the flag", "keep the flag"
+ "one shot, one kill", "team one shot, one kill", "bot one shot, one kill", "hunt the flag", "team keep the flag", "keep the flag", "team last swiss standing"
};
const char *modeacronymnames[] =
{
"DEMO",
"TDM", "coop", "DM", "SURV", "TSURV", "CTF", "PF", "BTDM", "BDM", "LSS",
- "OSOK", "TOSOK", "BOSOK", "HTF", "TKTF", "KTF"
+ "OSOK", "TOSOK", "BOSOK", "HTF", "TKTF", "KTF", "TLSS"
};
const char *voteerrors[] = { "voting is currently disabled", "there is already a vote pending", "already voted", "can't vote that often", "this vote is not allowed in the current environment (singleplayer/multiplayer)", "no permission", "invalid vote" };
Index: ac/source/src/protocol.h
===================================================================
--- ac/source/src/protocol.h (revision 4491)
+++ ac/source/src/protocol.h (working copy)
@@ -117,16 +117,17 @@
GMODE_HUNTTHEFLAG, // 13
GMODE_TEAMKEEPTHEFLAG,
GMODE_KEEPTHEFLAG,
+ GMODE_TEAMLASTSWISSSTANDING,
GMODE_NUM
};
-#define m_lms (gamemode==3 || gamemode==4)
-#define m_ctf (gamemode==5)
-#define m_pistol (gamemode==6)
-#define m_lss (gamemode==9)
-#define m_osok (gamemode>=10 && gamemode<=12)
-#define m_htf (gamemode==13)
-#define m_ktf (gamemode==14 || gamemode==15)
+#define m_lms (gamemode==GMODE_SURVIVOR || gamemode==GMODE_TEAMSURVIVOR)
+#define m_ctf (gamemode==GMODE_CTF)
+#define m_pistol (gamemode==GMODE_PISTOLFRENZY)
+#define m_lss (gamemode==GMODE_LASTSWISSSTANDING || gamemode==GMODE_TEAMLASTSWISSSTANDING)
+#define m_osok (gamemode>=GMODE_ONESHOTONEKILL && gamemode<=GMODE_BOTONESHOTONEKILL)
+#define m_htf (gamemode==GMODE_HUNTTHEFLAG)
+#define m_ktf (gamemode==GMODE_TEAMKEEPTHEFLAG || gamemode==GMODE_KEEPTHEFLAG)
#define m_noitems (m_lms || m_osok)
#define m_noitemsnade (m_lss)
@@ -134,11 +135,11 @@
#define m_noprimary (m_pistol || m_lss)
#define m_noguns (m_nopistol && m_noprimary)
#define m_arena (m_lms || m_lss || m_osok)
-#define m_teammode (gamemode==0 || gamemode==4 || gamemode==5 || gamemode==7 || gamemode==11 || gamemode==13 || gamemode==14)
+#define m_teammode (gamemode==GMODE_TEAMDEATHMATCH || gamemode==GMODE_TEAMSURVIVOR || gamemode==GMODE_CTF || gamemode==GMODE_BOTTEAMDEATHMATCH || gamemode==GMODE_TEAMONESHOTONEKILL || gamemode==GMODE_HUNTTHEFLAG || gamemode==GMODE_TEAMKEEPTHEFLAG || gamemode==GMODE_TEAMLASTSWISSSTANDING)
#define m_tarena (m_arena && m_teammode)
-#define m_botmode (gamemode==7 || gamemode == 8 || gamemode==12)
-#define m_valid(mode) (((mode)>=0 && (mode)<GMODE_NUM) || (mode) == -1)
-#define m_mp(mode) (m_valid(mode) && (mode)>=0 && (mode)!=7 && (mode)!=8 && (mode)!=12)
-#define m_demo (gamemode==-1)
+#define m_botmode (gamemode==GMODE_BOTTEAMDEATHMATCH || gamemode == GMODE_BOTDEATHMATCH || gamemode==GMODE_BOTONESHOTONEKILL)
+#define m_valid(mode) (((mode)>=GMODE_TEAMDEATHMATCH && (mode)<GMODE_NUM) || (mode) == GMODE_DEMO)
+#define m_mp(mode) (m_valid(mode) && (mode)>=GMODE_TEAMDEATHMATCH && (mode)!=GMODE_BOTTEAMDEATHMATCH && (mode)!=GMODE_BOTDEATHMATCH && (mode)!=GMODE_BOTONESHOTONEKILL)
+#define m_demo (gamemode==GMODE_DEMO)
#define m_flags (m_ctf || m_htf || m_ktf)
Also I'm curious as well what people think of that mode. Would you like to try it out?