build: use OAT to link my mod (#2)
This commit is contained in:
23
zone_raw/arena/english/localizedstrings/mod.str
Normal file
23
zone_raw/arena/english/localizedstrings/mod.str
Normal file
@ -0,0 +1,23 @@
|
||||
VERSION "1"
|
||||
CONFIG "C:/trees/cod3/cod3/bin/StringEd.cfg"
|
||||
FILENOTES "Arena mod"
|
||||
|
||||
REFERENCE MPUI_GTNW
|
||||
LANG_ENGLISH "Global Thermonuclear War"
|
||||
|
||||
REFERENCE MPUI_GTNW_RECIPE_DESC
|
||||
LANG_ENGLISH "Global thermonuclear war."
|
||||
|
||||
REFERENCE MPUI_GTNW_RECIPE_NAME
|
||||
LANG_ENGLISH "Global Thermonuclear War"
|
||||
|
||||
REFERENCE OBJECTIVES_GTNW
|
||||
LANG_ENGLISH "Be the first to capture the Nuclear Strike crate to win."
|
||||
|
||||
REFERENCE PRESENCE_ARENA
|
||||
LANG_ENGLISH "Arena"
|
||||
|
||||
REFERENCE PRESENCE_GTNW
|
||||
LANG_ENGLISH "GTNW"
|
||||
|
||||
ENDMARKER
|
18
zone_raw/arena/maps/mp/gametypes/_gametypes.txt
Normal file
18
zone_raw/arena/maps/mp/gametypes/_gametypes.txt
Normal file
@ -0,0 +1,18 @@
|
||||
dm
|
||||
dom
|
||||
sd
|
||||
sab
|
||||
war
|
||||
koth
|
||||
dd
|
||||
ctf
|
||||
oic
|
||||
grnd
|
||||
tdef
|
||||
arena
|
||||
gtnw
|
||||
conf
|
||||
infect
|
||||
jugg
|
||||
gun
|
||||
tjugg
|
442
zone_raw/arena/maps/mp/gametypes/arena.gsc
Normal file
442
zone_raw/arena/maps/mp/gametypes/arena.gsc
Normal file
@ -0,0 +1,442 @@
|
||||
// IW5 GSC SOURCE
|
||||
// Decompiled by https://github.com/xensik/gsc-tool
|
||||
// Rewritten by ReaaLx
|
||||
|
||||
main()
|
||||
{
|
||||
if ( getdvar( "mapname" ) == "mp_background" )
|
||||
return;
|
||||
|
||||
maps\mp\gametypes\_globallogic::init();
|
||||
maps\mp\gametypes\_callbacksetup::SetupCallbacks();
|
||||
maps\mp\gametypes\_globallogic::SetupCallbacks();
|
||||
|
||||
maps\mp\_utility::registerRoundSwitchDvar( level.gameType, 0, 0, 9 );
|
||||
maps\mp\_utility::registerTimeLimitDvar( level.gameType, 10 );
|
||||
maps\mp\_utility::registerScoreLimitDvar( level.gameType, 500 );
|
||||
maps\mp\_utility::registerRoundLimitDvar( level.gameType, 1 );
|
||||
maps\mp\_utility::registerWinLimitDvar( level.gameType, 1 );
|
||||
maps\mp\_utility::registerNumLivesDvar( level.gameType, 0 );
|
||||
maps\mp\_utility::registerHalfTimeDvar( level.gameType, 0 );
|
||||
|
||||
level.teamBased = 1;
|
||||
level.objectiveBased = 1;
|
||||
level.onPrecacheGameType = ::onPrecacheGameType;
|
||||
level.onStartGameType = ::onStartGameType;
|
||||
level.getSpawnPoint = ::getSpawnPoint;
|
||||
level.onSpawnPlayer = ::onSpawnPlayer;
|
||||
level.onNormalDeath = ::onNormalDeath;
|
||||
level.onPlayerKilled = ::onPlayerKilled;
|
||||
level.onDeadEvent = ::onDeadEvent;
|
||||
game["dialog"]["gametype"] = "arena";
|
||||
|
||||
if ( getdvarint( "g_hardcore" ) )
|
||||
game["dialog"]["gametype"] = "hc_" + game["dialog"]["gametype"];
|
||||
else if ( getdvarint( "camera_thirdPerson" ) )
|
||||
game["dialog"]["gametype"] = "thirdp_" + game["dialog"]["gametype"];
|
||||
else if ( getdvarint( "scr_diehard" ) )
|
||||
game["dialog"]["gametype"] = "dh_" + game["dialog"]["gametype"];
|
||||
|
||||
game["strings"]["overtime_hint"] = &"MP_FIRST_BLOOD";
|
||||
}
|
||||
|
||||
onPrecacheGameType()
|
||||
{
|
||||
precacheshader( "compass_waypoint_captureneutral" );
|
||||
precacheshader( "compass_waypoint_capture" );
|
||||
precacheshader( "compass_waypoint_defend" );
|
||||
precacheshader( "waypoint_captureneutral" );
|
||||
precacheshader( "waypoint_capture" );
|
||||
precacheshader( "waypoint_defend" );
|
||||
}
|
||||
|
||||
onStartGameType()
|
||||
{
|
||||
setclientnamemode( "auto_change" );
|
||||
|
||||
if ( !isdefined( game["switchedsides"] ) )
|
||||
game["switchedsides"] = 0;
|
||||
|
||||
if ( game["switchedsides"] )
|
||||
{
|
||||
oldAttackers = game["attackers"];
|
||||
oldDefenders = game["defenders"];
|
||||
game["attackers"] = oldDefenders;
|
||||
game["defenders"] = oldAttackers;
|
||||
}
|
||||
|
||||
maps\mp\_utility::setObjectiveText( "allies", &"OBJECTIVES_ARENA" );
|
||||
maps\mp\_utility::setObjectiveText( "axis", &"OBJECTIVES_ARENA" );
|
||||
|
||||
if ( level.splitscreen )
|
||||
{
|
||||
maps\mp\_utility::setObjectiveScoreText( "allies", &"OBJECTIVES_ARENA" );
|
||||
maps\mp\_utility::setObjectiveScoreText( "axis", &"OBJECTIVES_ARENA" );
|
||||
}
|
||||
else
|
||||
{
|
||||
maps\mp\_utility::setObjectiveScoreText( "allies", &"OBJECTIVES_ARENA_SCORE" );
|
||||
maps\mp\_utility::setObjectiveScoreText( "axis", &"OBJECTIVES_ARENA_SCORE" );
|
||||
}
|
||||
|
||||
maps\mp\_utility::setObjectiveHintText( "allies", &"OBJECTIVES_ARENA_HINT" );
|
||||
maps\mp\_utility::setObjectiveHintText( "axis", &"OBJECTIVES_ARENA_HINT" );
|
||||
level.spawnMins = ( 0, 0, 0 );
|
||||
level.spawnMaxs = ( 0, 0, 0 );
|
||||
maps\mp\gametypes\_spawnlogic::placeSpawnPoints( "mp_tdm_spawn_allies_start" );
|
||||
maps\mp\gametypes\_spawnlogic::placeSpawnPoints( "mp_tdm_spawn_axis_start" );
|
||||
maps\mp\gametypes\_spawnlogic::addSpawnPoints( "allies", "mp_tdm_spawn" );
|
||||
maps\mp\gametypes\_spawnlogic::addSpawnPoints( "axis", "mp_tdm_spawn" );
|
||||
level.mapCenter = maps\mp\gametypes\_spawnlogic::findBoxCenter( level.spawnMins, level.spawnMaxs );
|
||||
setmapcenter( level.mapCenter );
|
||||
allowed[0] = "dom";
|
||||
allowed[1] = "airdrop_pallet";
|
||||
allowed[2] = "arena";
|
||||
maps\mp\gametypes\_rank::registerScoreInfo( "capture", 200 );
|
||||
maps\mp\gametypes\_gameobjects::main( allowed );
|
||||
precacheFlag();
|
||||
thread arenaFlagWaiter();
|
||||
thread arenaTimeFlagWaiter();
|
||||
}
|
||||
|
||||
precacheFlag()
|
||||
{
|
||||
game["flagmodels"] = [];
|
||||
game["flagmodels"]["neutral"] = "prop_flag_neutral";
|
||||
game["flagmodels"]["allies"] = maps\mp\gametypes\_teams::getTeamFlagModel( "allies" );
|
||||
game["flagmodels"]["axis"] = maps\mp\gametypes\_teams::getTeamFlagModel( "axis" );
|
||||
precachemodel( game["flagmodels"]["neutral"] );
|
||||
precachemodel( game["flagmodels"]["allies"] );
|
||||
precachemodel( game["flagmodels"]["axis"] );
|
||||
precachestring( &"MP_CAPTURING_FLAG" );
|
||||
precachestring( &"MP_LOSING_FLAG" );
|
||||
precachestring( &"MP_DOM_YOUR_FLAG_WAS_CAPTURED" );
|
||||
precachestring( &"MP_DOM_ENEMY_FLAG_CAPTURED" );
|
||||
precachestring( &"MP_DOM_NEUTRAL_FLAG_CAPTURED" );
|
||||
precachestring( &"MP_ENEMY_FLAG_CAPTURED_BY" );
|
||||
precachestring( &"MP_NEUTRAL_FLAG_CAPTURED_BY" );
|
||||
precachestring( &"MP_FRIENDLY_FLAG_CAPTURED_BY" );
|
||||
}
|
||||
|
||||
arenaTimeFlagWaiter()
|
||||
{
|
||||
level endon( "down_to_one" );
|
||||
level endon( "game_end" );
|
||||
|
||||
for ( ;; )
|
||||
{
|
||||
timeLeft = maps\mp\gametypes\_gamelogic::getTimeRemaining();
|
||||
|
||||
if ( timeLeft < 61000 )
|
||||
break;
|
||||
|
||||
wait 1;
|
||||
}
|
||||
|
||||
level notify( "arena_flag_time" );
|
||||
thread arenaFlag();
|
||||
}
|
||||
|
||||
arenaFlagWaiter()
|
||||
{
|
||||
level endon( "game_end" );
|
||||
level endon( "arena_flag_time" );
|
||||
|
||||
for ( ;; )
|
||||
{
|
||||
if ( level.inGracePeriod == 0 )
|
||||
break;
|
||||
|
||||
wait 0.05;
|
||||
}
|
||||
|
||||
for ( ;; )
|
||||
{
|
||||
if ( getteamplayersalive( "axis" ) == 1 )
|
||||
{
|
||||
thread arenaFlag();
|
||||
level notify( "down_to_one" );
|
||||
break;
|
||||
}
|
||||
|
||||
if ( getteamplayersalive( "allies" ) == 1 )
|
||||
{
|
||||
thread arenaFlag();
|
||||
level notify( "down_to_one" );
|
||||
break;
|
||||
}
|
||||
|
||||
wait 1;
|
||||
}
|
||||
}
|
||||
|
||||
getSpawnPoint()
|
||||
{
|
||||
spawnteam = self.pers["team"];
|
||||
|
||||
if ( game["switchedsides"] )
|
||||
spawnteam = maps\mp\_utility::getOtherTeam( spawnteam );
|
||||
|
||||
if ( level.inGracePeriod )
|
||||
{
|
||||
spawnPoints = maps\mp\gametypes\_spawnlogic::getSpawnpointArray( "mp_tdm_spawn_" + spawnteam + "_start" );
|
||||
spawnPoint = maps\mp\gametypes\_spawnlogic::getSpawnpoint_Random( spawnPoints );
|
||||
}
|
||||
else
|
||||
{
|
||||
spawnPoints = maps\mp\gametypes\_spawnlogic::getTeamSpawnPoints( spawnteam );
|
||||
spawnPoint = maps\mp\gametypes\_spawnlogic::getSpawnpoint_NearTeam( spawnPoints );
|
||||
}
|
||||
|
||||
return spawnPoint;
|
||||
}
|
||||
|
||||
onSpawnPlayer()
|
||||
{
|
||||
self.usingObj = undefined;
|
||||
level notify( "spawned_player" );
|
||||
}
|
||||
|
||||
onNormalDeath( victim, attacker, lifeId )
|
||||
{
|
||||
score = maps\mp\gametypes\_rank::getScoreInfoValue( "kill" );
|
||||
attacker maps\mp\gametypes\_gamescore::giveTeamScoreForObjective( attacker.pers["team"], score );
|
||||
team = victim.team;
|
||||
|
||||
if ( game["state"] == "postgame" )
|
||||
attacker.finalKill = 1;
|
||||
}
|
||||
|
||||
onPlayerKilled( eInflictor, attacker, iDamage, sMeansOfDeath, sWeapon, vDir, sHitLoc, psOffsetTime, deathAnimDuration, killId )
|
||||
{
|
||||
thread checkAllowSpectating();
|
||||
}
|
||||
|
||||
onTimeLimit()
|
||||
{
|
||||
if ( game["status"] == "overtime" )
|
||||
winner = "forfeit";
|
||||
else if ( game["teamScores"]["allies"] == game["teamScores"]["axis"] )
|
||||
winner = "overtime";
|
||||
else if ( game["teamScores"]["axis"] > game["teamScores"]["allies"] )
|
||||
winner = "axis";
|
||||
else
|
||||
winner = "allies";
|
||||
|
||||
thread maps\mp\gametypes\_gamelogic::endGame( winner, game["strings"]["time_limit_reached"] );
|
||||
}
|
||||
|
||||
checkAllowSpectating()
|
||||
{
|
||||
wait 0.05;
|
||||
update = 0;
|
||||
|
||||
if ( !level.aliveCount[game["attackers"]] )
|
||||
{
|
||||
level.spectateOverride[game["attackers"]].allowEnemySpectate = 1;
|
||||
update = 1;
|
||||
}
|
||||
|
||||
if ( !level.aliveCount[game["defenders"]] )
|
||||
{
|
||||
level.spectateOverride[game["defenders"]].allowEnemySpectate = 1;
|
||||
update = 1;
|
||||
}
|
||||
|
||||
if ( update )
|
||||
maps\mp\gametypes\_spectating::updateSpectateSettings();
|
||||
}
|
||||
|
||||
arenaFlag()
|
||||
{
|
||||
level.lastStatus["allies"] = 0;
|
||||
level.lastStatus["axis"] = 0;
|
||||
arenaFlag = getentarray( "flag_arena", "targetname" );
|
||||
primaryFlags = getentarray( "flag_primary", "targetname" );
|
||||
secondaryFlags = getentarray( "flag_secondary", "targetname" );
|
||||
|
||||
if ( !isdefined( arenaFlag[0] ) )
|
||||
{
|
||||
if ( primaryFlags.size + secondaryFlags.size < 1 )
|
||||
{
|
||||
maps\mp\gametypes\_callbacksetup::AbortLevel();
|
||||
return;
|
||||
}
|
||||
|
||||
setupDomFlag( primaryFlags, secondaryFlags );
|
||||
}
|
||||
else
|
||||
level.arenaFlag = arenaFlag[0];
|
||||
|
||||
trigger = level.arenaFlag;
|
||||
|
||||
if ( isdefined( trigger.target ) )
|
||||
visuals[0] = getent( trigger.target, "targetname" );
|
||||
else
|
||||
{
|
||||
visuals[0] = spawn( "script_model", trigger.origin );
|
||||
visuals[0].angles = trigger.angles;
|
||||
}
|
||||
|
||||
visuals[0] setmodel( game["flagmodels"]["neutral"] );
|
||||
|
||||
arenaFlag = maps\mp\gametypes\_gameobjects::createUseObject( "neutral", trigger, visuals, ( 0, 0, 100 ) );
|
||||
arenaFlag maps\mp\gametypes\_gameobjects::allowUse( "enemy" );
|
||||
arenaFlag maps\mp\gametypes\_gameobjects::setUseTime( 20.0 );
|
||||
arenaFlag maps\mp\gametypes\_gameobjects::setUseText( &"MP_CAPTURING_FLAG" );
|
||||
label = arenaFlag maps\mp\gametypes\_gameobjects::getLabel();
|
||||
arenaFlag.label = label;
|
||||
arenaFlag maps\mp\gametypes\_gameobjects::set2DIcon( "friendly", "compass_waypoint_defend" );
|
||||
arenaFlag maps\mp\gametypes\_gameobjects::set3DIcon( "friendly", "waypoint_defend" );
|
||||
arenaFlag maps\mp\gametypes\_gameobjects::set2DIcon( "enemy", "compass_waypoint_captureneutral" );
|
||||
arenaFlag maps\mp\gametypes\_gameobjects::set3DIcon( "enemy", "waypoint_captureneutral" );
|
||||
arenaFlag maps\mp\gametypes\_gameobjects::setVisibleTeam( "any" );
|
||||
arenaFlag.onUse = ::onUse;
|
||||
arenaFlag.onBeginUse = ::onBeginUse;
|
||||
arenaFlag.onUseUpdate = ::onUseUpdate;
|
||||
arenaFlag.onEndUse = ::onEndUse;
|
||||
arenaFlag.isArena = 1;
|
||||
iprintlnbold( "Arena flag spawned" );
|
||||
level.arenaFlag playsound( "flag_spawned" );
|
||||
traceStart = visuals[0].origin + ( 0, 0, 32 );
|
||||
traceEnd = visuals[0].origin + ( 0, 0, -32 );
|
||||
trace = bullettrace( traceStart, traceEnd, 0, undefined );
|
||||
upangles = vectortoangles( trace["normal"] );
|
||||
arenaFlag.baseeffectforward = anglestoforward( upangles );
|
||||
arenaFlag.baseeffectright = anglestoright( upangles );
|
||||
arenaFlag.baseeffectpos = trace["position"];
|
||||
arenaFlag.levelFlag = level.arenaFlag;
|
||||
level.arenaFlag = arenaFlag;
|
||||
}
|
||||
|
||||
setupDomFlag( primaryFlags, secondaryFlags )
|
||||
{
|
||||
for ( index = 0; index < index.size; index++ )
|
||||
{
|
||||
label = primaryFlags[index].script_label;
|
||||
|
||||
if ( label != "_b" )
|
||||
{
|
||||
primaryFlags[index] delete();
|
||||
continue;
|
||||
}
|
||||
|
||||
level.arenaFlag = primaryFlags[index];
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
onDeadEvent( team )
|
||||
{
|
||||
if ( team == game["attackers"] )
|
||||
level thread arena_endGame( game["defenders"], game["strings"][game["attackers"] + "_eliminated"] );
|
||||
else if ( team == game["defenders"] )
|
||||
level thread arena_endGame( game["attackers"], game["strings"][game["defenders"] + "_eliminated"] );
|
||||
}
|
||||
|
||||
arena_endGame( winningTeam, endReasonText )
|
||||
{
|
||||
thread maps\mp\gametypes\_gamelogic::endGame( winningTeam, endReasonText );
|
||||
}
|
||||
|
||||
giveFlagCaptureXP( touchList )
|
||||
{
|
||||
level endon( "game_ended" );
|
||||
wait 0.05;
|
||||
maps\mp\_utility::WaitTillSlowProcessAllowed();
|
||||
players = getarraykeys( touchList );
|
||||
|
||||
for ( index = 0; index < players.size; index++ )
|
||||
{
|
||||
player = touchList[players[index]].player;
|
||||
player thread [[ level.onXPEvent ]]( "capture" );
|
||||
maps\mp\gametypes\_gamescore::givePlayerScore( "capture", player );
|
||||
player thread maps\mp\_matchdata::logGameEvent( "capture", player.origin );
|
||||
}
|
||||
}
|
||||
|
||||
onUse( player )
|
||||
{
|
||||
team = player.pers["team"];
|
||||
oldTeam = maps\mp\gametypes\_gameobjects::getOwnerTeam();
|
||||
label = maps\mp\gametypes\_gameobjects::getLabel();
|
||||
|
||||
player logString( "flag captured: " + self.label );
|
||||
|
||||
self.captureTime = gettime();
|
||||
maps\mp\gametypes\_gameobjects::setOwnerTeam( team );
|
||||
maps\mp\gametypes\_gameobjects::set2DIcon( "enemy", "compass_waypoint_capture" );
|
||||
maps\mp\gametypes\_gameobjects::set3DIcon( "enemy", "waypoint_capture" );
|
||||
self.visuals[0] setmodel( game["flagmodels"][team] );
|
||||
|
||||
if ( oldTeam == "neutral" )
|
||||
{
|
||||
otherTeam = maps\mp\_utility::getOtherTeam( team );
|
||||
thread maps\mp\_utility::printAndSoundOnEveryone( team, otherTeam, &"MP_NEUTRAL_FLAG_CAPTURED_BY", &"MP_NEUTRAL_FLAG_CAPTURED_BY", "mp_war_objective_taken", undefined, player );
|
||||
statusDialog( "secured_a", team );
|
||||
statusDialog( "enemy_has_a", otherTeam );
|
||||
}
|
||||
else
|
||||
thread maps\mp\_utility::printAndSoundOnEveryone( team, oldTeam, &"MP_ENEMY_FLAG_CAPTURED_BY", &"MP_FRIENDLY_FLAG_CAPTURED_BY", "mp_war_objective_taken", "mp_war_objective_lost", player );
|
||||
|
||||
thread giveFlagCaptureXP( self.touchList[team] );
|
||||
player notify( "objective", "captured" );
|
||||
thread flagCaptured( team, &"MP_DOM_NEUTRAL_FLAG_CAPTURED" );
|
||||
}
|
||||
|
||||
onBeginUse( player )
|
||||
{
|
||||
ownerTeam = maps\mp\gametypes\_gameobjects::getOwnerTeam();
|
||||
self.didStatusNotify = 0;
|
||||
|
||||
if ( ownerTeam == "neutral" )
|
||||
{
|
||||
otherTeam = maps\mp\_utility::getOtherTeam( player.pers["team"] );
|
||||
statusDialog( "securing_a", player.pers["team"] );
|
||||
self.objPoints[player.pers["team"]] thread maps\mp\gametypes\_objpoints::startFlashing();
|
||||
statusDialog( "losing_a", otherTeam );
|
||||
return;
|
||||
}
|
||||
|
||||
self.objPoints["allies"] thread maps\mp\gametypes\_objpoints::startFlashing();
|
||||
self.objPoints["axis"] thread maps\mp\gametypes\_objpoints::startFlashing();
|
||||
}
|
||||
|
||||
onUseUpdate( team, progress, change )
|
||||
{
|
||||
if ( progress > 0.05 && change && !self.didStatusNotify )
|
||||
{
|
||||
otherTeam = maps\mp\_utility::getOtherTeam( team );
|
||||
statusDialog( "losing_a", otherTeam );
|
||||
statusDialog( "securing_a", team );
|
||||
self.didStatusNotify = 1;
|
||||
}
|
||||
}
|
||||
|
||||
onEndUse( team, player, success )
|
||||
{
|
||||
self.objPoints["allies"] thread maps\mp\gametypes\_objpoints::stopFlashing();
|
||||
self.objPoints["axis"] thread maps\mp\gametypes\_objpoints::stopFlashing();
|
||||
}
|
||||
|
||||
statusDialog( dialog, team )
|
||||
{
|
||||
if ( gettime() < level.lastStatus[team ] + 6000 )
|
||||
return;
|
||||
|
||||
thread delayedLeaderDialog( dialog, team );
|
||||
level.lastStatus[team ] = gettime();
|
||||
}
|
||||
|
||||
delayedLeaderDialog( sound, team )
|
||||
{
|
||||
level endon( "game_ended" );
|
||||
wait 0.1;
|
||||
maps\mp\_utility::WaitTillSlowProcessAllowed();
|
||||
maps\mp\_utility::leaderDialog( sound, team );
|
||||
}
|
||||
|
||||
flagCaptured( winningTeam, endReasonText )
|
||||
{
|
||||
maps\mp\gametypes\_gamelogic::endGame( winningTeam, endReasonText );
|
||||
}
|
3
zone_raw/arena/maps/mp/gametypes/arena.txt
Normal file
3
zone_raw/arena/maps/mp/gametypes/arena.txt
Normal file
@ -0,0 +1,3 @@
|
||||
"MPUI_ARENA"
|
||||
"MPUI_ARENA_RECIPE_NAME"
|
||||
"MPUI_ARENA_RECIPE_DESC"
|
371
zone_raw/arena/maps/mp/gametypes/gtnw.gsc
Normal file
371
zone_raw/arena/maps/mp/gametypes/gtnw.gsc
Normal file
@ -0,0 +1,371 @@
|
||||
#include common_scripts\utility;
|
||||
#include maps\mp\_utility;
|
||||
#include maps\mp\gametypes\_hud_util;
|
||||
|
||||
main()
|
||||
{
|
||||
maps\mp\gametypes\_globallogic::init();
|
||||
maps\mp\gametypes\_callbacksetup::SetupCallbacks();
|
||||
maps\mp\gametypes\_globallogic::SetupCallbacks();
|
||||
|
||||
registerRoundSwitchDvar( level.gameType, 0, 0, 9 );
|
||||
registerTimeLimitDvar( level.gameType, 10 );
|
||||
setOverrideWatchDvar( "scorelimit", 0 );
|
||||
registerRoundLimitDvar( level.gameType, 1 );
|
||||
registerWinLimitDvar( level.gameType, 1 );
|
||||
registerNumLivesDvar( level.gameType, 0 );
|
||||
registerHalfTimeDvar( level.gameType, 0 );
|
||||
|
||||
level.gtnw = true;
|
||||
level.teamBased = true;
|
||||
level.onPrecacheGameType = ::onPrecacheGameType;
|
||||
level.onStartGameType = ::onStartGameType;
|
||||
level.getSpawnPoint = ::getSpawnPoint;
|
||||
level.onTimeLimit = ::onTimeLimit;
|
||||
level.onNormalDeath = ::onNormalDeath;
|
||||
|
||||
game["dialog"]["offense_obj"] = "capture_obj";
|
||||
game["dialog"]["defense_obj"] = "capture_obj";
|
||||
game["dialog"]["gametype"] = "gtw";
|
||||
|
||||
level thread onPlayerConnect();
|
||||
}
|
||||
|
||||
onPlayerConnect()
|
||||
{
|
||||
for ( ;; )
|
||||
{
|
||||
level waittill( "connected", player );
|
||||
player.touchingNuke = false; // Custom
|
||||
player.useBar = player createPrimaryProgressBar();
|
||||
player.useBar.useTime = 100;
|
||||
player.useBar hideElem();
|
||||
player.useBarText = player createPrimaryProgressBarText();
|
||||
player.useBarText setText( &"MP_CAPTURING_NUKE" );
|
||||
player.useBarText hideElem();
|
||||
}
|
||||
}
|
||||
|
||||
onPrecacheGameType()
|
||||
{
|
||||
precacheShader( "waypoint_defend" );
|
||||
precacheShader( "waypoint_capture" );
|
||||
precacheString( &"MP_CAPTURING_NUKE" );
|
||||
}
|
||||
|
||||
onStartGameType()
|
||||
{
|
||||
if ( !isdefined( game["switchedsides"] ) )
|
||||
game["switchedsides"] = false;
|
||||
|
||||
if ( !isdefined( game["original_defenders"] ) )
|
||||
game["original_defenders"] = game["defenders"];
|
||||
|
||||
if ( game["switchedsides"] )
|
||||
{
|
||||
oldAttackers = game["attackers"];
|
||||
oldDefenders = game["defenders"];
|
||||
game["attackers"] = oldDefenders;
|
||||
game["defenders"] = oldAttackers;
|
||||
}
|
||||
|
||||
setClientNameMode( "auto_change" );
|
||||
|
||||
setObjectiveText( game["attackers"], &"OBJECTIVES_GTNW" );
|
||||
setObjectiveText( game["defenders"], &"OBJECTIVES_GTNW" );
|
||||
setObjectiveHintText( game["attackers"], &"OBJECTIVES_GTNW_HINT" );
|
||||
setObjectiveHintText( game["defenders"], &"OBJECTIVES_GTNW_HINT" );
|
||||
setObjectiveScoreText( game["attackers"], &"OBJECTIVES_GTNW_SCORE" );
|
||||
setObjectiveScoreText( game["defenders"], &"OBJECTIVES_GTNW_SCORE" );
|
||||
|
||||
level.spawnMins = ( 0, 0, 0 );
|
||||
level.spawnMaxs = ( 0, 0, 0 );
|
||||
maps\mp\gametypes\_spawnlogic::placeSpawnPoints( "mp_ctf_spawn_allies_start" );
|
||||
maps\mp\gametypes\_spawnlogic::placeSpawnPoints( "mp_ctf_spawn_axis_start" );
|
||||
maps\mp\gametypes\_spawnlogic::addSpawnPoints( "allies", "mp_ctf_spawn_allies" );
|
||||
maps\mp\gametypes\_spawnlogic::addSpawnPoints( "axis", "mp_ctf_spawn_axis" );
|
||||
|
||||
level.mapCenter = maps\mp\gametypes\_spawnlogic::findBoxCenter( level.spawnMins, level.spawnMaxs );
|
||||
setMapCenter( level.mapCenter );
|
||||
|
||||
maps\mp\gametypes\_rank::registerScoreInfo( "kill", 50 );
|
||||
maps\mp\gametypes\_rank::registerScoreInfo( "headshot", 100 );
|
||||
maps\mp\gametypes\_rank::registerScoreInfo( "assist", 20 );
|
||||
maps\mp\gametypes\_rank::registerScoreInfo( "capture", 500 );
|
||||
|
||||
allowed[0] = "gtnw";
|
||||
allowed[1] = "dd_bombzone";
|
||||
|
||||
maps\mp\gametypes\_gameobjects::main( allowed );
|
||||
|
||||
thread setupNukeSite();
|
||||
}
|
||||
|
||||
setupNukeSite()
|
||||
{
|
||||
// Check for GTNW ents first, as some maps may include them. Otherwise use DD overtime bombsite.
|
||||
nukeZone = getEnt( "gtnw_zone", "targetname" );
|
||||
bombZones = getEntArray( "dd_bombzone", "targetname" );
|
||||
|
||||
// Do not check here nukeZone as some maps do not include them, check bombZones
|
||||
assertEx( isDefined( bombZones ), "DD Zone doesn't exist in this map" );
|
||||
|
||||
foreach ( bombZone in bombZones )
|
||||
{
|
||||
visuals = getEntArray( bombZone.target, "targetname" );
|
||||
label = bombZone.script_label;
|
||||
collision = getEnt( "dd_bombzone_clip" + label, "targetname" );
|
||||
|
||||
if ( isDefined( nukeZone ) || label == "_a" || label == "_b" )
|
||||
{
|
||||
bombZone delete ();
|
||||
visuals[0] delete ();
|
||||
collision delete ();
|
||||
}
|
||||
|
||||
if ( !isDefined( nukeZone ) && label == "_c" )
|
||||
{
|
||||
nukeZone = bombZone;
|
||||
}
|
||||
}
|
||||
|
||||
level.lastStatus["allies"] = 0;
|
||||
level.lastStatus["axis"] = 0;
|
||||
|
||||
nukeSite = maps\mp\gametypes\_gameobjects::createUseObject( "neutral", nukeZone, [], ( 0, 0, 100 ) );
|
||||
nukeSite maps\mp\gametypes\_gameobjects::set2DIcon( "friendly", "waypoint_defend" );
|
||||
nukeSite maps\mp\gametypes\_gameobjects::set3DIcon( "friendly", "waypoint_defend" );
|
||||
nukeSite maps\mp\gametypes\_gameobjects::set2DIcon( "enemy", "waypoint_captureneutral" );
|
||||
nukeSite maps\mp\gametypes\_gameobjects::set3DIcon( "enemy", "waypoint_captureneutral" );
|
||||
nukeSite maps\mp\gametypes\_gameobjects::allowUse( "none" );
|
||||
nukeSite maps\mp\gametypes\_gameobjects::setVisibleTeam( "any" );
|
||||
nukeSite.onBeginUse = ::onBeginUse;
|
||||
nukeSite.onEndUse = ::onEndUse;
|
||||
nukeSite.noUseBar = true;
|
||||
nukeSite.touchRadius = 100;
|
||||
nukeSite thread scoring( nukeZone.origin );
|
||||
|
||||
thread waitForNuke();
|
||||
}
|
||||
|
||||
waitForNuke()
|
||||
{
|
||||
level endon( "game_ended" );
|
||||
level waittill( "nuke_death" );
|
||||
team = level.nukeOwner.pers["team"];
|
||||
|
||||
thread maps\mp\gametypes\_gamelogic::endgame( team, game["strings"][getOtherTeam( team ) + "_eliminated"] );
|
||||
}
|
||||
|
||||
onBeginUse( player )
|
||||
{
|
||||
player.useBar showElem();
|
||||
player.useBarText showElem();
|
||||
return;
|
||||
}
|
||||
|
||||
onEndUse( team, player, success )
|
||||
{
|
||||
player.useBar hideElem();
|
||||
player.useBarText hideElem();
|
||||
return;
|
||||
}
|
||||
|
||||
scoring( origin )
|
||||
{
|
||||
level endon( "game_ended" );
|
||||
|
||||
for ( ;; )
|
||||
{
|
||||
touching["allies"] = 0;
|
||||
touching["axis"] = 0;
|
||||
|
||||
foreach ( player in level.players )
|
||||
{
|
||||
if ( isAlive( player ) && distance2D( origin, player.origin ) < self.touchRadius )
|
||||
{
|
||||
if ( !player.touchingNuke )
|
||||
{
|
||||
player.startTouchTime = getTime();
|
||||
}
|
||||
|
||||
player.touchingNuke = true;
|
||||
touching[player.pers["team"]]++;
|
||||
player.useBar showElem();
|
||||
player.useBarText showElem();
|
||||
}
|
||||
else
|
||||
{
|
||||
if ( player.touchingNuke )
|
||||
{
|
||||
player.startTouchTime = undefined;
|
||||
}
|
||||
|
||||
player.touchingNuke = false;
|
||||
player.useBar hideElem();
|
||||
player.useBarText hideElem();
|
||||
}
|
||||
}
|
||||
|
||||
if ( touching["allies"] == 0 && touching["axis"] == 0 )
|
||||
{
|
||||
setDvar( "ui_danger_team", "none" );
|
||||
self maps\mp\gametypes\_gameobjects::set2DIcon( "enemy", "waypoint_captureneutral" );
|
||||
self maps\mp\gametypes\_gameobjects::set3DIcon( "enemy", "waypoint_captureneutral" );
|
||||
self maps\mp\gametypes\_gameobjects::setOwnerTeam( "none" );
|
||||
wait 1;
|
||||
continue;
|
||||
}
|
||||
|
||||
self maps\mp\gametypes\_gameobjects::set2DIcon( "friendly", "waypoint_defend" );
|
||||
self maps\mp\gametypes\_gameobjects::set3DIcon( "friendly", "waypoint_defend" );
|
||||
self maps\mp\gametypes\_gameobjects::set2DIcon( "enemy", "waypoint_capture" );
|
||||
self maps\mp\gametypes\_gameobjects::set3DIcon( "enemy", "waypoint_capture" );
|
||||
|
||||
if ( touching["allies"] < touching["axis"] )
|
||||
{
|
||||
if ( maps\mp\gametypes\_gamescore::_getTeamScore( "axis" ) < 100 )
|
||||
{
|
||||
maps\mp\gametypes\_gamescore::giveTeamScoreForObjective( "axis", 1 );
|
||||
}
|
||||
|
||||
self thread setUseBarScore( "axis" );
|
||||
setDvar( "ui_danger_team", "allies" );
|
||||
self maps\mp\gametypes\_gameobjects::setOwnerTeam( "axis" );
|
||||
|
||||
if ( maps\mp\gametypes\_gamescore::_getTeamScore( "axis" ) >= 100 )
|
||||
{
|
||||
self maps\mp\gametypes\_gameobjects::allowUse( "none" );
|
||||
activateNuke( "axis" );
|
||||
return;
|
||||
}
|
||||
}
|
||||
else if ( touching["allies"] > touching["axis"] )
|
||||
{
|
||||
if ( maps\mp\gametypes\_gamescore::_getTeamScore( "allies" ) < 100 )
|
||||
{
|
||||
maps\mp\gametypes\_gamescore::giveTeamScoreForObjective( "allies", 1 );
|
||||
}
|
||||
|
||||
self thread setUseBarScore( "allies" );
|
||||
setDvar( "ui_danger_team", "axis" );
|
||||
self maps\mp\gametypes\_gameobjects::setOwnerTeam( "allies" );
|
||||
|
||||
if ( maps\mp\gametypes\_gamescore::_getTeamScore( "allies" ) >= 100 )
|
||||
{
|
||||
self maps\mp\gametypes\_gameobjects::allowUse( "none" );
|
||||
activateNuke( "allies" );
|
||||
return;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
self maps\mp\gametypes\_gameobjects::set2DIcon( "enemy", "waypoint_captureneutral" );
|
||||
self maps\mp\gametypes\_gameobjects::set3DIcon( "enemy", "waypoint_captureneutral" );
|
||||
|
||||
self maps\mp\gametypes\_gameobjects::setOwnerTeam( "none" );
|
||||
setDvar( "ui_danger_team", "contested" );
|
||||
}
|
||||
|
||||
wait 1;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
activateNuke( team )
|
||||
{
|
||||
self nukeCaptured( team );
|
||||
self maps\mp\gametypes\_gameobjects::setVisibleTeam( "none" );
|
||||
self maps\mp\gametypes\_gameobjects::allowUse( "none" );
|
||||
// Reward the player who has been on the capture for the longest recently.
|
||||
bestTime = 99999999;
|
||||
level.nukeOwner = undefined;
|
||||
|
||||
foreach ( player in level.players )
|
||||
{
|
||||
player.useBar hideElem();
|
||||
player.useBarText hideElem();
|
||||
|
||||
if ( player.team == team && player.touchingNuke )
|
||||
{
|
||||
if ( player.startTouchTime < bestTime )
|
||||
{
|
||||
level.nukeOwner = player;
|
||||
bestTime = player.startTouchTime;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
assert( isDefined( level.nukeOwner ) );
|
||||
level.nukeOwner maps\mp\killstreaks\_nuke::tryUseNuke( 1 );
|
||||
}
|
||||
|
||||
nukeCaptured( team )
|
||||
{
|
||||
level endon( "game_ended" );
|
||||
wait 0.05;
|
||||
WaitTillSlowProcessAllowed();
|
||||
|
||||
foreach ( player in level.players )
|
||||
{
|
||||
if ( player.team == team )
|
||||
{
|
||||
player thread maps\mp\gametypes\_hud_message::SplashNotify( "captured_nuke", maps\mp\gametypes\_rank::getScoreInfoValue( "capture" ) );
|
||||
player thread [[level.onXPEvent]]( "capture" );
|
||||
maps\mp\gametypes\_gamescore::givePlayerScore( "capture", player );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
setUseBarScore( team )
|
||||
{
|
||||
teamScore = getTeamScore( team );
|
||||
|
||||
foreach ( player in level.players )
|
||||
{
|
||||
if ( player.team == team && player.touchingNuke )
|
||||
player.useBar updateBar( teamScore / 100, 0 );
|
||||
}
|
||||
}
|
||||
|
||||
getSpawnPoint()
|
||||
{
|
||||
spawnteam = self.pers["team"];
|
||||
|
||||
if ( game["switchedsides"] )
|
||||
spawnteam = getOtherTeam( spawnteam );
|
||||
|
||||
if ( level.inGracePeriod )
|
||||
{
|
||||
spawnPoints = getentarray( "mp_ctf_spawn_" + spawnteam + "_start", "classname" );
|
||||
spawnPoint = maps\mp\gametypes\_spawnlogic::getSpawnpoint_Random( spawnPoints );
|
||||
}
|
||||
else
|
||||
{
|
||||
spawnPoints = maps\mp\gametypes\_spawnlogic::getTeamSpawnPoints( spawnteam );
|
||||
spawnPoint = maps\mp\gametypes\_spawnlogic::getSpawnpoint_NearTeam( spawnPoints );
|
||||
}
|
||||
|
||||
return spawnPoint;
|
||||
}
|
||||
|
||||
onTimeLimit()
|
||||
{
|
||||
if ( game["teamScores"]["allies"] == game["teamScores"]["axis"] )
|
||||
{
|
||||
thread maps\mp\gametypes\_gamelogic::endGame( "tie", game["strings"]["time_limit_reached"] );
|
||||
}
|
||||
else if ( game["teamScores"]["axis"] > game["teamScores"]["allies"] )
|
||||
{
|
||||
thread maps\mp\gametypes\_gamelogic::endGame( "axis", game["strings"]["time_limit_reached"] );
|
||||
}
|
||||
else
|
||||
{
|
||||
thread maps\mp\gametypes\_gamelogic::endGame( "allies", game["strings"]["time_limit_reached"] );
|
||||
}
|
||||
}
|
||||
|
||||
onNormalDeath( victim, attacker, lifeId )
|
||||
{
|
||||
return;
|
||||
}
|
3
zone_raw/arena/maps/mp/gametypes/gtnw.txt
Normal file
3
zone_raw/arena/maps/mp/gametypes/gtnw.txt
Normal file
@ -0,0 +1,3 @@
|
||||
"MPUI_GTNW"
|
||||
"MPUI_GTNW_RECIPE_NAME"
|
||||
"MPUI_GTNW_RECIPE_DESC"
|
1
zone_raw/arena/mod
Normal file
1
zone_raw/arena/mod
Normal file
@ -0,0 +1 @@
|
||||
Legalize Nuclear Bombs
|
215
zone_raw/arena/mp/basemaps.arena
Normal file
215
zone_raw/arena/mp/basemaps.arena
Normal file
@ -0,0 +1,215 @@
|
||||
{
|
||||
map "bonus_map"
|
||||
longname "DLC_MAPS"
|
||||
description "DLC_MAPS_DESC"
|
||||
mapimage "loadscreen_mp_bonusmaps"
|
||||
mappack "0"
|
||||
}
|
||||
|
||||
{
|
||||
map "mp_seatown"
|
||||
longname "MPUI_SEATOWN"
|
||||
gametype "dm war sab sab2 dom sd sd2 hc thc ctf koth arena gtnw"
|
||||
description "MPUI_DESC_MAP_SEATOWN"
|
||||
mapimage "preview_mp_seatown"
|
||||
mapoverlay "compass_overlay_map_blank"
|
||||
allieschar "sas_urban"
|
||||
axischar "opforce_henchmen"
|
||||
environment "desert"
|
||||
mappack "0"
|
||||
}
|
||||
|
||||
{
|
||||
map "mp_dome"
|
||||
longname "MPUI_DOME"
|
||||
gametype "dm war sab sab2 dom sd sd2 hc thc ctf koth arena gtnw"
|
||||
description "MPUI_DESC_MAP_DOME"
|
||||
mapimage "preview_mp_dome"
|
||||
mapoverlay "compass_overlay_map_blank"
|
||||
allieschar "delta_multicam"
|
||||
axischar "opforce_urban"
|
||||
environment "desert"
|
||||
mappack "0"
|
||||
}
|
||||
|
||||
{
|
||||
map "mp_plaza2"
|
||||
longname "MPUI_ARKADEN"
|
||||
gametype "dm war sab sab2 dom sd sd2 hc thc ctf koth arena gtnw"
|
||||
description "MPUI_DESC_MAP_ARKADEN"
|
||||
mapimage "preview_mp_plaza2"
|
||||
mapoverlay "compass_overlay_map_blank"
|
||||
allieschar "sas_urban"
|
||||
axischar "opforce_urban"
|
||||
environment "urban"
|
||||
mappack "0"
|
||||
}
|
||||
|
||||
{
|
||||
map "mp_mogadishu"
|
||||
longname "MPUI_BAKAARA"
|
||||
gametype "dm war sab sab2 dom sd sd2 hc thc ctf koth arena gtnw"
|
||||
description "MPUI_DESC_MAP_BAKAARA"
|
||||
mapimage "preview_mp_mogadishu"
|
||||
mapoverlay "compass_overlay_map_blank"
|
||||
allieschar "pmc_africa"
|
||||
axischar "opforce_africa"
|
||||
environment "urban_militia"
|
||||
mappack "0"
|
||||
}
|
||||
|
||||
{
|
||||
map "mp_paris"
|
||||
longname "MPUI_RESISTANCE"
|
||||
gametype "dm war sab sab2 dom sd sd2 hc thc ctf koth arena gtnw"
|
||||
description "MPUI_DESC_MAP_RESISTANCE"
|
||||
mapimage "preview_mp_paris"
|
||||
mapoverlay "compass_overlay_map_blank"
|
||||
allieschar "gign_paris"
|
||||
axischar "opforce_urban"
|
||||
environment "urban"
|
||||
mappack "0"
|
||||
}
|
||||
|
||||
{
|
||||
map "mp_exchange"
|
||||
longname "MPUI_DOWNTURN"
|
||||
gametype "dm war sab sab2 dom sd sd2 hc thc ctf koth arena gtnw"
|
||||
description "MPUI_DESC_MAP_DOWNTURN"
|
||||
mapimage "preview_mp_exchange"
|
||||
mapoverlay "compass_overlay_map_blank"
|
||||
allieschar "delta_multicam"
|
||||
axischar "opforce_air"
|
||||
environment "urban"
|
||||
mappack "0"
|
||||
}
|
||||
|
||||
{
|
||||
map "mp_bootleg"
|
||||
longname "MPUI_BOOTLEG"
|
||||
gametype "dm war sab sab2 dom sd sd2 hc thc ctf koth arena gtnw"
|
||||
description "MPUI_DESC_MAP_BOOTLEG"
|
||||
mapimage "preview_mp_bootleg"
|
||||
mapoverlay "compass_overlay_map_blank"
|
||||
allieschar "pmc_africa"
|
||||
axischar "opforce_urban"
|
||||
environment "urban"
|
||||
mappack "0"
|
||||
}
|
||||
|
||||
{
|
||||
map "mp_carbon"
|
||||
longname "MPUI_CARBON"
|
||||
gametype "dm war sab sab2 dom sd sd2 hc thc ctf koth arena gtnw"
|
||||
description "MPUI_DESC_MAP_CARBON"
|
||||
mapimage "preview_mp_carbon"
|
||||
mapoverlay "compass_overlay_map_blank"
|
||||
allieschar "pmc_africa"
|
||||
axischar "opforce_africa"
|
||||
environment "forest_militia"
|
||||
mappack "0"
|
||||
}
|
||||
|
||||
{
|
||||
map "mp_hardhat"
|
||||
longname "MPUI_HARDHAT"
|
||||
gametype "dm war sab sab2 dom sd sd2 hc thc ctf koth arena gtnw"
|
||||
description "MPUI_DESC_MAP_HARDHAT"
|
||||
mapimage "preview_mp_hardhat"
|
||||
mapoverlay "compass_overlay_map_blank"
|
||||
allieschar "delta_multicam"
|
||||
axischar "opforce_air"
|
||||
environment "urban"
|
||||
mappack "0"
|
||||
}
|
||||
|
||||
{
|
||||
map "mp_alpha"
|
||||
longname "MPUI_LOCKDOWN"
|
||||
gametype "dm war sab sab2 dom sd sd2 hc thc ctf koth arena gtnw"
|
||||
description "MPUI_DESC_MAP_LOCKDOWN"
|
||||
mapimage "preview_mp_alpha"
|
||||
mapoverlay "compass_overlay_map_blank"
|
||||
allieschar "delta_multicam"
|
||||
axischar "opforce_urban"
|
||||
environment "urban"
|
||||
mappack "0"
|
||||
}
|
||||
|
||||
{
|
||||
map "mp_village"
|
||||
longname "MPUI_VILLAGE"
|
||||
gametype "dm war sab sab2 dom sd sd2 hc thc ctf koth arena gtnw"
|
||||
description "MPUI_DESC_MAP_VILLAGE"
|
||||
mapimage "preview_mp_village"
|
||||
mapoverlay "compass_overlay_map_blank"
|
||||
allieschar "pmc_africa"
|
||||
axischar "opforce_africa"
|
||||
environment "forest_militia"
|
||||
mappack "0"
|
||||
}
|
||||
|
||||
{
|
||||
map "mp_lambeth"
|
||||
longname "MPUI_FALLEN"
|
||||
gametype "dm war sab sab2 dom sd sd2 hc thc ctf koth arena gtnw"
|
||||
description "MPUI_DESC_MAP_FALLEN"
|
||||
mapimage "preview_mp_lambeth"
|
||||
mapoverlay "compass_overlay_map_blank"
|
||||
allieschar "delta_multicam"
|
||||
axischar "opforce_woodland"
|
||||
environment "forest"
|
||||
mappack "0"
|
||||
}
|
||||
|
||||
{
|
||||
map "mp_radar"
|
||||
longname "MPUI_OUTPOST"
|
||||
gametype "dm war sab sab2 dom sd sd2 hc thc ctf koth arena gtnw"
|
||||
description "MPUI_DESC_MAP_OUTPOST"
|
||||
mapimage "preview_mp_radar"
|
||||
mapoverlay "compass_overlay_map_blank"
|
||||
allieschar "delta_multicam"
|
||||
axischar "opforce_snow"
|
||||
environment "arctic"
|
||||
mappack "0"
|
||||
}
|
||||
|
||||
{
|
||||
map "mp_interchange"
|
||||
longname "MPUI_INTERCHANGE"
|
||||
gametype "dm war sab sab2 dom sd sd2 hc thc ctf koth arena gtnw"
|
||||
description "MPUI_DESC_MAP_INTERCHANGE"
|
||||
mapimage "preview_mp_interchange"
|
||||
mapoverlay "compass_overlay_map_blank"
|
||||
allieschar "delta_multicam"
|
||||
axischar "opforce_woodland"
|
||||
environment "urban"
|
||||
mappack "0"
|
||||
}
|
||||
|
||||
{
|
||||
map "mp_underground"
|
||||
longname "MPUI_UNDERGROUND"
|
||||
gametype "dm war sab sab2 dom sd sd2 hc thc ctf koth arena gtnw"
|
||||
description "MPUI_DESC_MAP_UNDERGROUND"
|
||||
mapimage "preview_mp_underground"
|
||||
mapoverlay "compass_overlay_map_blank"
|
||||
allieschar "sas_urban"
|
||||
axischar "opforce_air"
|
||||
environment "urban"
|
||||
mappack "0"
|
||||
}
|
||||
|
||||
{
|
||||
map "mp_bravo"
|
||||
longname "MPUI_MISSION"
|
||||
gametype "dm war sab sab2 dom sd sd2 hc thc ctf koth arena gtnw"
|
||||
description "MPUI_DESC_MAP_MISSION"
|
||||
mapimage "preview_mp_bravo"
|
||||
mapoverlay "compass_overlay_map_blank"
|
||||
allieschar "pmc_africa"
|
||||
axischar "opforce_africa"
|
||||
environment "forest_militia"
|
||||
mappack "0"
|
||||
}
|
BIN
zone_raw/arena/mp/recipes/arena.recipe
Normal file
BIN
zone_raw/arena/mp/recipes/arena.recipe
Normal file
Binary file not shown.
BIN
zone_raw/arena/mp/recipes/gtnw.recipe
Normal file
BIN
zone_raw/arena/mp/recipes/gtnw.recipe
Normal file
Binary file not shown.
25
zone_raw/arena/zone_source/arena.zone
Normal file
25
zone_raw/arena/zone_source/arena.zone
Normal file
@ -0,0 +1,25 @@
|
||||
// Call Of Duty: Modern Warfare 3
|
||||
>game,IW5
|
||||
>name,mod
|
||||
|
||||
localize,mod
|
||||
|
||||
// Add custom gamemodes
|
||||
rawfile,maps/mp/gametypes/_gametypes.txt
|
||||
|
||||
// Gamemode scripts
|
||||
rawfile,maps/mp/gametypes/arena.gsc
|
||||
rawfile,maps/mp/gametypes/gtnw.gsc
|
||||
|
||||
// Copied from war.recipe
|
||||
rawfile,mp/recipes/arena.recipe
|
||||
rawfile,mp/recipes/gtnw.recipe
|
||||
|
||||
// Maybe we don't need this
|
||||
rawfile,mp/basemaps.arena
|
||||
|
||||
// UI Loc strings
|
||||
rawfile,maps/mp/gametypes/arena.txt
|
||||
rawfile,maps/mp/gametypes/gtnw.txt
|
||||
|
||||
rawfile,mod
|
Reference in New Issue
Block a user