mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-06-22 22:54:21 +00:00
feat: implement ronin script
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
set(DSCRIPTS_SOURCES_02_SERVER_ENEMY_FV
|
||||
"DragonRonin.cpp"
|
||||
"FvMaelstromCavalry.cpp"
|
||||
"FvMaelstromDragon.cpp"
|
||||
PARENT_SCOPE)
|
||||
|
||||
6
dScripts/02_server/Enemy/FV/DragonRonin.cpp
Normal file
6
dScripts/02_server/Enemy/FV/DragonRonin.cpp
Normal file
@@ -0,0 +1,6 @@
|
||||
#include "DragonRonin.h"
|
||||
|
||||
void DragonRonin::OnStartup(Entity* self) {
|
||||
self->SetVar<float>(u"suicideTimer", 40);
|
||||
CountdownDestroyAI::OnStartup(self);
|
||||
}
|
||||
7
dScripts/02_server/Enemy/FV/DragonRonin.h
Normal file
7
dScripts/02_server/Enemy/FV/DragonRonin.h
Normal file
@@ -0,0 +1,7 @@
|
||||
#pragma once
|
||||
#include "CountdownDestroyAI.h"
|
||||
|
||||
class DragonRonin : public CountdownDestroyAI {
|
||||
public:
|
||||
void OnStartup(Entity* self) override;
|
||||
};
|
||||
Reference in New Issue
Block a user