Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b3abeae088 | ||
|
|
e2b50d691a | ||
|
|
611760cb38 | ||
|
|
c9e1e1de82 | ||
|
|
b32875849d | ||
|
|
fd5a71b32e | ||
|
|
f1c5207c8a | ||
|
|
f3a07312c5 | ||
|
|
ed93e6cc3e | ||
|
|
0b8d678893 | ||
|
|
704a69a9ec | ||
|
|
671a0a181c | ||
|
|
d310691343 | ||
|
|
c93351046b | ||
|
|
f711722e5b | ||
|
|
3f2f24ab09 | ||
|
|
9576031f63 | ||
|
|
16b8ca89c3 | ||
|
|
40008170ec | ||
|
|
75ab8a88cc | ||
|
|
7744518f3c | ||
|
|
5c7ba128cc | ||
|
|
7dcca93eed | ||
|
|
bb8ba5bea7 | ||
|
|
66bfdf1b06 | ||
|
|
e8cf3048c5 | ||
|
|
17f0f49635 | ||
|
|
32e940e5d4 | ||
|
|
b3adaada92 | ||
|
|
20a0dc25a7 | ||
|
|
9696e39099 | ||
|
|
37dd2f576a |
No files matched your search
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large.
Load diff
@@ -1,17 +0,0 @@
|
|||||||
// _createart generated. modify at your own risk. Changing values should be fine.
|
|
||||||
main()
|
|
||||||
{
|
|
||||||
|
|
||||||
level.tweakfile = true;
|
|
||||||
|
|
||||||
|
|
||||||
//* Fog section *
|
|
||||||
|
|
||||||
setdvar( "scr_fog_disable", "0" );
|
|
||||||
|
|
||||||
//setExpFog( 500, 2842, 0.642709, 0.626383, 0.5, 3.0, 0 );
|
|
||||||
//setExpFog( start distance, halfway distance, red, green, blue, max opacity, transition time,
|
|
||||||
setExpFog( 750, 2842, 0.642709, 0.666383, 0.5, 0.02, 100 );
|
|
||||||
VisionSetNaked( "mp_shipment", 0 );
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,125 +0,0 @@
|
|||||||
//_createfx generated. Do not touch!!
|
|
||||||
#include common_scripts\utility;
|
|
||||||
#include common_scripts\_createfx;
|
|
||||||
main()
|
|
||||||
{
|
|
||||||
// CreateFX entities placed: 121
|
|
||||||
ent = createLoopSound();
|
|
||||||
ent.v[ "origin" ] = ( 1026.31, 690.984, 325.106 );
|
|
||||||
ent.v[ "angles" ] = ( 270, 0, 0 );
|
|
||||||
ent.v[ "soundalias" ] = "emt_tree_leaf_rustle";
|
|
||||||
|
|
||||||
ent = createLoopSound();
|
|
||||||
ent.v[ "origin" ] = ( -74.0565, -1064.84, 395.295 );
|
|
||||||
ent.v[ "angles" ] = ( 270, 0, 0 );
|
|
||||||
ent.v[ "soundalias" ] = "emt_tree_leaf_rustle";
|
|
||||||
|
|
||||||
ent = createLoopSound();
|
|
||||||
ent.v[ "origin" ] = ( 672.98, 116.825, 298.125 );
|
|
||||||
ent.v[ "angles" ] = ( 0, 0, 0 );
|
|
||||||
ent.v[ "soundalias" ] = "emt_ac_metal_rattle";
|
|
||||||
|
|
||||||
ent = createLoopSound();
|
|
||||||
ent.v[ "origin" ] = ( -15.6846, -531.97, 298.125 );
|
|
||||||
ent.v[ "angles" ] = ( 270, 0, 0 );
|
|
||||||
ent.v[ "soundalias" ] = "emt_ac_metal_rattle";
|
|
||||||
|
|
||||||
ent = createLoopSound();
|
|
||||||
ent.v[ "origin" ] = ( -609.761, 98.299, 298.125 );
|
|
||||||
ent.v[ "angles" ] = ( 270, 0, 0 );
|
|
||||||
ent.v[ "soundalias" ] = "emt_ac_metal_rattle";
|
|
||||||
|
|
||||||
ent = createLoopSound();
|
|
||||||
ent.v[ "origin" ] = ( 17.674, 657.888, 298.125 );
|
|
||||||
ent.v[ "angles" ] = ( 270, 0, 0 );
|
|
||||||
ent.v[ "soundalias" ] = "emt_ac_metal_rattle";
|
|
||||||
|
|
||||||
ent = createLoopSound();
|
|
||||||
ent.v[ "origin" ] = ( 139.752, 127.875, 358.052 );
|
|
||||||
ent.v[ "angles" ] = ( 270, 0, 0 );
|
|
||||||
ent.v[ "soundalias" ] = "emt_ac_metal_rattle";
|
|
||||||
|
|
||||||
ent = createLoopSound();
|
|
||||||
ent.v[ "origin" ] = ( 482.075, 1591.5, 523.125 );
|
|
||||||
ent.v[ "angles" ] = ( 270, 0, 0 );
|
|
||||||
ent.v[ "soundalias" ] = "emt_ship_chain_sway";
|
|
||||||
|
|
||||||
ent = createLoopSound();
|
|
||||||
ent.v[ "origin" ] = ( -774.494, -632.406, 332.547 );
|
|
||||||
ent.v[ "angles" ] = ( 270, 0, 0 );
|
|
||||||
ent.v[ "soundalias" ] = "emt_wind_treeA_lp";
|
|
||||||
|
|
||||||
ent = createLoopSound();
|
|
||||||
ent.v[ "origin" ] = ( 63.875, 128.89, 392.724 );
|
|
||||||
ent.v[ "angles" ] = ( 0, 0, 0 );
|
|
||||||
ent.v[ "soundalias" ] = "emt_wind_flat_surface";
|
|
||||||
|
|
||||||
ent = createLoopSound();
|
|
||||||
ent.v[ "origin" ] = ( 780.594, -763.875, 304.545 );
|
|
||||||
ent.v[ "angles" ] = ( 270, 0, 0 );
|
|
||||||
ent.v[ "soundalias" ] = "emt_wind_treeB_lp";
|
|
||||||
|
|
||||||
ent = createLoopSound();
|
|
||||||
ent.v[ "origin" ] = ( 1190.88, -235.615, 325 );
|
|
||||||
ent.v[ "angles" ] = ( 270, 0, 0 );
|
|
||||||
ent.v[ "soundalias" ] = "emt_wind_flat_surface";
|
|
||||||
|
|
||||||
ent = createLoopSound();
|
|
||||||
ent.v[ "origin" ] = ( 738.938, 770.663, 307.269 );
|
|
||||||
ent.v[ "angles" ] = ( 270, 0, 0 );
|
|
||||||
ent.v[ "soundalias" ] = "emt_wind_treeA_lp";
|
|
||||||
|
|
||||||
ent = createLoopSound();
|
|
||||||
ent.v[ "origin" ] = ( -406.884, -387.643, 212.276 );
|
|
||||||
ent.v[ "angles" ] = ( 270, 0, 0 );
|
|
||||||
ent.v[ "soundalias" ] = "emt_tree_leaf_rustle";
|
|
||||||
|
|
||||||
ent = createOneshotEffect( "mist_hunted_fav" );
|
|
||||||
ent.v[ "origin" ] = ( 529.182, 402.978, 194 );
|
|
||||||
ent.v[ "angles" ] = ( 270, 0, 0 );
|
|
||||||
ent.v[ "fxid" ] = "mist_hunted_fav";
|
|
||||||
ent.v[ "delay" ] = -15;
|
|
||||||
|
|
||||||
ent = createOneshotEffect( "mist_hunted_fav" );
|
|
||||||
ent.v[ "origin" ] = ( 293.407, -404.612, 194 );
|
|
||||||
ent.v[ "angles" ] = ( 270, 0, 0 );
|
|
||||||
ent.v[ "fxid" ] = "mist_hunted_fav";
|
|
||||||
ent.v[ "delay" ] = -15;
|
|
||||||
|
|
||||||
ent = createOneshotEffect( "mist_hunted_fav" );
|
|
||||||
ent.v[ "origin" ] = ( -494.269, -404.613, 208.65 );
|
|
||||||
ent.v[ "angles" ] = ( 270, 0, 0 );
|
|
||||||
ent.v[ "fxid" ] = "mist_hunted_fav";
|
|
||||||
ent.v[ "delay" ] = -15;
|
|
||||||
|
|
||||||
ent = createOneshotEffect( "mist_hunted_fav" );
|
|
||||||
ent.v[ "origin" ] = ( -437.342, 44.2978, 194 );
|
|
||||||
ent.v[ "angles" ] = ( 270, 0, 0 );
|
|
||||||
ent.v[ "fxid" ] = "mist_hunted_fav";
|
|
||||||
ent.v[ "delay" ] = -15;
|
|
||||||
|
|
||||||
ent = createOneshotEffect( "mist_hunted_fav" );
|
|
||||||
ent.v[ "origin" ] = ( -8.40515, 48.6187, 194 );
|
|
||||||
ent.v[ "angles" ] = ( 270, 0, 0 );
|
|
||||||
ent.v[ "fxid" ] = "mist_hunted_fav";
|
|
||||||
ent.v[ "delay" ] = -15;
|
|
||||||
|
|
||||||
ent = createOneshotEffect( "mist_hunted_fav" );
|
|
||||||
ent.v[ "origin" ] = ( -18.4671, 850.419, 199.613 );
|
|
||||||
ent.v[ "angles" ] = ( 270, 0, 0 );
|
|
||||||
ent.v[ "fxid" ] = "mist_hunted_fav";
|
|
||||||
ent.v[ "delay" ] = -15;
|
|
||||||
|
|
||||||
ent = createOneshotEffect( "mist_hunted_fav" );
|
|
||||||
ent.v[ "origin" ] = ( -610.763, 847.477, 197.121 );
|
|
||||||
ent.v[ "angles" ] = ( 270, 0, 0 );
|
|
||||||
ent.v[ "fxid" ] = "mist_hunted_fav";
|
|
||||||
ent.v[ "delay" ] = -15;
|
|
||||||
|
|
||||||
ent = createOneshotEffect( "mist_hunted_fav" );
|
|
||||||
ent.v[ "origin" ] = ( 657.552, -492.835, 195.54 );
|
|
||||||
ent.v[ "angles" ] = ( 270, 0, 0 );
|
|
||||||
ent.v[ "fxid" ] = "mist_hunted_fav";
|
|
||||||
ent.v[ "delay" ] = -15;
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -33,10 +33,13 @@ getLosingPlayers()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
givePlayerScore( event, player, victim, overridePointsPopup )
|
givePlayerScore( event, player, victim, overrideCheckPlayerScoreLimitSoon, overridePointsPopup )
|
||||||
{
|
{
|
||||||
if ( isDefined( level.nukeIncoming ) )
|
if ( isDefined( level.nukeIncoming ) )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if ( !isDefined( overrideCheckPlayerScoreLimitSoon ) )
|
||||||
|
overrideCheckPlayerScoreLimitSoon = false;
|
||||||
|
|
||||||
if ( !isDefined( overridePointsPopup ) )
|
if ( !isDefined( overridePointsPopup ) )
|
||||||
overridePointsPopup = false;
|
overridePointsPopup = false;
|
||||||
@@ -58,7 +61,11 @@ givePlayerScore( event, player, victim, overridePointsPopup )
|
|||||||
if ( !level.teambased )
|
if ( !level.teambased )
|
||||||
thread sendUpdatedDMScores();
|
thread sendUpdatedDMScores();
|
||||||
|
|
||||||
player maps\mp\gametypes\_gamelogic::checkPlayerScoreLimitSoon();
|
// player score and team score aren't always the same values towards winning the match
|
||||||
|
// checkScoreLimit() checks team score correctly, checkPlayerScoreLimitSoon() uses player score
|
||||||
|
if ( !overrideCheckPlayerScoreLimitSoon )
|
||||||
|
player maps\mp\gametypes\_gamelogic::checkPlayerScoreLimitSoon();
|
||||||
|
|
||||||
scoreEndedMatch = player maps\mp\gametypes\_gamelogic::checkScoreLimit();
|
scoreEndedMatch = player maps\mp\gametypes\_gamelogic::checkScoreLimit();
|
||||||
|
|
||||||
if ( scoreEndedMatch && event == "kill" )
|
if ( scoreEndedMatch && event == "kill" )
|
||||||
|
|||||||
@@ -32,7 +32,11 @@ init()
|
|||||||
|
|
||||||
if ( !level.console )
|
if ( !level.console )
|
||||||
{
|
{
|
||||||
|
game["menu_callvote"] = "callvote";
|
||||||
|
game["menu_kickplayer"] = "kickplayer";
|
||||||
game["menu_muteplayer"] = "muteplayer";
|
game["menu_muteplayer"] = "muteplayer";
|
||||||
|
precacheMenu(game["menu_callvote"]);
|
||||||
|
precacheMenu(game["menu_kickplayer"]);
|
||||||
precacheMenu(game["menu_muteplayer"]);
|
precacheMenu(game["menu_muteplayer"]);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -389,8 +389,15 @@ balanceTeams()
|
|||||||
setGhillieModels( env )
|
setGhillieModels( env )
|
||||||
{
|
{
|
||||||
level.environment = env;
|
level.environment = env;
|
||||||
|
|
||||||
switch ( env )
|
switch ( env )
|
||||||
{
|
{
|
||||||
|
default:
|
||||||
|
case "iw3":
|
||||||
|
game["allies_model"]["GHILLIE"] = game["allies_model"]["SNIPER"];
|
||||||
|
game["axis_model"]["GHILLIE"] = game["axis_model"]["SNIPER"];
|
||||||
|
break;
|
||||||
|
|
||||||
case "desert":
|
case "desert":
|
||||||
mptype\mptype_ally_ghillie_desert::precache();
|
mptype\mptype_ally_ghillie_desert::precache();
|
||||||
mptype\mptype_opforce_ghillie_desert::precache();
|
mptype\mptype_opforce_ghillie_desert::precache();
|
||||||
@@ -415,8 +422,6 @@ setGhillieModels( env )
|
|||||||
game["allies_model"]["GHILLIE"] = mptype\mptype_ally_ghillie_forest::main;
|
game["allies_model"]["GHILLIE"] = mptype\mptype_ally_ghillie_forest::main;
|
||||||
game["axis_model"]["GHILLIE"] = mptype\mptype_opforce_ghillie_forest::main;
|
game["axis_model"]["GHILLIE"] = mptype\mptype_opforce_ghillie_forest::main;
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -597,8 +602,8 @@ setTeamModels( team, charSet )
|
|||||||
game[team + "_model"]["SNIPER"] = mptype\mptype_axis_sniper::main;
|
game[team + "_model"]["SNIPER"] = mptype\mptype_axis_sniper::main;
|
||||||
game[team + "_model"]["LMG"] = mptype\mptype_axis_support::main;
|
game[team + "_model"]["LMG"] = mptype\mptype_axis_support::main;
|
||||||
game[team + "_model"]["ASSAULT"] = mptype\mptype_axis_rifleman::main;
|
game[team + "_model"]["ASSAULT"] = mptype\mptype_axis_rifleman::main;
|
||||||
game[team + "_model"]["SHOTGUN"] = mptype\mptype_axis_cqb::main;
|
game[team + "_model"]["SHOTGUN"] = mptype\mptype_axis_engineer::main;
|
||||||
game[team + "_model"]["SMG"] = mptype\mptype_axis_engineer::main;
|
game[team + "_model"]["SMG"] = mptype\mptype_axis_cqb::main;
|
||||||
game[team + "_model"]["RIOT"] = mptype\mptype_opforce_comp_riot::main;
|
game[team + "_model"]["RIOT"] = mptype\mptype_opforce_comp_riot::main;
|
||||||
|
|
||||||
break;
|
break;
|
||||||
@@ -615,8 +620,8 @@ setTeamModels( team, charSet )
|
|||||||
game[team + "_model"]["SNIPER"] = mptype\mptype_ally_urban_sniper::main;
|
game[team + "_model"]["SNIPER"] = mptype\mptype_ally_urban_sniper::main;
|
||||||
game[team + "_model"]["LMG"] = mptype\mptype_ally_urban_support::main;
|
game[team + "_model"]["LMG"] = mptype\mptype_ally_urban_support::main;
|
||||||
game[team + "_model"]["ASSAULT"] = mptype\mptype_ally_urban_assault::main;
|
game[team + "_model"]["ASSAULT"] = mptype\mptype_ally_urban_assault::main;
|
||||||
game[team + "_model"]["SHOTGUN"] = mptype\mptype_ally_urban_specops::main;
|
game[team + "_model"]["SHOTGUN"] = mptype\mptype_ally_urban_recon::main;
|
||||||
game[team + "_model"]["SMG"] = mptype\mptype_ally_urban_recon::main;
|
game[team + "_model"]["SMG"] = mptype\mptype_ally_urban_specops::main;
|
||||||
game[team + "_model"]["RIOT"] = mptype\mptype_seal_udt_riot::main;
|
game[team + "_model"]["RIOT"] = mptype\mptype_seal_udt_riot::main;
|
||||||
|
|
||||||
break;
|
break;
|
||||||
@@ -633,8 +638,8 @@ setTeamModels( team, charSet )
|
|||||||
game[team + "_model"]["SNIPER"] = mptype\mptype_ally_woodland_sniper::main;
|
game[team + "_model"]["SNIPER"] = mptype\mptype_ally_woodland_sniper::main;
|
||||||
game[team + "_model"]["LMG"] = mptype\mptype_ally_woodland_support::main;
|
game[team + "_model"]["LMG"] = mptype\mptype_ally_woodland_support::main;
|
||||||
game[team + "_model"]["ASSAULT"] = mptype\mptype_ally_woodland_assault::main;
|
game[team + "_model"]["ASSAULT"] = mptype\mptype_ally_woodland_assault::main;
|
||||||
game[team + "_model"]["SHOTGUN"] = mptype\mptype_ally_woodland_specops::main;
|
game[team + "_model"]["SHOTGUN"] = mptype\mptype_ally_woodland_recon::main;
|
||||||
game[team + "_model"]["SMG"] = mptype\mptype_ally_woodland_recon::main;
|
game[team + "_model"]["SMG"] = mptype\mptype_ally_woodland_specops::main;
|
||||||
game[team + "_model"]["RIOT"] = mptype\mptype_tf141_forest_riot::main;
|
game[team + "_model"]["RIOT"] = mptype\mptype_tf141_forest_riot::main;
|
||||||
|
|
||||||
break;
|
break;
|
||||||
@@ -651,8 +656,8 @@ setTeamModels( team, charSet )
|
|||||||
game[team + "_model"]["SNIPER"] = mptype\mptype_axis_urban_sniper::main;
|
game[team + "_model"]["SNIPER"] = mptype\mptype_axis_urban_sniper::main;
|
||||||
game[team + "_model"]["LMG"] = mptype\mptype_axis_urban_support::main;
|
game[team + "_model"]["LMG"] = mptype\mptype_axis_urban_support::main;
|
||||||
game[team + "_model"]["ASSAULT"] = mptype\mptype_axis_urban_assault::main;
|
game[team + "_model"]["ASSAULT"] = mptype\mptype_axis_urban_assault::main;
|
||||||
game[team + "_model"]["SHOTGUN"] = mptype\mptype_axis_urban_cqb::main;
|
game[team + "_model"]["SHOTGUN"] = mptype\mptype_axis_urban_engineer::main;
|
||||||
game[team + "_model"]["SMG"] = mptype\mptype_axis_urban_engineer::main;
|
game[team + "_model"]["SMG"] = mptype\mptype_axis_urban_cqb::main;
|
||||||
game[team + "_model"]["RIOT"] = mptype\mptype_opforce_airborne_riot::main;
|
game[team + "_model"]["RIOT"] = mptype\mptype_opforce_airborne_riot::main;
|
||||||
|
|
||||||
break;
|
break;
|
||||||
@@ -669,8 +674,8 @@ setTeamModels( team, charSet )
|
|||||||
game[team + "_model"]["SNIPER"] = mptype\mptype_axis_woodland_sniper::main;
|
game[team + "_model"]["SNIPER"] = mptype\mptype_axis_woodland_sniper::main;
|
||||||
game[team + "_model"]["LMG"] = mptype\mptype_axis_woodland_support::main;
|
game[team + "_model"]["LMG"] = mptype\mptype_axis_woodland_support::main;
|
||||||
game[team + "_model"]["ASSAULT"] = mptype\mptype_axis_woodland_rifleman::main;
|
game[team + "_model"]["ASSAULT"] = mptype\mptype_axis_woodland_rifleman::main;
|
||||||
game[team + "_model"]["SHOTGUN"] = mptype\mptype_axis_woodland_cqb::main;
|
game[team + "_model"]["SHOTGUN"] = mptype\mptype_axis_woodland_engineer::main;
|
||||||
game[team + "_model"]["SMG"] = mptype\mptype_axis_woodland_engineer::main;
|
game[team + "_model"]["SMG"] = mptype\mptype_axis_woodland_cqb::main;
|
||||||
game[team + "_model"]["RIOT"] = mptype\mptype_opforce_airborne_riot::main;
|
game[team + "_model"]["RIOT"] = mptype\mptype_opforce_airborne_riot::main;
|
||||||
|
|
||||||
break;
|
break;
|
||||||
@@ -687,8 +692,8 @@ setTeamModels( team, charSet )
|
|||||||
game[team + "_model"]["SNIPER"] = mptype\mptype_ally_sniper::main;
|
game[team + "_model"]["SNIPER"] = mptype\mptype_ally_sniper::main;
|
||||||
game[team + "_model"]["LMG"] = mptype\mptype_ally_support::main;
|
game[team + "_model"]["LMG"] = mptype\mptype_ally_support::main;
|
||||||
game[team + "_model"]["ASSAULT"] = mptype\mptype_ally_rifleman::main;
|
game[team + "_model"]["ASSAULT"] = mptype\mptype_ally_rifleman::main;
|
||||||
game[team + "_model"]["SHOTGUN"] = mptype\mptype_ally_cqb::main;
|
game[team + "_model"]["SHOTGUN"] = mptype\mptype_ally_engineer::main;
|
||||||
game[team + "_model"]["SMG"] = mptype\mptype_ally_engineer::main;
|
game[team + "_model"]["SMG"] = mptype\mptype_ally_cqb::main;
|
||||||
game[team + "_model"]["RIOT"] = mptype\mptype_us_army_riot::main;
|
game[team + "_model"]["RIOT"] = mptype\mptype_us_army_riot::main;
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -115,7 +115,7 @@ onStartGameType()
|
|||||||
allowed = [];
|
allowed = [];
|
||||||
maps\mp\gametypes\_gameobjects::main(allowed);
|
maps\mp\gametypes\_gameobjects::main(allowed);
|
||||||
|
|
||||||
// Prevent class and team change
|
// Prevent class and team change. TODO: Must be disabled in _menus.gsc as well
|
||||||
setDvar( "ui_allow_classchange", 0 );
|
setDvar( "ui_allow_classchange", 0 );
|
||||||
setdvar( "ui_allow_teamchange", 0 );
|
setdvar( "ui_allow_teamchange", 0 );
|
||||||
|
|
||||||
@@ -189,11 +189,10 @@ waitLoadoutDone()
|
|||||||
|
|
||||||
self waittill( "spawned_player" );
|
self waittill( "spawned_player" );
|
||||||
|
|
||||||
self _setPerk( "specialty_bling" );
|
|
||||||
self giveNextGun( true );
|
self giveNextGun( true );
|
||||||
}
|
}
|
||||||
|
|
||||||
onPlayerKilled( eInflictor, attacker, iDamage, sMeansOfDeath, sWeapon, vDir, sHitLoc, psOffsetTime, deathAnimDuration )
|
onPlayerKilled( eInflictor, attacker, iDamage, sMeansOfDeath, sWeapon, vDir, sHitLoc, psOffsetTime, deathAnimDuration, lifeId )
|
||||||
{
|
{
|
||||||
if ( sMeansOfDeath == "MOD_FALLING" || ( isDefined( attacker ) && isPlayer( attacker ) ) )
|
if ( sMeansOfDeath == "MOD_FALLING" || ( isDefined( attacker ) && isPlayer( attacker ) ) )
|
||||||
{
|
{
|
||||||
@@ -382,6 +381,8 @@ refillSingleCountAmmo()
|
|||||||
|
|
||||||
initGunHUD()
|
initGunHUD()
|
||||||
{
|
{
|
||||||
|
if ( self isTestClient() ) return;
|
||||||
|
|
||||||
self.gun_progressDisplay[0] = self createFontString( "small", 1.6 );
|
self.gun_progressDisplay[0] = self createFontString( "small", 1.6 );
|
||||||
self.gun_progressDisplay[0] setPoint( "TOP LEFT", "TOP LEFT", 115, 5 );
|
self.gun_progressDisplay[0] setPoint( "TOP LEFT", "TOP LEFT", 115, 5 );
|
||||||
self.gun_progressDisplay[0] setText( &"MP_WEAPON" );
|
self.gun_progressDisplay[0] setText( &"MP_WEAPON" );
|
||||||
@@ -402,11 +403,14 @@ initGunHUD()
|
|||||||
|
|
||||||
updateGunHUD()
|
updateGunHUD()
|
||||||
{
|
{
|
||||||
|
if ( self isTestClient() ) return;
|
||||||
self.gun_progressDisplay[1] setText( (self.gunGameGunIndex+1) + " / " + level.gun_guns.size );
|
self.gun_progressDisplay[1] setText( (self.gunGameGunIndex+1) + " / " + level.gun_guns.size );
|
||||||
}
|
}
|
||||||
|
|
||||||
hideInKillCam()
|
hideInKillCam()
|
||||||
{
|
{
|
||||||
|
if ( self isTestClient() ) return;
|
||||||
|
|
||||||
self endon( "disconnect" );
|
self endon( "disconnect" );
|
||||||
var_0 = 1;
|
var_0 = 1;
|
||||||
|
|
||||||
@@ -431,6 +435,8 @@ hideInKillCam()
|
|||||||
|
|
||||||
hideOnGameEnd()
|
hideOnGameEnd()
|
||||||
{
|
{
|
||||||
|
if ( self isTestClient() ) return;
|
||||||
|
|
||||||
self endon( "disconnect" );
|
self endon( "disconnect" );
|
||||||
level waittill( "game_ended" );
|
level waittill( "game_ended" );
|
||||||
|
|
||||||
@@ -574,4 +580,4 @@ setSpecialLoadout()
|
|||||||
// FFA games don't have teams, but players are allowed to choose team on the way in
|
// FFA games don't have teams, but players are allowed to choose team on the way in
|
||||||
// just for character model and announcer voice variety. Same loadout for both.
|
// just for character model and announcer voice variety. Same loadout for both.
|
||||||
level.gun_loadouts["allies"] = level.gun_loadouts["axis"];
|
level.gun_loadouts["allies"] = level.gun_loadouts["axis"];
|
||||||
}
|
}
|
||||||
@@ -21,12 +21,13 @@ main()
|
|||||||
// don't sit there waiting for both teams to contain players,
|
// don't sit there waiting for both teams to contain players,
|
||||||
// as everyone starts a survivor
|
// as everyone starts a survivor
|
||||||
level.prematchWaitForTeams = false;
|
level.prematchWaitForTeams = false;
|
||||||
level.onPrecacheGameType = ::onPrecacheGameType;
|
level.onPrecacheGameType = ::onPrecacheGameType;
|
||||||
level.onStartGameType = ::onStartGameType;
|
level.onStartGameType = ::onStartGameType;
|
||||||
level.onSpawnPlayer = ::onSpawnPlayer;
|
level.onSpawnPlayer = ::onSpawnPlayer;
|
||||||
level.getSpawnPoint = ::getSpawnPoint;
|
level.getSpawnPoint = ::getSpawnPoint;
|
||||||
level.onPlayerKilled = ::onPlayerKilled;
|
level.onPlayerKilled = ::onPlayerKilled;
|
||||||
level.onTimeLimit = ::onTimeLimit;
|
level.onDeadEvent = ::onDeadEvent;
|
||||||
|
level.onTimeLimit = ::onTimeLimit;
|
||||||
|
|
||||||
level.infect_perks = [];
|
level.infect_perks = [];
|
||||||
level.infect_perks[level.infect_perks.size] = "specialty_marathon";
|
level.infect_perks[level.infect_perks.size] = "specialty_marathon";
|
||||||
@@ -54,21 +55,22 @@ determineWinningTeam()
|
|||||||
|
|
||||||
onPrecacheGameType()
|
onPrecacheGameType()
|
||||||
{
|
{
|
||||||
precachestring( &"MP_CONSCRIPTION_STARTS_IN" );
|
precacheString( &"MP_CONSCRIPTION_STARTS_IN" );
|
||||||
}
|
}
|
||||||
|
|
||||||
onStartGameType()
|
onStartGameType()
|
||||||
{
|
{
|
||||||
setclientnamemode( "auto_change" );
|
setClientNameMode("auto_change");
|
||||||
setObjectiveText( "allies", &"OBJECTIVES_INFECT" );
|
|
||||||
setObjectiveText( "axis", &"OBJECTIVES_INFECT" );
|
|
||||||
|
|
||||||
setObjectiveScoreText( "allies", &"OBJECTIVES_INFECT_SCORE" );
|
setObjectiveText( "allies", &"OBJECTIVES_INFECT" );
|
||||||
setObjectiveScoreText( "axis", &"OBJECTIVES_INFECT_SCORE" );
|
setObjectiveText( "axis", &"OBJECTIVES_INFECT" );
|
||||||
|
|
||||||
|
setObjectiveScoreText( "allies", &"OBJECTIVES_INFECT_SCORE" );
|
||||||
|
setObjectiveScoreText( "axis", &"OBJECTIVES_INFECT_SCORE" );
|
||||||
|
|
||||||
|
setObjectiveHintText( "allies", &"OBJECTIVES_INFECT_HINT" );
|
||||||
|
setObjectiveHintText( "axis", &"OBJECTIVES_INFECT_HINT" );
|
||||||
|
|
||||||
setObjectiveHintText( "allies", &"OBJECTIVES_INFECT_HINT" );
|
|
||||||
setObjectiveHintText( "axis", &"OBJECTIVES_INFECT_HINT" );
|
|
||||||
|
|
||||||
level.spawnMins = ( 0, 0, 0 );
|
level.spawnMins = ( 0, 0, 0 );
|
||||||
level.spawnMaxs = ( 0, 0, 0 );
|
level.spawnMaxs = ( 0, 0, 0 );
|
||||||
maps\mp\gametypes\_spawnlogic::addSpawnPoints( "allies", "mp_tdm_spawn" );
|
maps\mp\gametypes\_spawnlogic::addSpawnPoints( "allies", "mp_tdm_spawn" );
|
||||||
@@ -85,7 +87,7 @@ onStartGameType()
|
|||||||
maps\mp\gametypes\_rank::registerScoreInfo( "kill", 50 );
|
maps\mp\gametypes\_rank::registerScoreInfo( "kill", 50 );
|
||||||
maps\mp\gametypes\_rank::registerScoreInfo( "draft_rogue", 200 );
|
maps\mp\gametypes\_rank::registerScoreInfo( "draft_rogue", 200 );
|
||||||
maps\mp\gametypes\_rank::registerScoreInfo( "survivor", 50 );
|
maps\mp\gametypes\_rank::registerScoreInfo( "survivor", 50 );
|
||||||
|
|
||||||
level.QuickMessageToAll = true;
|
level.QuickMessageToAll = true;
|
||||||
level.blockWeaponDrops = true;
|
level.blockWeaponDrops = true;
|
||||||
level.infect_allowSuicide = false;
|
level.infect_allowSuicide = false;
|
||||||
@@ -98,19 +100,18 @@ onStartGameType()
|
|||||||
level.infect_timerDisplay.label = &"MP_DRAFT_STARTS_IN";
|
level.infect_timerDisplay.label = &"MP_DRAFT_STARTS_IN";
|
||||||
level.infect_timerDisplay.alpha = 0;
|
level.infect_timerDisplay.alpha = 0;
|
||||||
level.infect_timerDisplay.archived = false;
|
level.infect_timerDisplay.archived = false;
|
||||||
level.infect_timerDisplay.hideWhenInMenu = true;
|
level.infect_timerDisplay.hideWhenInMenu = true;
|
||||||
|
|
||||||
level.infect_choseFirstInfected = false;
|
level.infect_choseFirstInfected = false;
|
||||||
level.infect_choosingFirstInfected = false;
|
level.infect_choosingFirstInfected = false;
|
||||||
level.infect_awardedFinalSurvivor = false;
|
level.infect_awardedFinalSurvivor = false;
|
||||||
level.infect_countdownInProgress = false;
|
|
||||||
|
|
||||||
level.infect_teamScores["axis"] = 0;
|
level.infect_teamScores["axis"] = 0;
|
||||||
level.infect_teamScores["allies"] = 0;
|
level.infect_teamScores["allies"] = 0;
|
||||||
level.infect_players = [];
|
level.infect_players = [];
|
||||||
|
|
||||||
level thread onPlayerConnect();
|
level thread onPlayerConnect();
|
||||||
level thread watchInfectForfeit();
|
level thread watchInfectForfeit();
|
||||||
}
|
}
|
||||||
|
|
||||||
onPlayerConnect()
|
onPlayerConnect()
|
||||||
@@ -118,50 +119,40 @@ onPlayerConnect()
|
|||||||
for (;;)
|
for (;;)
|
||||||
{
|
{
|
||||||
level waittill( "connected", player );
|
level waittill( "connected", player );
|
||||||
|
|
||||||
player.infect_firstSpawn = true;
|
player.infect_firstSpawn = true;
|
||||||
player.infected_Rejoined = false;
|
|
||||||
player.infect_JoinedAtStart = true;
|
|
||||||
|
|
||||||
if( gameFlag( "prematch_done" ) )
|
if ( gameFlag( "prematch_done" ) )
|
||||||
{
|
player.infect_joinedatstart = false;
|
||||||
player.infect_JoinedAtStart = false;
|
else
|
||||||
}
|
player.infect_joinedatstart = true;
|
||||||
// infected who quit and rejoined same game
|
|
||||||
if( IsDefined( level.infect_players[player.name] ) )
|
if ( isDefined( level.infect_players[player.name] ) )
|
||||||
{
|
player.infect_rejoined = true;
|
||||||
player.infected_Rejoined = true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
getSpawnPoint()
|
getSpawnPoint()
|
||||||
{
|
{
|
||||||
// first time here?
|
// first time here?
|
||||||
if ( self.infect_firstSpawn )
|
if ( self.infect_firstSpawn )
|
||||||
{
|
{
|
||||||
self.infect_firstSpawn = false;
|
self.infect_firstSpawn = false;
|
||||||
|
|
||||||
// everyone is a gamemode class in infect, no class selection
|
// everyone is a gamemode class in infect, no class selection
|
||||||
self.pers["class"] = "gamemode";
|
self.pers["class"] = "gamemode";
|
||||||
self.pers["lastClass"] = "";
|
self.pers["lastClass"] = "";
|
||||||
self.class = self.pers["class"];
|
self.class = self.pers["class"];
|
||||||
self.lastClass = self.pers["lastClass"];
|
self.lastClass = self.pers["lastClass"];
|
||||||
|
|
||||||
// survivors are allies
|
if ( isDefined( self.infect_rejoined ) )
|
||||||
teamChoice = "allies";
|
maps\mp\gametypes\_menus::addToTeam( "axis", true );
|
||||||
|
else
|
||||||
// everyone starts as survivors, unless an infected quit and rejoined same game
|
maps\mp\gametypes\_menus::addToTeam( "allies", true );
|
||||||
if( self.infected_Rejoined )
|
|
||||||
{
|
|
||||||
teamChoice = "axis";
|
|
||||||
}
|
|
||||||
|
|
||||||
self maps\mp\gametypes\_menus::addToTeam( teamChoice, true );
|
|
||||||
|
|
||||||
thread onPlayerDisconnect();
|
thread onPlayerDisconnect();
|
||||||
}
|
|
||||||
|
}
|
||||||
|
|
||||||
if ( level.inGracePeriod )
|
if ( level.inGracePeriod )
|
||||||
{
|
{
|
||||||
spawnPoints = maps\mp\gametypes\_spawnlogic::getSpawnpointArray( "mp_tdm_spawn" );
|
spawnPoints = maps\mp\gametypes\_spawnlogic::getSpawnpointArray( "mp_tdm_spawn" );
|
||||||
@@ -172,64 +163,59 @@ getSpawnPoint()
|
|||||||
spawnPoints = maps\mp\gametypes\_spawnlogic::getTeamSpawnPoints( self.pers["team"] );
|
spawnPoints = maps\mp\gametypes\_spawnlogic::getTeamSpawnPoints( self.pers["team"] );
|
||||||
spawnPoint = maps\mp\gametypes\_spawnlogic::getSpawnpoint_NearTeam( spawnPoints );
|
spawnPoint = maps\mp\gametypes\_spawnlogic::getSpawnpoint_NearTeam( spawnPoints );
|
||||||
}
|
}
|
||||||
|
|
||||||
return spawnPoint;
|
return spawnPoint;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
onSpawnPlayer()
|
onSpawnPlayer()
|
||||||
{
|
{
|
||||||
self.teamChangedThisFrame = undefined;
|
self.teamchangedthisframe = undefined;
|
||||||
self.infect_spawnPos = self.origin;
|
self.infect_spawnpos = self.origin;
|
||||||
|
|
||||||
// resynch teams
|
|
||||||
updateTeamScores();
|
updateTeamScores();
|
||||||
|
|
||||||
// let the first spawned player kick this off
|
// let the first spawned player kick this off
|
||||||
if ( !level.infect_choosingFirstInfected )
|
if ( !level.infect_choosingFirstInfected )
|
||||||
{
|
{
|
||||||
level.infect_choosingFirstInfected = true;
|
level.infect_choosingFirstInfected = true;
|
||||||
level thread chooseFirstInfected();
|
level thread chooseFirstInfected();
|
||||||
}
|
}
|
||||||
|
|
||||||
// infected who quit and rejoined same game?
|
if ( isDefined( self.infect_rejoined ) )
|
||||||
if( self.infected_Rejoined )
|
|
||||||
{
|
{
|
||||||
self.infect_rejoined = undefined;
|
self.infect_rejoined = undefined;
|
||||||
|
|
||||||
// stop initial infect countdown (if quit/join player was initial and a new coutdown is underway)
|
if ( !level.infect_allowsuicide )
|
||||||
if ( !level.infect_allowSuicide )
|
{
|
||||||
{
|
level notify( "infect_stopCountdown" );
|
||||||
level notify( "infect_stopCountdown" );
|
level.infect_choseFirstInfected = 1;
|
||||||
level.infect_choseFirstInfected = true;
|
level.infect_allowsuicide = 1;
|
||||||
level.infect_allowSuicide = true;
|
|
||||||
foreach( player in level.players )
|
|
||||||
{
|
|
||||||
if ( isDefined( player.infect_isBeingChosen ) )
|
|
||||||
player.infect_isBeingChosen = undefined;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// if an initial was already chosen while they were gone and they are still initial, set them to normal
|
foreach ( player in level.players )
|
||||||
foreach( player in level.players )
|
{
|
||||||
{
|
if ( isDefined( player.infect_isBeingChosen ) )
|
||||||
if ( isDefined( player.isInitialInfected ) )
|
player.infect_isBeingChosen = undefined;
|
||||||
player thread setInitialToNormalInfected();
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// if they're the only infected, then set them as initial infected
|
foreach ( player in level.players )
|
||||||
if ( level.infect_teamScores["axis"] == 1 )
|
{
|
||||||
self.isInitialInfected = true;
|
if ( isDefined( player.isInitialInfected ) )
|
||||||
|
player thread setInitialToNormalInfected();
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( level.infect_teamscores["axis"] == 1 )
|
||||||
|
self.isInitialInfected = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// onSpawnPlayer() is called before giveLoadout()
|
// onSpawnPlayer() is called before giveLoadout()
|
||||||
// set self.pers["gamemodeLoadout"] for giveLoadout() to use
|
// set self.pers["gamemodeLoadout"] for giveLoadout() to use
|
||||||
if ( isDefined( self.isInitialInfected ) )
|
if ( isDefined( self.isInitialInfected ) )
|
||||||
self.pers["gamemodeLoadout"] = level.infect_loadouts["axis_initial"];
|
self.pers["gamemodeLoadout"] = level.infect_loadouts["axis_initial"];
|
||||||
else
|
else
|
||||||
self.pers["gamemodeLoadout"] = level.infect_loadouts[self.pers["team"]];
|
self.pers["gamemodeLoadout"] = level.infect_loadouts[self.pers["team"]];
|
||||||
|
|
||||||
self thread onSpawnFinished();
|
|
||||||
|
|
||||||
|
thread onSpawnFinished();
|
||||||
level notify ( "spawned_player" );
|
level notify ( "spawned_player" );
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -320,63 +306,53 @@ setInfectedMsg()
|
|||||||
|
|
||||||
chooseFirstInfected()
|
chooseFirstInfected()
|
||||||
{
|
{
|
||||||
level endon( "game_ended" );
|
level endon( "game_ended" );
|
||||||
level endon( "infect_stopCountdown" );
|
level endon( "infect_stopCountdown" );
|
||||||
|
|
||||||
level.infect_allowSuicide = false;
|
level.infect_allowsuicide = false;
|
||||||
gameFlagWait( "prematch_done" );
|
|
||||||
|
|
||||||
level.infect_timerDisplay.label = &"MP_DRAFT_STARTS_IN";
|
gameFlagWait( "prematch_done" );
|
||||||
level.infect_timerDisplay setTimer( 15 );
|
|
||||||
level.infect_timerDisplay.alpha = 1;
|
|
||||||
|
|
||||||
maps\mp\gametypes\_hostmigration::waitLongDurationWithHostMigrationPause( 15.0 );
|
level.infect_timerDisplay.label = &"MP_DRAFT_STARTS_IN";
|
||||||
|
level.infect_timerDisplay settimer( 8 );
|
||||||
|
level.infect_timerDisplay.alpha = 1;
|
||||||
|
|
||||||
level.infect_timerDisplay.alpha = 0;
|
maps\mp\gametypes\_hostmigration::waitLongDurationWithHostMigrationPause( 8.0 );
|
||||||
|
|
||||||
possibleInfected = [];
|
level.infect_timerDisplay.alpha = 0;
|
||||||
|
|
||||||
foreach( player in level.players )
|
level.players[randomint( level.players.size )] setFirstInfected( true );
|
||||||
{
|
|
||||||
if ( player.team == "spectator" )
|
|
||||||
continue;
|
|
||||||
|
|
||||||
if ( !player.hasSpawned )
|
|
||||||
continue;
|
|
||||||
|
|
||||||
possibleInfected[possibleInfected.size] = player;
|
|
||||||
}
|
|
||||||
|
|
||||||
firstInfectedPlayer = possibleInfected[ randomInt( possibleInfected.size ) ];
|
|
||||||
firstInfectedPlayer setFirstInfected( true );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
setFirstInfected( wasChosen )
|
setFirstInfected( wasChosen )
|
||||||
{
|
{
|
||||||
self endon( "disconnect" );
|
self endon( "disconnect" );
|
||||||
|
|
||||||
if ( wasChosen )
|
|
||||||
self.infect_isBeingChosen = true;
|
|
||||||
|
|
||||||
|
if ( wasChosen )
|
||||||
|
self.infect_isBeingChosen = true;
|
||||||
|
|
||||||
// wait alive
|
// wait alive
|
||||||
while( !isReallyAlive( self ) || self isUsingRemote() )
|
while ( !isReallyAlive( self ) || isUsingRemote() )
|
||||||
wait( 0.05 );
|
wait 0.05;
|
||||||
|
|
||||||
// remove placement item if carrying
|
// remove placement item if carrying
|
||||||
if ( IsDefined( self.isCarrying ) && self.isCarrying == true )
|
if ( isDefined( self.isCarrying ) && self.isCarrying == 1 )
|
||||||
{
|
{
|
||||||
self notify( "force_cancel_placement" );
|
self notify( "force_cancel_placement" );
|
||||||
wait( 0.05 );
|
wait 0.05;
|
||||||
}
|
}
|
||||||
|
|
||||||
// not while mantling
|
// not while mantling
|
||||||
while ( self IsMantling() )
|
while ( self IsMantling() )
|
||||||
wait( 0.05 );
|
wait( 0.05 );
|
||||||
|
|
||||||
// not while in air
|
// not while in air
|
||||||
while ( !self isOnGround() && !self IsOnLadder() )
|
while ( !self isOnGround() && !self IsOnLadder() )
|
||||||
wait( 0.05 );
|
wait( 0.05 );
|
||||||
|
|
||||||
|
while ( !isAlive( self ) )
|
||||||
|
waitframe();
|
||||||
|
|
||||||
// move to other team
|
// move to other team
|
||||||
if ( wasChosen )
|
if ( wasChosen )
|
||||||
{
|
{
|
||||||
@@ -385,22 +361,21 @@ setFirstInfected( wasChosen )
|
|||||||
self.infect_isBeingChosen = undefined;
|
self.infect_isBeingChosen = undefined;
|
||||||
|
|
||||||
// resynch teams
|
// resynch teams
|
||||||
level notify( "update_game_time" );
|
|
||||||
updateTeamScores();
|
updateTeamScores();
|
||||||
|
|
||||||
// allow suicides now
|
// allow suicides now
|
||||||
level.infect_allowSuicide = true;
|
level.infect_allowSuicide = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// store initial
|
// store initial
|
||||||
self.isInitialInfected = true;
|
self.isInitialInfected = true;
|
||||||
|
|
||||||
// set the gamemodeloadout for giveLoadout() to use
|
|
||||||
self.pers["gamemodeLoadout"] = level.infect_loadouts["axis_initial"];
|
|
||||||
|
|
||||||
|
// set the gamemodeloadout for giveLoadout() to use
|
||||||
|
self.pers["gamemodeLoadout"] = level.infect_loadouts["axis_initial"];
|
||||||
|
|
||||||
// remove old TI if it exists
|
// remove old TI if it exists
|
||||||
if ( isDefined ( self.setSpawnpoint ) )
|
if ( isDefined( self.setSpawnpoint ) )
|
||||||
self maps\mp\perks\_perkfunctions::deleteTI( self.setSpawnpoint );
|
maps\mp\perks\_perkfunctions::deleteTI( self.setSpawnpoint );
|
||||||
|
|
||||||
// set faux TI to respawn in place
|
// set faux TI to respawn in place
|
||||||
spawnPoint = spawn( "script_model", self.origin );
|
spawnPoint = spawn( "script_model", self.origin );
|
||||||
@@ -412,15 +387,14 @@ setFirstInfected( wasChosen )
|
|||||||
// faux spawn
|
// faux spawn
|
||||||
self notify( "faux_spawn" );
|
self notify( "faux_spawn" );
|
||||||
self.faux_spawn_stance = self getStance();
|
self.faux_spawn_stance = self getStance();
|
||||||
thread maps\mp\gametypes\_playerlogic::spawnPlayer( true );
|
self thread maps\mp\gametypes\_playerlogic::spawnPlayer( true );
|
||||||
|
|
||||||
// store infected
|
// store infected
|
||||||
if ( wasChosen )
|
if ( wasChosen )
|
||||||
level.infect_players[self.name] = true;
|
level.infect_players[self.name] = true;
|
||||||
|
|
||||||
// tell the world!
|
|
||||||
thread teamPlayerCardSplash( "callout_first_mercenary", self );
|
thread teamPlayerCardSplash( "callout_first_mercenary", self );
|
||||||
playSoundOnPlayers( "mp_enemy_obj_captured" );
|
playSoundOnPlayers( "mp_enemy_obj_captured" );
|
||||||
}
|
}
|
||||||
|
|
||||||
setInitialToNormalInfected( gotKill )
|
setInitialToNormalInfected( gotKill )
|
||||||
@@ -441,8 +415,8 @@ setInitialToNormalInfected( gotKill )
|
|||||||
{
|
{
|
||||||
self notify( "force_cancel_placement" );
|
self notify( "force_cancel_placement" );
|
||||||
wait( 0.05 );
|
wait( 0.05 );
|
||||||
}
|
}
|
||||||
|
|
||||||
// not while mantling
|
// not while mantling
|
||||||
while ( self IsMantling() )
|
while ( self IsMantling() )
|
||||||
wait( 0.05 );
|
wait( 0.05 );
|
||||||
@@ -450,18 +424,18 @@ setInitialToNormalInfected( gotKill )
|
|||||||
// not while in air
|
// not while in air
|
||||||
while ( !self isOnGround() )
|
while ( !self isOnGround() )
|
||||||
wait( 0.05 );
|
wait( 0.05 );
|
||||||
|
|
||||||
// Gotta check again, more time has passed, wait till we spawn if we died at the same time
|
// Gotta check again, more time has passed, wait till we spawn if we died at the same time
|
||||||
while ( !isReallyAlive( self ) )
|
while ( !isReallyAlive( self ) )
|
||||||
wait( 0.05 );
|
wait( 0.05 );
|
||||||
|
|
||||||
// set the gamemodeloadout for giveLoadout() to use
|
// set the gamemodeloadout for giveLoadout() to use
|
||||||
self.pers["gamemodeLoadout"] = level.infect_loadouts["axis"];
|
self.pers["gamemodeLoadout"] = level.infect_loadouts["axis"];
|
||||||
|
|
||||||
// remove old TI if it exists
|
// remove old TI if it exists
|
||||||
if ( isDefined ( self.setSpawnpoint ) )
|
if ( isDefined ( self.setSpawnpoint ) )
|
||||||
self maps\mp\perks\_perkfunctions::deleteTI( self.setSpawnpoint );
|
self maps\mp\perks\_perkfunctions::deleteTI( self.setSpawnpoint );
|
||||||
|
|
||||||
// set faux TI to respawn in place
|
// set faux TI to respawn in place
|
||||||
spawnPoint = spawn( "script_model", self.origin );
|
spawnPoint = spawn( "script_model", self.origin );
|
||||||
spawnPoint.angles = self.angles;
|
spawnPoint.angles = self.angles;
|
||||||
@@ -472,15 +446,15 @@ setInitialToNormalInfected( gotKill )
|
|||||||
// faux spawn
|
// faux spawn
|
||||||
self notify( "faux_spawn" );
|
self notify( "faux_spawn" );
|
||||||
self.faux_spawn_stance = self getStance();
|
self.faux_spawn_stance = self getStance();
|
||||||
|
|
||||||
thread maps\mp\gametypes\_playerlogic::spawnPlayer( true );
|
thread maps\mp\gametypes\_playerlogic::spawnPlayer( true );
|
||||||
}
|
}
|
||||||
|
|
||||||
onPlayerKilled( eInflictor, attacker, iDamage, sMeansOfDeath, sWeapon, vDir, sHitLoc, psOffsetTime, deathAnimDuration )
|
|
||||||
|
onPlayerKilled( eInflictor, attacker, iDamage, sMeansOfDeath, sWeapon, vDir, sHitLoc, psOffsetTime, deathAnimDuration, lifeId )
|
||||||
{
|
{
|
||||||
processKill = false;
|
processKill = false;
|
||||||
wasSuicide = false;
|
wasSuicide = false;
|
||||||
|
|
||||||
if ( self.team == "allies" && isDefined( attacker ) )
|
if ( self.team == "allies" && isDefined( attacker ) )
|
||||||
{
|
{
|
||||||
if ( isPlayer( attacker ) && attacker != self )
|
if ( isPlayer( attacker ) && attacker != self )
|
||||||
@@ -501,10 +475,10 @@ onPlayerKilled( eInflictor, attacker, iDamage, sMeansOfDeath, sWeapon, vDir, sHi
|
|||||||
self maps\mp\gametypes\_menus::addToTeam( "axis" );
|
self maps\mp\gametypes\_menus::addToTeam( "axis" );
|
||||||
|
|
||||||
// resynch teams
|
// resynch teams
|
||||||
updateTeamScores();
|
updateTeamScores();
|
||||||
|
|
||||||
// store infected
|
// store infected
|
||||||
level.infect_players[self.name] = true;
|
level.infect_players[self.name] = true;
|
||||||
|
|
||||||
if ( wasSuicide )
|
if ( wasSuicide )
|
||||||
{
|
{
|
||||||
@@ -518,37 +492,31 @@ onPlayerKilled( eInflictor, attacker, iDamage, sMeansOfDeath, sWeapon, vDir, sHi
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else if ( isDefined( attacker.isInitialInfected ) )
|
||||||
{
|
|
||||||
// set attacker to regular infected if they were the first infected
|
// set attacker to regular infected if they were the first infected
|
||||||
if ( isDefined( attacker.isInitialInfected ) )
|
attacker thread setInitialToNormalInfected( true );
|
||||||
attacker thread setInitialToNormalInfected( true );
|
else
|
||||||
else
|
{
|
||||||
{
|
// regular attacker reward
|
||||||
// regular attacker reward
|
attacker thread maps\mp\gametypes\_rank::xpEventPopup( &"SPLASHES_DRAFTED" );
|
||||||
attacker thread maps\mp\gametypes\_rank::xpEventPopup( &"SPLASHES_DRAFTED" );
|
maps\mp\gametypes\_gamescore::givePlayerScore( "draft_rogue", attacker, self, true );
|
||||||
maps\mp\gametypes\_gamescore::givePlayerScore( "draft_rogue", attacker, self, true );
|
attacker thread maps\mp\gametypes\_rank::giveRankXP( "draft_rogue" );
|
||||||
attacker thread maps\mp\gametypes\_rank::giveRankXP( "draft_rogue" );
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// generic messages/sounds, and reward survivors
|
// generic messages/sounds, and reward survivors
|
||||||
if ( level.infect_teamScores["allies"] > 1 )
|
if ( level.infect_teamScores["allies"] > 1 )
|
||||||
{
|
{
|
||||||
playSoundOnPlayers( "mp_enemy_obj_captured", "allies" );
|
playSoundOnPlayers( "mp_enemy_obj_captured", "allies" );
|
||||||
playSoundOnPlayers( "mp_war_objective_taken", "axis" );
|
playSoundOnPlayers( "mp_war_objective_taken", "axis" );
|
||||||
thread teamPlayerCardSplash( "callout_got_drafted", self, "allies" );
|
thread teamPlayerCardSplash( "callout_got_drafted", self, "allies" );
|
||||||
|
|
||||||
if ( !wasSuicide )
|
if ( !wasSuicide )
|
||||||
{
|
{
|
||||||
thread teamPlayerCardSplash( "callout_drafted_rogue", attacker, "axis" );
|
thread teamPlayerCardSplash( "callout_drafted_rogue", attacker, "axis" );
|
||||||
|
|
||||||
foreach ( player in level.players )
|
foreach ( player in level.players )
|
||||||
{
|
{
|
||||||
if( !isReallyAlive( player ) || self.sessionstate == "spectator" )
|
if ( player.team == "allies" && player != self && distance( player.infect_spawnpos, player.origin ) > 32 )
|
||||||
continue;
|
|
||||||
|
|
||||||
if ( player.team == "allies" && player != self && distance( player.infect_spawnPos, player.origin ) > 32 )
|
|
||||||
{
|
{
|
||||||
player thread maps\mp\gametypes\_rank::xpEventPopup( &"SPLASHES_SURVIVOR" );
|
player thread maps\mp\gametypes\_rank::xpEventPopup( &"SPLASHES_SURVIVOR" );
|
||||||
maps\mp\gametypes\_gamescore::givePlayerScore( "survivor", player, undefined, true );
|
maps\mp\gametypes\_gamescore::givePlayerScore( "survivor", player, undefined, true );
|
||||||
@@ -558,23 +526,18 @@ onPlayerKilled( eInflictor, attacker, iDamage, sMeansOfDeath, sWeapon, vDir, sHi
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// inform/reward last
|
// inform/reward last
|
||||||
else if ( level.infect_teamScores["allies"] == 1 )
|
else if ( level.infect_teamScores["allies"] == 1 )
|
||||||
{
|
onFinalSurvivor();
|
||||||
onFinalSurvivor();
|
|
||||||
}
|
|
||||||
// infected win
|
// infected win
|
||||||
else if ( level.infect_teamScores["allies"] == 0 )
|
else if ( level.infect_teamScores["allies"] == 0 )
|
||||||
{
|
onSurvivorsEliminated();
|
||||||
onSurvivorsEliminated();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
onFinalSurvivor()
|
onFinalSurvivor()
|
||||||
{
|
{
|
||||||
playSoundOnPlayers( "mp_obj_captured" );
|
playSoundOnPlayers( "mp_obj_captured" );
|
||||||
foreach ( player in level.players )
|
foreach ( player in level.players )
|
||||||
{
|
{
|
||||||
if( !isDefined(player) )
|
if( !isDefined(player) )
|
||||||
continue;
|
continue;
|
||||||
@@ -582,66 +545,63 @@ onFinalSurvivor()
|
|||||||
if ( player.team == "allies" )
|
if ( player.team == "allies" )
|
||||||
{
|
{
|
||||||
player thread maps\mp\gametypes\_rank::xpEventPopup( &"SPLASHES_FINAL_ROGUE" );
|
player thread maps\mp\gametypes\_rank::xpEventPopup( &"SPLASHES_FINAL_ROGUE" );
|
||||||
|
|
||||||
if ( !level.infect_awardedFinalSurvivor )
|
if ( !level.infect_awardedFinalSurvivor )
|
||||||
{
|
{
|
||||||
if ( player.gameModeJoinedAtStart && isDefined( player.infect_spawnPos ) && distance( player.infect_spawnPos, player.origin ) > 32 )
|
if ( player.infect_joinedatstart && distance( player.infect_spawnpos, player.origin ) > 32 )
|
||||||
{
|
{
|
||||||
maps\mp\gametypes\_gamescore::givePlayerScore( "final_rogue", player, undefined, true );
|
maps\mp\gametypes\_gamescore::givePlayerScore( "final_rogue", player, undefined, true );
|
||||||
player thread maps\mp\gametypes\_rank::giveRankXP( "final_rogue" );
|
player thread maps\mp\gametypes\_rank::giveRankXP( "final_rogue" );
|
||||||
}
|
}
|
||||||
|
|
||||||
level.infect_awardedFinalSurvivor = true;
|
level.infect_awardedFinalSurvivor = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
thread teamplayercardsplash( "callout_final_rogue", player );
|
thread maps\mp\_utility::teamPlayerCardSplash( "callout_final_rogue", player );
|
||||||
|
|
||||||
if (matchMakingGame() )
|
|
||||||
level thread finalsurvivoruav( player );
|
|
||||||
|
|
||||||
|
if ( matchMakingGame() )
|
||||||
|
level thread finalSurvivorUAV( player );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
finalSurvivorUAV( finalPlayer )
|
finalSurvivorUAV( finalPlayer )
|
||||||
{
|
{
|
||||||
level endon( "game_ended" );
|
level endon( "game_ended" );
|
||||||
finalPlayer endon( "disconnect" );
|
finalPlayer endon( "disconnect" );
|
||||||
finalPlayer endon( "eliminated" );
|
finalPlayer endon( "eliminated" );
|
||||||
level endon( "infect_lateJoiner" );
|
level endon( "infect_lateJoiner" );
|
||||||
level thread endUAVonLateJoiner( finalPlayer );
|
level thread endUAVonLateJoiner( finalPlayer );
|
||||||
|
|
||||||
removeUAV = false;
|
removeUAV = false;
|
||||||
level.radarMode["axis"] = "normal_radar";
|
level.radarmode["axis"] = "normal_radar";
|
||||||
foreach ( player in level.players )
|
|
||||||
{
|
foreach ( player in level.players )
|
||||||
if ( player.team == "axis" )
|
{
|
||||||
player.radarMode = "normal_radar";
|
if ( player.team == "axis" )
|
||||||
}
|
player.radarmode = "normal_radar";
|
||||||
|
}
|
||||||
//setTeamRadarStrength( "axis", 1 );
|
|
||||||
|
for (;;)
|
||||||
while( true )
|
{
|
||||||
{
|
prevPos = finalPlayer.origin;
|
||||||
prevPos = finalPlayer.origin;
|
wait 4;
|
||||||
|
|
||||||
wait( 4 );
|
if ( removeUAV )
|
||||||
if ( removeUAV )
|
{
|
||||||
{
|
setTeamRadar( "axis", 0 );
|
||||||
setTeamRadar( "axis", 0 );
|
removeUAV = false;
|
||||||
removeUAV = false;
|
}
|
||||||
}
|
|
||||||
|
wait 6;
|
||||||
wait( 6 );
|
|
||||||
if ( distance( prevPos, finalPlayer.origin ) < 200 )
|
if ( distance( prevPos, finalPlayer.origin ) < 200 )
|
||||||
{
|
{
|
||||||
setTeamRadar( "axis", 1 );
|
setTeamRadar( "axis", 1 );
|
||||||
removeUAV = true;
|
removeUAV = true;
|
||||||
|
}
|
||||||
foreach ( player in level.players )
|
}
|
||||||
player playLocalSound( "recondrone_tag" );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
endUAVonLateJoiner( finalPlayer )
|
endUAVonLateJoiner( finalPlayer )
|
||||||
@@ -649,32 +609,32 @@ endUAVonLateJoiner( finalPlayer )
|
|||||||
level endon( "game_ended" );
|
level endon( "game_ended" );
|
||||||
finalPlayer endon( "disconnect" );
|
finalPlayer endon( "disconnect" );
|
||||||
finalPlayer endon( "eliminated" );
|
finalPlayer endon( "eliminated" );
|
||||||
|
|
||||||
while( true )
|
for (;;)
|
||||||
{
|
{
|
||||||
if ( level.infect_teamScores["allies"] > 1 )
|
if ( level.infect_teamScores["allies"] > 1 )
|
||||||
{
|
{
|
||||||
level notify( "infect_lateJoiner" );
|
level notify( "infect_lateJoiner" );
|
||||||
wait( 0.05 );
|
wait 0.05;
|
||||||
setTeamRadar( "axis", 0 );
|
setTeamRadar( "axis", 0 );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
wait( 0.05 );
|
|
||||||
}
|
wait 0.05;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
onPlayerDisconnect()
|
onPlayerDisconnect()
|
||||||
{
|
{
|
||||||
level endon( "game_ended" );
|
level endon( "game_ended" );
|
||||||
self endon( "eliminated" );
|
self endon( "eliminated" );
|
||||||
|
self waittill( "disconnect" );
|
||||||
self waittill( "disconnect" );
|
|
||||||
|
|
||||||
// resynch teams
|
// resynch teams
|
||||||
updateTeamScores();
|
updateTeamScores();
|
||||||
|
|
||||||
// team actions or win condition necessary?
|
// team actions or win condition necessary?
|
||||||
if ( isDefined( self.infect_isBeingChosen ) || level.infect_choseFirstInfected )
|
if ( isDefined( self.infect_isBeingChosen ) || level.infect_choseFirstInfected )
|
||||||
{
|
{
|
||||||
if ( level.infect_teamScores["axis"] && level.infect_teamScores["allies"] )
|
if ( level.infect_teamScores["axis"] && level.infect_teamScores["allies"] )
|
||||||
{
|
{
|
||||||
@@ -692,12 +652,12 @@ onPlayerDisconnect()
|
|||||||
player setFirstInfected( false );
|
player setFirstInfected( false );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if ( level.infect_teamScores["allies"] == 0 )
|
else if ( level.infect_teamScores["allies"] == 0 )
|
||||||
{
|
{
|
||||||
// no more survivors, infected win
|
// no more survivors, infected win
|
||||||
onSurvivorsEliminated();
|
onSurvivorsEliminated();
|
||||||
}
|
}
|
||||||
else if ( level.infect_teamScores["axis"] == 0 )
|
else if ( level.infect_teamScores["axis"] == 0 )
|
||||||
{
|
{
|
||||||
if ( level.infect_teamScores["allies"] == 1 )
|
if ( level.infect_teamScores["allies"] == 1 )
|
||||||
@@ -712,11 +672,10 @@ onPlayerDisconnect()
|
|||||||
level.infect_choseFirstInfected = false;
|
level.infect_choseFirstInfected = false;
|
||||||
level thread chooseFirstInfected();
|
level thread chooseFirstInfected();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// clear this regardless on the way out
|
||||||
// clear this regardless on the way out
|
self.isInitialInfected = undefined;
|
||||||
self.isInitialInfected = undefined;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
watchInfectForfeit()
|
watchInfectForfeit()
|
||||||
@@ -741,9 +700,8 @@ onDeadEvent( team )
|
|||||||
|
|
||||||
onTimeLimit()
|
onTimeLimit()
|
||||||
{
|
{
|
||||||
// survivors win
|
|
||||||
level.finalKillCam_winner = "allies";
|
level.finalKillCam_winner = "allies";
|
||||||
level thread maps\mp\gametypes\_gamelogic::endGame( "allies", game[ "end_reason" ][ "time_limit_reached" ] );
|
level thread maps\mp\gametypes\_gamelogic::endGame( "allies", game["strings"]["time_limit_reached"] );
|
||||||
}
|
}
|
||||||
|
|
||||||
onSurvivorsEliminated()
|
onSurvivorsEliminated()
|
||||||
@@ -753,33 +711,37 @@ onSurvivorsEliminated()
|
|||||||
level thread maps\mp\gametypes\_gamelogic::endGame( "axis", game[ "end_reason" ][ "allies_eliminated" ] );
|
level thread maps\mp\gametypes\_gamelogic::endGame( "axis", game[ "end_reason" ][ "allies_eliminated" ] );
|
||||||
}
|
}
|
||||||
|
|
||||||
getTeamSize( team )
|
getNumInfected()
|
||||||
{
|
{
|
||||||
size = 0;
|
numInfected = 0;
|
||||||
|
foreach ( player in level.players )
|
||||||
foreach( player in level.players )
|
|
||||||
{
|
{
|
||||||
// Make sure we don't check for spectators
|
if ( isdefined( player.team ) && player.team == "axis" )
|
||||||
// Also need to check for if they are in killcam, because player session states are set to spectator when killcam happens
|
numInfected++;
|
||||||
if ( player.sessionstate == "spectator" && !player.spectatekillcam )
|
|
||||||
continue;
|
|
||||||
|
|
||||||
if( player.team == team )
|
|
||||||
size++;
|
|
||||||
}
|
}
|
||||||
|
return numInfected;
|
||||||
return size;
|
}
|
||||||
|
|
||||||
|
getNumSurvivors()
|
||||||
|
{
|
||||||
|
numSurvivors = 0;
|
||||||
|
foreach ( player in level.players )
|
||||||
|
{
|
||||||
|
if ( isdefined( player.team ) && player.team == "allies" )
|
||||||
|
numSurvivors++;
|
||||||
|
}
|
||||||
|
return numSurvivors;
|
||||||
}
|
}
|
||||||
|
|
||||||
updateTeamScores()
|
updateTeamScores()
|
||||||
{
|
{
|
||||||
// survivors
|
// survivors
|
||||||
level.infect_teamScores["allies"] = getTeamSize( "allies" );
|
level.infect_teamScores["allies"] = getNumSurvivors();
|
||||||
game["teamScores"]["allies"] = level.infect_teamScores["allies"];
|
game["teamScores"]["allies"] = level.infect_teamScores["allies"];
|
||||||
setTeamScore( "allies", level.infect_teamScores["allies"] );
|
setTeamScore( "allies", level.infect_teamScores["allies"] );
|
||||||
|
|
||||||
// infected
|
// infected
|
||||||
level.infect_teamScores["axis"] = getTeamSize( "axis" );
|
level.infect_teamScores["axis"] = getNumInfected();
|
||||||
game["teamScores"]["axis"] = level.infect_teamScores["axis"];
|
game["teamScores"]["axis"] = level.infect_teamScores["axis"];
|
||||||
setTeamScore( "axis", level.infect_teamScores["axis"] );
|
setTeamScore( "axis", level.infect_teamScores["axis"] );
|
||||||
}
|
}
|
||||||
@@ -802,11 +764,11 @@ setSpecialLoadouts()
|
|||||||
level.infect_loadouts["axis"]["loadoutKillstreak1"] = "none";
|
level.infect_loadouts["axis"]["loadoutKillstreak1"] = "none";
|
||||||
level.infect_loadouts["axis"]["loadoutKillstreak2"] = "none";
|
level.infect_loadouts["axis"]["loadoutKillstreak2"] = "none";
|
||||||
level.infect_loadouts["axis"]["loadoutKillstreak3"] = "none";
|
level.infect_loadouts["axis"]["loadoutKillstreak3"] = "none";
|
||||||
level.infect_loadouts["axis"]["loadoutDeathstreak"] = "specialty_grenadepulldeath";
|
level.infect_loadouts["axis"]["loadoutDeathstreak"] = "none";
|
||||||
|
|
||||||
level.infect_loadouts["axis_initial"]["loadoutPrimary"] = "scar";
|
level.infect_loadouts["axis_initial"]["loadoutPrimary"] = "throwingknife";
|
||||||
level.infect_loadouts["axis_initial"]["loadoutPrimaryAttachment"] = "reflex";
|
level.infect_loadouts["axis_initial"]["loadoutPrimaryAttachment"] = "none";
|
||||||
level.infect_loadouts["axis_initial"]["loadoutPrimaryAttachment2"] = "xmags";
|
level.infect_loadouts["axis_initial"]["loadoutPrimaryAttachment2"] = "none";
|
||||||
level.infect_loadouts["axis_initial"]["loadoutPrimaryCamo"] = "none";
|
level.infect_loadouts["axis_initial"]["loadoutPrimaryCamo"] = "none";
|
||||||
level.infect_loadouts["axis_initial"]["loadoutSecondary"] = "none";
|
level.infect_loadouts["axis_initial"]["loadoutSecondary"] = "none";
|
||||||
level.infect_loadouts["axis_initial"]["loadoutSecondaryAttachment"] = "none";
|
level.infect_loadouts["axis_initial"]["loadoutSecondaryAttachment"] = "none";
|
||||||
@@ -820,7 +782,7 @@ setSpecialLoadouts()
|
|||||||
level.infect_loadouts["axis_initial"]["loadoutKillstreak1"] = "none";
|
level.infect_loadouts["axis_initial"]["loadoutKillstreak1"] = "none";
|
||||||
level.infect_loadouts["axis_initial"]["loadoutKillstreak2"] = "none";
|
level.infect_loadouts["axis_initial"]["loadoutKillstreak2"] = "none";
|
||||||
level.infect_loadouts["axis_initial"]["loadoutKillstreak3"] = "none";
|
level.infect_loadouts["axis_initial"]["loadoutKillstreak3"] = "none";
|
||||||
level.infect_loadouts["axis_initial"]["loadoutDeathstreak"] = "specialty_grenadepulldeath";
|
level.infect_loadouts["axis_initial"]["loadoutDeathstreak"] = "none";
|
||||||
|
|
||||||
level.infect_loadouts["allies"]["loadoutPrimary"] = "spas12";
|
level.infect_loadouts["allies"]["loadoutPrimary"] = "spas12";
|
||||||
level.infect_loadouts["allies"]["loadoutPrimaryAttachment"] = "xmags";
|
level.infect_loadouts["allies"]["loadoutPrimaryAttachment"] = "xmags";
|
||||||
@@ -836,4 +798,4 @@ setSpecialLoadouts()
|
|||||||
level.infect_loadouts["allies"]["loadoutPerk2"] = "specialty_lightweight";
|
level.infect_loadouts["allies"]["loadoutPerk2"] = "specialty_lightweight";
|
||||||
level.infect_loadouts["allies"]["loadoutPerk3"] = "specialty_heartbreaker";
|
level.infect_loadouts["allies"]["loadoutPerk3"] = "specialty_heartbreaker";
|
||||||
level.infect_loadouts["allies"]["loadoutDeathstreak"] = "specialty_null";
|
level.infect_loadouts["allies"]["loadoutDeathstreak"] = "specialty_null";
|
||||||
}
|
}
|
||||||
@@ -1,165 +0,0 @@
|
|||||||
main()
|
|
||||||
{
|
|
||||||
maps\mp\mp_shipment_fx::main();
|
|
||||||
maps\createart\mp_shipment_art::main();
|
|
||||||
maps\createfx\mp_shipment_fx::main();
|
|
||||||
maps\mp\_load::main();
|
|
||||||
|
|
||||||
maps\mp\_compass::setupMiniMap( "compass_map_mp_shipment" );
|
|
||||||
|
|
||||||
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( "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();
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
main()
|
|
||||||
{
|
|
||||||
|
|
||||||
level._effect[ "bird_seagull_flock_large" ] = loadfx( "misc/bird_seagull_flock_large" );
|
|
||||||
level._effect[ "cloud_bank_far" ] = loadfx( "weather/jeepride_cloud_bank_far" );
|
|
||||||
level._effect[ "mist_hunted_fav" ] = loadfx( "weather/mist_hunted_fav" );
|
|
||||||
|
|
||||||
if ( !getdvarint( "clientSideEffects" ) )
|
|
||||||
maps\createfx\mp_shipment_fx::main();
|
|
||||||
}
|
|
||||||
@@ -373,7 +373,7 @@
|
|||||||
mapoverlay "compass_overlay_map_blank "
|
mapoverlay "compass_overlay_map_blank "
|
||||||
allieschar "iw3_usmc_desert"
|
allieschar "iw3_usmc_desert"
|
||||||
axischar "iw3_opfor_desert"
|
axischar "iw3_opfor_desert"
|
||||||
environment "forest"
|
environment "iw3"
|
||||||
useteamzones "true"
|
useteamzones "true"
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -386,7 +386,7 @@
|
|||||||
mapoverlay "compass_overlay_map_blank "
|
mapoverlay "compass_overlay_map_blank "
|
||||||
allieschar "iw3_sas_woodland"
|
allieschar "iw3_sas_woodland"
|
||||||
axischar "iw3_spetsnaz_woodland"
|
axischar "iw3_spetsnaz_woodland"
|
||||||
environment "forest"
|
environment "iw3"
|
||||||
useteamzones "true"
|
useteamzones "true"
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -400,7 +400,7 @@
|
|||||||
allieschar "iw3_sas_woodland"
|
allieschar "iw3_sas_woodland"
|
||||||
axischar "iw3_spetsnaz_woodland"
|
axischar "iw3_spetsnaz_woodland"
|
||||||
useteamzones "true"
|
useteamzones "true"
|
||||||
environment "forest"
|
environment "iw3"
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
@@ -412,7 +412,7 @@
|
|||||||
mapoverlay "compass_overlay_map_blank "
|
mapoverlay "compass_overlay_map_blank "
|
||||||
allieschar "iw3_sas_woodland"
|
allieschar "iw3_sas_woodland"
|
||||||
axischar "iw3_spetsnaz_woodland"
|
axischar "iw3_spetsnaz_woodland"
|
||||||
environment "forest"
|
environment "iw3"
|
||||||
useteamzones "true"
|
useteamzones "true"
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -438,7 +438,7 @@
|
|||||||
mapoverlay "compass_overlay_map_blank "
|
mapoverlay "compass_overlay_map_blank "
|
||||||
allieschar "iw3_usmc_desert"
|
allieschar "iw3_usmc_desert"
|
||||||
axischar "iw3_opfor_desert"
|
axischar "iw3_opfor_desert"
|
||||||
environment "forest"
|
environment "iw3"
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
@@ -515,7 +515,7 @@
|
|||||||
mapoverlay "compass_overlay_map_blank "
|
mapoverlay "compass_overlay_map_blank "
|
||||||
allieschar "iw3_sas_woodland"
|
allieschar "iw3_sas_woodland"
|
||||||
axischar "iw3_spetsnaz_woodland"
|
axischar "iw3_spetsnaz_woodland"
|
||||||
environment "forest"
|
environment "iw3"
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
@@ -566,7 +566,7 @@
|
|||||||
mapoverlay "compass_overlay_map_blank "
|
mapoverlay "compass_overlay_map_blank "
|
||||||
allieschar "iw3_usmc_desert"
|
allieschar "iw3_usmc_desert"
|
||||||
axischar "iw3_opfor_desert"
|
axischar "iw3_opfor_desert"
|
||||||
environment "forest"
|
environment "iw3"
|
||||||
useteamzones "true"
|
useteamzones "true"
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -579,7 +579,7 @@
|
|||||||
mapoverlay "compass_overlay_map_blank "
|
mapoverlay "compass_overlay_map_blank "
|
||||||
allieschar "iw3_sas_woodland"
|
allieschar "iw3_sas_woodland"
|
||||||
axischar "iw3_spetsnaz_woodland"
|
axischar "iw3_spetsnaz_woodland"
|
||||||
environment "forest"
|
environment "iw3"
|
||||||
useteamzones "true"
|
useteamzones "true"
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -592,7 +592,7 @@
|
|||||||
mapoverlay "compass_overlay_map_blank "
|
mapoverlay "compass_overlay_map_blank "
|
||||||
allieschar "iw3_sas_woodland"
|
allieschar "iw3_sas_woodland"
|
||||||
axischar "iw3_spetsnaz_woodland"
|
axischar "iw3_spetsnaz_woodland"
|
||||||
environment "forest"
|
environment "iw3"
|
||||||
useteamzones "true"
|
useteamzones "true"
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -605,7 +605,7 @@
|
|||||||
mapoverlay "compass_overlay_map_blank "
|
mapoverlay "compass_overlay_map_blank "
|
||||||
allieschar "iw3_sas_woodland"
|
allieschar "iw3_sas_woodland"
|
||||||
axischar "iw3_spetsnaz_woodland"
|
axischar "iw3_spetsnaz_woodland"
|
||||||
environment "forest"
|
environment "iw3"
|
||||||
useteamzones "true"
|
useteamzones "true"
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -633,7 +633,7 @@
|
|||||||
mapoverlay "compass_overlay_map_blank "
|
mapoverlay "compass_overlay_map_blank "
|
||||||
allieschar "iw3_sas_urban"
|
allieschar "iw3_sas_urban"
|
||||||
axischar "iw3_spetsnaz_urban"
|
axischar "iw3_spetsnaz_urban"
|
||||||
environment "forest"
|
environment "iw3"
|
||||||
useteamzones "true"
|
useteamzones "true"
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -647,7 +647,7 @@
|
|||||||
mapoverlay "compass_overlay_map_blank "
|
mapoverlay "compass_overlay_map_blank "
|
||||||
allieschar "iw3_usmc_desert"
|
allieschar "iw3_usmc_desert"
|
||||||
axischar "iw3_opfor_desert"
|
axischar "iw3_opfor_desert"
|
||||||
environment "forest"
|
environment "iw3"
|
||||||
useteamzones "true"
|
useteamzones "true"
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -660,7 +660,7 @@
|
|||||||
mapoverlay "compass_overlay_map_blank "
|
mapoverlay "compass_overlay_map_blank "
|
||||||
allieschar "iw3_usmc_desert"
|
allieschar "iw3_usmc_desert"
|
||||||
axischar "iw3_opfor_desert"
|
axischar "iw3_opfor_desert"
|
||||||
environment "forest"
|
environment "iw3"
|
||||||
useteamzones "true"
|
useteamzones "true"
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -673,7 +673,7 @@
|
|||||||
mapoverlay "compass_overlay_map_blank "
|
mapoverlay "compass_overlay_map_blank "
|
||||||
allieschar "iw3_usmc_desert"
|
allieschar "iw3_usmc_desert"
|
||||||
axischar "iw3_opfor_desert"
|
axischar "iw3_opfor_desert"
|
||||||
environment "forest"
|
environment "iw3"
|
||||||
useteamzones "true"
|
useteamzones "true"
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -687,7 +687,7 @@
|
|||||||
mapoverlay "compass_overlay_map_blank "
|
mapoverlay "compass_overlay_map_blank "
|
||||||
allieschar "iw3_usmc_desert"
|
allieschar "iw3_usmc_desert"
|
||||||
axischar "iw3_opfor_desert"
|
axischar "iw3_opfor_desert"
|
||||||
environment "forest"
|
environment "iw3"
|
||||||
useteamzones "true"
|
useteamzones "true"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -250,7 +250,7 @@
|
|||||||
action
|
action
|
||||||
{
|
{
|
||||||
play "mouse_click";
|
play "mouse_click";
|
||||||
exec "getautoupdate";
|
uiScript "getAutoUpdate";
|
||||||
}
|
}
|
||||||
onFocus
|
onFocus
|
||||||
{
|
{
|
||||||
@@ -308,4 +308,4 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -18,7 +18,7 @@
|
|||||||
setLocalVarString ui_hint_text "";
|
setLocalVarString ui_hint_text "";
|
||||||
|
|
||||||
#define CHECK_FOR_UPDATE_ACTION \
|
#define CHECK_FOR_UPDATE_ACTION \
|
||||||
exec "checkforupdate"; \
|
uiScript "checkForUpdate"; \
|
||||||
open "auconfirm";
|
open "auconfirm";
|
||||||
|
|
||||||
#define CREATE_GAME_ACTION \
|
#define CREATE_GAME_ACTION \
|
||||||
|
|||||||
@@ -153,8 +153,7 @@
|
|||||||
ON_MENU_KEY_K_APAD_RIGHT
|
ON_MENU_KEY_K_APAD_RIGHT
|
||||||
|
|
||||||
#define ON_MENU_KEY_K_F1 \
|
#define ON_MENU_KEY_K_F1 \
|
||||||
open "popup_summary"; \
|
open "popup_summary";
|
||||||
play CHOICE_CLICK_SOUND;
|
|
||||||
|
|
||||||
{
|
{
|
||||||
menuDef
|
menuDef
|
||||||
|
|||||||
@@ -24,7 +24,6 @@
|
|||||||
close self;
|
close self;
|
||||||
|
|
||||||
#define ON_MENU_KEY_F5 \
|
#define ON_MENU_KEY_F5 \
|
||||||
play CHOICE_CLICK_SOUND; \
|
|
||||||
uiScript "RefreshServers";
|
uiScript "RefreshServers";
|
||||||
|
|
||||||
#define ON_MENU_KEY_ENTER \
|
#define ON_MENU_KEY_ENTER \
|
||||||
|
|||||||
@@ -110,7 +110,7 @@
|
|||||||
{"@MENU_DEFAULT"; "thumbstick_default";
|
{"@MENU_DEFAULT"; "thumbstick_default";
|
||||||
"@MENU_SOUTHPAW"; "thumbstick_southpaw";
|
"@MENU_SOUTHPAW"; "thumbstick_southpaw";
|
||||||
"@MENU_LEGACY"; "thumbstick_legacy";
|
"@MENU_LEGACY"; "thumbstick_legacy";
|
||||||
"@MENU_LEGACY_SOUTHPAW"; "thumbstick_legacysouthpaw"}, execNow "bindgpsticksconfigs";, ;, ON_GPAD_DISABLED, ON_GPAD_ENABLED)
|
"@MENU_LEGACY_SOUTHPAW"; "thumbstick_legacysouthpaw"}, execNow "bindgpsticksconfigs";, "@MENU_DESC_THUMBSTICK_LAYOUT", ON_GPAD_DISABLED, ON_GPAD_ENABLED)
|
||||||
PC_OPTIONS_STRLIST_RAW(3, "@MENU_BUTTON_LAYOUT", "gpad_buttonConfig",
|
PC_OPTIONS_STRLIST_RAW(3, "@MENU_BUTTON_LAYOUT", "gpad_buttonConfig",
|
||||||
{"@MENU_DEFAULT"; "buttons_default";
|
{"@MENU_DEFAULT"; "buttons_default";
|
||||||
"@MENU_TACTICAL"; "buttons_tactical";
|
"@MENU_TACTICAL"; "buttons_tactical";
|
||||||
@@ -119,7 +119,7 @@
|
|||||||
"@MENU_DEFAULT_ALT"; "buttons_default_alt";
|
"@MENU_DEFAULT_ALT"; "buttons_default_alt";
|
||||||
"@MENU_TACTICAL_ALT"; "buttons_tactical_alt";
|
"@MENU_TACTICAL_ALT"; "buttons_tactical_alt";
|
||||||
"@MENU_LEFTY_ALT"; "buttons_lefty_alt";
|
"@MENU_LEFTY_ALT"; "buttons_lefty_alt";
|
||||||
"@MENU_NOMAD_ALT"; "buttons_nomad_alt"}, execNow "bindgpbuttonsconfigs";, ;, ON_GPAD_DISABLED, ON_GPAD_ENABLED)
|
"@MENU_NOMAD_ALT"; "buttons_nomad_alt"}, execNow "bindgpbuttonsconfigs";, "@MENU_DESC_BUTTON_LAYOUT", ON_GPAD_DISABLED, ON_GPAD_ENABLED)
|
||||||
PC_OPTIONS_FLOATLIST_RAW(4, "@MENU_GPAD_STYLE", "gpad_style", {"@MENU_GPAD_XBOX_CAPS" 0 "@MENU_GPAD_PS_CAPS" 1}, ;, "@MPUI_DESC_GPAD_STYLE", ON_GPAD_DISABLED, ON_GPAD_ENABLED)
|
PC_OPTIONS_FLOATLIST_RAW(4, "@MENU_GPAD_STYLE", "gpad_style", {"@MENU_GPAD_XBOX_CAPS" 0 "@MENU_GPAD_PS_CAPS" 1}, ;, "@MPUI_DESC_GPAD_STYLE", ON_GPAD_DISABLED, ON_GPAD_ENABLED)
|
||||||
PC_OPTIONS_DVARYESNO_RAW(5, "@MENU_SLOWDOWN_ENABLED", "gpad_slowdown_enabled", ;, "@MPUI_DESC_SLOWDOWN_ENABLED", ON_GPAD_DISABLED, ON_GPAD_ENABLED)
|
PC_OPTIONS_DVARYESNO_RAW(5, "@MENU_SLOWDOWN_ENABLED", "gpad_slowdown_enabled", ;, "@MPUI_DESC_SLOWDOWN_ENABLED", ON_GPAD_DISABLED, ON_GPAD_ENABLED)
|
||||||
PC_OPTIONS_DVARYESNO_RAW(6, "@MENU_LOCKON_ENABLED", "gpad_lockon_enabled", ;, "@MPUI_DESC_LOCKON_ENABLED", ON_GPAD_DISABLED, ON_GPAD_ENABLED)
|
PC_OPTIONS_DVARYESNO_RAW(6, "@MENU_LOCKON_ENABLED", "gpad_lockon_enabled", ;, "@MPUI_DESC_LOCKON_ENABLED", ON_GPAD_DISABLED, ON_GPAD_ENABLED)
|
||||||
@@ -129,6 +129,6 @@
|
|||||||
{"@MENU_SENSITIVITY_LOW_CAPS" SENSITIVITY_1 "@MENU_SENSITIVITY_MEDIUM_CAPS" SENSITIVITY_2 "3" SENSITIVITY_3
|
{"@MENU_SENSITIVITY_LOW_CAPS" SENSITIVITY_1 "@MENU_SENSITIVITY_MEDIUM_CAPS" SENSITIVITY_2 "3" SENSITIVITY_3
|
||||||
"@MENU_SENSITIVITY_HIGH_CAPS" SENSITIVITY_4 "5" SENSITIVITY_5 "6" SENSITIVITY_6
|
"@MENU_SENSITIVITY_HIGH_CAPS" SENSITIVITY_4 "5" SENSITIVITY_5 "6" SENSITIVITY_6
|
||||||
"@MENU_SENSITIVITY_VERY_HIGH_CAPS" SENSITIVITY_7 "8" SENSITIVITY_8 "9" SENSITIVITY_9 "@MENU_SENSITIVITY_INSANE_CAPS" SENSITIVITY_10},
|
"@MENU_SENSITIVITY_VERY_HIGH_CAPS" SENSITIVITY_7 "8" SENSITIVITY_8 "9" SENSITIVITY_9 "@MENU_SENSITIVITY_INSANE_CAPS" SENSITIVITY_10},
|
||||||
;, ;, ON_GPAD_DISABLED, ON_GPAD_ENABLED)
|
;, "@MENU_DESC_LOOK_SENSITIVITY_PRESET", ON_GPAD_DISABLED, ON_GPAD_ENABLED)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -84,18 +84,18 @@
|
|||||||
|
|
||||||
PC_OPTIONS_SEPERATOR(0)
|
PC_OPTIONS_SEPERATOR(0)
|
||||||
|
|
||||||
PC_OPTIONS_FLOATLIST_RAW(1, "@MENU_MAXPACKETS", "cl_maxpackets", {"30" 30 "100" 100 "125" 125}, ;, ;, when(0), 1)
|
PC_OPTIONS_FLOATLIST_RAW(1, "@MENU_MAXPACKETS", "cl_maxpackets", {"30" 30 "100" 100 "125" 125}, ;, "@MENU_DESC_MAXPACKETS", when(0), 1)
|
||||||
PC_OPTIONS_FLOATLIST_RAW(2, "@MENU_SNAPS", "snaps", {"20" 20 "30" 30}, ;, ;, when(0), 1)
|
PC_OPTIONS_FLOATLIST_RAW(2, "@MENU_SNAPS", "snaps", {"20" 20 "30" 30}, ;, "@MENU_DESC_SNAPS", when(0), 1)
|
||||||
|
|
||||||
PC_OPTIONS_SEPERATOR(2)
|
PC_OPTIONS_SEPERATOR(2)
|
||||||
|
|
||||||
PC_OPTIONS_DVARYESNO(3, "@MENU_LAGOMETER", "drawLagometer", ;, when(0))
|
PC_OPTIONS_DVARYESNO(3, "@MENU_LAGOMETER", "drawLagometer", ;, when(0))
|
||||||
PC_OPTIONS_STRLIST_RAW(4, "@MENU_DRAWFPS", "cg_drawFPS", {"Off"; "Off"; "Simple"; "Simple"; "SimpleRanges"; "SimpleRanges"; "Verbose"; "Verbose"; "Verbose+Viewpos"; "Verbose+Viewpos"}, ;, ;, when(0), 1)
|
PC_OPTIONS_STRLIST_RAW(4, "@MENU_DRAWFPS", "cg_drawFPS", {"Off"; "Off"; "Simple"; "Simple"; "SimpleRanges"; "SimpleRanges"; "Verbose"; "Verbose"; "Verbose+Viewpos"; "Verbose+Viewpos"}, ;, "@MENU_DESC_DRAWFPS", when(0), 1)
|
||||||
PC_OPTIONS_DVARYESNO(5, "@MENU_FPSLABELS", "cg_drawFPSLabels", ;, when(0))
|
PC_OPTIONS_DVARYESNO(5, "@MENU_FPSLABELS", "cg_drawFPSLabels", "@MENU_DESC_FPSLABELS", when(0))
|
||||||
|
|
||||||
PC_OPTIONS_SEPERATOR(5)
|
PC_OPTIONS_SEPERATOR(5)
|
||||||
|
|
||||||
PC_OPTIONS_DVARYESNO_RAW(6, "@MENU_STREAMFRIENDLY_UI", "ui_streamFriendly", ;, "@MPUI_DESC_STREAM_FRIENDLY_UI", when(0), 1)
|
PC_OPTIONS_DVARYESNO_RAW(6, "@MENU_STREAMFRIENDLY_UI", "ui_streamFriendly", ;, "@MPUI_DESC_STREAM_FRIENDLY_UI", when(0), 1)
|
||||||
PC_OPTIONS_FLOATLIST_RAW(7, "@MENU_FRIENDNOTIFY", "cl_notifyFriendState", {"Always" -1 "Never" 0 "in Menu" 1}, ;, "@MPUI_DESC_FRIENDNOTIFY", when(dvarBool("ui_streamFriendly")), 1)
|
PC_OPTIONS_DVARYESNO(7, "@MENU_FRIENDNOTIFY", "cl_notifyFriendState", "@MPUI_DESC_FRIENDNOTIFY", when(0))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -15,7 +15,7 @@
|
|||||||
allowedBinding "+talk"
|
allowedBinding "+talk"
|
||||||
visible when ( localvarint( "ui_tabDepth" ) == localvarint( "ui_popup_cac_primary_camo_tabDepth" ) )
|
visible when ( localvarint( "ui_tabDepth" ) == localvarint( "ui_popup_cac_primary_camo_tabDepth" ) )
|
||||||
exp rect y ( localvarfloat( "ui_popupYPos" ) + localvarint( "ui_tabDepth" ) * 20 )
|
exp rect y ( localvarfloat( "ui_popupYPos" ) + localvarint( "ui_tabDepth" ) * 20 )
|
||||||
execKey 168
|
execKeyInt 168
|
||||||
{
|
{
|
||||||
if ( localvarstring( "ui_selected_ref" ) != "none" && !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + localvarstring( "ui_selected_ref" ) ) )
|
if ( localvarstring( "ui_selected_ref" ) != "none" && !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + localvarstring( "ui_selected_ref" ) ) )
|
||||||
{
|
{
|
||||||
@@ -2220,4 +2220,4 @@
|
|||||||
visible when ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + localvarstring( "ui_selected_ref" ) ) )
|
visible when ( !isitemunlocked( getplayerdata( "customClasses" , localvarint( "classIndex" ) , "weaponSetups" , 0 , "weapon" ) + " " + localvarstring( "ui_selected_ref" ) ) )
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,19 +1,14 @@
|
|||||||
r_glow "0"
|
r_glow "0"
|
||||||
r_glowRadius0 "12"
|
r_glowRadius0 "0"
|
||||||
r_glowBloomCutoff "0.85"
|
r_glowBloomCutoff "0.231778"
|
||||||
r_glowBloomDesaturation "0"
|
r_glowBloomDesaturation "0"
|
||||||
r_glowBloomIntensity0 "0.5"
|
r_glowBloomIntensity0 "0"
|
||||||
|
|
||||||
r_filmEnable "1"
|
r_filmEnable "1"
|
||||||
r_filmContrast "0.98"
|
r_filmContrast "0.87104"
|
||||||
r_filmBrightness "0.1"
|
r_filmBrightness "0"
|
||||||
r_filmDesaturation "0.38"
|
r_filmDesaturation "0.352396"
|
||||||
//r_filmDesaturationDark "0.3"
|
r_filmInvert "0"
|
||||||
r_filmInvert "0"
|
r_filmLightTint "1.10838 1.10717 1.15409"
|
||||||
r_filmLightTint "1.10838 1.16717 1.15409"
|
r_filmDarkTint "0.7 0.928125 1"
|
||||||
//r_filmMediumTint "0.73 0.93 1.09"
|
|
||||||
r_filmDarkTint "0.7 0.948125 1"
|
|
||||||
|
|
||||||
r_primaryLightUseTweaks "1"
|
|
||||||
r_primaryLightTweakDiffuseStrength "1"
|
|
||||||
r_primaryLightTweakSpecularStrength "1"
|
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loaded 100 of 566 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user