Maybe some more warp parameters

Remember, just because you request it, that doesn't mean you'll get it.

Moderator: GZDoom Developers

Hypersonic
Posts: 134
Joined: Mon Aug 14, 2017 3:04 pm

Maybe some more warp parameters

Post by Hypersonic »

Currently warp has the 3 parameters x y z. It would be nice to at least have an optional 4th parameter; heading direction, so you can give people links to not only vantage points (which I use often in map guides, copy paste into the console), but where to look from that vantage point. Pitch would be nice as well. I suppose velocity parameters would be too exotic, currently you simply retain your current velocity and heading that you had just before warp.

EDIT: quick browse of the warp command
https://github.com/coelckers/gzdoom/blo ... s.cpp#L765
CCMD (warp)

https://github.com/coelckers/gzdoom/blo ... .cpp#L2220
case DEM_WARPCHEAT:

https://github.com/coelckers/gzdoom/blo ... p.cpp#L457
bool P_TeleportMove(AActor* thing, const DVector3 &pos, bool telefrag, bool modifyactor)

P_TeleportMove looks to be quite involved.

Return to “Feature Suggestions [GZDoom]”