Pirate Captain Ghost moves towards player. Release Build 12032.
This commit is contained in:
parent
071e98aecd
commit
d24c016d3e
@ -100,7 +100,8 @@ void Monster::STRATEGY::GHOST_OF_PIRATE_CAPTAIN(Monster&m,float fElapsedTime,std
|
|||||||
m.F(A::GHOST_SABER_TIMER)-=fElapsedTime;
|
m.F(A::GHOST_SABER_TIMER)-=fElapsedTime;
|
||||||
|
|
||||||
if(m.B(A::FIRST_WAVE_COMPLETE)){
|
if(m.B(A::FIRST_WAVE_COMPLETE)){
|
||||||
m.SetVelocity(util::pointTo(m.GetPos(),game->GetPlayer()->GetPos()));
|
m.UpdateFacingDirection(m.GetFacingDirectionToTarget(game->GetPlayer()->GetPos()));
|
||||||
|
m.SetVelocity(util::pointTo(m.GetPos(),game->GetPlayer()->GetPos())*100.f*m.GetMoveSpdMult());
|
||||||
const float distToPlayer{util::distance(m.GetPos(),game->GetPlayer()->GetPos())};
|
const float distToPlayer{util::distance(m.GetPos(),game->GetPlayer()->GetPos())};
|
||||||
if(m.F(A::GHOST_SABER_TIMER)<=0.f&&distToPlayer<=ConfigPixels("Ghost Saber Activation Range")){
|
if(m.F(A::GHOST_SABER_TIMER)<=0.f&&distToPlayer<=ConfigPixels("Ghost Saber Activation Range")){
|
||||||
m.F(A::GHOST_SABER_TIMER)=ConfigFloat("Ghost Saber Cooldown");
|
m.F(A::GHOST_SABER_TIMER)=ConfigFloat("Ghost Saber Cooldown");
|
||||||
|
@ -39,7 +39,7 @@ All rights reserved.
|
|||||||
#define VERSION_MAJOR 1
|
#define VERSION_MAJOR 1
|
||||||
#define VERSION_MINOR 3
|
#define VERSION_MINOR 3
|
||||||
#define VERSION_PATCH 0
|
#define VERSION_PATCH 0
|
||||||
#define VERSION_BUILD 12029
|
#define VERSION_BUILD 12032
|
||||||
|
|
||||||
#define stringify(a) stringify_(a)
|
#define stringify(a) stringify_(a)
|
||||||
#define stringify_(a) #a
|
#define stringify_(a) #a
|
||||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user