10.03.2012, 00:30
(
Последний раз редактировалось AirKite; 10.03.2012 в 16:09.
)
/cam_interp_look in default FS test_cmds - not worked.
InterpolateCameraPos with InterpolateCameraLookAt, not set camera look or no smooth.
/cam_interp and my /cam_look
work, but time(smooth) not correct. I mean, work only if single use InterpolateCameraLookAt or InterpolateCameraPos.
UPD:
[ame]http://www.youtube.com/watch?v=R4xaY0cjv-o[/ame]
InterpolateCameraPos with InterpolateCameraLookAt, not set camera look or no smooth.
/cam_interp and my /cam_look
pawn Код:
//test
if(strcmp(cmd, "/cam_look",true) == 0) {
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
TogglePlayerControllable(playerid, false);
InterpolateCameraLookAt(playerid, X, Y, Z, 100.0, 100.0, 1000.0, 10000);
return 1;
}
UPD:
pawn Код:
//
if(strcmp(cmd, "/camtest1",true) == 0) {
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
InterpolateCameraPos(playerid, X, Y, Z, X + 20.0, Y + 20.0, Z + 65.0, 10000, CAMERA_MOVE);
InterpolateCameraLookAt(playerid, X, Y, Z, 100.0, 100.0, 100.0, 10000, CAMERA_MOVE);
return 1;
}
if(strcmp(cmd, "/camtest2",true) == 0) {
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
InterpolateCameraPos(playerid, X, Y, Z, X + 20.0, Y + 20.0, Z + 65.0, 10000);
InterpolateCameraLookAt(playerid, X, Y, Z, 100.0, 100.0, 100.0, 10000);
return 1;
}
if(strcmp(cmd, "/camtest3",true) == 0) {
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
InterpolateCameraPos(playerid, X, Y, Z, X + 20.0, Y + 20.0, Z + 65.0, 10000);
return 1;
}
if(strcmp(cmd, "/camtest4",true) == 0) {
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
InterpolateCameraLookAt(playerid, X, Y, Z, 100.0, 100.0, 100.0, 10000);
return 1;
}