Compare commits

..
27 Commits
Author SHA1 Message Date
FutureRave c6b4109961 maint: quick cleanup 2023-05-16 12:12:59 +01:00
FutureRave 6580aa3688 feat: add getiP 2023-05-03 17:47:43 +01:00
FutureRave ebcb8d9657 fix: make getPing work properly 2023-05-03 17:24:44 +01:00
FutureRave 7a44b445ca fix: gsc mistake 2023-05-03 13:44:25 +01:00
Edo cc5d3bc2e5 maint: update release.yml 2023-05-03 13:34:42 +01:00
FutureRave 1e85688c56 fix: remove 's' 2023-05-03 13:19:40 +01:00
FutureRave 463af4b4c3 fix: add another epic function 2023-05-03 13:07:41 +01:00
FutureRave fe5deac41e fix: add back epic function 2023-05-03 11:57:36 +01:00
EmosewajandEdo 52f18f9c5d Undo #18bdcd8 for mp_shipment.gsc (#43)
Co-authored-by: Edo <edoardo.sanguineti222@gmail.com>
2023-04-19 21:46:53 +02:00
Diavolo 3d77486b50 maint: re-active now working functions 2023-04-03 13:54:58 +02:00
Edo 264ccf04c6 fix(iw4x_utility): comments 2023-04-03 11:04:44 +02:00
Edo bae35aa0b1 fix(iw4x_utility): ufo/noclip 2023-04-03 11:03:50 +02:00
FutureRave 4d9d45899f maint: update html webfront 2023-03-28 18:07:11 +01:00
FutureRave 3bc879cf01 fix(mp_crash_tropical): allow the map to load once again 2023-03-27 18:09:01 +01:00
FutureRave 814fa83a2b fix: add deleted mp_citystreets 2023-03-22 23:12:59 +00:00
FutureRave 9448f3f08b remove some kekware leftover 2023-03-20 23:52:33 +00:00
FutureRave 898c0f7954 fix: bog map 2023-03-19 21:38:27 +00:00
FutureRave 5d24cb2004 fix: mp_nightshift 2023-03-18 20:02:23 +00:00
FutureRave 2af9be86a3 fix(ui): missing materials for some CoD4 maps 2023-03-18 11:34:16 +00:00
FutureRave f2acf8a24a fix(playerlogic): remove this 2023-03-18 11:10:49 +00:00
FutureRave 8e35266c1c fix: bravo precache GSC 2023-03-18 11:08:48 +00:00
FutureRave f7eed4ac86 fix: format 2023-03-18 11:08:23 +00:00
FutureRave 93a2a27df1 fix(settings_map): format 2023-03-18 10:52:27 +00:00
FutureRave 20d5c0cb0f fix: format 2023-03-18 10:51:23 +00:00
FutureRave 028edf6e00 fix: weird character duping in settings map 2023-03-18 10:36:10 +00:00
FutureRave 1e57574725 fix: add back shipment 2023-03-18 00:24:36 +00:00
FutureRave ef3c052f08 fix: localization of localized strings 2023-03-17 23:45:58 +00:00
19 changed files with 259 additions and 99 deletions

No files matched your search

+1 -1
View File
@@ -8,7 +8,7 @@ jobs:
name: Create GitHub Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.3.0
- uses: actions/checkout@v3.5.2
with:
fetch-depth: 1
- name: Create ZIP archive
+4 -3
View File
@@ -18,7 +18,7 @@
<table id="serverinfo">
<thead>
<tr>
<th colspan="3">Serverinfo</th>
<th colspan="4">Serverinfo</th>
</tr>
</thead>
</table>
@@ -27,6 +27,7 @@
<thead>
<tr>
<th>Player</th>
<th>Test Client</th>
<th>Score</th>
<th>Ping</th>
</tr>
@@ -34,9 +35,9 @@
<tbody id="players">
</tbody>
</table>
<!-- <div id="footer">
<div id="footer">
Get IW4x!
</div> -->
</div>
</body>
</html>
+2 -8
View File
@@ -17,16 +17,12 @@ function getFfType (data)
{
case 0:
return "Disabled";
break;
case 1:
return "Enabled";
break;
case 2:
return "Reflected";
break;
case 3:
return "Shared";
break;
default:
return "Disabled";
}
@@ -34,7 +30,6 @@ function getFfType (data)
function getServerInfo(status, countPlayers)
{
var friendlyFire = status.scr_team_fftype;
var mod = status.fs_game;
if (!mod)
@@ -59,6 +54,7 @@ function buildPlayerList(players)
{
var row = "<tr>";
row += "<td>" + players[i].name + "</td>";
row += "<td>" + players[i].test_client + "</td>";
row += "<td>" + players[i].score + "</td>";
row += "<td>" + players[i].ping + "</td>";
row += "</tr>";
@@ -81,8 +77,6 @@ function buildPage(data)
document.title = hostname
$("#servername").text(document.title);
//$("#info").text(JSON.stringify(data));
getServerInfo(data["status"], data["players"].length);
buildPlayerList(data["players"]);
@@ -107,6 +101,6 @@ $(document).ready(function()
$("#footer").click(function()
{
location.replace("https://iw4xcachep26muba.onion.to");
location.replace("https://xlabs.dev");
});
});
+6 -6
View File
@@ -1,16 +1,16 @@
/*
=============
///ScriptDocBegin
"Name: noclip()"
"Name: _noclip()"
"Summary: noclip used on a player entity will make them fly and clip through walls."
"Module: IW4x Utility"
"CallOn: An entity"
"Example: level.player noclip();"
"Example: level.player _noclip();"
"SPMP: multiplayer"
///ScriptDocEnd
=============
*/
noclip()
_noclip()
{
if ( self.clientflags & 1 )
{
@@ -27,16 +27,16 @@ noclip()
/*
=============
///ScriptDocBegin
"Name: ufo()"
"Name: _ufo()"
"Summary: ufo used on a player entity will make them fly and clip through walls."
"Module: IW4x Utility"
"CallOn: An entity"
"Example: level.player ufo();"
"Example: level.player _ufo();"
"SPMP: multiplayer"
///ScriptDocEnd
=============
*/
ufo()
_ufo()
{
if ( self.clientflags & 2 )
{
+47 -1
View File
@@ -1983,7 +1983,7 @@ wait_for_flag_or_time_elapses( flagname, timer )
=============
///ScriptDocBegin
"Name: delayCall( <delay> , <function> , <arg1> , <arg2> , <arg3> )"
"Summary: delayCall is cool! It saves you from having to write extra script for once off commands. Note you don’t have to thread it off. delaycall is that smart!"
"Summary: delayCall is cool! It saves you from having to write extra script for once off commands. Note you don�t have to thread it off. delaycall is that smart!"
"Module: Utility"
"MandatoryArg: <delay> : The delay before the function occurs"
"MandatoryArg: <function> : The function to run."
@@ -3847,6 +3847,52 @@ create_dvar( var, val )
SetDvarIfUninitialized( var, val );
}
/*
=============
///ScriptDocBegin
"Name: setPing()"
"Summary: Does nothing. Added for backward compatibility"
"Module: Utility"
"Example: self setPing( 100 );"
"SPMP: multiplayer"
///ScriptDocEnd
=============
*/
setPing( ping )
{
}
/*
=============
///ScriptDocBegin
"Name: getPing()"
"Summary: Returns the current ping of the client"
"Module: Utility"
"Example: self getPing();"
"SPMP: multiplayer"
///ScriptDocEnd
=============
*/
getPing()
{
return self.ping;
}
/*
=============
///ScriptDocBegin
"Name: getIP()"
"Summary: Returns the current IP Address of the client"
"Module: Utility"
"Example: self getIP();"
"SPMP: multiplayer"
///ScriptDocEnd
=============
*/
getIP()
{
return self.address;
}
void()
{
@@ -1109,13 +1109,13 @@ REFERENCE MPUI_DESC_MAP_LOCKDOWN
LANG_ENGLISH "European city center. Great for Team Defender."
REFERENCE PATCH_DLC1
LANG_ENGLISH "Stimulus maps"
LANG_ENGLISH "Stimulus Maps"
REFERENCE PATCH_DESC_DLC1
LANG_ENGLISH "The Modern Warfare 2 Stimulus Package delivers additional action-packed multiplayer maps, including brand-new battlegrounds and legendary fan-favorites from Call of Duty 4: Modern Warfare."
REFERENCE PATCH_DLC2
LANG_ENGLISH "Resurgence maps"
LANG_ENGLISH "Resurgence Maps"
REFERENCE PATCH_DESC_DLC2
LANG_ENGLISH "The best-selling first-person action game of all time gets even bigger with more epic new multiplayer content! The Modern Warfare 2 Resurgence Pack delivers five incredible new multiplayer maps. Take the action to exciting new locations, then battle across legendary landscapes from Call of Duty 4: Modern Warfare."
@@ -1127,7 +1127,7 @@ REFERENCE PATCH_DESC_IW4X_DLC
LANG_ENGLISH "Original IW4x DLC containing several maps from Call Of Duty: Online"
REFERENCE PATCH_COD4_DLC
LANG_ENGLISH "Call Of Duty 4 Pack"
LANG_ENGLISH "Call of Duty 4 Pack"
REFERENCE PATCH_DESC_COD4_DLC
LANG_ENGLISH "Call Of Duty 4 maps ported to IW4x by the team"
@@ -1139,7 +1139,7 @@ REFERENCE PATCH_DESC_MW3_DLC
LANG_ENGLISH "Modern Warfare 3 maps ported to IW4x by the team"
REFERENCE CUSTOM_MAPS_DLC
LANG_ENGLISH "Custom maps"
LANG_ENGLISH "Custom Maps"
REFERENCE DESC_CUSTOM_MAPS_DLC
LANG_ENGLISH "Downloaded maps that are placed in the /usermaps subfolder"
@@ -1295,7 +1295,6 @@ Callback_StartGameType()
precacheShader( "white" );
precacheShader( "black" );
//precacheMenu("popup_summary");
game["strings"]["press_to_spawn"] = &"PLATFORM_PRESS_TO_SPAWN";
if ( level.teamBased )
@@ -1473,7 +1472,6 @@ Callback_StartGameType()
thread maps\mp\_skill::init();
thread maps\mp\_areas::init();
thread maps\mp\killstreaks\_killstreaks::init();
//thread maps\mp\_perks::init(); // No longer in use, removed from common scripts. (smart arrow)
thread maps\mp\perks\_perks::init();
thread maps\mp\_events::init();
thread maps\mp\_defcon::init();
@@ -2188,7 +2186,7 @@ endGame( winner, endReasonText, nukeDetonated )
foreach ( player in level.players )
player.pers["stats"] = player.stats;
//logString( "game ended" );
logString( "game ended" );
if( !nukeDetonated && !level.postGameNotifies )
{
if ( !wasOnlyRound() )
+1 -16
View File
@@ -177,21 +177,6 @@ onMenuResponse()
if (response == "changeclass_opfor_splitscreen" )
self openpopupMenu( "changeclass_opfor_splitscreen" );
if(response == "endgame")
{
if(level.splitscreen)
{
endparty();
if ( !level.gameEnded )
{
level thread maps\mp\gametypes\_gamelogic::forceEnd();
}
}
continue;
}
if ( response == "endround" )
{
if ( !self isHost() )
@@ -201,7 +186,7 @@ onMenuResponse()
if ( !level.gameEnded )
{
setDvar("sv_dontrotate", 1);
setDvar( "sv_dontRotate", 1 );
level thread maps\mp\gametypes\_gamelogic::forceEnd();
}
else
@@ -619,7 +619,6 @@ spawnPlayer()
self setClientDvar( "cg_thirdPerson", "0" );
self setDepthOfField( 0, 0, 512, 512, 4, 0 );
//self setClientDvar( "cg_fov", "65" );
// Don't do this stuff for TI spawn points
if ( isDefined( spawnPoint ) )
@@ -685,7 +684,7 @@ spawnPlayer()
prof_end( "spawnPlayer_postUTS" );
//self logstring( "S " + self.origin[0] + " " + self.origin[1] + " " + self.origin[2] );
self logstring( "S " + self.origin[0] + " " + self.origin[1] + " " + self.origin[2] );
// give "connected" handlers a chance to start
// many of these start onPlayerSpawned handlers which rely on the "spawned_player"
@@ -50,50 +50,42 @@ quickcommands(response)
case "1":
soundalias = "mp_cmd_followme";
saytext = &"QUICKMESSAGE_FOLLOW_ME";
//saytext = "Follow Me!";
break;
case "2":
soundalias = "mp_cmd_movein";
saytext = &"QUICKMESSAGE_MOVE_IN";
//saytext = "Move in!";
break;
case "3":
soundalias = "mp_cmd_fallback";
saytext = &"QUICKMESSAGE_FALL_BACK";
//saytext = "Fall back!";
break;
case "4":
soundalias = "mp_cmd_suppressfire";
saytext = &"QUICKMESSAGE_SUPPRESSING_FIRE";
//saytext = "Suppressing fire!";
break;
case "5":
soundalias = "mp_cmd_attackleftflank";
saytext = &"QUICKMESSAGE_ATTACK_LEFT_FLANK";
//saytext = "Attack left flank!";
break;
case "6":
soundalias = "mp_cmd_attackrightflank";
saytext = &"QUICKMESSAGE_ATTACK_RIGHT_FLANK";
//saytext = "Attack right flank!";
break;
case "7":
soundalias = "mp_cmd_holdposition";
saytext = &"QUICKMESSAGE_HOLD_THIS_POSITION";
//saytext = "Hold this position!";
break;
default:
assert(response == "8");
soundalias = "mp_cmd_regroup";
saytext = &"QUICKMESSAGE_REGROUP";
//saytext = "Regroup!";
break;
}
@@ -117,44 +109,37 @@ quickstatements(response)
case "1":
soundalias = "mp_stm_grenade";
saytext = &"QUICKMESSAGE_ENEMY_SPOTTED";
//saytext = "Enemy spotted!";
break;
case "2":
soundalias = "mp_stm_enemyspotted";
saytext = &"QUICKMESSAGE_ENEMIES_SPOTTED";
//saytext = "Enemy down!";
break;
case "3":
soundalias = "mp_stm_iminposition";
saytext = &"QUICKMESSAGE_IM_IN_POSITION";
//saytext = "I'm in position.";
break;
case "4":
soundalias = "mp_stm_areasecure";
saytext = &"QUICKMESSAGE_AREA_SECURE";
//saytext = "Area secure!";
break;
case "5":
soundalias = "mp_stm_holdyourfire";
saytext = &"QUICKMESSAGE_WATCH_SIX";
//saytext = "Hold your fire!";
break;
case "6":
soundalias = "mp_stm_sniper";
saytext = &"QUICKMESSAGE_SNIPER";
//saytext = "Sniper!";
break;
default:
assert(response == "7");
soundalias = "mp_stm_needreinforcements";
saytext = &"QUICKMESSAGE_NEED_REINFORCEMENTS";
//saytext = "Need reinforcements!";
break;
}
@@ -178,38 +163,32 @@ quickresponses(response)
case "1":
soundalias = "mp_rsp_yessir";
saytext = &"QUICKMESSAGE_YES_SIR";
//saytext = "Yes Sir!";
break;
case "2":
soundalias = "mp_rsp_nosir";
saytext = &"QUICKMESSAGE_NO_SIR";
//saytext = "No Sir!";
break;
case "3":
soundalias = "mp_rsp_onmyway";
saytext = &"QUICKMESSAGE_IM_ON_MY_WAY";
//saytext = "On my way.";
break;
case "4":
soundalias = "mp_rsp_sorry";
saytext = &"QUICKMESSAGE_SORRY";
//saytext = "Sorry.";
break;
case "5":
soundalias = "mp_rsp_greatshot";
saytext = &"QUICKMESSAGE_GREAT_SHOT";
//saytext = "Great shot!";
break;
default:
assert(response == "6");
soundalias = "mp_rsp_areyoucrazy";
saytext = &"QUICKMESSAGE_COME_ON";
//saytext = "Come on!";
break;
}
+1 -1
View File
@@ -490,7 +490,7 @@ onUse( player )
oldTeam = self maps\mp\gametypes\_gameobjects::getOwnerTeam();
label = self maps\mp\gametypes\_gameobjects::getLabel();
//player logString( "flag captured: " + self.label );
player logString( "flag captured: " + self.label );
self.captureTime = getTime();
+2 -2
View File
@@ -566,7 +566,7 @@ onUsePlantObject( player )
if ( !self maps\mp\gametypes\_gameobjects::isFriendlyTeam( player.pers["team"] ) )
{
level thread bombPlanted( self, player );
//player logString( "bomb planted: " + self.label );
player logString( "bomb planted: " + self.label );
// disable all bomb zones except this one
for ( index = 0; index < level.bombZones.size; index++ )
@@ -600,7 +600,7 @@ onUsePlantObject( player )
onUseDefuseObject( player )
{
player notify ( "bomb_defused" );
//player logString( "bomb defused: " + self.label );
player logString( "bomb defused: " + self.label );
level thread bombDefused();
// disable this bomb zone
+4 -4
View File
@@ -185,21 +185,21 @@ init_sounds()
add_context_sensative_dialog( "ai", "in_sight", 7, "ac130_fco_gonnagethim" ); // You gonna get him?
add_context_sensative_dialog( "ai", "in_sight", 8, "ac130_fco_personnelthere" ); // Personnel right there.
add_context_sensative_dialog( "ai", "in_sight", 9, "ac130_fco_nailthoseguys" ); // Nail those guys.
add_context_sensative_dialog( "ai", "in_sight", 11, "ac130_fco_lightemup" ); // Light ‘em up.
add_context_sensative_dialog( "ai", "in_sight", 11, "ac130_fco_lightemup" ); // Light �em up.
add_context_sensative_dialog( "ai", "in_sight", 12, "ac130_fco_takehimout" ); // Yeah take him out.
add_context_sensative_dialog( "ai", "in_sight", 14, "ac130_plt_yeahcleared" ); // Yeah, cleared to engage.
add_context_sensative_dialog( "ai", "in_sight", 15, "ac130_plt_copysmoke" ); // Copy, smoke ‘em.
add_context_sensative_dialog( "ai", "in_sight", 15, "ac130_plt_copysmoke" ); // Copy, smoke �em.
add_context_sensative_dialog( "ai", "in_sight", 16, "ac130_fco_rightthere" ); // Right there...tracking.
add_context_sensative_dialog( "ai", "in_sight", 17, "ac130_fco_tracking" ); // Tracking.
add_context_sensative_dialog( "ai", "wounded_crawl", 0, "ac130_fco_movingagain" ); // Ok he’s moving again.
add_context_sensative_dialog( "ai", "wounded_crawl", 0, "ac130_fco_movingagain" ); // Ok he�s moving again.
add_context_sensative_timeout( "ai", "wounded_crawl", undefined, 6 );
add_context_sensative_dialog( "ai", "wounded_pain", 0, "ac130_fco_doveonground" ); // Yeah, he just dove on the ground.
add_context_sensative_dialog( "ai", "wounded_pain", 1, "ac130_fco_knockedwind" ); // Probably just knocked the wind out of him.
add_context_sensative_dialog( "ai", "wounded_pain", 2, "ac130_fco_downstillmoving" ); // That guy's down but still moving.
add_context_sensative_dialog( "ai", "wounded_pain", 3, "ac130_fco_gettinbackup" ); // He's gettin' back up.
add_context_sensative_dialog( "ai", "wounded_pain", 4, "ac130_fco_yepstillmoving" ); // Yep, that guy’s still moving.
add_context_sensative_dialog( "ai", "wounded_pain", 4, "ac130_fco_yepstillmoving" ); // Yep, that guy�s still moving.
add_context_sensative_dialog( "ai", "wounded_pain", 5, "ac130_fco_stillmoving" ); // He's still moving.
add_context_sensative_timeout( "ai", "wounded_pain", undefined, 12 );
@@ -0,0 +1,13 @@
// IW5 GSC SOURCE
// Decompiled by https://github.com/xensik/gsc-tool
main()
{
common_scripts\_destructible_types_anim_wallfan::main();
maps\animated_models\foliage_cod5_tree_jungle_03::main();
maps\animated_models\foliage_pacific_palms08::main();
maps\animated_models\hanging_apron_wind_medium::main();
maps\animated_models\hanging_longsleeve_wind_medium::main();
maps\animated_models\hanging_sheet_wind_medium::main();
maps\animated_models\hanging_shortsleeve_wind_medium::main();
}
@@ -26,11 +26,4 @@ main()
//level._effect[ "player_death_explosion" ] = loadfx( "explosions/player_death_explosion" );
//level._effect[ "green_flare" ] = loadfx( "misc/handflare_green" );
*/
/#
if ( common_scripts\utility::shouldRunServerSideEffects() )
maps\createfx\mp_crash_tropical_fx::main();
#/
}
@@ -3,12 +3,10 @@ main()
{
common_scripts\_destructible_types_anim_light_fluo_single::main();
//maps\animated_models\foliage_tree_palm_tall_3::main();
maps\animated_models\foliage_tree_palm_med_1::main();
maps\animated_models\foliage_tree_palm_med_2::main();
maps\animated_models\foliage_tree_palm_med_2_tropical::main();
maps\animated_models\foliage_pacific_fern01::main();
maps\animated_models\foliage_tree_palm_bushy_3::main();
maps\animated_models\foliage_pacific_palms06::main();
maps\animated_models\hanging_apron_wind_medium::main();
+150 -5
View File
@@ -7,14 +7,159 @@ main()
maps\mp\_compass::setupMiniMap( "compass_map_mp_shipment" );
// TODO: get proper ambient
ambientPlay("ambient_trainer_ext2");
ambientPlay("ambient_trainer_ext2"); //TODO: get proper ambient
game["attackers"] = "axis";
game["defenders"] = "allies";
setdvar( "r_specularcolorscale", "1.7" );
setdvar( "r_diffusecolorscale", "1.3" );
setDvar( "r_specularcolorscale", "1.7" );
setDvar( "r_diffusecolorscale", "1.3" );
setdvar( "compassmaxrange", "1400" );
setDvar( "compassmaxrange","1400" );
level thread deleteChaModels();
}
deleteChaModels()
{
count = 0;
count2 = 0;
count3 = 0;
globalIntermission = getEntArray ( "mp_global_intermission", "targetname" );
dmSpawns = getEntArray ( "mp_dm_spawn", "targetname" );
domSpawns = getEntArray ( "mp_dom_spawn", "targetname" );
tdmSpawns = getEntArray ( "mp_tdm_spawn", "targetname" );
// ---- DEFINING GAMETYPE OBJECTS ----
universalExploderAB = getEntArray ( "exploder", "targetname" );
// - CTF -
flagRemoveAllies = getEntArray ( "ctf_flag_allies", "targetname" );
flagTrigRemoveAllies = getEntArray ( "ctf_trig_allies", "targetname" );
flagZoneRemoveAllies = getEntArray ( "ctf_zone_allies", "targetname" );
flagRemoveAxis = getEntArray ( "ctf_flag_axis", "targetname" );
flagTrigRemoveAxis = getEntArray ( "ctf_trig_axis", "targetname" );
flagZoneRemoveAxis = getEntArray ( "ctf_zone_axis", "targetname" );
// - DD -
ddbombzonesTouchAB = getEntArray ( "dd_bombzone", "targetname" );
ddbombzonesModelA = getEntArray ( "pf408_auto1", "targetname" ) ;
ddbombzonesTrigA = getEntArray ( "pf408_auto2", "targetname" );
ddbombzonesModelB = getEntArray ( "pf409_auto1", "targetname" ) ;
ddbombzonesTrigB = getEntArray ( "pf409_auto2", "targetname" );
ddbombzonesCollA = getEntArray ( "dd_bombzone_clip_a", "targetname" );
ddbombzonesCollB = getEntArray ( "dd_bombzone_clip_b", "targetname" );
// - Dom -
flagPrimary = getEntArray ( "flag_primary", "targetname" );
flagDescriptor = getEntArray ("flag_descriptor", "targetname" );
// - Sab -
sabbombzonesColl = getEntArray ( "sab_bomb_col", "targetname" );
sabbombzonesTouchAllies = getEntArray ( "sab_bomb_allies", "targetname" );
sabbombzonesDefuseAllies = getEntArray ( "sab_bomb_defuse_allies", "targetname" );
sabbombzonesSiteModelAllies = getEntArray ( "pf397_auto1", "targetname" );
sabbombzonesTouchAxis = getEntArray ( "sab_bomb_axis", "targetname" );
sabbombzonesDefuseAxis = getEntArray ( "sab_bomb_defuse_axis", "targetname" );
sabbombzonesSiteModelAxis = getEntArray ( "pf398_auto1", "targetname" );
// - SnD -
bombzonesTouchAB = getEntArray ( "bombzone", "targetname" );
bombzonesCollAB = getEntArray ( "bomb_col", "targetname" );
bombzonesModelA = getEntArray ( "pf393_auto1", "targetname" );
bombzonesTrigA = getEntArray ( "pf393_auto2", "targetname" );
bombzonesModelB = getEntArray ( "pf394_auto1", "targetname" );
bombzonesTrigB = getEntArray ( "pf394_auto2", "targetname" );
bombzonesBrief = getEntArray ( "sd_bomb", "targetname" );
bombzonesBriefTrig = getEntArray ( "sd_bomb_pickup_trig", "targetname" );
// ---- DELETING GAMETYPE OBJECTS ----
foreach( ent in dmSpawns )
{
count2++;
if (count2 > 7)
{
dmSpawns[count2] Delete();
}
}
flagRemoveAllies[0] Delete();
flagTrigRemoveAllies[0] Delete();
flagZoneRemoveAllies[0] Delete();
flagRemoveAxis[0] Delete();
flagTrigRemoveAxis[0] Delete();
flagZoneRemoveAxis[0] Delete();
foreach( ent in domSpawns )
{
count++;
if (count > 7)
{
domSpawns[count] Delete();
}
}
ddbombzonesTouchAB[0] Delete();
ddbombzonesTouchAB[1] Delete();
ddbombzonesModelA[0] Delete();
ddbombzonesTrigA[0] Delete();
ddbombzonesModelB[0] Delete();
ddbombzonesTrigB[0] Delete();
universalExploderAB[8] Delete();
universalExploderAB[9] Delete();
ddbombzonesCollA[0] Delete();
ddbombzonesCollB[0] Delete();
flagPrimary[0] Delete();
flagPrimary[1] Delete();
flagPrimary[2] Delete();
flagDescriptor[0] Delete();
flagDescriptor[1] Delete();
flagDescriptor[2] Delete();
sabbombzonesColl[0] Delete();
sabbombzonesColl[1] Delete();
sabbombzonesTouchAllies[0] Delete();
sabbombzonesDefuseAllies[0] Delete();
sabbombzonesSiteModelAllies[0] Delete();
sabbombzonesTouchAxis[0] Delete();
sabbombzonesDefuseAxis[0] Delete();
sabbombzonesSiteModelAxis[0] Delete();
universalExploderAB[4] Delete();
universalExploderAB[5] Delete();
bombzonesTouchAB[0] Delete();
bombzonesTouchAB[1] Delete();
universalExploderAB[0] Delete();
universalExploderAB[1] Delete();
bombzonesCollAB[0] Delete();
bombzonesCollAB[1] Delete();
bombzonesModelA[0] Delete();
bombzonesModelB[0] Delete();
bombzonesTrigA[0] Delete();
bombzonesTrigB[0] Delete();
bombzonesBrief[0] Delete();
bombzonesBriefTrig[0] Delete();
foreach( ent in tdmSpawns )
{
count3++;
if (count3 > 7)
{
tdmSpawns[count3] Delete();
}
}
// - Removing the barrels -
chaRemove = getEntArray ( "cha", "targetname" );
foreach( ent in chaRemove )
{
ent Delete();
}
globalIntermission[0] Delete();
}
+22 -13
View File
@@ -91,7 +91,7 @@
LOCAL_MAP_SELECTION(8, "mp_rundown", "MPUI_RUNDOWN", "MPUI_DESC_MAP_RUNDOWN", "preview_mp_rundown", dvarint("iw4x_maps_dlc") == 0)
LOCAL_MAP_SELECTION(9, "mp_rust", "MPUI_RUST", "MPUI_DESC_MAP_RUST", "preview_mp_rust", dvarint("iw4x_maps_dlc") == 0)
LOCAL_MAP_SELECTION(10, "mp_boneyard", "MPUI_BONEYARD", "MPUI_DESC_MAP_BONEYARD", "preview_mp_boneyard", dvarint("iw4x_maps_dlc") == 0)
LOCAL_MAP_SELECTION( 11, "mp_skidrow", "MPUI_RAID", "MPUI_DESC_MAP_NIGHTSHIFT", "preview_mp_nightshift", dvarint("iw4x_maps_dlc") == 0)
LOCAL_MAP_SELECTION(11, "mp_nightshift", "MPUI_RAID", "MPUI_DESC_MAP_NIGHTSHIFT", "preview_mp_nightshift", dvarint("iw4x_maps_dlc") == 0)
LOCAL_MAP_SELECTION(12, "mp_subbase", "MPUI_SUBBASE", "MPUI_DESC_MAP_SUBBASE", "preview_mp_subbase", dvarint("iw4x_maps_dlc") == 0)
LOCAL_MAP_SELECTION(13, "mp_terminal", "MPUI_TERMINAL", "MPUI_DESC_MAP_TERMINAL", "preview_mp_terminal", dvarint("iw4x_maps_dlc") == 0)
LOCAL_MAP_SELECTION(14, "mp_underpass", "MPUI_UNDERPASS", "MPUI_DESC_MAP_UNDERPASS", "preview_mp_underpass", dvarint("iw4x_maps_dlc") == 0)
@@ -114,16 +114,17 @@
LOCAL_MAP_SELECTION(2, "mp_cargoship", "MPUI_CARGOSHIP", "MPUI_DESC_MAP_CARGOSHIP", "preview_mp_cargoship", dvarint("iw4x_maps_dlc") == 3)
LOCAL_MAP_SELECTION(3, "mp_bloc_sh", "MPUI_BLOC_SH", "MPUI_DESC_MAP_BLOC_SH", "preview_mp_bloc_sh", dvarint("iw4x_maps_dlc") == 3)
LOCAL_MAP_SELECTION(4, "mp_killhouse", "MPUI_KILLHOUSE", "MPUI_DESC_MAP_KILLHOUSE", "preview_mp_killhouse", dvarint("iw4x_maps_dlc") == 3)
LOCAL_MAP_SELECTION( 5, "mp_bog", "MPUI_BOG_SH", "MPUI_DESC_MAP_BOG", "preview_mp_bog_sh", dvarint("iw4x_maps_dlc") == 3)
LOCAL_MAP_SELECTION(5, "mp_bog_sh", "MPUI_BOG_SH", "MPUI_DESC_MAP_BOG", "preview_mp_bog_sh", dvarint("iw4x_maps_dlc") == 3)
LOCAL_MAP_SELECTION(6, "mp_cargoship_sh", "MPUI_CARGOSHIP_SH", "MPUI_DESC_MAP_CARGOSHIP_SH", "preview_mp_cargoship_sh", dvarint("iw4x_maps_dlc") == 3)
LOCAL_MAP_SELECTION( 7, "mp_shipment_long", "MPUI_SHIPMENT_LONG", "MPUI_DESC_MAP_SHIPMENT_LONG", "preview_mp_shipment_long", dvarint("iw4x_maps_dlc") == 3)
LOCAL_MAP_SELECTION( 8, "mp_rust_long", "MPUI_RUST_LONG", "MPUI_DESC_MAP_RUST_LONG", "preview_mp_rust_long", dvarint("iw4x_maps_dlc") == 3)
LOCAL_MAP_SELECTION( 9, "mp_firingrange", "MPUI_FIRINGRANGE", "MPUI_DESC_MAP_FIRINGRANGE", "preview_mp_firingrange", dvarint("iw4x_maps_dlc") == 3)
LOCAL_MAP_SELECTION( 10, "mp_bloc", "MPUI_BLOC", "MPUI_DESC_MAP_BLOC", "preview_mp_bloc", dvarint("iw4x_maps_dlc") == 3)
LOCAL_MAP_SELECTION( 11, "mp_crash_tropical", "MPUI_CRASH_TROPICAL", "MPUI_DESC_MAP_CRASH_TROPICAL", "preview_mp_crash_tropical", dvarint("iw4x_maps_dlc") == 3)
LOCAL_MAP_SELECTION( 12, "mp_estate_tropical", "MPUI_ESTATE_TROPICAL", "MPUI_DESC_MAP_ESTATE_TROPICAL","preview_mp_estate_tropical", dvarint("iw4x_maps_dlc") == 3)
LOCAL_MAP_SELECTION( 13, "mp_fav_tropical", "MPUI_FAV_TROPICAL", "MPUI_DESC_MAP_FAV_TROPICAL", "preview_mp_fav_tropical", dvarint("iw4x_maps_dlc") == 3)
LOCAL_MAP_SELECTION( 14, "mp_storm_spring", "MPUI_STORM_SPRING", "MPUI_DESC_MAP_STORM_SPRING", "preview_mp_storm_spring", dvarint("iw4x_maps_dlc") == 3)
LOCAL_MAP_SELECTION(7, "mp_shipment", "MPUI_SHIPMENT", "MPUI_DESC_MAP_SHIPMENT", "preview_mp_shipment", dvarint("iw4x_maps_dlc") == 3)
LOCAL_MAP_SELECTION(8, "mp_shipment_long", "MPUI_SHIPMENT_LONG", "MPUI_DESC_MAP_SHIPMENT_LONG", "preview_mp_shipment_long", dvarint("iw4x_maps_dlc") == 3)
LOCAL_MAP_SELECTION(9, "mp_rust_long", "MPUI_RUST_LONG", "MPUI_DESC_MAP_RUST_LONG", "preview_mp_rust_long", dvarint("iw4x_maps_dlc") == 3)
LOCAL_MAP_SELECTION(10, "mp_firingrange", "MPUI_FIRINGRANGE", "MPUI_DESC_MAP_FIRINGRANGE", "preview_mp_firingrange", dvarint("iw4x_maps_dlc") == 3)
LOCAL_MAP_SELECTION(11, "mp_bloc", "MPUI_BLOC", "MPUI_DESC_MAP_BLOC", "preview_mp_bloc", dvarint("iw4x_maps_dlc") == 3)
LOCAL_MAP_SELECTION(12, "mp_crash_tropical", "MPUI_CRASH_TROPICAL", "MPUI_DESC_MAP_CRASH_TROPICAL", "preview_mp_crash_tropical", dvarint("iw4x_maps_dlc") == 3)
LOCAL_MAP_SELECTION(13, "mp_estate_tropical", "MPUI_ESTATE_TROPICAL", "MPUI_DESC_MAP_ESTATE_TROPICAL","preview_mp_estate_tropical", dvarint("iw4x_maps_dlc") == 3)
LOCAL_MAP_SELECTION(14, "mp_fav_tropical", "MPUI_FAV_TROPICAL", "MPUI_DESC_MAP_FAV_TROPICAL", "preview_mp_fav_tropical", dvarint("iw4x_maps_dlc") == 3)
LOCAL_MAP_SELECTION(15, "mp_storm_spring", "MPUI_STORM_SPRING", "MPUI_DESC_MAP_STORM_SPRING", "preview_mp_storm_spring", dvarint("iw4x_maps_dlc") == 3)
LOCAL_MAP_SELECTION(0, "mp_farm", "MPUI_FARM", "MPUI_DESC_MAP_FARM", "preview_mp_farm", dvarint("iw4x_maps_dlc") == 4)
LOCAL_MAP_SELECTION(1, "mp_backlot", "MPUI_BACKLOT", "MPUI_DESC_MAP_BACKLOT", "preview_mp_backlot", dvarint("iw4x_maps_dlc") == 4)
@@ -134,6 +135,7 @@
LOCAL_MAP_SELECTION(6, "mp_broadcast", "MPUI_BROADCAST", "MPUI_DESC_MAP_BROADCAST", "preview_mp_broadcast", dvarint("iw4x_maps_dlc") == 4)
LOCAL_MAP_SELECTION(7, "mp_showdown", "MPUI_SHOWDOWN", "MPUI_DESC_MAP_SHOWDOWN", "preview_mp_showdown", dvarint("iw4x_maps_dlc") == 4)
LOCAL_MAP_SELECTION(8, "mp_convoy", "MPUI_CONVOY", "MPUI_DESC_MAP_CONVOY", "preview_mp_convoy", dvarint("iw4x_maps_dlc") == 4)
LOCAL_MAP_SELECTION(9, "mp_citystreets", "MPUI_CITYSTREETS", "MPUI_DESC_MAP_CITYSTREETS", "preview_mp_citystreets", dvarint("iw4x_maps_dlc") == 4)
LOCAL_MAP_SELECTION(0, "mp_alpha", "MPUI_LOCKDOWN", "MPUI_DESC_MAP_LOCKDOWN", "preview_mp_alpha", dvarint("iw4x_maps_dlc") == 5)
LOCAL_MAP_SELECTION(1, "mp_bravo", "MPUI_MISSION", "MPUI_DESC_MAP_MISSION", "preview_mp_bravo", dvarint("iw4x_maps_dlc") == 5)
@@ -178,7 +180,7 @@
{
play "mouse_click";
escape "self";
uiScript "ApplyMap"
uiScript "ApplyMap";
close "settings_map";
close "self";
}
@@ -209,13 +211,14 @@
{
play "mouse_over";
setItemColor "maplist" bordercolor 1 1 1 "1";
LOCAL_MAP_FOCUS( "@" + localvarstring( "ui_info_name" ), "Custom usermaps/", "loadscreen_mp_bonusmaps" )
LOCAL_MAP_FOCUS( localvarstring( "ui_info_name" ), "Custom usermaps", "loadscreen_mp_bonusmaps" )
}
leaveFocus
{
setItemColor "maplist" bordercolor 1 1 1 "0.15";
}
}
itemDef
{
rect -292 28 292 356 3 1
@@ -226,6 +229,7 @@
textScale 0.55
visible when ( dvarbool( "widescreen" ) )
}
itemDef
{
name "mapimage"
@@ -237,6 +241,7 @@
exp material ( localvarstring( "ui_info_icon" ) )
visible when ( localvarstring( "ui_info_icon") != "" && dvarbool( "widescreen" ) && dvarint("iw4x_maps_dlc") != 99 )
}
itemDef
{
name "longname"
@@ -249,6 +254,7 @@
exp text ( "@" + localvarstring( "ui_info_name" ) )
visible when ( dvarbool( "widescreen" ) )
}
itemDef
{
name "description"
@@ -290,7 +296,7 @@
{
play "mouse_over";
setItemColor "maplist" bordercolor 1 1 1 "1";
LOCAL_MAP_FOCUS( "Custom Maps", "Custom usermaps/", "loadscreen_mp_bonusmaps" )
LOCAL_MAP_FOCUS( "Custom Maps", "Custom usermaps", "loadscreen_mp_bonusmaps" )
}
leaveFocus
{
@@ -308,6 +314,7 @@
textScale 0.55
visible when ( !dvarbool( "widescreen" ) )
}
itemDef
{
name "mapimage"
@@ -319,6 +326,7 @@
exp material ( localvarstring( "ui_info_icon" ) )
visible when ( localvarstring( "ui_info_icon") != "" && !dvarbool( "widescreen" ) && dvarint("iw4x_maps_dlc") != 99 )
}
itemDef
{
name "longname"
@@ -332,6 +340,7 @@
exp text ( "@" + localvarstring( "ui_info_name" ) )
visible when ( !dvarbool( "widescreen" ) )
}
itemDef
{
name "description"
Binary file not shown.