Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ArKaNeMaN committed May 19, 2023
0 parents commit 31fda73
Show file tree
Hide file tree
Showing 11 changed files with 877 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .build-config
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
PACKAGE_NAME=RandomWeaponsWarmUP
PACKAGE_README_USE=1

PACKAGE_COMPILED_PLUGINS_USE=1
PACKAGE_COMPILED_PLUGINS_SAVE=0

PACKAGE_PLUINGS_LIST_USE=0

PACKAGE_ASSETS_USE=1
PACKAGE_ASSETS_FOLDER=assets
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*.amxx
*.zip
.build
plugins-*.ini
70 changes: 70 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# Random Weapons WarnUP

Форк плагина [[fork] Random Weapons WarmUP 2.4.9](https://dev-cs.ru/resources/384/) от [h1k3](https://dev-cs.ru/members/95/), который, в свою очередь, является форком плагина от neygomon'а.

## Отличия от оригинала

- Список выключаемых на время разминки плагинов вынесен в JSON файл `amxmodx/configs/plugins/RWW/DisablePlugins.json`;
- Список карт, на которых разминка работать не будет, вынесен в JSON файл `amxmodx/configs/plugins/RWW/IgnoredMaps.json`;
- Вместо хардкодного списка оружия добавлены режимы разминки, настраиваемые в JSON файле `amxmodx/configs/plugins/RWW/Modes.json`.
- Добавлены форварды `RWW_OnStarted` и `RWW_OnFinished`.

## Требования

- AmxModX версии 1.9.0 или новее;
- ReAPI желательно свежей версии;
- ItemsController из [VipModular](https://github.com/ArKaNeMaN/amxx-VipModular-pub/releases) (Ядро не требуется).

## Настройка режимов

Режимы разминки настраиваются в файле `amxmodx/configs/plugins/RWW/Modes.json`. Файл должен содержать массив обьектов режима разминки.

### Обьект режима разминки

#### Поля обьекта режима разминки

| Название | Описание
| :--- | :---
| Title | Отображаемое назание режима разминки.
| Items | Массив предметов для ItemsController, которые будут выдаваться всем игрокам.

[Подробнее о структуре предметов для ItemcController...](https://github.com/ArKaNeMaN/amxx-VipModular-pub/blob/master/readme/items.md)

### Пример содержимого файла режимов разминки

```jsonc
[
{
"Title": "Разминка на AK47/M4A1 + Deagle",
"Items": [
{
"Type": "Random",
"Items": [
{
"Type": "Weapon",
"Name": "weapon_m4a1"
},
{
"Type": "Weapon",
"Name": "weapon_ak47"
}
],
},
{
"Type": "Weapon",
"Name": "weapon_deagle"
}
]
},
{
"Title": "Разминка на гранатах",
"Items": [
{
"Type": "Weapon",
"Name": "weapon_hegrenade",
"BpAmmo": 99
}
]
}
]
```
4 changes: 4 additions & 0 deletions amxmodx/configs/plugins/RWW/DisablePlugins.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[
// "test1.amxx",
// "test2.amxx"
]
8 changes: 8 additions & 0 deletions amxmodx/configs/plugins/RWW/IgnoredMaps.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[
"awp_",
"aim_",
"fy_",
"$",
"cs_",
"35hp"
]
68 changes: 68 additions & 0 deletions amxmodx/configs/plugins/RWW/Modes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
[
{
"Title": "Разминка на AK47/M4A1 + Deagle",
"Items": [
{
"Type": "Random",
"Items": [
{
"Type": "Weapon",
"Name": "weapon_m4a1"
},
{
"Type": "Weapon",
"Name": "weapon_ak47"
}
]
},
{
"Type": "Weapon",
"Name": "weapon_deagle"
}
]
},
{
"Title": "Разминка на гранатах",
"Items": [
{
"Type": "Weapon",
"Name": "weapon_hegrenade",
"BpAmmo": 99
}
]
},
{
"Title": "Разминка на пистолетах",
"Items": [
{
"Type": "Random",
"Items": [
{
"Type": "Weapon",
"Name": "weapon_usp"
},
{
"Type": "Weapon",
"Name": "weapon_elite"
},
{
"Type": "Weapon",
"Name": "weapon_glock18"
},
{
"Type": "Weapon",
"Name": "weapon_deagle"
},
{
"Type": "Weapon",
"Name": "weapon_p228"
},
{
"Type": "Weapon",
"Name": "weapon_fiveseven"
}
]
}
]
}
]
14 changes: 14 additions & 0 deletions amxmodx/scripting/include/rww.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#if defined __rww_included
#endinput
#endif
#define __rww_included

/**
* Вызывается в начале разминки
*/
forward RWW_OnStarted();

/**
* Вызывается в конце разминки
*/
forward RWW_OnFinished();
Loading

0 comments on commit 31fda73

Please sign in to comment.