Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • 0
Mad Dal 85

Multiple Projectiles

Question

If anyone has played CF, you will know what I mean here.

 

How do you get enemies like Barons, Imps, Hell Knights, ect., to throw 2 or 3 fireballs in one go? 

Share this post


Link to post

2 answers to this question

Recommended Posts

  • 0

It depends on what you want to do, but basically there are several A_custommissile or A_SpawnProjectile.

 

This is the attack of a baron that shoots 3 baron spheres at once at different angles:

 

Spoiler

Missile:

BOSS EF 8 A_FaceTarget

BOSS G 0 A_Custommissile ("BaronBall", 32, 0, -15)

BOSS G 0 A_Custommissile ("BaronBall", 32, 0, 15)

BOSS G 8 A_Custommissile ("BaronBall", 32, 0, 0)

Goto See

 

This is another  example that makes use of the Random factor, Shoot 8 spheres, 1 per tic at a range of 15, -15.

 

Spoiler

Missile:

BOSS EF 8 A_FaceTarget

BOSS GGGGGGGG 1 A_CustomMissile("Baronball", 32, 0, random(-15, 15), 0)

Goto See

 

I use more A_custommissile because I work for Zandronum, but you can use A_Spawnprojectile which is better (fixes a bug of Pitch), in any case, it applies the same way, several A_custommissile or A_SpawnProjectile at the same time.

 

https://zdoom.org/wiki/A_CustomMissile (is deprecated)

https://zdoom.org/wiki/A_SpawnProjectile

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×