Skip to content

Commit

Permalink
Remove Basilisk and Advanced Basilisk.
Browse files Browse the repository at this point in the history
  • Loading branch information
enneract committed Jun 21, 2015
1 parent dc87cba commit 451f2ca
Show file tree
Hide file tree
Showing 38 changed files with 13 additions and 1,021 deletions.
17 changes: 0 additions & 17 deletions assets/configs/classes/level1.cfg

This file was deleted.

17 changes: 0 additions & 17 deletions assets/configs/classes/level1upg.cfg

This file was deleted.

48 changes: 0 additions & 48 deletions assets/models/players/level1/animation.cfg

This file was deleted.

Binary file removed assets/models/weapons/level1/bomb.wav
Binary file not shown.
19 changes: 0 additions & 19 deletions assets/models/weapons/level1/weapon.cfg

This file was deleted.

25 changes: 0 additions & 25 deletions assets/models/weapons/level1upg/weapon.cfg

This file was deleted.

Binary file removed assets/sound/player/level0upg/death1.wav
Binary file not shown.
Binary file removed assets/sound/player/level0upg/death2.wav
Binary file not shown.
Binary file removed assets/sound/player/level0upg/death3.wav
Binary file not shown.
Binary file removed assets/sound/player/level0upg/drown.wav
Binary file not shown.
Binary file removed assets/sound/player/level0upg/gasp.wav
Binary file not shown.
Binary file removed assets/sound/player/level0upg/jump1.wav
Binary file not shown.
Binary file removed assets/sound/player/level0upg/pain100_1.wav
Binary file not shown.
Binary file removed assets/sound/player/level0upg/pain25_1.wav
Binary file not shown.
Binary file removed assets/sound/player/level0upg/pain50_1.wav
Binary file not shown.
Binary file removed assets/sound/player/level0upg/pain75_1.wav
Binary file not shown.
Binary file removed assets/sound/player/level0upg/taunt.wav
Binary file not shown.
118 changes: 6 additions & 112 deletions src/cgame/cg_draw.c
Expand Up @@ -561,39 +561,6 @@ static void CG_DrawPlayerBoosterBolt( rectDef_t *rect, vec4_t backColor,
}



/*
==============
CG_DrawInvisbleStatus
==============
*/
static void CG_DrawInvisbleStatus( rectDef_t *rect, vec4_t color, qhandle_t shader )
{
qhandle_t detail1;
if( cg.snap->ps.stats[ STAT_STATE ] & SS_INVI && cg.snap->ps.weapon == WP_ALEVEL1_UPG)
{

detail1 = trap_R_RegisterShader( "icons/advbasiinvi.tga" );
CG_DrawPic( rect->x, rect->y, rect->w, rect->h, detail1 );
}
}

/*
==============
CG_DrawInvisbleOverlay
==============
*/
static void CG_DrawInvisbleOverlay( rectDef_t *rect, vec4_t color, qhandle_t shader )
{
qhandle_t detail2;
if( cg.snap->ps.stats[ STAT_STATE ] & SS_INVI && cg.snap->ps.weapon == WP_ALEVEL1_UPG)
{
detail2 = trap_R_RegisterShader( "gfx/edge/basi_invisble_overlay" );
CG_DrawPic( rect->x, rect->y, rect->w, rect->h, detail2 );
}
}


/*
==============
CG_DrawPlayerPrickles (ammo)
Expand All @@ -609,9 +576,9 @@ static void CG_DrawPlayerPrickles( rectDef_t *rect, vec4_t color, qhandle_t shad

maxBarbs = BG_Weapon( cg.snap->ps.weapon )->maxAmmo;
numBarbs = cg.snap->ps.ammo;
if( cg.snap->ps.weapon == WP_ALEVEL2_UPG || cg.snap->ps.weapon == WP_ALEVEL3 || cg.snap->ps.weapon == WP_ALEVEL3_UPG || cg.snap->ps.weapon == WP_ALEVEL1 || cg.snap->ps.weapon == WP_ALEVEL1_UPG || cg.snap->ps.weapon == WP_ALEVEL4 )
return;

if( cg.snap->ps.weapon != WP_ALEVEL5 )
return;

if( maxBarbs <= 0 || numBarbs <= 0 )
return;
Expand Down Expand Up @@ -670,69 +637,8 @@ static void CG_DrawPlayerFbreath( rectDef_t *rect, vec4_t color, qhandle_t shade
maxBarbs = BG_Weapon( cg.snap->ps.weapon )->maxAmmo;
numBarbs = cg.snap->ps.ammo;

if( cg.snap->ps.weapon == WP_ALEVEL2_UPG || cg.snap->ps.weapon == WP_ALEVEL3 || cg.snap->ps.weapon == WP_ALEVEL3_UPG || cg.snap->ps.weapon == WP_ALEVEL1 || cg.snap->ps.weapon == WP_ALEVEL1_UPG || cg.snap->ps.weapon == WP_ALEVEL5 )
return;

if( maxBarbs <= 0 || numBarbs <= 0 )
if( cg.snap->ps.weapon != WP_ALEVEL4 )
return;

// adjust these first to ensure the aspect ratio of the barb image is
// preserved
CG_AdjustFrom640( &x, &y, &width, &height );

if( height > width )
{
vertical = qtrue;
iconsize = width;
if( maxBarbs != 1 ) // avoid division by zero
diff = ( height - iconsize ) / (float)( maxBarbs - 1 );
else
diff = 0; // doesn't matter, won't be used
}
else
{
vertical = qfalse;
iconsize = height;
if( maxBarbs != 1 )
diff = ( width - iconsize ) / (float)( maxBarbs - 1 );
else
diff = 0;
}

//trap_R_SetColor( color );

for( ; numBarbs > 0; numBarbs-- )
{
trap_R_DrawStretchPic( x, y, iconsize, iconsize, 0, 0, 1, 1, shader );
if( vertical )
y += diff;
else
x += diff;
}


trap_R_SetColor( NULL );
}


/*
==============
CG_DrawPlayerBombs
==============
*/
static void CG_DrawPlayerBombs( rectDef_t *rect, vec4_t color, qhandle_t shader )
{
qboolean vertical;
float x = rect->x, y = rect->y;
float width = rect->w, height = rect->h;
float diff;
int iconsize, numBarbs, maxBarbs;

maxBarbs = BG_Weapon( cg.snap->ps.weapon )->maxAmmo;
numBarbs = cg.snap->ps.ammo;

if( !(cg.snap->ps.weapon == WP_ALEVEL1 || cg.snap->ps.weapon == WP_ALEVEL1_UPG) )
return;

if( maxBarbs <= 0 || numBarbs <= 0 )
return;
Expand Down Expand Up @@ -760,7 +666,7 @@ static void CG_DrawPlayerBombs( rectDef_t *rect, vec4_t color, qhandle_t shader
diff = 0;
}


//trap_R_SetColor( color );

for( ; numBarbs > 0; numBarbs-- )
{
Expand All @@ -776,7 +682,6 @@ static void CG_DrawPlayerBombs( rectDef_t *rect, vec4_t color, qhandle_t shader
}



/*
==============
CG_DrawPlayerPoisonBarbs
Expand Down Expand Up @@ -2137,8 +2042,6 @@ static void CG_DrawTeamOverlay( rectDef_t *rect, float scale, vec4_t color )
{
if( ci->curWeaponClass == PCL_ALIEN_BUILDER0 ||
ci->curWeaponClass == PCL_ALIEN_BUILDER0_UPG ||
ci->curWeaponClass == PCL_ALIEN_LEVEL1 ||
ci->curWeaponClass == PCL_ALIEN_LEVEL1_UPG ||
ci->curWeaponClass == WP_HBUILD )
{
displayClients[ maxDisplayCount++ ] = i;
Expand Down Expand Up @@ -2234,7 +2137,7 @@ static void CG_DrawTeamOverlay( rectDef_t *rect, float scale, vec4_t color )
}
else
{
if( curWeapon == WP_ALEVEL1_UPG || curWeapon == WP_ALEVEL2_UPG ||
if( curWeapon == WP_ALEVEL2_UPG ||
curWeapon == WP_ALEVEL3_UPG )
{
CG_DrawPic( x + iconSize + leftMargin, y, iconSize,
Expand Down Expand Up @@ -3163,18 +3066,9 @@ void CG_OwnerDraw( float x, float y, float w, float h, float text_x,
case CG_PLAYER_PRICKLES:
CG_DrawPlayerPrickles( &rect, foreColor, shader );
break;
case CG_PLAYER_BOMBS:
CG_DrawPlayerBombs( &rect, foreColor, shader );
break;
case CG_PLAYER_POISON_BARBS:
CG_DrawPlayerPoisonBarbs( &rect, foreColor, shader );
break;
case CG_DRAW_INVI_STAT:
CG_DrawInvisbleStatus( &rect, foreColor, shader );
break;
case CG_DRAW_INVI_OVERLAY:
CG_DrawInvisbleOverlay( &rect, foreColor, shader );
break;
case CG_PLAYER_ALIEN_SENSE:
CG_DrawAlienSense( &rect );
break;
Expand Down
24 changes: 0 additions & 24 deletions src/cgame/cg_event.c
Expand Up @@ -246,10 +246,6 @@ static void CG_Obituary( entityState_t *ent )
message = "^5was terminated by own flames";
break;

case MOD_ABOMB:
message = "^5bombed himself up";
break;

default:
if( gender == GENDER_FEMALE )
message = "^5killed herself";
Expand Down Expand Up @@ -365,12 +361,6 @@ static void CG_Obituary( entityState_t *ent )
case MOD_LEVEL0_BITE:
message = "^5was bitten by^7";
break;
case MOD_LEVEL1_CLAW:
message = "^5was swiped by^7";
Com_sprintf( className, 64, "^5's %s",
BG_ClassConfig( PCL_ALIEN_LEVEL1 )->humanName );
message2 = className;
break;
case MOD_LEVEL2_CLAW:
case MOD_LEVEL2_CLAW_UPG:
message = "^5was clawed by^7";
Expand Down Expand Up @@ -462,26 +452,12 @@ static void CG_Obituary( entityState_t *ent )
message = "^5should have used a medkit against^7";
message2 = "^5's poison";
break;
case MOD_LEVEL1_PCLOUD:
message = "^5was gassed by^7";
Com_sprintf( className, 64, "^5's %s",
BG_ClassConfig( PCL_ALIEN_LEVEL1 )->humanName );
message2 = className;
break;


case MOD_TELEFRAG:
message = "^5tried to invade^7";
message2 = "^5's personal space";
break;

case MOD_ABOMB:
message = "^5was bombed by^7";
Com_sprintf( className, 64, "^5's %s",
BG_ClassConfig( PCL_ALIEN_LEVEL1 )->humanName );
message2 = className;
break;

default:
message = "^5was killed by^7";
break;
Expand Down
2 changes: 0 additions & 2 deletions src/cgame/cg_local.h
Expand Up @@ -669,8 +669,6 @@ typedef struct centity_s
particleSystem_t *jetPackPS;
jetPackState_t jetPackState;

particleSystem_t *poisonCloudedPS;

particleSystem_t *entityPS;
qboolean entityPSMissing;

Expand Down
1 change: 0 additions & 1 deletion src/cgame/cg_main.c
Expand Up @@ -1614,7 +1614,6 @@ static const char *CG_FeederItemText( int feederID, int index, int column, qhand
{
switch( sp->weapon )
{
case WP_ALEVEL1_UPG:
case WP_ALEVEL2_UPG:
case WP_ALEVEL3_UPG:
*handle = cgs.media.upgradeClassIconShader;
Expand Down

0 comments on commit 451f2ca

Please sign in to comment.