chore: update rawfiles
This commit is contained in:
parent
de70cc66bf
commit
a3eb4d70f9
38
data/scripts/mp/_patches.gsc
Normal file
38
data/scripts/mp/_patches.gsc
Normal file
@ -0,0 +1,38 @@
|
||||
main()
|
||||
{
|
||||
replacefunc( maps\mp\_utility::getlastlivingplayer, ::getlastlivingplayer_stub );
|
||||
replacefunc( maps\mp\gametypes\common_sd_sr::ononeleftevent, ::ononeleftevent_stub );
|
||||
}
|
||||
|
||||
getlastlivingplayer_stub( team )
|
||||
{
|
||||
live_player = undefined;
|
||||
|
||||
foreach ( player in level.players )
|
||||
{
|
||||
if ( isdefined( team ) && player.team != team )
|
||||
continue;
|
||||
|
||||
if ( !maps\mp\_utility::isreallyalive( player ) && !player maps\mp\gametypes\_playerlogic::mayspawn() )
|
||||
continue;
|
||||
|
||||
assertex( !isdefined( live_player ), "getLastLivingPlayer() found more than one live player on team." );
|
||||
|
||||
live_player = player;
|
||||
}
|
||||
|
||||
return live_player;
|
||||
}
|
||||
|
||||
ononeleftevent_stub( team )
|
||||
{
|
||||
if ( level.bombexploded || level.bombdefused )
|
||||
return;
|
||||
|
||||
last_player = maps\mp\_utility::getlastlivingplayer( team );
|
||||
|
||||
if ( !isdefined( last_player ) )
|
||||
return;
|
||||
|
||||
last_player thread maps\mp\gametypes\common_sd_sr::givelastonteamwarning();
|
||||
}
|
@ -39,7 +39,6 @@ game:addlocalizedstring("LUA_MENU_RANK_DESC", "Edit rank.")
|
||||
|
||||
local armorybutton = LUI.MPLobbyBase.AddArmoryButton
|
||||
LUI.MPLobbyBase.AddArmoryButton = function(menu)
|
||||
-- armorybutton(menu) -- disabled armory button until support for supply drops is added
|
||||
menu:AddButton("@LUA_MENU_STATS", function(a1, a2)
|
||||
LUI.FlowManager.RequestAddMenu(a1, "menu_stats", true, nil)
|
||||
end)
|
||||
|
Loading…
x
Reference in New Issue
Block a user