stinger_m/zscript/utranslocator.zsc
Marisa Kirisame f2cdf34c98 Current commit does not run and I don't know why.
Sentry partially implemented.
Motion Detector implemented.
Light/Dark Flares implemented.
2019-09-06 00:20:14 +02:00

62 lines
1.1 KiB
Text

Class UTranslocatorAmmo : Ammo
{
Default
{
Inventory.Icon "I_Tele";
Inventory.Amount 1;
Inventory.MaxAmount 2;
Ammo.BackpackAmount 0;
Ammo.BackpackMaxAmount 2;
+INVENTORY.IGNORESKILL;
}
override void Tick()
{
Super.Tick();
if ( sting_telegun ) return;
if ( Owner ) Owner.RemoveInventory(self);
Destroy();
}
}
Class UTranslocatorModule : Actor
{
}
Class UTranslocator : UnrealWeapon
{
override bool TryPickup( in out Actor toucher )
{
if ( !sting_telegun ) return false; // not allowed
return Super.TryPickup(toucher);
}
override void Tick()
{
Super.Tick();
if ( sting_telegun ) return;
if ( Owner ) Owner.RemoveInventory(self);
Destroy();
}
Default
{
Tag "$T_TELEGUN";
Inventory.PickupMessage "$I_TELEGUN";
Weapon.SlotNumber 1;
Weapon.SelectionOrder 10;
Weapon.AmmoType1 "UTranslocatorAmmo";
Weapon.AmmoUse1 1;
Weapon.AmmoType2 "UTranslocatorAmmo";
Weapon.AmmoUse2 1;
Weapon.AmmoGive 2;
UTWeapon.DropAmmo 2;
+WEAPON.NO_AUTO_SWITCH;
+WEAPON.CHEATNOTWEAPON;
}
States
{
Spawn:
TLCP A -1;
Stop;
TLCP B -1;
Stop;
}
}