I dont know, is it a zdoom or gzdoom issue, but have no idea how to check it in zdoom
A_FaceTarget(0,0) works different in GZDoom 2.0.0.5 and 2.2.0:
GZDoom 2.0.0.5: http://s45.radikal.ru/i107/1609/bd/8dce9bcdfd94.png
GZDoom 2.2.0: http://s09.radikal.ru/i182/1609/3d/ffb97e3c5e5c.png
So in 2.0.05 3d model is rotated (pitch is aligned to player), and in 2.2.0 not
If it's not a bug, then how to force an actor to align pitch (face pitch on target) in 2.2.0?
Pitch-based Facetarget issues
Moderator: Graf Zahl
- theleo_ua
- Posts: 34
- Joined: Sun Mar 04, 2012 17:24
- Contact:
Pitch-based Facetarget issues
Nothing smells better than a dead Governor in the morning (c) http://www.rpgcodex.net/phpBB/viewtopic ... 026#808026
- Graf Zahl
- GZDoom Developer
- Posts: 7148
- Joined: Wed Jul 20, 2005 9:48
- Location: Germany
- Contact:
Re: Pitch-based Facetarget issues
Can't tell without anything to test.
- theleo_ua
- Posts: 34
- Joined: Sun Mar 04, 2012 17:24
- Contact:
Re: Pitch-based Facetarget issues
https://drive.google.com/file/d/0BygbyP ... sp=sharingGraf Zahl wrote:Can't tell without anything to test.
gzdoom.exe -iwad heretic.wad -file TESTMOD.pk3 -warp 1 1 -nomonsters
then "summon artiinvisibility", give artifly and try to fly up/down to see how shadowsphere reacts on your position
Also I found next workaround:
Code: Select all
int distx = GetActorX(PlayerTID)-GetActorX(0);
int disty = GetActorY(PlayerTID)-GetActorY(0);
int distz = GetActorZ(PlayerTID)-GetActorZ(0);
ChangeActorAngle(0 , VectorAngle(distx, disty), true);
ChangeActorPitch(0 , VectorAngle(VectorLength(distx, disty), -distz), true);
- Attachments
-
- TESTMOD_FACETARGET.7z
- (255.61 KiB) Downloaded 94 times
Last edited by theleo_ua on Thu Dec 08, 2016 18:41, edited 3 times in total.
Nothing smells better than a dead Governor in the morning (c) http://www.rpgcodex.net/phpBB/viewtopic ... 026#808026
- Graf Zahl
- GZDoom Developer
- Posts: 7148
- Joined: Wed Jul 20, 2005 9:48
- Location: Germany
- Contact:
Re: Pitch-based Facetarget issues
So what? After only two months the file is gone? Which means we are back to square one.
Sorry I couldn't investigate earlier, but two months should be reasonable I think.
Sorry I couldn't investigate earlier, but two months should be reasonable I think.
- theleo_ua
- Posts: 34
- Joined: Sun Mar 04, 2012 17:24
- Contact:
Re: Pitch-based Facetarget issues
I'm very sorry for this, file is gone by accident. Uploaded again: https://drive.google.com/file/d/0BygbyP ... sp=sharing
Issue still exists
Issue still exists
- Attachments
-
- TESTMOD_FACETARGET.7z
- (255.61 KiB) Downloaded 99 times
Nothing smells better than a dead Governor in the morning (c) http://www.rpgcodex.net/phpBB/viewtopic ... 026#808026
- Graf Zahl
- GZDoom Developer
- Posts: 7148
- Joined: Wed Jul 20, 2005 9:48
- Location: Germany
- Contact:
Re: Pitch-based Facetarget issues
Ok, fixed. I had to make sure that this was really an error with the math or just a result of broken pitch setting for models which had been fixed a few months ago.