forked from Mistrick/DeathrunMod
-
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.
- separate includes for plugins - new forward dr_chosen_new_terrorist - changed dr_duel_canceled
- Loading branch information
Showing
6 changed files
with
177 additions
and
109 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
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#if defined _deathrun_core_included | ||
#endinput | ||
#endif | ||
#define _deathrun_core_included | ||
|
||
#if AMXX_VERSION_NUM >= 175 | ||
#pragma reqlib deathrun_core | ||
#if !defined AMXMODX_NOAUTOLOAD | ||
#pragma loadlib deathrun_core | ||
#endif | ||
#else | ||
#pragma library deathrun_core | ||
#endif | ||
|
||
/** | ||
* Forward which called when chosen new terrorist(new round or disconnect). | ||
* | ||
* @param id Player index. | ||
*/ | ||
forward dr_chosen_new_terrorist(id); | ||
|
||
/** | ||
* Get player index current terrorist. | ||
* | ||
* @return Player index. | ||
*/ | ||
native dr_get_terrorist(); | ||
|
||
/** | ||
* Set player who became terrorist in new round. | ||
* | ||
* @param id Next terrorist index. | ||
*/ | ||
native dr_set_next_terrorist(id); | ||
|
||
/** | ||
* Get player who became terrorist in new round. | ||
* | ||
* @return Player index. | ||
*/ | ||
native dr_get_next_terrorist(); |
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,52 @@ | ||
#if defined _deathrun_duel_included | ||
#endinput | ||
#endif | ||
#define _deathrun_duel_included | ||
|
||
#if AMXX_VERSION_NUM >= 175 | ||
#pragma reqlib deathrun_duel | ||
#if !defined AMXMODX_NOAUTOLOAD | ||
#pragma loadlib deathrun_duel | ||
#endif | ||
#else | ||
#pragma library deathrun_duel | ||
#endif | ||
|
||
enum CancelType | ||
{ | ||
CType_TimeOver, | ||
CType_PlayerDisconneced, | ||
CType_PlayerDied, | ||
CType_ModeChanged | ||
} | ||
|
||
/** | ||
* Forward which called before duel start, warm up time | ||
* | ||
* @param duelist_ct Player index. | ||
* @param duelist_t Player index. | ||
*/ | ||
forward dr_duel_prestart(duelist_ct, duelist_t); | ||
|
||
/** | ||
* Forward which called when duel started | ||
* | ||
* @param duelist_ct Player index. | ||
* @param duelist_t Player index. | ||
*/ | ||
forward dr_duel_start(duelist_ct, duelist_t); | ||
|
||
/** | ||
* Forward which called when duel overed | ||
* | ||
* @param winner Player index. | ||
* @param looser Player index. | ||
*/ | ||
forward dr_duel_finish(winner, looser); | ||
|
||
/** | ||
* Forward which called when duel canceled | ||
* | ||
* @param type Cancel type | ||
*/ | ||
forward dr_duel_canceled(CancelType:type); |
Oops, something went wrong.