-
Notifications
You must be signed in to change notification settings - Fork 1
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
Showing
5 changed files
with
65 additions
and
33 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
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 |
---|---|---|
@@ -1,11 +1,23 @@ | ||
[en] | ||
GIFT_TAKE = You picked up a gift and received | ||
GIFT_TAKE_EMPTY = You picked up an empty gift | ||
CVAR_DROP_RARITY = Gift drop chance | ||
CVAR_LIFE_TIME = Gift lifetime (0 - infinite) | ||
CVAR_MONEY_MIN = Minimum amount received for a gift | ||
CVAR_MONEY_MAX = Maximum amount received for a gift | ||
|
||
[ru] | ||
GIFT_TAKE = Вы подобрали подарок и получили | ||
GIFT_TAKE_EMPTY = Вы подобрали пустой подарок | ||
CVAR_DROP_RARITY = Шанс выпадения подарка | ||
CVAR_LIFE_TIME = Время жизни подарка (0 - бесконечно) | ||
CVAR_MONEY_MIN = Минимальная сумма получаемая за подарок | ||
CVAR_MONEY_MAX = Максимальная сумма получаемая за подарок | ||
|
||
[ua] | ||
GIFT_TAKE = Ви підібрали подарунок та отримали | ||
GIFT_TAKE_EMPTY = Ви підібрали порожній подарунок | ||
GIFT_TAKE_EMPTY = Ви підібрали порожній подарунок | ||
CVAR_DROP_RARITY = Шанс випадання подарунка | ||
CVAR_LIFE_TIME = Час життя подарунка (0 - нескінченно) | ||
CVAR_MONEY_MIN = Мінімальна сума отримується за подарунок | ||
CVAR_MONEY_MAX = Максимальна сума отримується за подарунок |
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 |
---|---|---|
@@ -1,30 +1,52 @@ | ||
// Форварды: | ||
#define AW_DG_CONT 0 /* Continue function execution */ | ||
#define AW_DG_STOP 1 /* abort function */ | ||
|
||
// Для возврата в форварде | ||
#define AW_DG_CONT 0 // Продолжить выполнение функции | ||
#define AW_DG_STOP 1 // Прекратить выполнение функции | ||
|
||
// Вызывается до выдачи подарка | ||
/** | ||
* Called after the creation of entity gift | ||
* | ||
* @param id ID of the player | ||
* @param ent ID entity gift | ||
* | ||
* @return AW_DG_CONT to continue issuing a standard gift | ||
* AW_DG_STOP to cancel the results of standard gift | ||
*/ | ||
forward awDgFwdTouchPre(id, ent); | ||
|
||
// Вызывается после выдачи подарка | ||
// Игнорирует возвращаемое значение | ||
/** | ||
* Called after the creation of entity gift | ||
* | ||
* @param id ID of the player | ||
* @param ent ID entity gift | ||
* | ||
* @noreturn | ||
*/ | ||
forward awDgFwdTouchPost(id, ent); | ||
|
||
// Вызывается до создания енити подарка | ||
/** | ||
* Called after the creation of entity gift | ||
* | ||
* @param ent ID entity gift | ||
* | ||
* @return AW_DG_CONT to proceed with the creation of entity | ||
* AW_DG_STOP to cancel the creation of entity | ||
*/ | ||
forward awDgFwdCreatePre(); | ||
|
||
// Вызывается после создания ентити подарка | ||
// Игнорирует возвращаемое значение | ||
/** | ||
* Called after the creation of entity gift | ||
* | ||
* @param ent ID entity gift | ||
* | ||
* @noreturn | ||
*/ | ||
forward awDgFwdCreatePost(ent); | ||
|
||
// Нативы и стоки: | ||
/** | ||
* Отправляет сообщение о поднятии подарка | ||
* Sends a message about raising a gift | ||
* | ||
* @param id ID игрока поднявшего подарок | ||
* @param str[] Что именно поднял игрок (Например: Если str = "123", Будет так: Вы подняли подарок и получили 123). Если строка пустая то будет написано что подарок пустой | ||
* @param id ID of the player who raised the gift | ||
* @param str[] what the player picked up (for Example: if str = "123", it Will be like this: you picked up a gift and got 123). If the line is empty it will be written that the gift is empty | ||
* | ||
* @noreturn | ||
*/ | ||
native awDgSendGiftMsg(id, const str[] = ""); | ||
native awDgSendGiftMsg(id, const str [] = ""); |
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
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