More deathmatch stuff.

This commit is contained in:
Mari the Deer 2021-06-16 20:31:35 +02:00
commit 3dd2b45f2a
14 changed files with 64 additions and 12 deletions

View file

@ -209,7 +209,13 @@ extend Class SWWMHandler
// scoring
int score = min(1000,int(ceil(e.Thing.GetSpawnHealth()*.05)*10));
// player score is always the same
if ( e.Thing.player ) score = 1000;
if ( e.Thing.player )
{
score = 1000;
// deathmatch frag sound
if ( src.player == players[consoleplayer] )
S_StartSound("misc/frag",CHAN_WEAPON,CHANF_UI|CHANF_NOPAUSE|CHANF_OVERLAP,1.,ATTN_NONE);
}
SWWMScoreObj scr = null;
if ( src.player == players[consoleplayer] )
scr = SWWMScoreObj.Spawn(score,e.Thing.Vec3Offset(0,0,e.Thing.Height/2));

View file

@ -214,6 +214,9 @@ extend Class SWWMHandler
for ( int i=0; i<level.lines.Size(); i++ )
{
Line l = level.lines[i];
// all lines are immediately visible in DM
if ( deathmatch && !(l.flags&Line.ML_DONTDRAW) )
l.flags |= Line.ML_MAPPED;
// while we're at it, add teleporter sparks
if ( SWWMUtility.IsTeleportLine(l) )
{