Barebones function 20000

From Unofficial QEdit Wiki Guide
Jump to: navigation, search

Barebones function 20000

Function 20000: 20000:

  • Function 20000 = 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 20000 dec to float conversion for the number of transition frames to be used. Distance between point a and point b calculation.

How the function appears in the script


20000:   dec2float R243, R242 //Converts the dec value in register 242 and stores it as a float value in register 243.
         fsub R236, R230 //Preforms float value subtraction on the float value of register 236 minus the float value of register 230 and stores the float value result in register 236.
         fsub R237, R231 //Preforms float value subtraction on the float value of register 237 minus the float value of register 231 and stores the float value result in register 237.
         fsub R238, R232 //Preforms float value subtraction on the float value of register 238 minus the float value of register 232 and stores the float value result in register 238.
         fsub R239, R233 //Preforms float value subtraction on the float value of register 239 minus the float value of register 233 and stores the float value result in register 239.
         fsub R240, R234 //Preforms float value subtraction on the float value of register 240 minus the float value of register 234 and stores the float value result in register 240.
         fsub R241, R235 //Preforms float value subtraction on the float value of register 241 minus the float value of register 235 and stores the float value result in register 241.
         fdiv R236, R243 //Preforms float value division on the float value of register 236 divide by the float value of register 243 and stores the float value result in register 236.
         fdiv R237, R243 //Preforms float value division on the float value of register 237 divide by the float value of register 243 and stores the float value result in register 237.
         fdiv R238, R243 //Preforms float value division on the float value of register 238 divide by the float value of register 243 and stores the float value result in register 238.
         fdiv R239, R243 //Preforms float value division on the float value of register 239 divide by the float value of register 243 and stores the float value result in register 239.
         fdiv R240, R243 //Preforms float value division on the float value of register 240 divide by the float value of register 243 and stores the float value result in register 240.
         fdiv R241, R243 //Preforms float value division on the float value of register 241 divide by the float value of register 243 and stores the float value result in register 241.
         ret 

Also see

dec2float, fsub, fdiv, ret,

No One's camera example and explanation