My golem make double punch in melee attack. He punch with right then with left hand.
When he hit player with right hand, player is push back and go out of the range of next blow with Left hand.
How to program monster to move a little closer than his max melee range?
f.ex melee range is 50, so let monster come to range 40.
Monster chase below Melee range
Moderator: GZDoom Developers
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
- Dan_The_Noob
- Posts: 872
- Joined: Tue May 07, 2019 12:24 pm
- Graphics Processor: nVidia with Vulkan support
- Contact:
Re: Monster chase below Melee range
well, melee range is the thing to let stuff get closer.
what you could do is make your punches a short range bullet and have the melee range shorter than the bullet range.
what you could do is make your punches a short range bullet and have the melee range shorter than the bullet range.
- Lagi
- Posts: 677
- Joined: Sat Jun 23, 2018 12:51 pm
- Location: Thou shalt alter thy beliefs with new evidence
Re: Monster chase below Melee range
thank you, that do the trick, but...
A_CustomBulletAttack - function can not specify miss and hit sound (like A_CustomMeleeAttack). I can put somewhere:
SPOS E 0 A_PlaySound("weapons/sshotf")
but this would always be the same sound, not depend from hit/miss.
any idea how to implement the hit sound into bullet function?
A_CustomBulletAttack - function can not specify miss and hit sound (like A_CustomMeleeAttack). I can put somewhere:
SPOS E 0 A_PlaySound("weapons/sshotf")
but this would always be the same sound, not depend from hit/miss.
any idea how to implement the hit sound into bullet function?
- Dan_The_Noob
- Posts: 872
- Joined: Tue May 07, 2019 12:24 pm
- Graphics Processor: nVidia with Vulkan support
- Contact:
Re: Monster chase below Melee range
make a custom bullet puff that plays the sound you want maybe