mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-10-30 16:37:14 +00:00
feat(scripts): Portabello's frog bridge puts its tongue out for players who earned it
WBL_Frog_Bridge had no script. As the live script: when a player who finished mission 946 comes within 25 units, the four FrogBridge pieces move out to form the bridge; after 10 seconds they go back one a second from the tip, and 7 seconds later the frog looks for players again. Check: in Portabello, with mission 946 done, walk up to the frog: the tongue bridge comes out and goes back; without the mission it doesn't. Depends on moving platforms following their paths. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
14
dScripts/zone/LUPs/WblFrogBridge.h
Normal file
14
dScripts/zone/LUPs/WblFrogBridge.h
Normal file
@@ -0,0 +1,14 @@
|
||||
#pragma once
|
||||
#include "CppScripts.h"
|
||||
|
||||
// WBL_Frog_Bridge (Portabello): the frog puts its tongue out as a bridge (the four FrogBridge pieces move to their
|
||||
// second waypoint) when a player who finished mission 946 comes near, then pulls it back piece by piece
|
||||
class WblFrogBridge : public CppScripts::Script {
|
||||
public:
|
||||
void OnStartup(Entity* self) override;
|
||||
void OnProximityUpdate(Entity* self, Entity* entering, std::string name, std::string status) override;
|
||||
void OnTimerDone(Entity* self, std::string timerName) override;
|
||||
private:
|
||||
static void StickOutTongue(Entity* self);
|
||||
static void MovePiece(int piece, uint32_t waypoint);
|
||||
};
|
||||
Reference in New Issue
Block a user