https://vimeo.com/190428928
I attached the lua script to a basket near the start point in the big escape fpm (replacing the radar script iow).
After starting the level and pressing E to get rid of the intro screen press Shift+C to trigger the script.
The first line of the script is the camera sequence list, this contains a series of strings describing the movements:
x<num> move <num> units in x direction
y<num> ditto for y
z<num> ditto for z
t<num> tilt camera
p<num> pan camera
s<num> sets speed of movement (actually specifies how long each subsequent movement entry takes to execute)
Any values less that 200 are assumed to be seconds, otherwise the value is milliseconds.
Setting to 0 means the movements occur straight away.
f<num> set fov to num, valid values are 0-50
w<num> pauses for the specified amount of time
h - halts (Shift-C to continue with next part of sequence)
so for example the one I've included contains:
"h" - halt, just waits until Shift-C pressed
"s0;y500" - instantly move up 500 units
"s5;x-1000;z-600;y-200" - in the next 5 seconds move -1000 in x direction and -600 in z and -200 in y
"x-1300;y-50" - in the next 5 seconds move -1300 in x and -50 in y
"s0;p-40;t10" - instantly pan camera 40 degrees left and 10 degrees down
"s3;x-800;z500;y250" - in the next 3 seconds move -800 in x and 500 in z and 250 in y
"w5" - pause for 5 seconds
"h" - halt (i.e. goes back to player)
Yo can add as many sequences as you like, each press of Shift-C will start the next sequence in line.
You can have up to 5 movement commands in each string, so for example "x100;z100;y100;p50;t20".
panning and tilting is jerky due to a bug in the engine, fov changes are jerky due to it being an integer value but if you set the speed high (i.e. 500 ms) then it appears a lot smoother.
The initial x,y,z position is set by the location of the entity you attach the script to, the initial camera pan and tilt values are set in the script as is the default speed.
Note that when the script returns control to the player you won't have a weapon, just press a number key to re-select the weapon as I couldn't figure out how to do it from Lua.
Remember if you set the speed to 0 (for example to change camera angles) that you need to set it back to some sensible value for the next movement sequence!
Been there, done that, got all the T-Shirts!