| 1 | #include "Npc/VocalMike.h" |
|---|---|
| 2 | |
| 3 | #include "Library/LiveActor/ActorInitUtil.h" |
| 4 | #include "Library/LiveActor/ActorSensorUtil.h" |
| 5 | |
| 6 | #include "Util/SensorMsgFunction.h" |
| 7 | |
| 8 | VocalMike::VocalMike(const char* actorName) : al::LiveActor(actorName) {} |
| 9 | |
| 10 | void VocalMike::init(const al::ActorInitInfo& info) { |
| 11 | al::initActor(actor: this, initInfo: info); |
| 12 | makeActorAlive(); |
| 13 | } |
| 14 | |
| 15 | bool VocalMike::receiveMsg(const al::SensorMsg* message, al::HitSensor* other, |
| 16 | al::HitSensor* self) { |
| 17 | if (al::isMsgPlayerDisregard(msg: message) || rs::isMsgPlayerDisregardHomingAttack(message)) |
| 18 | return true; |
| 19 | return rs::isMsgPlayerDisregardTargetMarker(message); |
| 20 | } |
| 21 |