Added support for viewpointvalue command (#3754)

Additionally added a script command to update the player's camera.
Added a new atcommand camerainfo for this, which is limited to admins.

Credits to @4144 for finding /setcamera
This commit is contained in:
Lemongrass3110
2018-12-20 19:26:02 +01:00
committed by GitHub
parent 1c987de71d
commit 4944491228
11 changed files with 116 additions and 1 deletions

View File

@@ -59,6 +59,7 @@ values.
B = 1 byte (byte)
W = 2 bytes (word)
L = 4 bytes (long, dword)
F = 4 bytes (float)
Q = 8 bytes (quad)
nB = n bytes

View File

@@ -7659,6 +7659,28 @@ and attempt to execute a source-defined command.
The three .@atcmd_***** variables will NOT be set when invoking script-bound atcommands
in this way.
---------------------------------------
*camerainfo <range>,<rotation>,<latitude>{,<char id>};
This command will update the client's camera information with the given values where
the client can be the attached character or the player given by the char id parameter.
Note: This requires 2016-05-25aRagexeRE or newer.
The values given will be divided by 100 and transmitted as floating-point number.
range The zoomfactor of the camera.
Default: 230000 (230.0) when fully zoomed in
Maximum: 400000 (400.0) when fully zoomed out
rotation The rotation of the camera.
Default: 0 (0.0) when no rotation is applied
Maximum: 360000 (360.0°) when fully rotated
latitude The angle of the camera.
Default: -50000 (-50.0)
Maximum: -75000 (-75.0)
---------------------------------------
\\
6,1.- Unit-related commands