取决于
-
关于 Alpha Animals
我的 BackToTheWild 插件的插件,可以让 Alpha 动物呼叫他们的狼群并获得帮助。
特征 :
- 需要 BackToTheWild 插件才能生成 Alpha 动物
- 当 Alpha 动物被杀死时,它会召唤它们较弱的 Omega,后者会(为时已晚)前来寻求帮助。
- 配置简单
- Gametip 动物参与的权限
- Mapmarker 系统在地图上查看 Alpha 的权限
- 经济学支持
- 支持 ServerRewards
- 通过 cfg 生成 Alpha 与 Grid 部分时的聊天通知
阿尔法动物类型 :
- 熊
- 北极熊
- 狼
权限 :
- alphaanimals.tipsimple : 简单的 Gametip 消息权限
- alphaanimals.tipfull : 完整信息 Gametip 消息权限
- alphaanimals.marker : 查看 alpha mapmarkers(如果未设置 globaly)
- alphaanimals.economics : 获得 alpha/omega 击杀的经济值
- 阿尔法动物。ServerRewards :在 alpha/omega 击杀时获得 ServerRewards 积分
配置 :
- 对于生成的 Omega,将使用最小和最大 hp 值
{ "Plugin": { "Debug": true, "Chat Steam64ID": 0, "Chat Prefix": "[<color=orange>AlphaAnimals</color>] ", "Anounce Alpha spawns": true }, "Economics": { "Use Economics": true, "Alpha Bear points": 300.0, "Omega Bear points": 100.0, "Alpha Polarbear points": 400.0, "Omega Polarbear points": 150.0, "Alpha Wolf points": 200.0, "Omega Wolf points": 50.0, "Alpha Crocodile points": 500, "Alpha Panther points": 200, "Alpha Tiger points": 200 }, "ServerRewards": { "Use ServerRewards": true, "Alpha Bear points": 300, "Omega Bear points": 100, "Alpha Polarbear points": 400, "Omega Polarbear points": 150, "Alpha Wolf points": 200, "Omega Wolf points": 50, "Alpha Crocodile points": 500, "Alpha Panther points": 200, "Alpha Tiger points": 200 }, "Animals": { "Life Duration (minutes)": 5.0, "Spawn Radius": 12, "Bear Packsize": 2, "Bear settings": { "Min HP": 350.0, "Max HP": 600.0 }, "Polarbear Packsize": 2, "Polarbear settings": { "Min HP": 350.0, "Max HP": 600.0 }, "Wolf Packsize": 0, "Wolf settings": { "Min HP": 350.0, "Max HP": 600.0 }, "Use Random Skins": false, "Loot settings (Alphas)": { "Spawn Min Amount Items": 10, "Spawn Max Amount Items": 15, "Loot Table": [ { "Item shortname": "ammo.pistol", "Custom name": "T3st name", "Skin ID": 2532520857, "Amount min": 1, "Amount max": 5, "Always add": true }, { "Item shortname": "ammo.pistol.fire", "Custom name": "", "Skin ID": 0, "Amount min": 5, "Amount max": 5, "Always add": false }, { "Item shortname": "ammo.pistol.hv", "Custom name": "", "Skin ID": 0, "Amount min": 5, "Amount max": 5, "Always add": false }, { "Item shortname": "ammo.rifle", "Custom name": "", "Skin ID": 0, "Amount min": 5, "Amount max": 5, "Always add": false }, { "Item shortname": "ammo.rifle.explosive", "Custom name": "", "Skin ID": 0, "Amount min": 5, "Amount max": 5, "Always add": false }, { "Item shortname": "ammo.rifle.hv", "Custom name": "", "Skin ID": 0, "Amount min": 5, "Amount max": 5, "Always add": false }, { "Item shortname": "ammo.rifle.incendiary", "Custom name": "", "Skin ID": 0, "Amount min": 5, "Amount max": 5, "Always add": false }, { "Item shortname": "ammo.rocket.basic.bp", "Custom name": "", "Skin ID": 0, "Amount min": 1, "Amount max": 1, "Always add": true }, { "Item shortname": "ammo.rocket.fire.bp", "Custom name": "", "Skin ID": 0, "Amount min": 1, "Amount max": 1, "Always add": true }, { "Item shortname": "ammo.rocket.hv.bp", "Custom name": "", "Skin ID": 0, "Amount min": 1, "Amount max": 1, "Always add": false }, { "Item shortname": "ammo.shotgun", "Custom name": "", "Skin ID": 0, "Amount min": 8, "Amount max": 12, "Always add": false }, { "Item shortname": "explosive.timed", "Custom name": "", "Skin ID": 0, "Amount min": 1, "Amount max": 1, "Always add": false }, { "Item shortname": "explosives", "Custom name": "", "Skin ID": 0, "Amount min": 1, "Amount max": 1, "Always add": false }, { "Item shortname": "pistol.m92", "Custom name": "", "Skin ID": 0, "Amount min": 1, "Amount max": 1, "Always add": false }, { "Item shortname": "rifle.ak.bp", "Custom name": "", "Skin ID": 0, "Amount min": 1, "Amount max": 1, "Always add": false }, { "Item shortname": "rifle.bolt.bp", "Custom name": "", "Skin ID": 0, "Amount min": 1, "Amount max": 1, "Always add": false }, { "Item shortname": "shotgun.spas12", "Custom name": "", "Skin ID": 0, "Amount min": 1, "Amount max": 1, "Always add": false }, { "Item shortname": "smg.2.bp", "Custom name": "", "Skin ID": 0, "Amount min": 1, "Amount max": 1, "Always add": false }, { "Item shortname": "smg.thompson.bp", "Custom name": "", "Skin ID": 0, "Amount min": 1, "Amount max": 1, "Always add": false }, { "Item shortname": "weapon.mod.8x.scope.bp", "Custom name": "", "Skin ID": 0, "Amount min": 1, "Amount max": 1, "Always add": false }, { "Item shortname": "weapon.mod.flashlight.bp", "Custom name": "", "Skin ID": 0, "Amount min": 1, "Amount max": 1, "Always add": false }, { "Item shortname": "weapon.mod.holosight.bp", "Custom name": "", "Skin ID": 0, "Amount min": 1, "Amount max": 1, "Always add": false }, { "Item shortname": "weapon.mod.lasersight.bp", "Custom name": "", "Skin ID": 0, "Amount min": 1, "Amount max": 1, "Always add": false }, { "Item shortname": "weapon.mod.silencer.bp", "Custom name": "", "Skin ID": 0, "Amount min": 1, "Amount max": 1, "Always add": false }, { "Item shortname": "weapon.mod.small.scope.bp", "Custom name": "", "Skin ID": 0, "Amount min": 1, "Amount max": 1, "Always add": false }, { "Item shortname": "grenade.f1.bp", "Custom name": "", "Skin ID": 0, "Amount min": 1, "Amount max": 1, "Always add": false }, { "Item shortname": "pickaxe", "Custom name": "", "Skin ID": 0, "Amount min": 1, "Amount max": 1, "Always add": false }, { "Item shortname": "hatchet", "Custom name": "", "Skin ID": 0, "Amount min": 1, "Amount max": 1, "Always add": false }, { "Item shortname": "can.beans", "Custom name": "", "Skin ID": 0, "Amount min": 1, "Amount max": 3, "Always add": false }, { "Item shortname": "can.tuna", "Custom name": "", "Skin ID": 0, "Amount min": 1, "Amount max": 3, "Always add": false }, { "Item shortname": "black.raspberries", "Custom name": "", "Skin ID": 0, "Amount min": 3, "Amount max": 5, "Always add": false } ] } } }
本地化 :
包含英语文件要使用其他语言,只需在语言文件夹中创建一个新文件即可。{ "EngageSimple": "<color=yellow>carefull This is a {animal}</color>", "EngageFull": "<color=yellow>carefull This is a {animal} {health} HP</color>", "KillAlpha": "You Killed a <color=green>{animal}</color> and <color=green>{packsize} Omega's</color> are summoned", "KillAlphaAll": "{player} Killed a <color=green>{animal}</color> and <color=green>{packsize} Omega's</color> are summoned", "KillOmega": "You Killed the <color=green>{animal}</color>", "EngageSimpleKill": "<color=yellow>You killed the {animal}</color>", "EngageFullKill": "<color=yellow>You got points killing the {animal}</color>", "AlphaAnnounce": "A <color=yellow>{animal}</color> was located around <color=orange>Grid {location}</color>" }
Rust 原生 API :
要删除 Omega 动物,可以在控制台中使用以下内容
del omega del omega wolf del omega bear del omega polarbear
查看动物是否为 Omega 的示例调用:
void OnEntityDeath(BaseAnimalNPC animal, HitInfo info) { if (animal == null) return; BasePlayer attacker = info.InitiatorPlayer; if (attacker != null && animal.name.Contains("Omega")) { Puts($"The animal was a {animal.name}"); } return; }
面向开发人员的 API :
// Pre definition trigger on Alpha/Omega animal kill (before the animal type is defined) void OnAlphaAnimalKilled(BaseAnimalNPC animal, HitInfo info); void OmegaAnimalKilled(BaseAnimalNPC animal, HitInfo info); // Alpha animal kills void OnAlphaBearKilled(BaseAnimalNPC animal, HitInfo info); void OnAlphaPolarbearKilled(BaseAnimalNPC animal, HitInfo info); void OnAlphaWolfKilled(BaseAnimalNPC animal, HitInfo info); void OnAlphaCrocodileKilled(BaseAnimalNPC animal, HitInfo info); void OnAlphaPantherKilled(BaseAnimalNPC animal, HitInfo info); void OnAlphaTigerKilled(BaseAnimalNPC animal, HitInfo info); // Omega animal kills void OnOmegaBearKilled(BaseAnimalNPC animal, HitInfo info); void OnOmegaPolarbearKilled(BaseAnimalNPC animal, HitInfo info); void OnOmegaWolfKilled(BaseAnimalNPC animal, HitInfo info); // Omega animal spawns void OnOmegaBearSpawned(BaseAnimalNPC animal); void OnOmegaPolarbearSpawned(BaseAnimalNPC animal); void OnOmegaWolfSpawned(BaseAnimalNPC animal);
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
暂无评论内容