mirror of
https://github.com/ENSL/NS.git
synced 2025-01-31 05:00:53 +00:00
git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@365 67975925-1194-0748-b3d5-c16f83f1a3a1
This commit is contained in:
parent
7bd9aab753
commit
1f7114f07a
7 changed files with 15 additions and 0 deletions
BIN
dev/3.2-movements/sound/hud/blinkvoid.wav
Normal file
BIN
dev/3.2-movements/sound/hud/blinkvoid.wav
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -826,6 +826,8 @@ extern const char* getModName(void);
|
|||
#define kAlienStructureAttack2 "hud/alien_structureattack2.wav"
|
||||
#define kAlienUpgradeLost "hud/alien_upgrade_lost.wav"
|
||||
|
||||
#define kAlienBlinkVoid "hud/blinkvoid.wav"
|
||||
|
||||
#define kSoundOrderMove1 "hud/marine_order_move1.wav"
|
||||
#define kSoundOrderMove2 "hud/marine_order_move2.wav"
|
||||
#define kSoundOrderMove3 "hud/marine_order_move3.wav"
|
||||
|
|
|
@ -656,6 +656,7 @@ void AvHHud::ClearData()
|
|||
// :tankefugl
|
||||
|
||||
this->mMovementTimer = 0.0f;
|
||||
this->mLastBlinksoundPlayedTime = 0.0f;
|
||||
|
||||
this->m_bConserveFOV = false;
|
||||
}
|
||||
|
|
|
@ -447,6 +447,7 @@ public:
|
|||
private:
|
||||
|
||||
float mMovementTimer;
|
||||
float mLastBlinksoundPlayedTime;
|
||||
|
||||
// tankefugl:
|
||||
std::string mCenterText;
|
||||
|
|
|
@ -3708,6 +3708,17 @@ void AvHHud::RenderAlienMovementUIEffect()
|
|||
|
||||
AvHSpriteDraw(mBlackSprite, 0, theX, theY1, theX + theWidth, theY1 + theHeight * alpha, 0, 0, 1, alpha);
|
||||
AvHSpriteDraw(mBlackSprite, 0, theX, theY2 - theHeight * alpha, theX + theWidth, theY2, 0, 0, 1, alpha);
|
||||
|
||||
/* if (this->mMovementTimer >= theBlinkThresholdTime)
|
||||
{
|
||||
if (this->mLastBlinksoundPlayedTime + 2.533f <= this->mTimeOfLastUpdate)
|
||||
{
|
||||
this->mLastBlinksoundPlayedTime = this->mTimeOfLastUpdate;
|
||||
// kAlienBlinkVoid 2533 ms
|
||||
gEngfuncs.pfnPlaySoundByName(kAlienBlinkVoid, 1.0f);
|
||||
}
|
||||
}
|
||||
*/
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue