Melee blocking line?

Ask about mapping, UDMF, using DoomBuilder/editor of choice, etc, here!
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.

Melee blocking line?

Postby Ravick » Tue Dec 11, 2018 1:59 am

Is that a (n official) way to make a line block melee attacks? Or better, to make a monster not start its melee sequence when player is on the other side of said line? We have hitscan, sound, projectile, player movement, monster movement blocking, etc... is it possible to make with melee?
User avatar
Ravick
Do what thou wilt, since you don't bug the hell out of me!
 
Joined: 22 Aug 2010
Location: Tubarão, Brasil

Re: Melee blocking line?

Postby Epōllon » Mon Mar 04, 2019 6:58 pm

If you are talking about a single linedef, you can use Block Everything to block melee included, however if you want to only block melee you can use acs as well. Make a sector next to the wall and use the map spots Actor Leaves Sector and Actor Enters Sector to activate SetActorProperty scripts for APROP_MeleeRange of the things behind the wall.
User avatar
Epōllon
 
Joined: 12 Jul 2018

Re: Melee blocking line?

Postby Arctangent » Mon Mar 04, 2019 7:50 pm

Monster melee attacks ( and only monster melee attacks - player melee attacks are just regular ol' hitscans with tiny range ) depend entirely on line of sight. So, if you set a line to block line of sight ( which can be done on its own in UDMF, but is also included in "block everything" if you're mapping for an ancient version of Skulltag for whatever reason ), then not only will the player not be melee'd while that kind of line is between them and a monster, but the attack will also "miss" if it was already started but didn't get to the attack codepointer until after the player already moved behind the line.
User avatar
Arctangent
squawky
 
Joined: 06 Nov 2014
Discord: SquawkyAtan#2371

Re: Melee blocking line?

Postby Ravick » Thu Mar 07, 2019 10:07 pm

Thanks! :)
User avatar
Ravick
Do what thou wilt, since you don't bug the hell out of me!
 
Joined: 22 Aug 2010
Location: Tubarão, Brasil


Return to Mapping

Who is online

Users browsing this forum: Awario [RSS], MFG38 and 1 guest