by phi108 » Wed Jul 29, 2009 12:27 pm
I've been trying to modify the scripts lump from that WAD to compile ACS script that works correctly, and I think I have the cameras next to each other now, instead of one in front of the other. I changed these lines:
setactorposition(2001, xo+x, yo+y, z, 0);
setactorposition(2002, xo-x, yo-y, z, 0);
to these:
setactorposition(2001, xo-x, yo+y, z, 0);
setactorposition(2002, xo+x, yo-y, z, 0);
And I think that did the trick.
BUT the cameras are much too close together, I think. They should be about 6 units apart (when doomguy is 32 units large). And I can't figure out any way to get the distance larger. I can't comprehend these "fixed point numbers" or how to change the FixedMul to get the result I want.
Any help??
EDIT: Nevermind, I think the cameras only align themselves correctly (beside each other) when you are facing east in the game. The current way this script is set up doesn't place the cameras at the location of doomguy's eyes permanently.
I think not everything in the script is done relative to the player, so only looking in one direction gives the desired results....
I've been trying to modify the scripts lump from that WAD to compile ACS script that works correctly, and I think I have the cameras next to each other now, instead of one in front of the other. I changed these lines:
setactorposition(2001, xo+x, yo+y, z, 0);
setactorposition(2002, xo-x, yo-y, z, 0);
to these:
setactorposition(2001, xo-x, yo+y, z, 0);
setactorposition(2002, xo+x, yo-y, z, 0);
And I think that did the trick.
BUT the cameras are much too close together, I think. They should be about 6 units apart (when doomguy is 32 units large). And I can't figure out any way to get the distance larger. I can't comprehend these "fixed point numbers" or how to change the FixedMul to get the result I want.
Any help??
EDIT: Nevermind, I think the cameras only align themselves correctly (beside each other) when you are facing east in the game. The current way this script is set up doesn't place the cameras at the location of doomguy's eyes permanently.
I think not everything in the script is done relative to the player, so only looking in one direction gives the desired results....