mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-24 06:27:24 +00:00
ce51438bc8
* Implement maelstrom fog for alpha FV add OnOffCollisionPhantom call to cppscripts Add physics shape for gas blocking volume * Add Ninja Sensie Script for alpha FV and migration * Fix private var casing * And ninja wild scripts they keep making me add more things * address feedback --------- Co-authored-by: Gie "Max" Vanommeslaeghe <gievanom@hotmail.com>
15 lines
616 B
C++
15 lines
616 B
C++
#include "WildNinjaStudent.h"
|
|
#include "GameMessages.h"
|
|
|
|
void WildNinjaStudent::OnStartup(Entity* self) {
|
|
self->AddToGroup("Ninjastuff");
|
|
GameMessages::SendPlayAnimation(self, u"bow");
|
|
}
|
|
|
|
void WildNinjaStudent::OnNotifyObject(Entity* self, Entity* sender, const std::string& name, int32_t param1, int32_t param2) {
|
|
if (name == "Crane") GameMessages::SendPlayAnimation(self, u"crane");
|
|
else if (name == "Tiger") GameMessages::SendPlayAnimation(self, u"tiger");
|
|
else if (name == "Mantis") GameMessages::SendPlayAnimation(self, u"mantis");
|
|
else if (name == "Bow") GameMessages::SendPlayAnimation(self, u"bow");
|
|
}
|