@@ -41,26 +41,81 @@ class hhPossessedTommy;
4141#include " ../PreyRun/Constants.hpp"
4242#include " ../PreyRun/Hooking.hpp"
4343#include " ../PreyRun/GameTimer.hpp"
44+ #include " ../game/Game_local.h"
4445
45- constexpr int PR_AMMOPOS_X{ 550 };
46- constexpr int PR_AMMOPOS_Y{ 448 };
47- constexpr int PR_AMMOPOS2_Y{ PR_AMMOPOS_Y + 15 };
46+ constexpr int PR_hud_std_y_offset{ 15 };
4847
49- constexpr int PR_keys_x{ 300 };
50- constexpr int PR_keys_y{ 250 };
51- constexpr int PR_keys_y2{PR_keys_y + 15 };
48+ constexpr int PR_ammopos_x{ 550 };
49+ constexpr int PR_ammopos_y{ 448 };
50+ constexpr int PR_ammopos2_y{ PR_ammopos_y + PR_hud_std_y_offset };
5251
53- idVec4 const PR_COLOUR_WHITE{ 1 .0F , 1 .0F , 1 .0F , 1 .0F };
54- idVec4 const PR_COLOUR_YELLOW{ 1 .0F , 1 .0F , 0 .25F , 1 .0F };
55- idVec4 const PR_COLOUR_RED{ 1 .0F , 0 .0F , 0 .0F , 1 .0F };
56- idVec4 const PR_COLOUR_GREY{ 0 .65F , 0 .65F , 0 .65F , 0 .65F };
52+ constexpr int PR_ammo_vehicle_shot_cost{ 3500 };
53+
54+ constexpr double PR_jumpspeed_fade_factor{ 0 .02f };
55+
56+ constexpr int PR_location_x{ 0 };
57+ constexpr int PR_location_y{ 45 };
58+
59+ constexpr int PR_velocity_x{ 500 };
60+ constexpr int PR_velocity_y{ 20 };
61+
62+ constexpr int PR_viewangles_x{ 0 };
63+ constexpr int PR_viewangles_y{ 0 };
64+
65+ constexpr int PR_entinfo_offset{ -15 };
66+ constexpr int PR_entinfo_x{ 360 };
67+ constexpr int PR_entinfo_y{ 235 };
68+
69+ constexpr int PR_distance_y{ 220 };
70+
71+ constexpr int PR_health_x{ 70 };
72+ constexpr int PR_health_y{ 448 };
73+
74+ constexpr int PR_spiritpower_x{ 70 };
75+ constexpr int PR_spiritpower_y{ PR_health_y - PR_hud_std_y_offset };
76+
77+ constexpr int PR_keys_x{ 300 };
78+ constexpr int PR_keys_y{ 250 };
79+ constexpr int PR_keys_y2{ PR_keys_y + PR_hud_std_y_offset };
80+
81+ // Reflex
82+ constexpr int PR_keys_reflex_x{ PR_keys_x + 5 };
83+ constexpr int PR_keys_reflex_f_y{ 220 };
84+ constexpr int PR_keys_reflex_lr_y{ PR_keys_reflex_f_y + 10 };
85+ constexpr int PR_keys_reflex_bdj_y{ PR_keys_reflex_f_y + 25 };
86+
87+ // Momentum
88+ constexpr int PR_keys_momentum_fb_x{ 600 };
89+ constexpr int PR_keys_momentum_lrjd_x{ PR_keys_momentum_fb_x + 5 };
90+
91+ constexpr int PR_keys_momentum_y_offset{ 15 };
92+
93+ constexpr int PR_keys_momentum_f_y{ 245 };
94+ constexpr int PR_keys_momentum_lr_y{ PR_keys_momentum_f_y + 1 * PR_keys_momentum_y_offset };
95+ constexpr int PR_keys_momentum_b_y{ PR_keys_momentum_f_y + 2 * PR_keys_momentum_y_offset };
96+ constexpr int PR_keys_momentum_j_y{ PR_keys_momentum_f_y + 3 * PR_keys_momentum_y_offset };
97+ constexpr int PR_keys_momentum_d_y{ PR_keys_momentum_f_y + 4 * PR_keys_momentum_y_offset };
98+
99+ constexpr float PR_traceline_distance{ 2048 .00f };
100+
101+ const idVec4 PR_colour_white{ 1 .00f , 1 .00f , 1 .00f , 1 .00f };
102+ const idVec4 PR_colour_yellow{ 1 .00f , 1 .00f , 0 .25f , 1 .00f };
103+ const idVec4 PR_colour_red{ 1 .00f , 0 .00f , 0 .00f , 1 .00f };
104+ const idVec4 PR_colour_blue{ 0 .00f , 0 .00f , 1 .00f , 1 .00f };
105+ const idVec4 PR_colour_grey{ 0 .65f , 0 .65f , 0 .65f , 0 .65f };
57106
58107#ifdef PR_DEBUG
59- constexpr double PR_DBG_HUDDRAWTIME_YELLOW{ 0.3 };
60- constexpr double PR_DBG_HUDDRAWTIME_RED{ 0.4 };
108+ constexpr int PR_dbg_huddrawtime_x{ 460 };
109+ constexpr int PR_dbg_huddrawtime_y{ 0 };
110+
111+ constexpr double PR_dbg_huddrawtime_yellow{ 0 .30f };
112+ constexpr double PR_dbg_huddrawtime_red{ 0 .40f };
113+
114+ constexpr double PR_dbg_frametime_yellow{ 1 .50f };
115+ constexpr double PR_dbg_frametime_red{ 2 .00f };
61116#endif // PR_DEBUG
62117
63- // The draw function from Prey takes floats in the range from 0.0 to 1.0 but usualy colours are represented from 0 to 255
118+ // The draw function from Prey takes floats in the range from 0.0 to 1.0 but usualy colours are represented from 0 to 255 (hex)
64119ID_INLINE float PR_toPreyColour (float f);
65120// PreyRun END
66121
0 commit comments