Jaii der Herr
06-25-2002, 11:28 PM
I've added 2 new FORCE_POWER LEVELS
Now I want to use the YELLOW AMMO bar for FP_SABERATTACK FORCE_LEVEL_4 and the RED AMMO bar for FP_SABERATTACK FORCE_LEVEL_5
In "w_saber.c" ~ line 2900 I added
if(self->client->ps.fd.saberDrawAnimLevel == FORCE_LEVEL_4)
self->client->ps.fd.saberDrawAnimLevel = FORCE_LEVEL_2;
if(self->client->ps.fd.saberDrawAnimLevel == FORCE_LEVEL_5)
self->client->ps.fd.saberDrawAnimLevel = FORCE_LEVEL_3;
and it worked. Now I thought what if I want to make new bar's like a green one?
I commented the code out and added therefor in "cgame/cg_draw.c" ~ line 900
switch ( cg.predictedPlayerState.fd.saberDrawAnimLevel )
{
case 1://FORCE_LEVEL_1:
CG_DrawPic( x, y, 80, 40, cgs.media.HUDSaberStyle1 );
break;
case 2://FORCE_LEVEL_2:
CG_DrawPic( x, y, 80, 40, cgs.media.HUDSaberStyle2 );
break;
case 3://FORCE_LEVEL_3:
CG_DrawPic( x, y, 80, 40, cgs.media.HUDSaberStyle3 );
break;
// added by Jaii der Herr =>
case 4://FORCE_LEVEL_4:
CG_DrawPic( x, y, 80, 40, cgs.media.HUDSaberStyle2 );
break;
case 5://FORCE_LEVEL_5:
CG_DrawPic( x, y, 80, 40, cgs.media.HUDSaberStyle3 );
break;
// added by Jaii der Herr <=
}
I think this must du the same. But it doesn't! It draws no bar!
And you could not select FORCE_LEVEL_5! Only 4 then it steps over to 1 insted of 5
Can anybody help me. It seems to me, that it is my fault because wanted to load new powerstars ( in the force select ingamemenu) and that did not work either.
And can me anybody tell how I can print debug messages?
Now I want to use the YELLOW AMMO bar for FP_SABERATTACK FORCE_LEVEL_4 and the RED AMMO bar for FP_SABERATTACK FORCE_LEVEL_5
In "w_saber.c" ~ line 2900 I added
if(self->client->ps.fd.saberDrawAnimLevel == FORCE_LEVEL_4)
self->client->ps.fd.saberDrawAnimLevel = FORCE_LEVEL_2;
if(self->client->ps.fd.saberDrawAnimLevel == FORCE_LEVEL_5)
self->client->ps.fd.saberDrawAnimLevel = FORCE_LEVEL_3;
and it worked. Now I thought what if I want to make new bar's like a green one?
I commented the code out and added therefor in "cgame/cg_draw.c" ~ line 900
switch ( cg.predictedPlayerState.fd.saberDrawAnimLevel )
{
case 1://FORCE_LEVEL_1:
CG_DrawPic( x, y, 80, 40, cgs.media.HUDSaberStyle1 );
break;
case 2://FORCE_LEVEL_2:
CG_DrawPic( x, y, 80, 40, cgs.media.HUDSaberStyle2 );
break;
case 3://FORCE_LEVEL_3:
CG_DrawPic( x, y, 80, 40, cgs.media.HUDSaberStyle3 );
break;
// added by Jaii der Herr =>
case 4://FORCE_LEVEL_4:
CG_DrawPic( x, y, 80, 40, cgs.media.HUDSaberStyle2 );
break;
case 5://FORCE_LEVEL_5:
CG_DrawPic( x, y, 80, 40, cgs.media.HUDSaberStyle3 );
break;
// added by Jaii der Herr <=
}
I think this must du the same. But it doesn't! It draws no bar!
And you could not select FORCE_LEVEL_5! Only 4 then it steps over to 1 insted of 5
Can anybody help me. It seems to me, that it is my fault because wanted to load new powerstars ( in the force select ingamemenu) and that did not work either.
And can me anybody tell how I can print debug messages?