[DECORATE] How to stop a A_SkullAttack monster?
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.
- Tormentor667
- Posts: 13555
- 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:
[DECORATE] How to stop a A_SkullAttack monster?
Is there a way to stop a monster (non-flying) that just performed the A_SkullAttack? I am using this as a little attack where a monster jumps towards the player. As of now, if it doesn't hit the player, it slides along the floor until it hits a wall. Is there a way to stop its movement after a certain period of frames?
- Zhs2
- Posts: 1300
- Joined: Fri Nov 07, 2008 3:29 pm
- Graphics Processor: ATI/AMD with Vulkan/Metal Support
- Location: Maryland, USA, but probably also in someone's mod somewhere
- Contact:
Re: [DECORATE] How to stop a A_SkullAttack monster?
[wiki]A_Stop[/wiki]
Re: [DECORATE] How to stop a A_SkullAttack monster?
That'll make the thing stop abruptly.
Assuming that the leaping monster has gravity... in the leaping state, add an [wiki]A_CheckFloor[/wiki]?
Assuming that the leaping monster has gravity... in the leaping state, add an [wiki]A_CheckFloor[/wiki]?
Re: [DECORATE] How to stop a A_SkullAttack monster?
Here's what I used for the RoEMonster pack Trite:
I timed the duration A_Stop so it stops when it hits the ground. A_CheckFloor is fairly aukward, since it doesn't check if it lands on an actor (like a bridge thing, or another monster).
MeleeThreshold (keeps from doing a missile attack when within the defined radius), and MaxTargetRange (Keeps from doing a missile attack when the target is outside this radius) help to make sure you aren't too far or close to perform the attack.
Code: Select all
TRIT AAA 3 A_FaceTarget
TRIT F 0 A_PlaySound("D3Trite/Attack")
TRIT F 0 A_SkullAttack
TRIT F 10 ThrustThingZ(0, 6, 0, 1)
TRIT E 8 A_Stop
Goto See
MeleeThreshold (keeps from doing a missile attack when within the defined radius), and MaxTargetRange (Keeps from doing a missile attack when the target is outside this radius) help to make sure you aren't too far or close to perform the attack.
- DBThanatos
- Posts: 3101
- Joined: Fri Apr 14, 2006 3:17 pm
- Location: in "the darkness that lurks in our mind"
Re: [DECORATE] How to stop a A_SkullAttack monster?
Now that we are on this A_SKullAttack, is there a way to prevent infighting because of this action?
Re: [DECORATE] How to stop a A_SkullAttack monster?
None that I know of, besides stopping infighting for the monster in question. 

Re: [DECORATE] How to stop a A_SkullAttack monster?
Damage factors?
- Tormentor667
- Posts: 13555
- 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: [DECORATE] How to stop a A_SkullAttack monster?
Thanks, got it working 

- DOOMERO-21
- Posts: 1423
- Joined: Wed Jan 02, 2008 10:02 pm
- Location: Chile
Re: [DECORATE] How to stop a A_SkullAttack monster?
mmm yes a_stop is the best choice i put that for my forgotten and works good =)
Re: [DECORATE] How to stop a A_SkullAttack monster?
As far as I know (and tested), A_SkullAttack doesn't take the calling actor's damagetype (It should, 'cause a fire death after being hit by a Lost Soul would be cool).Gez wrote:Damage factors?
- XutaWoo
- Posts: 4005
- Joined: Sat Dec 30, 2006 4:25 pm
- Location: beautiful hills of those who are friends
- Contact:
Re: [DECORATE] How to stop a A_SkullAttack monster?
Yes, because bursting into flames because a skull rams into you makes sense anywhere.Ghastly_dragon wrote: (It should, 'cause a fire death after being hit by a Lost Soul would be cool).

Re: [DECORATE] How to stop a A_SkullAttack monster?
Fixed.XutaWoo wrote:Yes, because bursting into flames because a flaming skull rams into you makes sense anywhere.Ghastly_dragon wrote: (It should, 'cause a fire death after being hit by a Lost Soul would be cool).

- XutaWoo
- Posts: 4005
- Joined: Sat Dec 30, 2006 4:25 pm
- Location: beautiful hills of those who are friends
- Contact:
Re: [DECORATE] How to stop a A_SkullAttack monster?
Still, it's hitting you face first, not flame first. 

Re: [DECORATE] How to stop a A_SkullAttack monster?
Your technicalities are silly.XutaWoo wrote:Still, it's hitting you face first, not flame first.
Re: [DECORATE] How to stop a A_SkullAttack monster?
Lost souls that didn't infight would actually make Pain Elementals kind of scary.