1
0
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:
Jbleezy
2022-01-04 15:00:28 -08:00
parent c8bcd15985
commit b727c97af8
2 changed files with 12 additions and 0 deletions

View 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 );
}

View File

@ -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()