Jump to content

A_SeekerMissile not functioning in GZDoom


Recommended Posts

I wanted my custom monster to fire seeking missiles so I added the function A_seeker missile at the end just like i saw in other wads but when i booted up the game an error messege came up that said " line 656: Sprite names must be exactly 4 characters'' Any help you guys could offer?
 

 

 Spawn:
        A011 A 0 NODELAY ThrustThingZ(0,random(6,10),0,0) A_SeekerMissile(10,10,SMF_PRECISE)
        loop

Share this post


Link to post

You cannot have both ThrustThingZ and A_SeekerMissile attached to single frame like this.

Either spread them to two separate frames, or make an anonymous function that combines them.

 

Also 0 duration looping frame will most likely totally freeze or crash the game.

Edited by jaeden
bad word order

Share this post


Link to post

This is what you currently have:

 

 Spawn:
        A011 A 0 NODELAY ThrustThingZ(0,random(6,10),0,0) A_SeekerMissile(10,10,SMF_PRECISE)
        loop 

This is what it should probably look like:

 

 Spawn:
	A011 A 2 A_SeekerMissile(10,10,SMF_PRECISE)
	loop 

Note that "ThrustThingZ" is not a valid DECORATE action function, so you cannot use it in your missile's definition. If you would like to modify its upward velocity, you will need to use an actual action function, like A_ChangeVelocity. To apply it to a separate frame, simply add another frame to the state definition:

 

 Spawn:
	A011 A 2 A_SeekerMissile(10, 10, SMF_PRECISE)
	A011 A 2 A_ChangeVelocity(0, 0, 10, CVF_REPLACE)
	loop 

 

Edited by SMG_Man

Share this post


Link to post

When I was using ThrustThingZ It worked fine because I copied and pasted that function and values fron another wad that i liked. Im just not sure how to edit the A_ChangeVelocity function to have the same results.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...