mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-10 23:27:57 -05:00
Origins: remove shovel spawning on player disconnect
This commit is contained in:
10
scripts/zm/replaced/zm_tomb_dig.gsc
Normal file
10
scripts/zm/replaced/zm_tomb_dig.gsc
Normal file
@ -0,0 +1,10 @@
|
||||
#include maps\mp\_utility;
|
||||
#include common_scripts\utility;
|
||||
#include maps\mp\zombies\_zm_utility;
|
||||
|
||||
dig_disconnect_watch( n_player, v_origin, v_angles )
|
||||
{
|
||||
self waittill( "disconnect" );
|
||||
level setclientfield( "shovel_player" + n_player, 0 );
|
||||
level setclientfield( "helmet_player" + n_player, 0 );
|
||||
}
|
@ -3,10 +3,12 @@
|
||||
#include maps\mp\zombies\_zm_utility;
|
||||
|
||||
#include scripts/zm/replaced/zm_tomb_craftables;
|
||||
#include scripts/zm/replaced/zm_tomb_dig;
|
||||
|
||||
main()
|
||||
{
|
||||
replaceFunc(maps/mp/zm_tomb_craftables::quadrotor_control_thread, scripts/zm/replaced/zm_tomb_craftables::quadrotor_control_thread);
|
||||
replaceFunc(maps/mp/zm_tomb_dig::dig_disconnect_watch, scripts/zm/replaced/zm_tomb_dig::dig_disconnect_watch);
|
||||
}
|
||||
|
||||
init()
|
||||
|
Reference in New Issue
Block a user