Skip to content

Commit

Permalink
jogihoogi: mvd: powerup cams
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnycz committed Nov 23, 2005
1 parent 22ae36b commit b2d02eb
Show file tree
Hide file tree
Showing 5 changed files with 1,621 additions and 129 deletions.
28 changes: 28 additions & 0 deletions cl_screen.c
Original file line number Diff line number Diff line change
Expand Up @@ -2522,6 +2522,7 @@ void SCR_Init (void) {
}

void SCR_DrawStatusMultiview(void) {

int xb = 0, yb = 0, xc = 0, yc = 0, xd = 0, yd = 0;
char strng[80];
char weapons[40];
Expand All @@ -2533,6 +2534,10 @@ void SCR_DrawStatusMultiview(void) {
byte c, c2;

int i;

extern int powerup_cam_active,cam_1,cam_2,cam_3,cam_4;
extern cvar_t mvd_pc_view_1,mvd_pc_view_2,mvd_pc_view_3,mvd_pc_view_4;


if (!cl_multiview.value || !cls.mvdplayback)
return;
Expand Down Expand Up @@ -2672,6 +2677,29 @@ void SCR_DrawStatusMultiview(void) {
}

// placement

if (CURRVIEW == 1 && strlen(mvd_pc_view_1.string) && powerup_cam_active && cam_1){
sAmmo[0]='\0';
strng[0]='\0';
weapons[0]='\0';
};
if (CURRVIEW == 2 && strlen(mvd_pc_view_2.string) && powerup_cam_active && cam_2){
sAmmo[0]='\0';
strng[0]='\0';
weapons[0]='\0';
};
if (CURRVIEW == 3 && strlen(mvd_pc_view_3.string) && powerup_cam_active && cam_3){
sAmmo[0]='\0';
strng[0]='\0';
weapons[0]='\0';
};
if (CURRVIEW == 4 && strlen(mvd_pc_view_4.string) && powerup_cam_active && cam_4){
sAmmo[0]='\0';
strng[0]='\0';
weapons[0]='\0';
};


if (cl_multiview.value == 1) {
xb = vid.width - strlen(strng) * 8 - 12;
yb = vid.height - sb_lines - 16;
Expand Down
5 changes: 5 additions & 0 deletions cl_view.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ entities sent from the server may not include everything in the pvs, especially
when crossing a water boudnary.
*/

void MVD_Powerup_Cams_f(void);

cvar_t cl_rollspeed = {"cl_rollspeed", "200"};
cvar_t cl_rollangle = {"cl_rollangle", "0"};
cvar_t cl_bob = {"cl_bob", "0.00"};
Expand Down Expand Up @@ -1028,6 +1030,9 @@ void V_RenderView (void) {
else
V_CalcRefdef ();

if (cls.mvdplayback)
MVD_Powerup_Cams_f();

R_PushDlights ();
R_RenderView ();
}
Expand Down
3 changes: 3 additions & 0 deletions ezquake.vcproj
Original file line number Diff line number Diff line change
Expand Up @@ -1614,6 +1614,9 @@
<File
RelativePath="mp3_player.h">
</File>
<File
RelativePath=".\mvd_utils.h">
</File>
<File
RelativePath=".\parser.h">
</File>
Expand Down
Loading

0 comments on commit b2d02eb

Please sign in to comment.