-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 31fda73
Showing
11 changed files
with
877 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
*.amxx | ||
*.zip | ||
.build | ||
plugins-*.ini |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
] | ||
} | ||
] | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[ | ||
// "test1.amxx", | ||
// "test2.amxx" | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[ | ||
"awp_", | ||
"aim_", | ||
"fy_", | ||
"$", | ||
"cs_", | ||
"35hp" | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); |
Oops, something went wrong.