Advertisement
SetaKat

Xray Extensions - CS lua_help_extensions.script

Nov 14th, 2012
109
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. List of the classes exported to LUA
  2.  
  3. C++ class game_object {
  4. function get_target_obj() object; -- Returns the current object that looks at us
  5. function GetMousePos() vector2; -- Returns a vector2 object with the current mouse position
  6. function item_on_belt();
  7. function belt_object_count() number; -- Gets the amount of items currently on the belt
  8. function get_fuel() number; -- Gets the current amount of fuel in the car
  9. function get_fuel_consumption() number; -- Gets the amount of fuel the car consumes
  10. function get_fuel_tank() number; -- Gets the total capacity of the fuel tank
  11. function set_fuel(number); -- Sets the current amount of fuel in the car
  12. function set_fuel_consumption(number); -- Sets the current amount of fuel the car consumes
  13. function set_character_name(string); -- Sets the characters name * Need to determine how it works, seems to use an inbuilt string *
  14. };
  15.  
  16. C++ class CUIWindow {
  17. function GetMouseX(); -- Gets the X value of the mouse
  18. function GetMouseY(); -- gets the Y value of the mouse
  19. };
  20.  
  21. C++ class callback {
  22. const call_key_press_callback = ; -- Adds a callback for when a key is pressed
  23. const call_key_release_callback = ; -- Adds a callback for when a key is released
  24. const call_key_hold_callback = ; -- Adds a callback for when a key is held
  25. const call_mouse_wheel_callback = ; -- Adds a callback for when the mouse wheel is scrolled
  26. const call_mouse_move_callback = ; -- Adds a callback for when the mouse move
  27. };
  28.  
  29. End of list of the classes exported to LUA
  30.  
  31.  
  32. List of the namespaces exported to LUA
  33.  
  34.  
  35. namespace {
  36. function log1(string); -- Logs a message to console
  37. function flush1(); -- Writes the current console buffer to file
  38. function bit_or();
  39. function set_extensions_flags();
  40. function get_extensions_flags();
  41.  
  42. namespace level {
  43. function get_target_dist() number; -- Gets the distance to the object we are looking at
  44. function set_ph_time_factor(number); -- Sets speed at which physics effects works?
  45. function get_ph_time_factor() number; -- Gets speed at which physics effects works?
  46. function set_fov(number); -- Sets the current FOV
  47. function get_fov() number; -- Gets the current FOV
  48. function hide_minimap(); -- Hides the minimap
  49. function show_minimap(); -- Shows the minimap
  50. function minimap_shown() boolean; -- Returns a boolean value to determine if the minimap is shown or not
  51. };
  52. };
  53. End of list of the namespaces exported to LUA
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement