Code: Select all
ACTOR Projectile_Beamgun : PlasmaBall 16040 {
Speed 30 // It's a bit faster than plasma ball
Damage 50 // Player has two lives
-RANDOMIZE
}
ACTOR Ammo_Beamgun : Cell 16050 {
Inventory.Amount 25
Inventory.MaxAmount 100
Ammo.BackpackAmount 50
Ammo.BackpackMaxAmount 200
}
ACTOR Gun_Beamgun : PlasmaRifle 16060 {
Weapon.SelectionOrder 350
Weapon.AmmoType "Ammo_Beamgun"
Weapon.AmmoGive 50
Weapon.AmmoUse 25
Weapon.SlotNumber 2
+WEAPON.NOAUTOFIRE
+WEAPON.NOAUTOAIM
States
{
Ready:
TNT1 A 0 A_GiveInventory ("Ammo_Beamgun",0) // Ammo regen
TNT1 A 2 A_WeaponReady // By putting here A 1 regen can be faster
Loop
Deselect:
TNT1 A 0 A_Lower
Loop
Select:
TNT1 A 0 A_Raise
Loop
Fire:
TNT1 A 3
TNT1 A 0 A_FireCustomMissile ("Projectile_Beamgun")
TNT1 A 16
TNT1 A 5 A_ReFire
Goto Ready
Spawn:
TNT1 A -1
Stop
}
}
Thanks for help in advance
EDIT: Freeze happens even before any ondeath script can be called, so no, ACS is probably not an answer