mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2026-01-18 21:50:04 +00:00
Respawn points work now.
Note that some of them weren't present in clientnpc and will need to be manually added later.
This commit is contained in:
@@ -5,7 +5,11 @@
|
||||
#include "NPC.hpp"
|
||||
|
||||
#include <map>
|
||||
#include <vector>
|
||||
|
||||
#define RESURRECT_HEIGHT 400
|
||||
|
||||
// this should really be called vec3 or something...
|
||||
struct WarpLocation {
|
||||
int x, y, z;
|
||||
};
|
||||
@@ -13,9 +17,9 @@ struct WarpLocation {
|
||||
namespace NPCManager {
|
||||
extern std::map<int32_t, BaseNPC> NPCs;
|
||||
extern std::map<int32_t, WarpLocation> Warps;
|
||||
extern std::vector<WarpLocation> RespawnPoints;
|
||||
void init();
|
||||
|
||||
void updatePlayerNPCS(CNSocket* sock, PlayerView& plr);
|
||||
void npcWarpManager(CNSocket* sock, CNPacketData* data);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user