1) Add overview.cpp
2) Remove overview.h from #includes
3)REGISTER_CVAR_INT (ov_radar, 1 );
REGISTER_CVAR_FLOAT(ov_zoom , 30.0 );
REGISTER_CVAR_INT (ov_blend, 1 );
REGISTER_CVAR_FLOAT(ov_alpha, 1.0 );
THAT IN CVAR.CPP
int ov_radar; // use overview radar instead of normal radar
float ov_zoom; // overview radar zoom
int ov_blend; // blend mode, 0=opaque,1=mix,2=add
float ov_alpha; // alpha 0.0 - 1.0
THIS IN Cvar.h
NOW
(19:38:03) ([JAPS]FuRi0uS_X3) static inline void calcRadarPointX(const float* origin, int& screenx, int& screeny)
(19:38:04) ([JAPS]FuRi0uS_X3) {
(19:38:06) ([JAPS]FuRi0uS_X3) if(cvar.ov_radar)
(19:38:07) ([JAPS]FuRi0uS_X3) {
(19:38:09) ([JAPS]FuRi0uS_X3) void overview_calcRadarPoint(const float* origin, int& screenx, int& screeny);
(19:38:10) ([JAPS]FuRi0uS_X3) overview_calcRadarPoint(origin,screenx,screeny);
(19:38:12) ([JAPS]FuRi0uS_X3) }
(19:38:13) ([JAPS]FuRi0uS_X3) else
(19:38:15) ([JAPS]FuRi0uS_X3) {
(19:38:16) ([JAPS]FuRi0uS_X3) calcRadarPoint(origin,screenx,screeny);
(19:38:18) ([JAPS]FuRi0uS_X3) }
(19:38:19) ([JAPS]FuRi0uS_X3) }
(19:38:22) ([JAPS]FuRi0uS_X3) add that
(19:38:23) ([JAPS]FuRi0uS_X3) under
(19:38:23) ([JAPS]FuRi0uS_X3) static void calcRadarPoint(const float* origin, int& screenx, int& screeny)
(19:38:37) ([JAPS]FuRi0uS_X3) if(cvar.ov_radar)
(19:38:38) ([JAPS]FuRi0uS_X3) {
(19:38:40) ([JAPS]FuRi0uS_X3) int lambert_save = cvar.lambert; cvar.lambert = 0;
(19:38:41) ([JAPS]FuRi0uS_X3) void overview_draw();
(19:38:43) ([JAPS]FuRi0uS_X3) overview_draw();
(19:38:44) ([JAPS]FuRi0uS_X3) cvar.lambert = lambert_save;
(19:38:46) ([JAPS]FuRi0uS_X3) gEngfuncs.pfnFillRGBA(centerx,centery-size,1, size,cDivider->r,cDivider->g,cDivider->b,cDivider->a);
(19:38:47) ([JAPS]FuRi0uS_X3) gEngfuncs.pfnFillRGBA(centerx-size,centery,2*size,1,cDivider->r,cDivider->g,cDivider->b,cDivider->a);
(19:38:49) ([JAPS]FuRi0uS_X3) }
(19:38:51) ([JAPS]FuRi0uS_X3) add this in static void drawRadarFrame()
(19:39:28) ([JAPS]FuRi0uS_X3) in void AtMapChange()
(19:39:35) ([JAPS]FuRi0uS_X3) addd
(19:39:35) ([JAPS]FuRi0uS_X3) void overview_loadcurrent();
(19:39:35) ([JAPS]FuRi0uS_X3) overview_loadcurrent();
(19:39:59) ([JAPS]FuRi0uS_X3) COMPILE
(19:40:00) ([JAPS]FuRi0uS_X3) and UR DONE
(19:40:03) ([JAPS]FuRi0uS_X3) and go in game
(19:40:05) ([JAPS]FuRi0uS_X3) ov_radar 1
(19:40:08) ([JAPS]FuRi0uS_X3) and u get ur ov radar