Library/Event: Implement EventFlowNodeActorKill (#953)

This commit is contained in:
Fuzzy2319 2026-03-15 11:26:05 +01:00 committed by GitHub
parent 117f9279c4
commit 818e48df59
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 36 additions and 3 deletions

View file

@ -237839,15 +237839,15 @@ Library/Event/EventFlowNodeActorKill.o:
label:
- _ZN2al22EventFlowNodeActorKillC1EPKc
- _ZN2al22EventFlowNodeActorKillC2EPKc
status: NotDecompiled
status: Matching
- offset: 0x88dfbc
size: 4
label: _ZN2al22EventFlowNodeActorKill4initERKNS_21EventFlowNodeInitInfoE
status: NotDecompiled
status: Matching
- offset: 0x88dfc0
size: 64
label: _ZN2al22EventFlowNodeActorKill5startEv
status: NotDecompiled
status: Matching
Library/Event/EventFlowNodeActorBaseMovementStart.o:
'.text':
- offset: 0x88e000

View file

@ -0,0 +1,18 @@
#include "Library/Event/EventFlowNodeActorKill.h"
#include "Library/Event/EventFlowFunction.h"
#include "Library/LiveActor/LiveActor.h"
namespace al {
EventFlowNodeActorKill::EventFlowNodeActorKill(const char* name) : EventFlowNode(name) {}
void EventFlowNodeActorKill::init(const EventFlowNodeInitInfo& info) {
initEventFlowNode(this, info);
}
void EventFlowNodeActorKill::start() {
EventFlowNode::start();
getActor()->kill();
end();
}
} // namespace al

View file

@ -0,0 +1,15 @@
#pragma once
#include "Library/Event/EventFlowNode.h"
namespace al {
class EventFlowNodeActorKill : public EventFlowNode {
public:
EventFlowNodeActorKill(const char* name);
void init(const EventFlowNodeInitInfo& info) override;
void start() override;
};
static_assert(sizeof(EventFlowNodeActorKill) == 0x68);
} // namespace al