Skip to content

Commit 7077a88

Browse files
authored
Merge pull request #62 from UncomplicatedCustomServer/dev-main
UCR v7.0.0 for EXILED 9.5 - SCPSL 14.0 - Candidate I
2 parents e27d833 + 10df6a6 commit 7077a88

97 files changed

Lines changed: 2396 additions & 622 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Localization/README-CN.md

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
<div align="center"><a href="https://github.com/UncomplicatedCustomServer/UncomplicatedCustomRoles/releases/latest"><img src="https://img.shields.io/github/v/release/UncomplicatedCustomServer/UncomplicatedCustomRoles"></a> <a href="https://github.com/UncomplicatedCustomServer/UncomplicatedCustomRoles/releases/latest"><img src="https://img.shields.io/github/downloads/UncomplicatedCustomServer/UncomplicatedCustomRoles/total"></a> <a href="https://github.com/UncomplicatedCustomServer/UncomplicatedCustomRoles/pulls"><img src="https://img.shields.io/github/issues-pr/UncomplicatedCustomServer/UncomplicatedCustomRoles"></a> <a href="https://github.com/UncomplicatedCustomServer/UncomplicatedCustomRoles/pulls"><img src="https://img.shields.io/github/issues-pr-closed/UncomplicatedCustomServer/UncomplicatedCustomRoles"></a> <a href="https://github.com/UncomplicatedCustomServer/UncomplicatedCustomRoles/commits/main/"><img src="https://badgen.net/github/commits/UncomplicatedCustomServer/UncomplicatedCustomRoles/main"></a> <img src="https://img.shields.io/badge/Verified_Exiled_Plugin-ss">
2+
3+
<img src="https://raw.githubusercontent.com/UncomplicatedCustomServer/UncomplicatedCustomRoles/refs/heads/resources/ucr_promo_banner.png">
4+
<i>为您的 SCP:SL 服务器提供简单、完全可配置和可定制的自定义角色!</i>
5+
6+
<br><br>
7+
<br><br>
8+
<a href='https://discord.gg/5StRGu8EJV'><img src='https://www.allkpop.com/upload/2021/01/content/262046/1611711962-discord-button.png' height="100"></a>
9+
<br><br>
10+
</div>
11+
12+
**EXILED** >= `v9.x`
13+
<br><br>
14+
15+
## 其他语言的自述文件
16+
- [&#127468;&#127463; Englisch](https://github.com/UncomplicatedCustomServer/UncomplicatedCustomRoles/blob/main/README.md)
17+
- [&#127467;&#127479; Français](https://github.com/UncomplicatedCustomServer/UncomplicatedCustomRoles/blob/main/Localization/README-FR.md)
18+
- [&#x1F1EE;&#x1F1F9; Italiano](https://github.com/UncomplicatedCustomServer/UncomplicatedCustomRoles/blob/main/Localization/README-IT.md)
19+
- [&#127479;&#127482; Russian](https://github.com/UncomplicatedCustomServer/UncomplicatedCustomRoles/blob/main/Localization/README-RU.md)
20+
- [&#127465;&#127466; German](https://github.com/UncomplicatedCustomServer/UncomplicatedCustomRoles/blob/main/Localization/README-DE.md)
21+
- [&#127477;&#127473; Polski](https://github.com/UncomplicatedCustomServer/UncomplicatedCustomRoles/blob/main/Localization/README-PL.md)
22+
- [🇨🇳 Simplified Chinese](https://github.com/UncomplicatedCustomServer/UncomplicatedCustomRoles/blob/main/Localization/README-CN.md)
23+
24+
## 什么是UncomplicatedCustomRoles?
25+
**UncomplicatedCustomRoles** 或称为 **UCR** 是一个[EXILED](https://github.com/ExMod-Team/EXILED)插件,允许您使用 YAML 创建完全可配置和可定制的自定义角色。 \
26+
您可以通过该插件修改: <ins>角色</ins>、<ins>血量(HP)</ins>或是<ins>撤离(逃出设施)后的角色</ins>以及更多其他内容。
27+
28+
## 特色功能
29+
**UCR** 有许多功能,例如:
30+
- 不限制数量的自定义角色
31+
- 自定义角色的配置文件将会在独立的文件中,而不是EXILED的配置文件中。
32+
- 更多功能请查询 [wiki](https://github.com/UncomplicatedCustomServer/UncomplicatedCustomRoles/wiki)
33+
- 来自 **Discord** 的活跃社区
34+
- 服主的 __特殊权限和预览功能__
35+
- 用于处理插件和角色的游戏内命令
36+
37+
## 安装
38+
[latest release](https://github.com/UncomplicatedCustomServer/UncomplicatedCustomRoles/releases/latest) 中下载 `UncomplicatedCustomRoles.dll` 并放在 `EXILED/Plugins` 文件夹中。
39+
40+
## 开发
41+
UncomplicatedCustomRoles 有一个简单便捷的 API 系统,供开发人员使用我们的插件。
42+
我们在 [developers wiki](https://github.com/UncomplicatedCustomServer/UncomplicatedCustomRoles/wiki/Developers-World)中创建了许多示例。
43+
44+
## 遇到问题?
45+
请阅读 [WIKI](https://github.com/UncomplicatedCustomServer/UncomplicatedCustomRoles/wiki) ,如果您仍旧无法解决问题,您可以在我们的 [Discord服务器](https://discord.gg/5StRGu8EJV) 上向社区提问!
46+
47+
## 给UncomplicatedCustomServer捐赠?
48+
我们的所有的插件都是 **免费** 并且 **开源的**\
49+
您可以通过 **OpenCollective** 来捐赠一些东西支持我们:
50+
<a href="https://opencollective.com/ucs"><img height="15" src="https://raw.githubusercontent.com/UncomplicatedCustomServer/UncomplicatedCustomRoles/refs/heads/resources/oc_icon.png">&nbsp;&nbsp;Donate</a>
51+
52+
## 联系我们?
53+
### UncomplicatedCustomRoles
54+
**Discord:** [https://discord.gg/5StRGu8EJV](https://discord.gg/5StRGu8EJV)
55+
56+
### FoxWorn3365
57+
**Discord:** `@foxworn`\
58+
**Email:** `foxworn3365@gmail.com`
59+
### Dr.Agenda
60+
**Discord:** `dr.agenda`
61+
62+
## 本地化贡献者
63+
**法语:** `@robocnop`\
64+
**意大利语:** `@foxworn`\
65+
**俄语:** `@naxefir`\
66+
**德语:** `@seekedstroy`\
67+
**波兰语:** `@.piwnica2137`\
68+
**简体中文** `@Raiden-Yayi`

Localization/README-DE.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
- [&#127467;&#127479; Französisch](https://github.com/UncomplicatedCustomServer/UncomplicatedCustomRoles/blob/main/Localization/README-FR.md)
1818
- [&#x1F1EE;&#x1F1F9; Italienisch](https://github.com/UncomplicatedCustomServer/UncomplicatedCustomRoles/blob/main/Localization/README-IT.md)
1919
- [&#127479;&#127482; Russisch](https://github.com/UncomplicatedCustomServer/UncomplicatedCustomRoles/blob/main/Localization/README-RU.md)
20+
- [&#127477;&#127473; Polnisch](https://github.com/UncomplicatedCustomServer/UncomplicatedCustomRoles/blob/main/Localization/README-PL.md)
2021

2122
## Was ist UncomplicatedCustomRoles
2223
**UncomplicatedCustomRoles** oder **UCR** ist ein Plugin für [EXILED](https://github.com/ExMod-Team/EXILED), mit dem du vollständig konfigurierbare und anpassbare benutzerdefinierte Rollen mit YAML erstellen kannst.\
@@ -60,4 +61,5 @@ Bitte denke darüber nach, unsere Arbeit über **OpenCollective** mit einer Spen
6061
**Französisch:** `@robocnop`\
6162
**Italienisch:** `@foxworn`\
6263
**Russisch:** `@naxefir`\
63-
**Deutsch:** `@seekedstroy`
64+
**Deutsch:** `@seekedstroy`\
65+
**Polski:** `@.piwnica2137`

Localization/README-PL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939

4040
## Czym jest UncomplicatedCustomRoles?
4141
**UncomplicatedCustomRoles** (UCR) to plugin dla [EXILED](https://github.com/ExMod-Team/EXILED), który pozwala na tworzenie w pełni konfigurowalnych ról z użyciem YAML.\
42-
Możesz ustawić <ins>rolę</ins>, <ins>ilość HP</ins>, <ins>co się stanie po ucieczce</ins> i wiele więcej!
42+
Możesz ustawić <ins>rolę</ins>, <ins>ilość HP</ins>, <ins>rolę po ucieczce</ins> i wiele więcej!
4343

4444
## Funkcje
4545
**UCR** oferuje mnóstwo możliwości, m.in.:

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
- [&#127479;&#127482; Russian](https://github.com/UncomplicatedCustomServer/UncomplicatedCustomRoles/blob/main/Localization/README-RU.md)
1919
- [&#127465;&#127466; German](https://github.com/UncomplicatedCustomServer/UncomplicatedCustomRoles/blob/main/Localization/README-DE.md)
2020
- [&#127477;&#127473; Polski](https://github.com/UncomplicatedCustomServer/UncomplicatedCustomRoles/blob/main/Localization/README-PL.md)
21+
- [🇨🇳 Simplified Chinese](https://github.com/UncomplicatedCustomServer/UncomplicatedCustomRoles/blob/main/Localization/README-CN.md)
2122

2223
## What's UncomplicatedCustomRoles
2324
**UncomplicatedCustomRoles** or **UCR** is a plugin for [EXILED](https://github.com/ExMod-Team/EXILED) that allow you to create fully configurable and customizable custom role with YAML.\
@@ -62,4 +63,5 @@ Please consider donating something to support our work through **OpenCollective*
6263
**Italian:** `@foxworn`\
6364
**Russian:** `@naxefir`\
6465
**Deutsch:** `@seekedstroy`\
65-
**Polish:** `@.piwnica2137`
66+
**Polish:** `@.piwnica2137`\
67+
**Simplified Chinese** `@Raiden-Yayi`

UncomplicatedCustomRoles/API/Attributes/PluginCustomRole.cs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
1-
using System;
1+
/*
2+
* This file is a part of the UncomplicatedCustomRoles project.
3+
*
4+
* Copyright (c) 2023-present FoxWorn3365 (Federico Cosma) <me@fcosma.it>
5+
*
6+
* This file is licensed under the GNU Affero General Public License v3.0.
7+
* You should have received a copy of the AGPL license along with this file.
8+
* If not, see <https://www.gnu.org/licenses/>.
9+
*/
10+
11+
using System;
212

313
namespace UncomplicatedCustomRoles.API.Attributes
414
{

UncomplicatedCustomRoles/API/Enums/CustomFlags.cs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
1-
using System;
1+
/*
2+
* This file is a part of the UncomplicatedCustomRoles project.
3+
*
4+
* Copyright (c) 2023-present FoxWorn3365 (Federico Cosma) <me@fcosma.it>
5+
*
6+
* This file is licensed under the GNU Affero General Public License v3.0.
7+
* You should have received a copy of the AGPL license along with this file.
8+
* If not, see <https://www.gnu.org/licenses/>.
9+
*/
10+
11+
using System;
212

313
namespace UncomplicatedCustomRoles.API.Enums
414
{
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/*
2+
* This file is a part of the UncomplicatedCustomRoles project.
3+
*
4+
* Copyright (c) 2023-present FoxWorn3365 (Federico Cosma) <me@fcosma.it>
5+
*
6+
* This file is licensed under the GNU Affero General Public License v3.0.
7+
* You should have received a copy of the AGPL license along with this file.
8+
* If not, see <https://www.gnu.org/licenses/>.
9+
*/
10+
11+
namespace UncomplicatedCustomRoles.API.Enums
12+
{
13+
public enum LoadStatusType
14+
{
15+
Success,
16+
ValidatorError,
17+
SameId
18+
}
19+
}
Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
1-
namespace UncomplicatedCustomRoles.API.Enums
1+
/*
2+
* This file is a part of the UncomplicatedCustomRoles project.
3+
*
4+
* Copyright (c) 2023-present FoxWorn3365 (Federico Cosma) <me@fcosma.it>
5+
*
6+
* This file is licensed under the GNU Affero General Public License v3.0.
7+
* You should have received a copy of the AGPL license along with this file.
8+
* If not, see <https://www.gnu.org/licenses/>.
9+
*/
10+
11+
namespace UncomplicatedCustomRoles.API.Enums
212
{
313
public enum SpawnType
414
{
@@ -8,6 +18,7 @@ public enum SpawnType
818
SpawnPointSpawn,
919
KeepRoleSpawn,
1020
KeepCurrentPositionSpawn,
11-
ClassDCell
21+
ClassDCell,
22+
RoleSpawn
1223
}
1324
}

UncomplicatedCustomRoles/API/Features/Behaviour/AhpBehaviour.cs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
1-
using Exiled.API.Features;
1+
/*
2+
* This file is a part of the UncomplicatedCustomRoles project.
3+
*
4+
* Copyright (c) 2023-present FoxWorn3365 (Federico Cosma) <me@fcosma.it>
5+
*
6+
* This file is licensed under the GNU Affero General Public License v3.0.
7+
* You should have received a copy of the AGPL license along with this file.
8+
* If not, see <https://www.gnu.org/licenses/>.
9+
*/
10+
11+
using Exiled.API.Features;
212

313
namespace UncomplicatedCustomRoles.API.Features.Behaviour
414
{
Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
1-
using Exiled.API.Features;
1+
/*
2+
* This file is a part of the UncomplicatedCustomRoles project.
3+
*
4+
* Copyright (c) 2023-present FoxWorn3365 (Federico Cosma) <me@fcosma.it>
5+
*
6+
* This file is licensed under the GNU Affero General Public License v3.0.
7+
* You should have received a copy of the AGPL license along with this file.
8+
* If not, see <https://www.gnu.org/licenses/>.
9+
*/
10+
11+
using Exiled.API.Features;
212

313
namespace UncomplicatedCustomRoles.API.Features.Behaviour
414
{
@@ -14,21 +24,6 @@ public class HealthBehaviour
1424
/// </summary>
1525
public int Maximum { get; set; } = 100;
1626

17-
/// <summary>
18-
/// Gets or sets the hume shield amout of the
19-
/// </summary>
20-
public int HumeShield { get; set; } = 0;
21-
22-
/// <summary>
23-
/// Gets or sets the speed of the regeneration of the hume shield in units/second
24-
/// </summary>
25-
public float HumeShieldRegenerationAmount { get; set; } = 2;
26-
27-
/// <summary>
28-
/// Gets or sets the time that the player has to be untouched (not damaged) in order to regen the hume shield (in seconds)
29-
/// </summary>
30-
public float HumeShieldRegenerationDelay { get; set; } = 7.5f;
31-
3227
/// <summary>
3328
/// Apply the current instance of <see cref="HealthBehaviour"/> to the given <see cref="Player"/>
3429
/// </summary>
@@ -37,9 +32,6 @@ public void Apply(Player player)
3732
{
3833
player.Health = Amount;
3934
player.MaxHealth = Maximum;
40-
41-
if (HumeShield > 0)
42-
player.HumeShield = HumeShield;
4335
}
4436
}
4537
}

0 commit comments

Comments
 (0)