Give score for defacing textures.
This commit is contained in:
parent
01c30c996d
commit
4016063379
3 changed files with 11 additions and 2 deletions
|
|
@ -1,3 +1,3 @@
|
|||
[default]
|
||||
SWWM_MODVER="\chSWWM \czGZ\c- \cw0.9.11b-pre r539 \cu(Sun 13 Jun 16:47:25 CEST 2021)\c-";
|
||||
SWWM_SHORTVER="\cw0.9.11b-pre r539 \cu(2021-06-13 16:47:25)\c-";
|
||||
SWWM_MODVER="\chSWWM \czGZ\c- \cw0.9.11b-pre r540 \cu(Sun 13 Jun 18:05:52 CEST 2021)\c-";
|
||||
SWWM_SHORTVER="\cw0.9.11b-pre r540 \cu(2021-06-13 18:05:52)\c-";
|
||||
|
|
|
|||
|
|
@ -302,6 +302,12 @@ Class LoveHeart : Actor
|
|||
[remove, replacewith] = SWWMUtility.DefaceTexture(HitTexture);
|
||||
if ( !remove ) return;
|
||||
A_StartSound("bestsound",CHAN_ITEMEXTRA,CHANF_OVERLAP);
|
||||
if ( target && target.player )
|
||||
{
|
||||
int scr = (TexMan.GetName(HitTexture).Left(6)~=="ZZWOLF")?200:20;
|
||||
SWWMCredits.Give(target.player,scr);
|
||||
if ( target.player == players[consoleplayer] ) SWWMScoreObj.Spawn(scr,pos);
|
||||
}
|
||||
if ( HitLine )
|
||||
{
|
||||
if ( Hit3DFloor )
|
||||
|
|
|
|||
|
|
@ -530,6 +530,9 @@ Class Demolitionist : PlayerPawn
|
|||
player.usedown = true;
|
||||
A_StartSound("bestsound",CHAN_ITEMEXTRA,CHANF_OVERLAP);
|
||||
lastbump *= .97;
|
||||
int scr = (TexMan.GetName(d.HitTexture).Left(6)~=="ZZWOLF")?200:20;
|
||||
SWWMCredits.Give(player,scr);
|
||||
if ( player == players[consoleplayer] ) SWWMScoreObj.Spawn(scr,d.HitLocation);
|
||||
if ( d.HitType == TRACE_HitWall )
|
||||
{
|
||||
if ( d.Hit3DFloor )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue