[96x]Crash when attempting to use A_CustomMissile

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 a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: [96x]Crash when attempting to use A_CustomMissile

by Kirby » Sat Aug 27, 2005 4:26 pm

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

by Graf Zahl » Sat Aug 27, 2005 4:25 pm

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.

by TheDarkArchon » Sat Aug 27, 2005 4:09 pm

1: For weapons it's A_CustomMissile("Missile",angle,UseAmmo,XY_Offset,SpawnHeight)
2: Your missile type is missing quotation marks.

[96x]Crash when attempting to use A_CustomMissile

by Kirby » Sat Aug 27, 2005 3:57 pm

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.

Top