diff --git a/source/fx/fxsteam.cpp b/source/fx/fxsteam.cpp index 5fd908ebe..e35b521c5 100644 --- a/source/fx/fxsteam.cpp +++ b/source/fx/fxsteam.cpp @@ -12,8 +12,11 @@ #include "FX\FXSteam.h" -static const s16 SteamSize=4; -static const s16 SteamAngleInc=999; +static const int Size=2; +static const int AngleInc=999; +static const int ShadeBase=255; +static const int ShadeDec=8; +static const int ShadeDieDec=24; /*****************************************************************************/ /*****************************************************************************/ @@ -22,11 +25,11 @@ void CFXSteam::init(DVECTOR const &_Pos) { CFXTrail::init(_Pos); - ColBase=255; - ColInc=-8; + Angle=0; Trans=3; + ShadeDec=ShadeDec; DieOut=false; - SetSize(SteamSize); + SetSize(Size); } /*****************************************************************************/ @@ -39,7 +42,6 @@ void CFXSteam::shutdown() void CFXSteam::SetSize(int Size) { ScaleInc=(4096/LIST_SIZE)*Size; - AngleInc=SteamAngleInc; BaseVel.vx=0; BaseVel.vy=-Size; } @@ -49,11 +51,12 @@ void CFXSteam::setDie() { CFXTrail::setDie(); for (int i=0; iONE*2) ThisElem.Scale=ONE*2; + + ThisElem.Shade-=ShadeDec; + if (ThisElem.Shade<0) ThisElem.Shade=0; + TotalLife+=ThisElem.Shade; } - if (DieOut) + if (DieOut && TotalLife==0) { - int Col; - Col=ColBase-16; - if (Col<0) Col=0; - ColBase=Col; - } - else - { - DVECTOR Vel=BaseVel; - Vel.vx+=getRndRange(3)-1; - - setHead(Vel,Vel,FRM__SMOKE,1); - if (ListCount #endif - +#include "fx\fx.h" /*---------------------------------------------------------------------- Tyepdefs && Defines ------------------- */ @@ -672,6 +672,13 @@ void CPlayer::think(int _frames) { int i; +#ifdef __USER_daveo__ +if(PadGetDown(0)&PAD_R1) +{ + TestFX(getPos()); +} +#endif + if(PadGetDown(0)&PAD_L1&&m_currentMode!=PLAYER_MODE_DEAD) {