Making arrows spawn above a monster's head

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
User avatar
Shadelight
Posts: 5113
Joined: Fri May 20, 2005 11:16 am
Location: Labrynna

Making arrows spawn above a monster's head

Post by Shadelight »

How would I make an arrow spawn above a monster's head, using DECORATE?
User avatar
Ryan Cordell
Posts: 4349
Joined: Sun Feb 06, 2005 6:39 am
Preferred Pronouns: No Preference
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia (Modern GZDoom)
Location: Capital of Explodistan

Re: Making arrows spawn above a monster's head

Post by Ryan Cordell »

A_Fire trickery? (see LWM's flaregun)
User avatar
ravage
Posts: 293
Joined: Wed Sep 03, 2003 9:30 pm
Preferred Pronouns: They/Them
Contact:

Re: Making arrows spawn above a monster's head

Post by ravage »

Try using A_SpawnItem to spawn a decorative actor that lasts for only one frame and have the monster spawn this after every frame tic; That'll give the illusion of the arrow 'following' it.
User avatar
Tormentor667
Posts: 13556
Joined: Wed Jul 16, 2003 3:52 am
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia (Modern GZDoom)
Location: Germany
Contact:

Re: Making arrows spawn above a monster's head

Post by Tormentor667 »

I am using A_SpawnItem in Stronghold as well but you should consider that many spawns withing one second and many actors having this might slow down the game and heavily lag network games.
User avatar
Dark-Assassin
Posts: 743
Joined: Thu Mar 19, 2009 3:40 am
Location: South Australia

Re: Making arrows spawn above a monster's head

Post by Dark-Assassin »

Ryan Cordell wrote:A_Fire trickery? (see LWM's flaregun)
which mod?
and link?
User avatar
Ryan Cordell
Posts: 4349
Joined: Sun Feb 06, 2005 6:39 am
Preferred Pronouns: No Preference
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia (Modern GZDoom)
Location: Capital of Explodistan

Re: Making arrows spawn above a monster's head

Post by Ryan Cordell »

There was simply only a mod made by LittleWhiteMouse that sort of replicated Blood's flaregun.. If anyone still has Demon Wars (okay, I have it, but it'd be a waste of space to upload it here), then a ready example is there, I believe..
User avatar
Shadelight
Posts: 5113
Joined: Fri May 20, 2005 11:16 am
Location: Labrynna

Re: Making arrows spawn above a monster's head

Post by Shadelight »

Tormentor667 wrote:I am using A_SpawnItem in Stronghold as well but you should consider that many spawns withing one second and many actors having this might slow down the game and heavily lag network games.
I don't plan on having too many actors at once and it's not going to be multiplayer.
User avatar
Xaser
 
 
Posts: 10774
Joined: Sun Jul 20, 2003 12:15 pm
Contact:

Re: Making arrows spawn above a monster's head

Post by Xaser »

Psychic's powered-up ice has it. Basically, the effect is to give a projectile the +SEEKERMISSILE flag and have its death states call A_Fire -- this causes the dead projectile to "stick" to the target. I'm sure the process is a bit different for a non-projectile entity (i.e. an arrow), though I'm sure looking at the way ArchvileFire works will shed some light on the procedure.

Still, this is a big hack that's probably not officially supported, at any rate.
Locked

Return to “Editing (Archive)”