// cts\r
set g_cts 0 "CTS: complete the stage"\r
\r
+// rpg\r
+set g_rpg 0 "RPG: RolePlay / Free Roam gametype"\r
+\r
// server game balance settings\r
// powerup balance settings\r
// weapon balance settings follow\r
-title Gallery\r
-description A medieval themed picture gallery\r
+title Vore Town\r
+description A medieval temple\r
author MirceaKitsune\r
//cdtrack stone_fortress\r
-type dm 30 20\r
-settemp_for_type all g_start_weapon_grabber 0\r
-settemp_for_type all bot_nofire 1\r
-settemp_for_type all sv_gravity 400\r
-settemp_for_type all bot_number 7\r
-//hidden\r
+has weapons\r
+type rpg 20
\ No newline at end of file
const float GAME_RACE = 10;\r
const float GAME_CTS = 11;\r
const float GAME_CA = 12;\r
+const float GAME_RPG = 13;\r
\r
const float AS_STRING = 1;\r
const float AS_INT = 2;\r
if(!(pThisType & pWantedType))\r
return;\r
\r
- if(pWantedType == MAPINFO_TYPE_ASSAULT || pWantedType == MAPINFO_TYPE_ONSLAUGHT || pWantedType == MAPINFO_TYPE_RACE || pWantedType == MAPINFO_TYPE_CTS) // these modes don't use fraglimit\r
+ if(pWantedType == MAPINFO_TYPE_ASSAULT || pWantedType == MAPINFO_TYPE_ONSLAUGHT || pWantedType == MAPINFO_TYPE_RACE || pWantedType == MAPINFO_TYPE_CTS || pWantedType == MAPINFO_TYPE_RPG) // these modes don't use fraglimit\r
{\r
cvar_set("fraglimit", "0");\r
}\r
else if(t == "ons") return MAPINFO_TYPE_ONSLAUGHT;\r
else if(t == "rc") return MAPINFO_TYPE_RACE;\r
else if(t == "cts") return MAPINFO_TYPE_CTS;\r
+ else if(t == "rpg") return MAPINFO_TYPE_RPG;\r
else if(t == "all") return MAPINFO_TYPE_ALL;\r
else return 0;\r
}\r
if(MapInfo_Map_supportedGametypes & MAPINFO_TYPE_RACE) fputs(fh, "type rc 20 5 7 15\n");\r
if(MapInfo_Map_supportedGametypes & MAPINFO_TYPE_ONSLAUGHT) fputs(fh, "type ons 20\n");\r
if(MapInfo_Map_supportedGametypes & MAPINFO_TYPE_CTS) fputs(fh, "type cts 20 -1\n");\r
+ if(MapInfo_Map_supportedGametypes & MAPINFO_TYPE_RPG) fputs(fh, "type rpg -1\n");\r
\r
fh2 = fopen(strcat("scripts/", pFilename, ".arena"), FILE_READ);\r
if(fh2 >= 0)\r
return MAPINFO_TYPE_RACE;\r
else if(cvar("g_cts"))\r
return MAPINFO_TYPE_CTS;\r
+ else if(cvar("g_rpg"))\r
+ return MAPINFO_TYPE_RPG;\r
else\r
return MAPINFO_TYPE_DEATHMATCH;\r
}\r
case MAPINFO_TYPE_ONSLAUGHT: return "g_onslaught";\r
case MAPINFO_TYPE_RACE: return "g_race";\r
case MAPINFO_TYPE_CTS: return "g_cts";\r
+ case MAPINFO_TYPE_RPG: return "g_rpg";\r
default: return "";\r
}\r
}\r
cvar_set("g_onslaught", (t == MAPINFO_TYPE_ONSLAUGHT) ? "1" : "0");\r
cvar_set("g_race", (t == MAPINFO_TYPE_RACE) ? "1" : "0");\r
cvar_set("g_cts", (t == MAPINFO_TYPE_CTS) ? "1" : "0");\r
+ cvar_set("g_rpg", (t == MAPINFO_TYPE_RPG) ? "1" : "0");\r
}\r
\r
void MapInfo_LoadMap(string s)\r
float MAPINFO_TYPE_KEYHUNT = 512;\r
float MAPINFO_TYPE_CTS = 1024;\r
float MAPINFO_TYPE_CA = 2048;\r
-float MAPINFO_TYPE_ALL = 4096; // this has to include all above bits\r
+float MAPINFO_TYPE_RPG = 4096;\r
+float MAPINFO_TYPE_ALL = 8192; // this has to include all above bits\r
\r
float MAPINFO_FEATURE_WEAPONS = 1; // not defined for minstagib-only maps\r
\r
else if (g == GAME_ASSAULT) return "as";\r
else if (g == GAME_RACE) return "rc";\r
else if (g == GAME_CTS) return "cts";\r
+ else if (g == GAME_RPG) return "rpg";\r
return "dm";\r
}\r
\r
if(e.checked) e0 = NULL;\r
me.TD(me, 1, me.columns / n, e = makeVoretGametypeButton(1, "g_onslaught", "Onslaught"));\r
if(e.checked) e0 = NULL;\r
+ me.TR(me);\r
+ me.TD(me, 1, 0.5, me.playerNameLabel = makeVoretTextLabel(0, "Other:"));\r
+ me.playerNameLabelAlpha = me.playerNameLabel.alpha;\r
+ n = 1;\r
+ me.TD(me, 1, me.columns / n, e = makeVoretGametypeButton(1, "g_rpg", "Role Play"));\r
+ if(e.checked) e0 = NULL;\r
if(e0)\r
{\r
//print("NO CHECK\n");\r
ATTRIB(VoretMapInfoDialog, typeOnslaughtLabel, entity, NULL)\r
ATTRIB(VoretMapInfoDialog, typeRaceLabel, entity, NULL)\r
ATTRIB(VoretMapInfoDialog, typeCTSLabel, entity, NULL)\r
+ ATTRIB(VoretMapInfoDialog, typeRPGLabel, entity, NULL)\r
\r
ATTRIB(VoretMapInfoDialog, currentMapIndex, float, 0)\r
ATTRIB(VoretMapInfoDialog, currentMapBSPName, string, string_null)\r
me.typeOnslaughtLabel.disabled = !(MapInfo_Map_supportedGametypes & MAPINFO_TYPE_ONSLAUGHT);\r
me.typeRaceLabel.disabled = !(MapInfo_Map_supportedGametypes & MAPINFO_TYPE_RACE);\r
me.typeCTSLabel.disabled = !(MapInfo_Map_supportedGametypes & MAPINFO_TYPE_CTS);\r
+ me.typeRPGLabel.disabled = !(MapInfo_Map_supportedGametypes & MAPINFO_TYPE_RPG);\r
\r
MapInfo_ClearTemps();\r
}\r
me.typeLMSLabel = e;\r
me.TD(me, 1, wgt, e = makeVoretTextLabel(0, "Arena"));\r
me.typeArenaLabel = e;\r
- me.TR(me);\r
- me.TDempty(me, 0.2);\r
me.TD(me, 1, wgt, e = makeVoretTextLabel(0, "Domination"));\r
me.typeDominationLabel = e;\r
+ me.TR(me);\r
+ me.TDempty(me, 0.2);\r
me.TD(me, 1, wgt, e = makeVoretTextLabel(0, "Key Hunt"));\r
me.typeKeyHuntLabel = e;\r
me.TD(me, 1, wgt, e = makeVoretTextLabel(0, "CTF"));\r
me.typeCALabel = e;\r
me.TD(me, 1, wgt, e = makeVoretTextLabel(0, "Assault"));\r
me.typeAssaultLabel = e;\r
- me.TR(me);\r
- me.TDempty(me, 0.2);\r
me.TD(me, 1, wgt, e = makeVoretTextLabel(0, "Onslaught"));\r
me.typeOnslaughtLabel = e;\r
+ me.TR(me);\r
+ me.TDempty(me, 0.2);\r
me.TD(me, 1, wgt, e = makeVoretTextLabel(0, "Race"));\r
me.typeRaceLabel = e;\r
me.TD(me, 1, wgt, e = makeVoretTextLabel(0, "CTS"));\r
me.typeCTSLabel = e;\r
+ me.TD(me, 1, wgt, e = makeVoretTextLabel(0, "RPG"));\r
+ me.typeRPGLabel = e;\r
\r
me.gotoRC(me, me.rows - 2, 0);\r
me.TD(me, 1, me.columns, e = makeVoretTextLabel(0.5, ""));\r
\r
float ctf_score_value(string parameter);\r
\r
-float g_dm, g_domination, g_ctf, g_tdm, g_keyhunt, g_onslaught, g_assault, g_arena, g_ca, g_lms, g_race, g_cts;\r
+float g_dm, g_domination, g_ctf, g_tdm, g_keyhunt, g_onslaught, g_assault, g_arena, g_ca, g_lms, g_race, g_cts, g_rpg;\r
float g_cloaked, g_footsteps, g_jump_grunt, g_midair, g_norecoil, g_vampire, g_bloodloss;\r
float g_warmup_limit;\r
float g_warmup_allguns;\r
BADCVAR("g_race");\r
BADCVAR("g_cts");\r
BADCVAR("g_tdm");\r
+ BADCVAR("g_rpg");\r
BADCVAR("teamplay");\r
\r
// long\r
cvar_set("g_onslaught", ftos(g_onslaught));\r
cvar_set("g_race", ftos(g_race));\r
cvar_set("g_cts", ftos(g_cts));\r
+ cvar_set("g_rpg", ftos(g_rpg));\r
}\r
\r
void ReadGameCvars()\r
found += (g_onslaught = (!found && (prev != GAME_ONSLAUGHT) && cvar("g_onslaught")));\r
found += (g_race = (!found && (prev != GAME_RACE) && cvar("g_race")));\r
found += (g_cts = (!found && (prev != GAME_CTS) && cvar("g_cts")));\r
+ found += (g_rpg = (!found && (prev != GAME_RPG) && cvar("g_rpg")));\r
\r
if(found)\r
break;\r
leadlimit_override = 0;\r
}\r
\r
+ if(g_rpg)\r
+ {\r
+ game = GAME_RPG;\r
+ gamemode_name = "Role Play";\r
+ }\r
+\r
if(teams_matter)\r
entcs_init();\r
\r