mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-08-09 20:24:16 +00:00
.github
cmake
dAuthServer
dChatFilter
dChatServer
dCommon
dDatabase
dGame
dMasterServer
dNavigation
dNet
dPhysics
dScripts
02_server
EquipmentScripts
EquipmentTriggers
ai
ACT
AG
FV
GENERAL
GF
CMakeLists.txt
GfArchway.cpp
GfArchway.h
GfBanana.cpp
GfBanana.h
GfBananaCluster.cpp
GfBananaCluster.h
GfCampfire.cpp
GfCampfire.h
GfJailWalls.cpp
GfJailWalls.h
GfJailkeepMission.cpp
GfJailkeepMission.h
GfMaelstromGeyser.cpp
GfMaelstromGeyser.h
GfOrgan.cpp
GfOrgan.h
GfParrotCrash.cpp
GfParrotCrash.h
GfRaceInstancer.cpp
GfRaceInstancer.h
PetDigBuild.cpp
PetDigBuild.h
PirateRep.cpp
PirateRep.h
TriggerAmbush.cpp
TriggerAmbush.h
MINIGAME
NP
NS
PETS
PROPERTY
RACING
SPEC
WILD
CMakeLists.txt
client
zone
ActivityManager.cpp
ActivityManager.h
BaseConsoleTeleportServer.cpp
BaseConsoleTeleportServer.h
BasePropertyServer.cpp
BasePropertyServer.h
BaseRandomServer.cpp
BaseRandomServer.h
BaseSurvivalServer.cpp
BaseSurvivalServer.h
BaseWavesGenericEnemy.cpp
BaseWavesGenericEnemy.h
BaseWavesServer.cpp
BaseWavesServer.h
CMakeLists.txt
ChooseYourDestinationNsToNt.cpp
ChooseYourDestinationNsToNt.h
CppScripts.cpp
CppScripts.h
Darkitect.cpp
Darkitect.h
InvalidScript.cpp
InvalidScript.h
NPCAddRemoveItem.cpp
NPCAddRemoveItem.h
NtFactionSpyServer.cpp
NtFactionSpyServer.h
ScriptedPowerupSpawner.cpp
ScriptedPowerupSpawner.h
SpawnPetBaseServer.cpp
SpawnPetBaseServer.h
dServer
dWorldServer
dZoneManager
docs
migrations
resources
tests
thirdparty
vanity
.dockerignore
.editorconfig
.env.example
.git-blame-ignore-revs
.gitattributes
.gitignore
.gitmodules
CMakeLists.txt
CMakePresets.json
CMakeVariables.txt
CONTRIBUTING.md
Dockerfile
LICENSE
README.md
SECURITY.md
build.sh
docker-compose.yml
entrypoint.sh
logo.png
systemd.example
versions.txt

Clean up macros more tomorrow Cleanup and optimize CDActivities table Remove unused include Further work on CDActivityRewards Update MasterServer.cpp Further animations work Activities still needs work for a better PK. fix type All of these replacements worked Create internal interface for animations Allows for user to just call GetAnimationTIme or PlayAnimation rather than passing in arbitrary true false statements
24 lines
593 B
C++
24 lines
593 B
C++
#include "GfOrgan.h"
|
|
#include "GameMessages.h"
|
|
#include "Entity.h"
|
|
#include "RenderComponent.h"
|
|
|
|
void GfOrgan::OnUse(Entity* self, Entity* user) {
|
|
if (self->GetBoolean(u"bIsInUse")) {
|
|
m_canUse = false;
|
|
return;
|
|
}
|
|
|
|
GameMessages::SendPlayNDAudioEmitter(self, UNASSIGNED_SYSTEM_ADDRESS, "{15d5f8bd-139a-4c31-8904-970c480cd70f}");
|
|
self->SetBoolean(u"bIsInUse", true);
|
|
self->AddTimer("reset", 5.0f);
|
|
|
|
RenderComponent::PlayAnimation(user, u"jig");
|
|
}
|
|
|
|
void GfOrgan::OnTimerDone(Entity* self, std::string timerName) {
|
|
if (timerName == "reset") {
|
|
self->SetBoolean(u"bIsInUse", false);
|
|
}
|
|
}
|