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!
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)
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.