2020-01-05 18:48:16 +01:00
|
|
|
#pragma once
|
2020-05-28 22:17:55 +02:00
|
|
|
#include "phd_global.h"
|
2020-05-30 15:55:23 +02:00
|
|
|
#include "items.h"
|
2020-05-28 22:17:55 +02:00
|
|
|
namespace T5M{
|
|
|
|
namespace Effects {
|
|
|
|
namespace Footprints {
|
|
|
|
constexpr size_t MAX_FOOTPRINTS = 20;
|
|
|
|
typedef struct footprint_t {
|
|
|
|
PHD_3DPOS pos;
|
|
|
|
int life;
|
|
|
|
int lifeStartFading;
|
|
|
|
byte startOpacity;
|
|
|
|
byte opacity;
|
|
|
|
bool active;
|
|
|
|
} FOOTPRINT_STRUCT;
|
|
|
|
extern std::deque<FOOTPRINT_STRUCT> footprints;
|
|
|
|
constexpr int FOOT_HEIGHT_OFFSET = 64;
|
|
|
|
bool CheckFootOnFloor(ITEM_INFO& const item, int mesh, PHD_3DPOS& outFootprintPosition);
|
|
|
|
void updateFootprints();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|