[DECORATE] Custom weapon, Zandro freezes on Player death
Posted: Wed Apr 20, 2016 9:39 am
Hi guys, I started making some small weapon mode, so far I DECORATEd this:
Which works as I wanted, most of the time. But if the player holding the "Gun_Beamgun" dies, Zandronum freezes in a horrible way. That happens for Zandro 2.1.2, but not for the 3.0-alpha-r151004-2012. Has anybody a slight idea what can cause this bug and how to fix it for 2.1.2? I intend to do a DM mod and I'd like to develop for a played version of the game. I've attached custom wad reproducing this bug to this post, but be aware - this really freezes zandro in a horrible way! For those who still have enough courage, in the console type give gun_beamgun and then die in any way desired (this bug also happens if a bot holding the weapon dies, tested in Zandro deathmatch).
Thanks for help in advance
EDIT: Freeze happens even before any ondeath script can be called, so no, ACS is probably not an answer
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