[DECORATE] How to stop a A_SkullAttack monster?

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.
User avatar
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?

Post by Tormentor667 »

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?
User avatar
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?

Post by Zhs2 »

[wiki]A_Stop[/wiki]
User avatar
Nash
 
 
Posts: 17498
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: [DECORATE] How to stop a A_SkullAttack monster?

Post by Nash »

That'll make the thing stop abruptly.

Assuming that the leaping monster has gravity... in the leaping state, add an [wiki]A_CheckFloor[/wiki]?
User avatar
Ghastly
... in rememberance ...
Posts: 6109
Joined: Fri Jul 06, 2007 2:34 pm

Re: [DECORATE] How to stop a A_SkullAttack monster?

Post by Ghastly »

Here's what I used for the RoEMonster pack Trite:

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
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.
User avatar
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?

Post by DBThanatos »

Now that we are on this A_SKullAttack, is there a way to prevent infighting because of this action?
User avatar
Ghastly
... in rememberance ...
Posts: 6109
Joined: Fri Jul 06, 2007 2:34 pm

Re: [DECORATE] How to stop a A_SkullAttack monster?

Post by Ghastly »

None that I know of, besides stopping infighting for the monster in question. :?
Gez
 
 
Posts: 17946
Joined: Fri Jul 06, 2007 3:22 pm

Re: [DECORATE] How to stop a A_SkullAttack monster?

Post by Gez »

Damage factors?
User avatar
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?

Post by Tormentor667 »

Thanks, got it working :)
User avatar
DOOMERO-21
Posts: 1423
Joined: Wed Jan 02, 2008 10:02 pm
Location: Chile

Re: [DECORATE] How to stop a A_SkullAttack monster?

Post by DOOMERO-21 »

mmm yes a_stop is the best choice i put that for my forgotten and works good =)
User avatar
Ghastly
... in rememberance ...
Posts: 6109
Joined: Fri Jul 06, 2007 2:34 pm

Re: [DECORATE] How to stop a A_SkullAttack monster?

Post by Ghastly »

Gez wrote:Damage factors?
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).
User avatar
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?

Post by XutaWoo »

Ghastly_dragon wrote: (It should, 'cause a fire death after being hit by a Lost Soul would be cool).
Yes, because bursting into flames because a skull rams into you makes sense anywhere. :P
User avatar
Ghastly
... in rememberance ...
Posts: 6109
Joined: Fri Jul 06, 2007 2:34 pm

Re: [DECORATE] How to stop a A_SkullAttack monster?

Post by Ghastly »

XutaWoo wrote:
Ghastly_dragon wrote: (It should, 'cause a fire death after being hit by a Lost Soul would be cool).
Yes, because bursting into flames because a flaming skull rams into you makes sense anywhere. :P
Fixed. :P
User avatar
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?

Post by XutaWoo »

Still, it's hitting you face first, not flame first. :P
User avatar
Ceeb
Posts: 5125
Joined: Wed Jun 11, 2008 4:07 pm
Location: Castle Wut

Re: [DECORATE] How to stop a A_SkullAttack monster?

Post by Ceeb »

XutaWoo wrote:Still, it's hitting you face first, not flame first. :P
Your technicalities are silly.
User avatar
Ethril
Posts: 2677
Joined: Sun Nov 16, 2008 2:59 am
Location: with you in the dark

Re: [DECORATE] How to stop a A_SkullAttack monster?

Post by Ethril »

Lost souls that didn't infight would actually make Pain Elementals kind of scary.
Locked

Return to “Editing (Archive)”