![图片[1]-玻璃桥事件 1.7.2-PCI1](https://codefling.com/uploads/monthly_2023_12/Capturadetela2023-09-05084543.png.9dbd92314782efbb10794adee545120c.png.2b842ee4c1969f6df19c998f9646aa13.png)
原创地址Glass Bridge 事件 – 插件 – Codefling
取决于
-
图片库
关于 Glass Bridge Event
Glass Bridge 是一个受著名的 Netflix 系列:鱿鱼游戏启发的活动
• 该活动包括创建一座玻璃桥,玩家必须跳过它们并到达终点线才能成为游戏的获胜者;
• 但是,玩家将为此面临一些挑战。该事件可以在游戏过程中进行 PVP 战斗,也可以给玩家随机武器(由配置文件设置),以便他们可以互相残杀;
• 此外,还可以禁用 PVP,甚至使其更加硬核,激活坠落后死亡的系统;
特点:
★在活动过程中,可以为提供给用户的每种武器添加不同的公告!
★ 事件进入和退出的 UI 完全可以通过配置文件进行自定义。
★ 当用户是活动的获胜者时,除了在服务器上执行命令外,还可以为用户提供自定义奖品!
★ 管理竞技场的大小并定义每行将打破的玻璃数量!
命令:
/gb start – 启动新事件
/gb stop – 停止当前事件
/gb join – 加入事件
/gb leave – 离开事件
演示视频:
# 应用程序接口:
// Returns whether the event is currently active private bool IsActive(); // Returns whether a player is currently participating in the event. private bool IsPlaying(string playerId); private bool IsPlaying(ulong playerId); // Remove a player from the event private void RemovePlayer(string playerId); private void RemovePlayer(ulong playerId); // Get a list of event players private List<BasePlayer> PlayingList(); // Hook when the event is started private void OnGlassBridgeEventStarted(); // Hook when the event is finished private void OnGlassBridgeEventEnded(BasePlayer? winner);
格式:
{winner_id} – 活动获胜者 Steam ID
{winner_name} – 活动获胜者显示名称
默认配置文件:
{ "Commands": [ "glassbridge", "gb" ], "Permission name": "glassbridge.admin", "Allowed console commands ('*' to allow all commands)": [], "Blocked chat commands ('*' to block all commands)": [], "Event settings": { "Auto start cooldown in seconds (0 = disabled)": 3600, "Waiting duration (seconds)": 120, "Auto stop after seconds (0 = disabled)": 300, "Minimum players": 1, "Lose when fall": false, "PVP Enabled": true, "Rollback players to start point when die": true, "Spawn position": { "x": 300.0, "y": 800.0, "z": 300.0 }, "Give times": [ { "Tiem after the event started": 30.0, "Item shortname": "arrow.wooden", "Item amount": 3, "Item skin ID": 0, "Loaded ammo (0 = disabled)": 0, "Container to give (wear/belt/main)": "main", "Show warn for this item?": false, "Warn background color": "0 0.52 1 1", "Lang message key": "" }, { "Tiem after the event started": 30.0, "Item shortname": "bow.hunting", "Item amount": 1, "Item skin ID": 0, "Loaded ammo (0 = disabled)": 1, "Container to give (wear/belt/main)": "belt", "Show warn for this item?": true, "Warn background color": "0.12 0.46 0.21 1", "Lang message key": "ReceivedNewItem" }, { "Tiem after the event started": 120.0, "Item shortname": "pistol.revolver", "Item amount": 1, "Item skin ID": 0, "Loaded ammo (0 = disabled)": 4, "Container to give (wear/belt/main)": "belt", "Show warn for this item?": true, "Warn background color": "0 0.52 1 1", "Lang message key": "ReceivedNewItem" }, { "Tiem after the event started": 180.0, "Item shortname": "rifle.ak", "Item amount": 1, "Item skin ID": 0, "Loaded ammo (0 = disabled)": 12, "Container to give (wear/belt/main)": "belt", "Show warn for this item?": true, "Warn background color": "0.58 0.25 0.25 1", "Lang message key": "ReceivedNewItem" } ] }, "Glasses settings": { "columns": 18, "rows": 24, "Broken glasses by row (need to be less than columns)": 9 }, "Prize settings": { "Commands to execute on server": [ "oxide.usergroup add {winner_id} glassbridge_event_winner" ], "Items to give": [ { "Item shortname": "rifle.ak", "Item amount": 1, "Item skin ID": 1826520371, "Custom name (empty = disabled)": "Apocalyptic Knight AK" }, { "Item shortname": "ammo.rifle", "Item amount": 128, "Item skin ID": 0, "Custom name (empty = disabled)": "Ammo for your AK" } ] }, "UI settings": { "Join Leave UI": { "Anchor": "1 0.5 1 0.5", "Offset": "-146 -12 -12 138", "Background color": "0.18 0.17 0.18 1", "Join leave button": { "Join background color": "0.18 0.41 0.12 1", "Leave background color": "0.41 0.12 0.12 1" } }, "Event status UI": { "Anchor": "0.5 1 0.5 1", "Offset": "-48 -100 48 -36", "Remaining players": { "Background color": "1 1 1 0.5", "Anchor": "0 0 1 0", "Offset": "0 0 0 24", "Icon URL": "https://i.postimg.cc/HsfZffQb/HY9DNLr.png", "Icon anchor": "0 0 0 1", "Icon offset": "4 4 20 -4" }, "Remaining time": { "Background color": "1 1 1 0.5", "Anchor": "0 0 1 1", "Offset": "0 28 0 0" } } }, "Version": { "Major": 1, "Minor": 6, "Patch": 0 } }
画廊
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END



















暂无评论内容