ZScript - virtual function CanCrossLine

Moderator: GZDoom Developers

JaedenDuhreis
Posts: 8
Joined: Sun Jan 02, 2022 7:19 am

ZScript - virtual function CanCrossLine

Post by JaedenDuhreis »

It would be nice to have virtual function:

Code: Select all

virtual bool CanCrossLine (Line l, int side)

for actors, that would allow to set custom rules if said actor can cross a specific line.

This idea originally came from a need to have a customizable generalization of the +CantLeaveFloorPic flag, to prevent selected actors to enter water (or different way forbidden) sectors.
JaedenDuhreis
Posts: 8
Joined: Sun Jan 02, 2022 7:19 am

Re: ZScript - virtual function CanCrossLine

Post by JaedenDuhreis »

Oh well, just realized, there is already the same feature realised in code submissions forum.
User avatar
Major Cooke
Posts: 8196
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Location: QZDoom Maintenance Team

Re: ZScript - virtual function CanCrossLine

Post by Major Cooke »

I had to clip out the 'int side' part of it though in an effort to help minimize the impact on the engine, but there are functions already out there which you can use to get it, I think.

Return to “Closed Feature Suggestions [GZDoom]”