RSSy MYGO.pl Opublikowano Kwiecień 22, 2021 o 22:40 RSSy Udostępnij Opublikowano Kwiecień 22, 2021 o 22:40 Author: AtomicStryker (fork by Dragokas) Description: Allow you to self-help (stand up) while incapacitated or hanging the ledge by pop the pills or adrenaline using one of the selected buttons: (JUMP), (CROUCH) or (USE). Plugin is based on:"Incapped Pills Pop" by AtomicStryker. Fork contains a lot of improvements. See the ChangeLog. Settings (ConVars):Located at /cfg/sourcemod/l4d_incappedpillspop2.cfg PHP Code: // Enable this plugin? (1 - Yes, 0 - No) l4d_incappedpillspop_enable "1" // How long before an Incapped Survivor can use pills/adrenaline l4d_incappedpillspop_delaytime "0.2" // Forbid self-help when somebody reviving you (1 - Yes / 0 - No) l4d_incappedpillspop_forbid_when_reviving "1" // Disable heartbeat sound in game at all (1 - Disable / 0 - Do nothing) l4d_disable_heartbeat "0" // Show message to all about player selfhelp action (1 - Yes / 0 - No) l4d_incappedpillspop_show_msg_all "1" // What button to press for self-help? 2 - Jump, 4 - Duck, 32 - Use. You can combine. l4d_incappedpillspop_button "32" // (L4D2 only) Allow pop adrenaline? (1 - Yes / 0 - No) l4d_incappedpillspop_allow_adrenaline "1" Requirements:- SourceMod 1.10+ - DHooks Detours v.2.2.0.15+ Translations - English - Russian Compatibility - L4D1 - L4D2 Credits: - AtomicStryker - for the original idea and his plugin. - Re:Creator - for code to stop the music. - Peace-Maker - for his DHook with detours support. Related plugins: - [L4D1] Health Exploit Fix by Dragokas - [L4D1 & L4D2] Ledge Release by Dragokas - [L4D & L4D2] Heartbeat (Revive Fix - Post Revive Options) by Silvers ChangeLog Spoiler 2.0 (23-Apr-2021) - Improved music stop fix. - Fixed bug: *_spawned classes: weapon_pain_pills_spawn and weapon_adrenaline_spawn are not checked on the floor. - Improved bug-fix: other player could become frozen if you force pop pills while he tries to revive you. - Prevented opportunity to use pills when been attacked by charger or jockey. - Added missing ConVars for tracking the changes. - Simplified & beautified the code, removed useless timers, Less useless hooks. - Added ConVar "l4d_incappedpillspop_enable" - Enable this plugin? (1 - Yes, 0 - No). - Added ConVar "l4d_incappedpillspop_button" - What button to press for self-help? 2 - Jump, 4 - Duck, 32 - Use. You can combine. - Added ConVar "l4d_incappedpillspop_allow_adrenaline" - (L4D2 only) Allow pop adrenaline? (1 - Yes / 0 - No). - Splitted messages: * hint, when you incapacitated and when you hanging the ledge. * hint, suggesting you to press the specific button to reflect the settings defined by ConVar. * info, depending on whether somebody used his own pills or found them on the floor. - New requirements: * SourceMod 1.10+ * DHooks Detours v.2.2.0.15+ To make this update works properly, be sure to update the following plugins to the latest version (if you use them): * Health Exploit Fix (for L4D1): https://forums.alliedmods.net/showthread.php?t=314573 * Ledge Release: https://forums.alliedmods.net/showthread.php?t=316508 1.0.2.6 (22-12-2020) - Fixed ugly sound sometimes doesn't disappear (thanks to Re:Creator for fix). 1.0.2.5 (14-Jan-2020) - Added ConVar "l4d_incappedpillspop_show_msg_all" - Show message to all about player selfhelp action (1 - Yes / 0 - No) 1.0.2.4 (19-Mar-2019) - Added ability to selfhelp by picking up pills / adrenaline found on the floor when you are already incapped. - Added missing kill of pills / adrenaline entity. - Added compatibility with HealthExploitFix by Dragokas. - Added colors support in translation file. - Translation file is updated. - Added advertising pills message when player grabbed the ledge. - Added advertising about ability to find pills / adrenaline on the floor when you became incapped. 1.0.2.3 (17-Jan-2019) - Added safe flags to timers. - Added more hooks for reliability. - Fixed "heartbeat" sound is not played when you use pills and become black/white. - Added convar "l4d_disable_heartbeat" to disable heartbeat sound in game at all (by default, not disabled). 1.0.2.2 (28-Dec-2018 ) - Translation file and plugin are updated with phrases about adrenaline (by Mr. Man request). - Added ConVar change hook. - ConVar values are cached for optimization. - Cleared old code, converted to new syntax and methodmaps. - Version number is removed from plugin file name. 1.0.2.1 (05-Nov-2018 ) - Added convar "l4d_incappedpillspop_forbid_when_revivin g" to forbid use pills when somebody revivng you (it is disabled by default). - Added some safe client id pass. - Cached calls to FindSendPropInfo and convar-s. - "lunge_pounce" and "tongue_grab" events are replaced by client prop. checkings (more reliable). - Default incap delay decreased from 2.0 sec to 0.2. - Default delay between "USE" key check decreased from 1.0 to 0.5 sec. - Fixed some cases with timer when it disallow to use pills (replaced by GetEngineTime() and placed on more earlier stage (for reliability). - Config file renamed to l4d_incappedpillspop2.cfg. - Added tranlation into Russian. DonateDonates are very appreciated and welcomed for further inspiration, make me happy, and make next updates came out more often: - Patreon (Paypal) - BitCoin - Ю.Money Attached Files incappedpillspop_v2.0.zip (23.0 KB) Wyświetl pełny artykuł Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi