Recent Tonik's camera patch allows you to create a lot of scripted camera action in ezQuake. Let this be a place to gather some nice scripted camera configs.
Let me start with a very basic one - camera positions bookmarks:
Today I've added f_captureframe trigger (it gets triggered on the beginning of every new captured frame), so you can create some advanced scripted moves.
I wouldn't call this "advanced script", but it should give you some hint which way to go ;-)
I've extended this configs into something more usefull, you can find the result here - Camera bookmarks config
Let me start with a very basic one - camera positions bookmarks:
//
// Camera positions bookmarks
//
// Use [Ctrl]+[0], [1], ..., [9] to store cam positions
// Use [0], [1], ..., [9] to load stored camera positions
//
bind ctrl +cams_save_mode
set cams_bindn 0
// been too lazy to type all that bind 1 blah bind 2 blah stuff manually...
alias cams_bindnext "cams_bindc; inc cams_bindn 1; if $cams_bindn < 10 cams_bindnext"
alias cams_bindc "bind $cams_bindn cams_go $cams_bindn"
cams_bindnext
set cams_bindmode 0
alias +cams_save_mode "set cams_bindmode 1"
alias -cams_save_mode "set cams_bindmode 0"
alias cams_go "if $cams_bindmode == 0 cams_load %1 else cams_save %1"
alias cams_load "cam_angles $cam_angles_saved%1; cam_pos $cam_pos_saved%1; echo camera position %1 loaded"
alias cams_save "set cam_angles_saved%1 $cam_angles; set cam_pos_saved%1 $cam_pos; echo camera position %1 saved"
// Camera positions bookmarks
//
// Use [Ctrl]+[0], [1], ..., [9] to store cam positions
// Use [0], [1], ..., [9] to load stored camera positions
//
bind ctrl +cams_save_mode
set cams_bindn 0
// been too lazy to type all that bind 1 blah bind 2 blah stuff manually...
alias cams_bindnext "cams_bindc; inc cams_bindn 1; if $cams_bindn < 10 cams_bindnext"
alias cams_bindc "bind $cams_bindn cams_go $cams_bindn"
cams_bindnext
set cams_bindmode 0
alias +cams_save_mode "set cams_bindmode 1"
alias -cams_save_mode "set cams_bindmode 0"
alias cams_go "if $cams_bindmode == 0 cams_load %1 else cams_save %1"
alias cams_load "cam_angles $cam_angles_saved%1; cam_pos $cam_pos_saved%1; echo camera position %1 loaded"
alias cams_save "set cam_angles_saved%1 $cam_angles; set cam_pos_saved%1 $cam_pos; echo camera position %1 saved"
Today I've added f_captureframe trigger (it gets triggered on the beginning of every new captured frame), so you can create some advanced scripted moves.
I wouldn't call this "advanced script", but it should give you some hint which way to go ;-)
// accelerated camera movement
set step 2
alias f_captureframe "set_calc step $step * 1.05; set_calc temp $cam_pos_y + $step; cam_pos $cam_pos_x $temp $cam_pos_z"
set step 2
alias f_captureframe "set_calc step $step * 1.05; set_calc temp $cam_pos_y + $step; cam_pos $cam_pos_x $temp $cam_pos_z"
I've extended this configs into something more usefull, you can find the result here - Camera bookmarks config