mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-08-09 20:24:16 +00:00
Proper Rocket Holding
Sanity checks on Prop and LUP launchpads to not open if no valid rocket Add serialization for sending item configs so that rockets show for other players
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
#include "RakNetTypes.h"
|
||||
#include "Character.h"
|
||||
#include "Component.h"
|
||||
#include "Item.h"
|
||||
#include <string>
|
||||
#include "CDMissionsTable.h"
|
||||
#include "tinyxml2.h"
|
||||
@@ -74,6 +75,26 @@ public:
|
||||
*/
|
||||
void SetLastRocketConfig(std::u16string config);
|
||||
|
||||
/**
|
||||
* Find a player's rocket
|
||||
* @param player the entity that triggered the event
|
||||
* @return rocket
|
||||
*/
|
||||
Item* GetRocket(Entity* player);
|
||||
|
||||
/**
|
||||
* Equip a player's rocket
|
||||
* @param player the entity that triggered the event
|
||||
* @return rocket
|
||||
*/
|
||||
Item* RocketEquip(Entity* player);
|
||||
|
||||
/**
|
||||
* Find a player's rocket and unequip it
|
||||
* @param player the entity that triggered the event
|
||||
*/
|
||||
void RocketUnEquip(Entity* player);
|
||||
|
||||
/**
|
||||
* Gets the current level of the entity
|
||||
* @return the current level of the entity
|
||||
|
Reference in New Issue
Block a user