Barebones function 20001

From Unofficial QEdit Wiki Guide
Jump to: navigation, search

Barebones function 20001

Function 20001: 20001:

  • Function 20001 = Part of camera code.

Camera code

Barebones function 20000 = Function 20000 dec to float conversion for the number of transition frames to be used. Distance between point a and point b calculation.

Barebones function 20001 = Function 20001 camera movement.

Barebones function 20002 = Function 20002 return camera to default position.

Barebones function 20003 = Function 20003 shortcut used to store the last ending transition in temporary registers.

Barebones function 20004 = Function 20004 shortcut to make the last ending transition that is stored in temporary registers be the new starting transition.

Barebones function 20005 = Function 20005 shortcut makes the starting psychical camera position equal the starting camera look at position.

Barebones function 20006 = Function 20006 shortcut makes the ending psychical camera position equal the ending camera look at position.

Use

Function 20001 camera movement.

How the function appears in the script


20001:   sync  //Waits 1 frame.
         jmpi_= R242, 00000000, 1 //If register 242 equals 00000000 jump to function 1.
         fadd R230, R236 //Preforms float value addition on the float value of register 230 plus the float value of register 236 and stores the float value result in register 230.
         fadd R231, R237 //Preforms float value addition on the float value of register 231 plus the float value of register 237 and stores the float value result in register 231.
         fadd R232, R238 //Preforms float value addition on the float value of register 232 plus the float value of register 238 and stores the float value result in register 232.
         fadd R233, R239 //Preforms float value addition on the float value of register 233 plus the float value of register 239 and stores the float value result in register 233.
         fadd R234, R240 //Preforms float value addition on the float value of register 234 plus the float value of register 240 and stores the float value result in register 234.
         fadd R235, R241 //Preforms float value addition on the float value of register 235 plus the float value of register 241 and stores the float value result in register 235.
         fleti_fixed_camera R230 //Tells the fleti_fixed_camera where the continuous registers starts and moves the camera.
         subi R242, 00000001 //Subtracts 00000001 from the value of register 242.
         jmp 20001 //Jump to function 20001.

Also see

sync, jmpi_=, fadd,

fleti_fixed_camera, suni, jmp

No One's camera example and explanation