Proper handling of charge redistribution on multi-copy items (fixes infinitely replenishable charge exploit). More preparation code for other items.
33 lines
477 B
Text
33 lines
477 B
Text
Class UFireball : Actor
|
|
{
|
|
}
|
|
|
|
Class UFireball2 : UFireball
|
|
{
|
|
}
|
|
|
|
Class FlameGun : UnrealWeapon
|
|
{
|
|
Default
|
|
{
|
|
Tag "$T_FLAMEGUN";
|
|
Inventory.PickupMessage "$I_FLAMEGUN";
|
|
Weapon.UpSound "flamegun/select";
|
|
Weapon.SlotNumber 5;
|
|
Weapon.SelectionOrder 2;
|
|
Weapon.AmmoType "FlameAmmo";
|
|
Weapon.AmmoUse 10;
|
|
Weapon.AmmoType2 "FlameAmmo";
|
|
Weapon.AmmoUse2 20;
|
|
Weapon.AmmoGive 100;
|
|
UTWeapon.DropAmmo 25;
|
|
}
|
|
States
|
|
{
|
|
Spawn:
|
|
FGNP A -1;
|
|
Stop;
|
|
FGNP B -1;
|
|
Stop;
|
|
}
|
|
}
|