[Duplicate] ZScript - virtual function CanCrossLine

Moderator: GZDoom Developers

ZScript - virtual function CanCrossLine

Postby JaedenDuhreis » Wed Mar 30, 2022 8:21 am

It would be nice to have virtual function:

Code: Select allExpand view
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
 
Joined: 02 Jan 2022

Re: ZScript - virtual function CanCrossLine

Postby JaedenDuhreis » Wed Mar 30, 2022 9:04 am

Oh well, just realized, there is already the same feature realised in code submissions forum.
JaedenDuhreis
 
Joined: 02 Jan 2022

Re: ZScript - virtual function CanCrossLine

Postby Major Cooke » Wed Mar 30, 2022 6:22 pm

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.
User avatar
Major Cooke
QZDoom Maintenance Team
 
Joined: 28 Jan 2007


Return to Closed Feature Suggestions

Who is online

Users browsing this forum: No registered users and 0 guests