CheckMove for ZScript

Moderator: GZDoom Developers

Post Reply
User avatar
Matt
Posts: 9696
Joined: Sun Jan 04, 2004 5:37 pm
Preferred Pronouns: They/Them
Operating System Version (Optional): Debian Bullseye
Location: Gotham City SAR, Wyld-Lands of the Lotus People, Dominionist PetroConfederacy of Saudi Canadia
Contact:

CheckMove for ZScript

Post by Matt »

https://github.com/coelckers/gzdoom/blo ... .cpp#L2780

"Similar to P_TryMove but doesn't actually move the actor."

This would allow so much that I've now relied on gross hacks (setorigin, checking velocity, spawning actors, etc.) to do.
_mental_
 
 
Posts: 3812
Joined: Sun Aug 07, 2011 4:32 am

Re: CheckMove for ZScript

Post by _mental_ »

Added in c4648a2.
User avatar
Matt
Posts: 9696
Joined: Sun Jan 04, 2004 5:37 pm
Preferred Pronouns: They/Them
Operating System Version (Optional): Debian Bullseye
Location: Gotham City SAR, Wyld-Lands of the Lotus People, Dominionist PetroConfederacy of Saudi Canadia
Contact:

Re: CheckMove for ZScript

Post by Matt »

Thanks!

But... no ability to output an fcheckposition struct?
(sorry I didn't realize that when I posted this last night)
_mental_
 
 
Posts: 3812
Joined: Sun Aug 07, 2011 4:32 am

Re: CheckMove for ZScript

Post by _mental_ »

Extended in 549a9d3.
User avatar
Matt
Posts: 9696
Joined: Sun Jan 04, 2004 5:37 pm
Preferred Pronouns: They/Them
Operating System Version (Optional): Debian Bullseye
Location: Gotham City SAR, Wyld-Lands of the Lotus People, Dominionist PetroConfederacy of Saudi Canadia
Contact:

Re: CheckMove for ZScript

Post by Matt »

Awesome, thanks!!!

(I was thinking about the possibility of calling TryMove only if CheckMove for the same coordinates and flags failed, but this is of course infinitely better!)
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”