mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-04-29 15:35:24 +00:00
Proper override
This commit is contained in:
parent
e9193ba587
commit
31495dfc94
1 changed files with 13 additions and 5 deletions
|
|
@ -1,10 +1,12 @@
|
||||||
if (! $EjectDone)
|
// Vehicle Passenger Eject Script
|
||||||
{
|
//
|
||||||
schedule( 30000, 0, "exec", "scripts/autoexec/VehiclePassengerEject.cs" );
|
// Originally eject.cs
|
||||||
$EjectDone = true;
|
// If Pilot, eject passengers from your vehicle using the Pack Activation button.
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
package VehiclePassengerEject
|
||||||
|
{
|
||||||
|
|
||||||
function Player::use( %this,%data )
|
function Player::use( %this,%data )
|
||||||
{
|
{
|
||||||
// If player is in a station then he can't use any items
|
// If player is in a station then he can't use any items
|
||||||
|
|
@ -43,6 +45,12 @@ function Player::use( %this,%data )
|
||||||
return ShapeBase::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)
|
function EjectAllPassengers(%obj, %player)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue