Fix unwanted line activation while dashing.
This commit is contained in:
parent
d7598865c9
commit
73da618750
2 changed files with 15 additions and 2 deletions
|
|
@ -1,3 +1,3 @@
|
|||
[default]
|
||||
SWWM_MODVER="\chSWWM \czGZ\c- \cw0.9.11b-pre r546 \cu(Thu 17 Jun 17:06:08 CEST 2021)\c-";
|
||||
SWWM_SHORTVER="\cw0.9.11b-pre r546 \cu(2021-06-17 17:06:08)\c-";
|
||||
SWWM_MODVER="\chSWWM \czGZ\c- \cw0.9.11b-pre r547 \cu(Fri 18 Jun 11:17:01 CEST 2021)\c-";
|
||||
SWWM_SHORTVER="\cw0.9.11b-pre r547 \cu(2021-06-18 11:17:01)\c-";
|
||||
|
|
|
|||
|
|
@ -1073,6 +1073,15 @@ Class Demolitionist : PlayerPawn
|
|||
PainChance = isdashing?0:255;
|
||||
if ( isdashing || (vel.length() > 30) )
|
||||
{
|
||||
bool oldpush = bCANPUSHWALLS;
|
||||
bool olduse = bCANUSEWALLS;
|
||||
bool oldmcross = bACTIVATEMCROSS;
|
||||
bool oldtele = bNOTELEPORT;
|
||||
// needed to prevent the many TryMove calls from activating unwanted lines
|
||||
bCANPUSHWALLS = false;
|
||||
bCANUSEWALLS = false;
|
||||
bACTIVATEMCROSS = false;
|
||||
bNOTELEPORT = true;
|
||||
Actor a;
|
||||
if ( isdashing && (dashboost > 0.) )
|
||||
{
|
||||
|
|
@ -1391,6 +1400,10 @@ Class Demolitionist : PlayerPawn
|
|||
}
|
||||
SetOrigin(oldpos,true);
|
||||
bTHRUACTORS = oldthru;
|
||||
bCANPUSHWALLS = oldpush;
|
||||
bCANUSEWALLS = olduse;
|
||||
bACTIVATEMCROSS = oldmcross;
|
||||
bNOTELEPORT = oldtele;
|
||||
}
|
||||
else if ( isboosting && (dashboost > 0.) )
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue