Version: v1.1 Author: Mistrick Description: A set of plugins for realization of mod.
Included: deathrun_core:
Main plugin, team balance, join control, fixed using buttons through the walls, remove extra entity(bomb plant, etc.), block radio
cvars:
/** * Mode registration. * * @param Name Mode name, use ML key. * @param Mark Mode mark, use this to get mode index in other plugins. * @param RoundDelay Mode blocking in rounds. * @param CT_BlockWeapons Allow CT pick up weapons. * @param TT_BlockWeapons Allow TT pick up weapons. * @param CT_BlockButtons Allow CT use buttons. * @param TT_BlockButtons Allow TT use buttons. * @param Bhop Enable autobhop. * @param Usp Enable start with USP for CT. * @param Hide Allow hide mode in menu. * * @return Mode index. */ native dr_register_mode(Name[32], Mark[16], RoundDelay, CT_BlockWeapons, TT_BlockWeapons, CT_BlockButtons, TT_BlockButtons, Bhop, Usp, Hide = 0);
/** * Get current mode. * * @param name Mode name, here will be copied the current mode ML key. * @param size Name size. * * @return Mode index. */ native dr_get_mode(name[] = "", size = 0);
/** * Set new mode. * * @param mode Mode index. * @param fwd Call forward(dr_selected_mode). * @param id Player index in forward. */ native dr_set_mode(mode, fwd = 0, id = 0);
/** * Get mode by mark. * * @param mark Mode mark. * * @return Mode index. */ native dr_get_mode_by_mark(mark[]);
/** * Get full mode info. * * @param mode Mode index. * @param modeinfo Info array. */ native dr_get_mode_info(mode, modeinfo[ModeData]);
/** * Set mode autobhop. * * @param bhop 0 - OFF, 1 - ON. */ native dr_set_mode_bhop(bhop);
/** * Get mode autobhop. * * @return 0 - OFF, 1 - ON. */ native dr_get_mode_bhop();
/** * Set player autobhop. * * @note The value for a mode bhop more important than for the player. * * @param id Player index. * @param bhop false - OFF, true - ON. */ native dr_set_user_bhop(id, bool:bhop);
/** * Get player autobhop. * * @param id Player index. */ native bool:dr_get_user_bhop(id);
/** * Forward which called when the selection mode. * * @param id Terrorist index. * @param mode Mode index. */ forward dr_selected_mode(id, mode);
deathrun_mode_free, deathrun_mode_invis, deathrun_mode_snow, deathrun_mode_rambo, deathrun_mode_duel:
Examples of use Modes API
api:
/** * 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);
[tr]
DRC_TERRORIST_LEFT = ^3%s^1 oyundan cikti.^3 %s^1 yeni TE secildi.
DRC_BECAME_TERRORIST = ^3%s^1 TE oldu.
DRBC_CANT_USE = Bu butonu kullanamazsiniz!
[tr]
DRM_BHOP_MSG = Bhop ^3 %L^1.
DRM_ENABLED = aktif edildi
DRM_DISABLED = kapatildi
DRM_USED_BUTTON = ^3TE Takimi^1 butonu kullandi. Mod: ^4Buton^1.
DRM_MENU_SELECT_MODE = \yMod Secin:
DRM_MENU_NEXT = Siradaki
DRM_MENU_BACK = Bi geri
DRM_MENU_TIMELEFT = \r%d \dsaniyen var.
DRM_SELECTED_MODE = ^3TE takimi^4 %s^3 modunu secti^1.
DRM_RANDOM_MODE = ^3Rastgele^1 mod:^4 %s^1.
addons_zz
08-15-2016 16:10
Re: Deathrun Mod [Core + Modes]
Added the [bp] Brazilian Portuguese translation as a pull request on github.
KleinMarquez
08-16-2016 06:49
Re: Deathrun Mod [Core + Modes]
French translation:
Code:
DRC_TERRORIST_LEFT = ^ 3 % s ^ 1 a quitté le serveur. ^ 3 % s ^ 1 est devenu un terroriste .
DRC_BECAME_TERRORIST = ^ 3 % s ^ 1 est devenu un terroriste .
DRBC_CANT_USE = Vous ne pouvez pas utiliser ce bouton !
DRI_INFORMER_MSG = Informer est ^ 3 % L ^ 1 .
DRI_SPECLIST_MSG = Speclist est ^ 3 ^ 1 % de L .
DRI_SPEEDOMETER_MSG = tachymètre est ^ 3 % L ^ 1 .
= DRI_ENABLED permis
DRI_DISABLED = désactivé
DRI_MODE = Mode
DRI_TIMELEFT = timeleft : % 02d : % 02d
DRI_ALIVECT = Vivant CT : % d /% d
DRI_ALL_PLAYERS = Tous les joueurs :% d / % d
DRI_HEALTH = Santé :% d
DRI_SPECLIST = Joueur: % s ^ nHealth : % dHP , Argent: $ % d, FPS :% d
DRI_SPEEDOMETER = Vitesse: % 3.2f
DRL_LIFE_MENU = \ YLife Menu \ w [ Lifes : \ r % d \ w ] \ y:
DRL_RESPAWN = Respawn
DRL_EXIT = Quitter
DRL_CANT_RESPAWN = Vous ne pouvez pas respawn .
DRD_SET_SPAWNS = Vous devez définir deux pontes .
DRD_SPAWNS_SAVED = Spawns sauvés.
DRD_DUEL_START_TIME = Duel va commencer dans% d secondes .
DRD_TIME_OVER = Duel temps est fini .
DRD_SHOOT_TIME = Vous avez % d secondes .
DRD_DUEL_OFFER = \ YDO vous voulez commencer duel ?
DRD_YES = Oui
N = DRD_NO
gagnant DRD_DUEL_WINNER = Duel est ^ 3 % s ^ 1 .
DRM_BHOP_MSG = BHOP est ^ 3 ^ 1 % de L .
= DRM_ENABLED permis
DRM_DISABLED = désactivé
bouton DRM_USED_BUTTON = ^ 3Terrorist ^ 1 utilisé . Mode: ^ 4Buttons ^ 1 .
DRM_MENU_SELECT_MODE = \ ySelect Mode :
DRM_MENU_NEXT = Suivant
DRM_MENU_BACK = Retour
DRM_MENU_TIMELEFT = \ Dyou ont \ r % d \ dseconds .
DRM_SELECTED_MODE = ^ 3Terrorist ^ 1 mode sélectionné : ^ 4 % s ^ 1 .
DRM_RANDOM_MODE = ^ 3Random ^ 1 Mode : ^ 4 % s ^ 1 .
Mistrick
08-16-2016 09:17
Re: Deathrun Mod [Core + Modes]
KleinMarquez, something wrong with your translation.
safetymoose
08-16-2016 11:38
Re: Deathrun Mod [Core + Modes]
I like how you have separate plugins for each feature instead of having it all clogged up in a single plugin. Kinda reminds me of ZP50 :).
List the features that your plugin has that the other one doesn't.
Mistrick
08-16-2016 12:06
Re: Deathrun Mod [Core + Modes]
safetymoose, my mod have almost all functions from DRM by xPaw(without deathrun_hidehud, deathrun_blockmoney), but not all functions can be off by cvar or define.
New functions:
- Auto set new terrorist if current disconnected
- Blocked using buttons through the walls(annoying on some maps)
- Terrorists mode system, you can easy create own mode. Duel is one of this.
- API for scripters
- Also mod have gameplay fixes like deleting weaponbox in touch with func_door(bhop blocks)
KleinMarquez
08-17-2016 02:48
Re: Deathrun Mod [Core + Modes]
Quote:
Originally Posted by Mistrick
(Post 2445266)
KleinMarquez, something wrong with your translation.
I was wrong when i translation into the google translate.
Note: use a Quote Botton
HamletEagle
08-17-2016 04:52
Re: Deathrun Mod [Core + Modes]
Quote:
Originally Posted by KleinMarquez
(Post 2445469)
I was wrong when i translation into the google translate.
Note: use a Quote Botton
Translate only when you know the language, don't use online translators. The point of having ML and people translating is to get a quality work. The OP could have used google translate on his own.
Mistrick
08-31-2016 04:19
Re: Deathrun Mod [Core + Modes]
Updated to stable release.
Changes in API.
Improved ML support.
New plugin teleport spot.
Full changelog on GitHub.