生存竞技场 1.0.25

生存竞技场 1.0.25

生存竞技场 1.0.25-PCI1
生存竞技场 1.0.25
此内容为付费资源,请付费后查看
10积分
付费资源

原创地址Survival Arena – 插件 – Codefling

Works with

  •  
    事件帮助程序

关于Survival Arena

oZew7on.png

Survival Arena 是一个插件,它催生了一款大逃杀风格的游戏,玩家必须在其中搜刮装备并战斗至死,同时保持在不断缩小的非辐射区域内。

该插件在高空生成一个大型游戏区域,并从下面的地面继承生物群落类型。这意味着,如果该区域悬浮在北极生物群系上方,则所有岩石、树木、原木和灌木都会生成,以反映该生物群系类型。

玩家加入时会被传送到中心建筑中,一旦游戏开始,他们必须掠夺容器才能为生存做好准备。玩家在离开活动时会返回到原来的位置,或者在活动中死亡后会重生。

服务器所有者可以通过配置更改或添加战利品配置文件。该插件将在竞技场开始时选择一个随机配置文件,并根据您的规格填充战利品容器。

它带有 2 个默认战利品配置文件:

  • 原始 – 长矛、近战武器、弓、弩、粗麻布设备、左轮手枪等
  • GunLoot – 更现代的武器。

该插件使用 EventHelper 自动运行,处理加入和离开,并允许玩家投票开始游戏。

管理员还可以通过命令向竞技场添加额外的树木、灌木丛、原木和战利品生成。

g2QIliL.png 

Type: Chat
Command: survivalarena
Function: Sends the user the UI to start up the game. Loot profiles, spawn height and lobby time can be adjusted here before starting the game.
Type: Chat/Console
Command: startarena <heightMod> <lobbytime> <arenaName> <lootProfile>
Function: Spawns and starts the game using the specified heightmod and lobbytime parameters. You can simply use the command with no parameters to start it using the default settings and a random arena/lootprofile.
Type: Chat/Console
Command: endarena
Function: Ends any active games and despawns the arena.
Type: Chat
Command: spawnarena <name>
Function: Spawns the arena, but does not start the game. Useful for debugging and development.
Type: Chat
Command: setcentrepoint
Function: Sets the arena's new center point at the players location. Useful if you want to move the spawn so it has more biome variety. Be sure not to make it too high or too close to the ground.
Type: Chat
Command: survival
Function: Used to join the game when the lobby is active.
Type: Chat
Command: saremove
Function: Removes the tree, loot container, log or bush that the player is looking at. This will no longer spawn in future games.
Type: Chat
Command: addtree
Function: adds a tree spawn at the players position.

Type: Chat
Command: addbush
Function: adds a bush spawn at the players position.

Type: Chat
Command: addlog
Function: adds a log spawn at the players position.

Type: Chat
Command: addloot
Function: adds a loot spawn at the players position.
Type: Chat
Command: saleave
Function: Leaves the event
Type: Console/Chat
Command: wipeoldarena
Function: Wipes any entities that are at the same height or higher than the arena.

gdCw0jK.png

survivalarena.admin

If you wish to create your own arena, you may follow this tutorial here: https://youtu.be/BxmcjHjIJDU

Please note that the map file name needs to contain survivalarena or it will not allow the getarena command to work. Also I will not be offering support for this, so use at your own risk.

API

Hook Calls

void OnSurvivalArenaStart() - Called when the lobby starts.
  
void OnSurvivalArenaEnd() - Called when the game is ending.
  
void OnSurvivalArenaWin(BasePlayer player) - Called when a player wins the game.
  
void OnEventLeave(BasePlayer player, string pluginName) - Called when a player leaves the event.
  
object OnEventJoin(BasePlayer player, string pluginName) - Called when a player is attempting to join the event. Returning a string will prevent the player from joining and will print the string to them.
  
void OnEventJoined(BasePlayer player, string pluginName) - Called when a player has successfully joined the arena.
  
void OnPlayerItemsRestored(BasePlayer player) - called when a players items have been restored.

钩子方法

bool IsEventPlayer(BasePlayer player) - returns true or null if the player is an EventPlayer.

图片[4]-生存竞技场 1.0.25-PCI1

图片[5]-生存竞技场 1.0.25-PCI1

图片[6]-生存竞技场 1.0.25-PCI1

图片[7]-生存竞技场 1.0.25-PCI1

图片[8]-生存竞技场 1.0.25-PCI1

图片[9]-生存竞技场 1.0.25-PCI1

图片[10]-生存竞技场 1.0.25-PCI1

图片[11]-生存竞技场 1.0.25-PCI1

图片[12]-生存竞技场 1.0.25-PCI1

图片[13]-生存竞技场 1.0.25-PCI1

© 版权声明
THE END
喜欢就支持一下吧
点赞15 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容