mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-10-02 10:53:44 +00:00
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>
15 lines
635 B
C++
15 lines
635 B
C++
#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);
|
|
};
|