Making arrows spawn above a monster's head
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.
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.
- Shadelight
- Posts: 5113
- Joined: Fri May 20, 2005 11:16 am
- Location: Labrynna
Making arrows spawn above a monster's head
How would I make an arrow spawn above a monster's head, using DECORATE?
- 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
A_Fire trickery? (see LWM's flaregun)
Re: Making arrows spawn above a monster's head
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.
- 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
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.
- Dark-Assassin
- Posts: 743
- Joined: Thu Mar 19, 2009 3:40 am
- Location: South Australia
Re: Making arrows spawn above a monster's head
which mod?Ryan Cordell wrote:A_Fire trickery? (see LWM's flaregun)
and link?
- 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
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..
- Shadelight
- Posts: 5113
- Joined: Fri May 20, 2005 11:16 am
- Location: Labrynna
Re: Making arrows spawn above a monster's head
I don't plan on having too many actors at once and it's not going to be multiplayer.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.
Re: Making arrows spawn above a monster's head
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.
Still, this is a big hack that's probably not officially supported, at any rate.