mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-01-20 00:24:49 +00:00
Proper override
This commit is contained in:
parent
e9193ba587
commit
31495dfc94
|
|
@ -1,9 +1,11 @@
|
|||
if (! $EjectDone)
|
||||
// Vehicle Passenger Eject Script
|
||||
//
|
||||
// Originally eject.cs
|
||||
// If Pilot, eject passengers from your vehicle using the Pack Activation button.
|
||||
|
||||
|
||||
package VehiclePassengerEject
|
||||
{
|
||||
schedule( 30000, 0, "exec", "scripts/autoexec/VehiclePassengerEject.cs" );
|
||||
$EjectDone = true;
|
||||
}
|
||||
|
||||
|
||||
function Player::use( %this,%data )
|
||||
{
|
||||
|
|
@ -43,6 +45,12 @@ function Player::use( %this,%data )
|
|||
return ShapeBase::use( %this, %data );
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
// Prevent package from being activated if it is already
|
||||
if (!isActivePackage(VehiclePassengerEject))
|
||||
activatePackage(VehiclePassengerEject);
|
||||
|
||||
|
||||
function EjectAllPassengers(%obj, %player)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue