ZScript - virtual function CanCrossLine

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: ZScript - virtual function CanCrossLine

Re: ZScript - virtual function CanCrossLine

by 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.

Re: ZScript - virtual function CanCrossLine

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

Oh well, just realized, there is already the same feature realised in code submissions forum.

ZScript - virtual function CanCrossLine

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

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.

Top