[96x]Crash when attempting to use A_CustomMissile

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Post Reply
User avatar
Kirby
Posts: 2697
Joined: Thu Aug 26, 2004 1:23 pm

[96x]Crash when attempting to use A_CustomMissile

Post by Kirby »

I know that A_CustomMissile is not supposed to be used on weapons, but nonetheless while attempting to use it here, I got a crash.
Spoiler:
This decorate was used

Code: Select all

ACTOR RailDestroyer : Weapon 5565
{
 Inventory.PickupMessage "You got the Rail Destroyer!"
 Weapon.SelectionOrder 355
 Inventory.PickupSound "misc/w_pkup"
 Weapon.AmmoGive 100
 Weapon.AmmoUse 100
 Weapon.AmmoType "Cell"
 States
 {
 Spawn:
 BLGN A -1
 LOOP
 Ready:
 BLTG A 1 A_WeaponReady
 LOOP
 Deselect:
 BLTG A 1 A_Lower
 LOOP
 Select:
 BLTG A 1 A_Raise
 LOOP
 Fire:
 BLTG A 0 A_JumpIfNoAmmo(3)
 BLTG A 0 A_PlayWeaponSound("rail/charge")
 BLTG A 16
 BLTG A 0 A_GunFlash
 Goto Ready
 Flash:
 BLTG A 2
 BLTG B 2
 BLTG C 2
 BLTG D 2
 BLTG D 0 A_CustomMissile(DestShot,32,0,0,0,0)
 BLTG D 0 A_FireBullets(0,0,0,0,0,100)
 Stop
 }
}

/////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////

ACTOR DestShot
{
 Radius 5
 Height 6
 Speed 20
 Damage 35
 MONSTER
 +FRIENDLY
 +STRIFEDAMAGE
 +NOGRAVITY
 DeathSound "rail/hit"
 States
 {
 Spawn:
 DEST ABCD 0 
 DEST ABCD 4
 DEST ABCD 0 A_Die
 LOOP
 Death:
 DEST E 0 A_CustomRailgun(70,0,"FF 00 00","00 00 FF",0,0)
 DEST E 0 A_CustomRailgun(70,0,"FF 00 00","00 00 FF",0,0)
 DEST E 0 A_CustomRailgun(70,0,"FF 00 00","00 00 FF",0,0)
 DEST EFGH 4
 Stop
 }
}
From what I saw, it spawned the actor with no frames. When it died, I heard the death sound and thats when it crashed.
User avatar
TheDarkArchon
Posts: 7656
Joined: Sat Aug 07, 2004 5:14 am
Location: Some cold place

Post by TheDarkArchon »

1: For weapons it's A_CustomMissile("Missile",angle,UseAmmo,XY_Offset,SpawnHeight)
2: Your missile type is missing quotation marks.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49229
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

The missing quotation marks are not critical.

The crash is most likely caused by A_CustomRailgun. If you heard the death sound it managed to get to that point.
User avatar
Kirby
Posts: 2697
Joined: Thu Aug 26, 2004 1:23 pm

Post by Kirby »

@TDA - Fixed, but the same thing still happens.
Post Reply

Return to “Closed Bugs [GZDoom]”