mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-25 15:07:28 +00:00
parent
787dac7cd9
commit
41898bef86
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
#include <cstdint>
|
||||||
|
|
||||||
class RawChunk;
|
class RawChunk;
|
||||||
struct RawMesh;
|
struct RawMesh;
|
||||||
|
@ -6,8 +6,7 @@ void BaseFootRaceManager::OnStartup(Entity* self) {
|
|||||||
// TODO: Add to FootRaceStarter group
|
// TODO: Add to FootRaceStarter group
|
||||||
}
|
}
|
||||||
|
|
||||||
void BaseFootRaceManager::OnFireEventServerSide(Entity* self, Entity* sender, std::string args, int32_t param1,
|
void BaseFootRaceManager::OnFireEventServerSide(Entity* self, Entity* sender, std::string args, int32_t param1, int32_t param2, int32_t param3) {
|
||||||
int32_t param2, int32_t param3) {
|
|
||||||
const auto splitArguments = GeneralUtils::SplitString(args, '_');
|
const auto splitArguments = GeneralUtils::SplitString(args, '_');
|
||||||
if (splitArguments.size() > 1) {
|
if (splitArguments.size() > 1) {
|
||||||
|
|
||||||
@ -37,7 +36,7 @@ void BaseFootRaceManager::OnFireEventServerSide(Entity* self, Entity* sender, st
|
|||||||
if (character != nullptr) {
|
if (character != nullptr) {
|
||||||
character->SetPlayerFlag(115, false);
|
character->SetPlayerFlag(115, false);
|
||||||
if (param2 != -1) // Certain footraces set a flag
|
if (param2 != -1) // Certain footraces set a flag
|
||||||
character->SetPlayerFlag(static_cast<uint32_t>(param2), true);
|
character->SetPlayerFlag(param2, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
StopActivity(self, player->GetObjectID(), 0, param1);
|
StopActivity(self, player->GetObjectID(), 0, param1);
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
#include <cstdint>
|
||||||
|
|
||||||
class Command;
|
class Command;
|
||||||
class Event;
|
class Event;
|
||||||
|
Loading…
Reference in New Issue
Block a user