RSSy MYGO.pl Opublikowano Listopad 11, 2022 o 21:44 RSSy Udostępnij Opublikowano Listopad 11, 2022 o 21:44 About: This plugin provides you to control infinite horde events. Features: Actions: - Hook start of infinite horde event. - Hook end of infinite horde event. - Blocking infinite horde event script execution. - Changing default infinite horde event on custom. - Pause / Unpause current infinite horde event. Info: - Get status of current infinite horde (currently active or not). - Get pause status of current infinite horde (currently paused or not). Requirements and dependencies: - SourceMod 1.11. - [L4D & L4D2] Left 4 DHooks Direct. - [L4D2 & CS:GO & NMRiH] VScript File Replacer. - Colors Include (uploaded in this post). ConVars: Stored in l4d2_infinite_horde_control.cfg in your server \cfg\sourcemod\ folder. PHP Code: l4d2_ihc_debug_mode "0" - "0 = disable debug mode | 1 = enabled debug mode" Admin commands: PHP Code: sm_info - "Show debug map info". sm_horde_pause <'time'> - "Pause/Unpause infinite horde (if command executed without argument (time) by default it equals 0.0 that means infinite pause)". Forwards: Spoiler PHP Code: // Starts when infinite horde event has started forward void OnInfiniteHordeStart(); // Starts when infinite horde event has stopped forward void OnInfiniteHordeEnd(); // Starts when default infinite horde event script has been blocked forward void OnInfiniteHordeBlock(); // Starts when default infinite horde event script has been overridden forward void OnInfiniteHordeOverride(char[] defaultScript, char[] overrideScript); // Starts when active infinite horde has been paused forward void OnInfiniteHordePause(float pause_duration, float pause_start_time); // Starts when active infinite horde has been unpaused forward void OnInfiniteHordeUnpause(float pause_end_time); Natives: Spoiler PHP Code: // Get current status of infinite horde // returns <true> if infinite horde is currently active, <false> otherwise native bool IsInfiniteHordeActive(); // Get current status of active infinite horde // returns <true> if infinite horde is currently paused, <false> otherwise native bool IsInfiniteHordePaused(); // Pause active infinite horde // <pause_duration> - the time during which the pause will be valid (default 0.0 - means infinite pause) // no return native int PauseInfiniteHorde(float pause_duration = 0.0); // Unpause active infinite horde // no return native int UnpauseInfiniteHorde(); Changelog: Spoiler Code: 1.0.0. (12 Oct. 2022) - Initial release. Installation: Put l4d2_infinite_horde_control.cfg in sourcemod/configs/ folder. Put l4d2_infinite_horde_control.inc in sourcemod/scripting/include folder. Put colors.inc in sourcemod/scripting/include folder. Attached Files Get Plugin or Get Source (l4d2_infinite_horde_control.sp - 21.7 KB) l4d2_infinite_horde_control.inc (2.1 KB) l4d2_infinite_horde_control.cfg (4.4 KB) colors.inc (24.5 KB) Wyświetl pełny artykuł Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi