add cdata files
This commit is contained in:
parent
6ab1e4f7d4
commit
8b0fa206d4
48
data/cdata/custom_scripts/cp_mp/inspect.gsc
Normal file
48
data/cdata/custom_scripts/cp_mp/inspect.gsc
Normal file
@ -0,0 +1,48 @@
|
||||
init()
|
||||
{
|
||||
level thread onPlayerConnect();
|
||||
}
|
||||
|
||||
onPlayerConnect()
|
||||
{
|
||||
for( ;; )
|
||||
{
|
||||
level waittill( "connected", player );
|
||||
player thread onPlayerSpawned();
|
||||
}
|
||||
}
|
||||
|
||||
watchWeaponInspection()
|
||||
{
|
||||
self endon( "death" );
|
||||
self endon( "disconnect" );
|
||||
self endon( "faux_spawn" );
|
||||
|
||||
if ( isai( self ) || isbot( self ) )
|
||||
return;
|
||||
|
||||
self notifyonplayercommand( "weapon_inspection", "+actionslot 8" );
|
||||
|
||||
for (;;)
|
||||
{
|
||||
self waittill( "weapon_inspection" );
|
||||
self iPrintLnBold("actionslot 8 pressed...");
|
||||
|
||||
self startweaponinspection();
|
||||
wait 0.05;
|
||||
|
||||
while ( self isinspectingweapon() )
|
||||
wait 0.05;
|
||||
}
|
||||
}
|
||||
|
||||
onPlayerSpawned()
|
||||
{
|
||||
self endon( "disconnect" );
|
||||
|
||||
for (;;)
|
||||
{
|
||||
scripts\engine\utility::waittill_any( "spawned_player", "faux_spawn" );
|
||||
self thread watchWeaponInspection();
|
||||
}
|
||||
}
|
157
data/cdata/custom_scripts/mp/ranked.gsc
Normal file
157
data/cdata/custom_scripts/mp/ranked.gsc
Normal file
@ -0,0 +1,157 @@
|
||||
main()
|
||||
{
|
||||
// Rank fixes.
|
||||
replacefunc(scripts\mp\menus::addtoteam, ::addtoteam_stub);
|
||||
replacefunc(scripts\mp\menus::watchforteamchange, ::watchforteamchange_stub);
|
||||
|
||||
// Bypass check for sessionteam
|
||||
replacefunc(scripts\mp\playerlogic::connect_validateplayerteam, ::connect_validateplayerteam_stub);
|
||||
}
|
||||
|
||||
addtoteam_stub( team, firstConnect, changeTeamsWithoutRespawning )
|
||||
{
|
||||
if ( isdefined( self.team ) )
|
||||
{
|
||||
scripts\mp\playerlogic::removefromteamcount();
|
||||
|
||||
if ( isdefined( changeTeamsWithoutRespawning ) && changeTeamsWithoutRespawning )
|
||||
scripts\mp\playerlogic::decrementalivecount( self.team );
|
||||
}
|
||||
|
||||
if ( isdefined( self.pers["team"] ) && self.pers["team"] != "" && self.pers["team"] != "spectator" )
|
||||
self.pers["last_team"] = self.pers["team"];
|
||||
|
||||
self.pers["team"] = team;
|
||||
self.team = team;
|
||||
|
||||
// bypass session team is readonly in ranked matches if "teambased" is set on the playlist
|
||||
if ( level.teambased )
|
||||
self.sessionteam = team;
|
||||
else if ( team == "spectator" )
|
||||
self.sessionteam = "spectator";
|
||||
else
|
||||
self.sessionteam = "none";
|
||||
|
||||
if ( game["state"] != "postgame" )
|
||||
{
|
||||
scripts\mp\playerlogic::addtoteamcount();
|
||||
|
||||
if ( isdefined( changeTeamsWithoutRespawning ) && changeTeamsWithoutRespawning )
|
||||
scripts\mp\playerlogic::incrementalivecount( self.team );
|
||||
}
|
||||
|
||||
if ( isgamebattlematch() )
|
||||
setmatchdata( "players", self.clientid, "team", team );
|
||||
|
||||
scripts\mp\utility::updateobjectivetext();
|
||||
|
||||
if ( isdefined( firstConnect ) && firstConnect )
|
||||
waittillframeend;
|
||||
|
||||
scripts\mp\utility::updatemainmenu();
|
||||
|
||||
if ( team == "spectator" )
|
||||
{
|
||||
self notify( "joined_spectators" );
|
||||
level notify( "joined_team", self );
|
||||
}
|
||||
else
|
||||
{
|
||||
self notify( "joined_team" );
|
||||
level notify( "joined_team", self );
|
||||
}
|
||||
}
|
||||
|
||||
watchforteamchange_stub()
|
||||
{
|
||||
self endon( "disconnect" );
|
||||
level endon( "game_ended" );
|
||||
|
||||
//------------------
|
||||
// 0 = axis
|
||||
// 1 = allies
|
||||
// 2 = auto
|
||||
// 3 = spectate
|
||||
//------------------
|
||||
|
||||
for (;;)
|
||||
{
|
||||
self waittill( "luinotifyserver", channel, teamSelected );
|
||||
|
||||
if ( channel != "team_select" )
|
||||
continue;
|
||||
|
||||
var_2 = 0;
|
||||
|
||||
if ( teamSelected >= 3 )
|
||||
var_2 = 1;
|
||||
|
||||
if ( var_2 )
|
||||
{
|
||||
self setclientomnvar( "ui_spectator_selected", 1 );
|
||||
self setclientomnvar( "ui_loadout_selected", -1 );
|
||||
self.spectating_actively = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
self setclientomnvar( "ui_spectator_selected", -1 );
|
||||
self.spectating_actively = 0;
|
||||
}
|
||||
|
||||
var_3 = self ismlgspectator();
|
||||
var_4 = !var_3 && isdefined( self.team ) && self.team == "spectator";
|
||||
var_5 = var_3 && teamSelected == 3 || var_4 && teamSelected == 4;
|
||||
|
||||
if ( teamSelected == 4 )
|
||||
{
|
||||
teamSelected = 3;
|
||||
self setmlgspectator( 1 );
|
||||
}
|
||||
else
|
||||
self setmlgspectator( 0 );
|
||||
|
||||
self setclientomnvar( "ui_team_selected", teamSelected );
|
||||
|
||||
if ( teamSelected == 0 )
|
||||
teamSelected = "axis";
|
||||
else if ( teamSelected == 1 )
|
||||
teamSelected = "allies";
|
||||
else if ( teamSelected == 2 )
|
||||
teamSelected = "random";
|
||||
else
|
||||
teamSelected = "spectator";
|
||||
|
||||
if ( !var_5 && isdefined( self.pers["team"] ) && teamSelected == self.pers["team"] )
|
||||
continue;
|
||||
|
||||
self setclientomnvar( "ui_loadout_selected", -1 );
|
||||
thread scripts\mp\menus::logteamselection( teamSelected );
|
||||
|
||||
if ( teamSelected == "axis" )
|
||||
{
|
||||
thread scripts\mp\menus::setteam( "axis" );
|
||||
continue;
|
||||
}
|
||||
|
||||
if ( teamSelected == "allies" )
|
||||
{
|
||||
thread scripts\mp\menus::setteam( "allies" );
|
||||
continue;
|
||||
}
|
||||
|
||||
if ( teamSelected == "random" )
|
||||
{
|
||||
thread scripts\mp\menus::autoassign();
|
||||
continue;
|
||||
}
|
||||
|
||||
if ( teamSelected == "spectator" )
|
||||
thread scripts\mp\menus::setspectator( var_5 );
|
||||
}
|
||||
}
|
||||
|
||||
connect_validateplayerteam_stub()
|
||||
{
|
||||
if ( !isdefined( self ) )
|
||||
return;
|
||||
}
|
1
data/cdata/sounddata/cp/cp_disco.json
Normal file
1
data/cdata/sounddata/cp/cp_disco.json
Normal file
File diff suppressed because one or more lines are too long
1
data/cdata/sounddata/cp/cp_final.json
Normal file
1
data/cdata/sounddata/cp/cp_final.json
Normal file
File diff suppressed because one or more lines are too long
1
data/cdata/sounddata/cp/cp_rave.json
Normal file
1
data/cdata/sounddata/cp/cp_rave.json
Normal file
File diff suppressed because one or more lines are too long
1
data/cdata/sounddata/cp/cp_town.json
Normal file
1
data/cdata/sounddata/cp/cp_town.json
Normal file
File diff suppressed because one or more lines are too long
1
data/cdata/sounddata/cp/cp_zmb.json
Normal file
1
data/cdata/sounddata/cp/cp_zmb.json
Normal file
File diff suppressed because one or more lines are too long
1
data/cdata/sounddata/mp/mp_afghan.json
Normal file
1
data/cdata/sounddata/mp/mp_afghan.json
Normal file
File diff suppressed because one or more lines are too long
1
data/cdata/sounddata/mp/mp_breakneck.json
Normal file
1
data/cdata/sounddata/mp/mp_breakneck.json
Normal file
File diff suppressed because one or more lines are too long
1
data/cdata/sounddata/mp/mp_codphish.json
Normal file
1
data/cdata/sounddata/mp/mp_codphish.json
Normal file
File diff suppressed because one or more lines are too long
1
data/cdata/sounddata/mp/mp_depot.json
Normal file
1
data/cdata/sounddata/mp/mp_depot.json
Normal file
File diff suppressed because one or more lines are too long
1
data/cdata/sounddata/mp/mp_desert.json
Normal file
1
data/cdata/sounddata/mp/mp_desert.json
Normal file
File diff suppressed because one or more lines are too long
1
data/cdata/sounddata/mp/mp_divide.json
Normal file
1
data/cdata/sounddata/mp/mp_divide.json
Normal file
File diff suppressed because one or more lines are too long
1
data/cdata/sounddata/mp/mp_dome_iw.json
Normal file
1
data/cdata/sounddata/mp/mp_dome_iw.json
Normal file
File diff suppressed because one or more lines are too long
1
data/cdata/sounddata/mp/mp_fallen.json
Normal file
1
data/cdata/sounddata/mp/mp_fallen.json
Normal file
File diff suppressed because one or more lines are too long
1
data/cdata/sounddata/mp/mp_flip.json
Normal file
1
data/cdata/sounddata/mp/mp_flip.json
Normal file
File diff suppressed because one or more lines are too long
1
data/cdata/sounddata/mp/mp_frontier.json
Normal file
1
data/cdata/sounddata/mp/mp_frontier.json
Normal file
File diff suppressed because one or more lines are too long
1
data/cdata/sounddata/mp/mp_geneva.json
Normal file
1
data/cdata/sounddata/mp/mp_geneva.json
Normal file
File diff suppressed because one or more lines are too long
1
data/cdata/sounddata/mp/mp_hawkwar.json
Normal file
1
data/cdata/sounddata/mp/mp_hawkwar.json
Normal file
File diff suppressed because one or more lines are too long
1
data/cdata/sounddata/mp/mp_junk.json
Normal file
1
data/cdata/sounddata/mp/mp_junk.json
Normal file
File diff suppressed because one or more lines are too long
1
data/cdata/sounddata/mp/mp_mansion.json
Normal file
1
data/cdata/sounddata/mp/mp_mansion.json
Normal file
File diff suppressed because one or more lines are too long
1
data/cdata/sounddata/mp/mp_marsoasis.json
Normal file
1
data/cdata/sounddata/mp/mp_marsoasis.json
Normal file
File diff suppressed because one or more lines are too long
1
data/cdata/sounddata/mp/mp_metropolis.json
Normal file
1
data/cdata/sounddata/mp/mp_metropolis.json
Normal file
File diff suppressed because one or more lines are too long
1
data/cdata/sounddata/mp/mp_neon.json
Normal file
1
data/cdata/sounddata/mp/mp_neon.json
Normal file
File diff suppressed because one or more lines are too long
1
data/cdata/sounddata/mp/mp_nova.json
Normal file
1
data/cdata/sounddata/mp/mp_nova.json
Normal file
File diff suppressed because one or more lines are too long
1
data/cdata/sounddata/mp/mp_overflow.json
Normal file
1
data/cdata/sounddata/mp/mp_overflow.json
Normal file
File diff suppressed because one or more lines are too long
1
data/cdata/sounddata/mp/mp_paris.json
Normal file
1
data/cdata/sounddata/mp/mp_paris.json
Normal file
File diff suppressed because one or more lines are too long
1
data/cdata/sounddata/mp/mp_parkour.json
Normal file
1
data/cdata/sounddata/mp/mp_parkour.json
Normal file
File diff suppressed because one or more lines are too long
1
data/cdata/sounddata/mp/mp_pixel.json
Normal file
1
data/cdata/sounddata/mp/mp_pixel.json
Normal file
File diff suppressed because one or more lines are too long
1
data/cdata/sounddata/mp/mp_prime.json
Normal file
1
data/cdata/sounddata/mp/mp_prime.json
Normal file
File diff suppressed because one or more lines are too long
1
data/cdata/sounddata/mp/mp_proto.json
Normal file
1
data/cdata/sounddata/mp/mp_proto.json
Normal file
File diff suppressed because one or more lines are too long
1
data/cdata/sounddata/mp/mp_quarry.json
Normal file
1
data/cdata/sounddata/mp/mp_quarry.json
Normal file
File diff suppressed because one or more lines are too long
1
data/cdata/sounddata/mp/mp_rally.json
Normal file
1
data/cdata/sounddata/mp/mp_rally.json
Normal file
File diff suppressed because one or more lines are too long
1
data/cdata/sounddata/mp/mp_riot.json
Normal file
1
data/cdata/sounddata/mp/mp_riot.json
Normal file
File diff suppressed because one or more lines are too long
1
data/cdata/sounddata/mp/mp_rivet.json
Normal file
1
data/cdata/sounddata/mp/mp_rivet.json
Normal file
File diff suppressed because one or more lines are too long
1
data/cdata/sounddata/mp/mp_skyway.json
Normal file
1
data/cdata/sounddata/mp/mp_skyway.json
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user