Subversion Repositories Games.Carmageddon

Rev

Rev 1 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1. #ifndef _GLOBVARS_H_
  2. #define _GLOBVARS_H_
  3.  
  4. #include "dr_types.h"
  5.  
  6. extern int gTyping;
  7. extern int gArrow_mode;
  8. extern int gInfo_on;
  9. extern int gHost_abandon_game;
  10. extern int gRecover_car;
  11. extern int gDisallow_abandon_race;
  12. extern int gPipe_reg_snap_before_new_game;
  13. extern int gPipe_reg_snap_before_our_car;
  14. extern int gPipe_reg_snap_after_our_car;
  15. extern int gAction_replay_mode;
  16. extern int gDefault_engine_noise_index;
  17. extern int gAusterity_mode;
  18. extern int gSausage_override;
  19. extern int gAustere_override;
  20. extern int gSound_override;
  21. extern int gKey_map_index;
  22. extern int gInterface_within_race_mode;
  23. extern int gCut_scene_override;
  24. extern int gGame_to_load;
  25. extern int gCD_is_in_drive;
  26. extern br_pixelmap* gRearview_screen;
  27. extern br_scalar gCut_delay_1;
  28. extern br_scalar gCut_delay_2;
  29. extern br_scalar gCut_delay_3;
  30. extern br_scalar gCut_delay_4;
  31. extern br_scalar gYon_multiplier;
  32. extern tSave_game* gPre_race_saved_game;
  33. extern FILE* gDiagnostic_file;
  34. extern br_vector3 gDisabled_vector;
  35. extern tU32 gI_am_cheating;
  36. extern char gNet_player_name[32];
  37. extern br_matrix34 gRearview_camera_to_world;
  38. extern tSpecial_volume gDefault_default_water_spec_vol;
  39. extern br_matrix34 gCamera_to_world;
  40. extern tRace_list_spec gRace_list[100];
  41. extern tPath_name gApplication_path;
  42. extern float gPinball_factor;
  43. extern float gOpponent_speed_factor;
  44. extern float gCar_crush_min_fold;
  45. extern float gNet_recovery_cost[7];
  46. extern float gCar_crush_softness;
  47. extern br_vector3* gOur_pos;
  48. extern float gCar_crush_max_fold;
  49. extern tBrender_storage gNet_cars_storage_space;
  50. extern float gNet_softness[7];
  51. extern tS32 gJoystick_deadzone;
  52. extern float gCar_crush_limit_deviant;
  53. extern float gNet_offensive[7];
  54. extern float gCar_crush_split_chance;
  55. extern float gGravity_multiplier;
  56. extern float gCar_crush_wibble;
  57. extern float gRepair_cost[3];
  58. extern float gCop_speed_factor;
  59. extern float gDefault_gravity;
  60. extern tU32 gKeys_pressed;
  61. extern tSpecial_volume* gDefault_water_spec_vol;
  62. extern float gNet_repair_cost[7];
  63. extern br_font* gFont_7;
  64. extern tU32 gLast_replay_frame_time;
  65. extern tU32 gTag_start_time;
  66. extern tOpponent* gOpponents;
  67. extern tU32 gLast_credit_tick;
  68. extern tBrender_storage gTheir_cars_storage_space;
  69. extern br_font* gHeadup_font;
  70. extern tU32 gRace_finished;
  71. extern tU32 gFrame_start_time;
  72. extern tProgram_state gProgram_state;
  73. extern tU32 gCredit_period_single[3];
  74. extern tU32 gRace_start;
  75. extern tBrender_storage gTrack_storage_space;
  76. extern tU32 gFrame_period;
  77. extern tU32 gCredit_period;
  78. extern tU32 gCredit_period_network[7];
  79. extern tBrender_storage gOur_car_storage_space;
  80. extern tU32 gFox_start_time;
  81. extern br_font* gBig_font;
  82. extern tBrender_storage gPedestrians_storage_space;
  83. extern tRace_info gCurrent_race;
  84. extern br_actor* gSelf;
  85. extern br_actor* gDont_render_actor;
  86. extern br_pixelmap* gScreen;
  87. extern br_pixelmap* gRender_screen;
  88. extern br_actor* gRearview_camera;
  89. extern br_scalar gCamera_hither;
  90. extern br_pixelmap* gBack_screen;
  91. extern br_scalar gCamera_angle;
  92. extern br_pixelmap* gDigits_pix;
  93. extern br_pixelmap* gRender_shade_table;
  94. extern br_pixelmap* gRearview_depth_buffer;
  95. extern br_pixelmap* gWhole_screen;
  96. extern br_pixelmap* gIcons_pix;
  97. extern br_scalar gCamera_yon;
  98. extern br_actor* gCamera;
  99. extern br_actor* gArrow_actor;
  100. extern br_pixelmap* gIcons_pix_low_res;
  101. extern br_pixelmap* gDepth_buffer;
  102. extern int gInitial_net_credits[5];
  103. extern float gCar_cred_value[3];
  104. extern int gNo_races_yet;
  105. extern int gJump_start_fine[3];
  106. extern int gReal_graf_data_index;
  107. extern float gCar_time_value[3];
  108. extern int gTyping_slot;
  109. extern int gCunning_stunt_bonus[3];
  110. extern int gKnobbled_frame_period;
  111. extern br_actor* gNon_track_actor;
  112. extern int gWait_for_it;
  113. extern int gCheck_point_cash[3];
  114. extern int gPoints_per_second[3];
  115. extern br_actor* gUniverse_actor;
  116. extern br_actor* gTrack_actor;
  117. extern int gMap_mode;
  118. extern int gPed_time_value[3];
  119. extern int gAbandon_game;
  120. extern int gLap;
  121. extern int gShow_opponents;
  122. extern int gTotal_laps;
  123. extern int gFree_repairs;
  124. extern int gFreeze_timer;
  125. extern int gRoll_over_creds[3];
  126. extern int gShow_peds_on_map;
  127. extern int gOn_drugs;
  128. extern int gWasted_time[3];
  129. extern int gCheckpoint;
  130. extern int gRoll_over_time[3];
  131. extern int gWasted_creds[3];
  132. extern int gTimer;
  133. extern int gCheckpoint_count;
  134. extern int gCountdown;
  135. extern int gFrame_rate;
  136. extern int gNumber_of_racers;
  137. extern int gSound_enabled;
  138. extern int gGraf_spec_index;
  139. extern int gSound_available;
  140. extern int gNumber_of_races;
  141. extern char gDir_separator[3];
  142.  
  143. // FIXME!
  144. #define TAU 6.283185307179586
  145.  
  146. #endif
  147.