GLOBALELITE.PL GLOBALELITE.pl 83 Napisano 15 Maja 2017 Share Napisano 15 Maja 2017 <div>Before I start explaining, I must say that I'm generally a bad scripter but I made this plugin and no bugs were found in the tests.<br /><br />The plugin when the cvar is set to 1 sends any player that spawns near safe room door to ghost, preventing him from exploiting a bug that allows him to "teleport" to inside.<br /><br />There is only one cvar, which is "l4d2_anti_breach".<br />When the cvar is set to 0, the plugin is disabled.<br />When the cvar is set to 1, the plugin is enabled.<br />When the cvar is set to 2, the plugin kills any player infected that spawn from 150 units to the safe room door without attempting to send them to ghost state.<br /><br />If you don't add the game data, the cvar set to 1 acts as if it were set to 2.<br /><br />Other than tutorials, I took some of the code from these locations:<br />1. InfectedForceGhost from InfectedAPI ( <a href="https://forums.alliedmods.net/archive/index.php/t-114979.html"target="_blank" rel="noopener">https://forums.alliedmods.net/archiv.../t-114979.html</a> )<br />2. Locating all entities that exist from Silvers' response to my question. ( <a href="https://forums.alliedmods.net/showpost.php?p=2502446&postcount=2" target="_blank" rel="noopener">https://forums.alliedmods.net/showpo...46&postcount=2</a> )<br />3. The classname of the safe room door from l4d_loading. ( <a href="https://forums.alliedmods.net/showthread.php?p=836849" target="_blank" rel="noopener">https://forums.alliedmods.net/showthread.php?p=836849</a> )<br /><br />Please comment if you find any problems with the plugin.</div> <br /> <div style="padding:6px"> <fieldset class="fieldset"> <legend>Attached Files</legend> <table cellpadding="0" cellspacing="3" border="0"> <tr> <td><img class="inlineimg" src="https://forums.alliedmods.net/images/attach/sp.gif"alt="File Type: sp" width="16" height="16" border="0" style="vertical-align:baseline" /></td> <td> <a href="http://www.sourcemod.net/vbcompiler.php?file_id=162802"><strong>GetPlugin</strong></a> or <a href="https://forums.alliedmods.net/attachment.php?attachmentid=162802&d=1494874706">GetSource</a> (AntiBreach.sp - 3.8 KB) </td> </tr><tr> <td><img class="inlineimg" src="https://forums.alliedmods.net/images/attach/txt.gif"alt="File Type: txt" width="16" height="16" border="0" style="vertical-align:baseline" /></td> <td> <a href="https://forums.alliedmods.net/attachment.php?attachmentid=162803&d=1494874706">l4d2_anti_breach.txt</a>(685 Bytes) </td> </tr> </table> </fieldset> </div> Wyświetl pełny artykuł Odnośnik do odpowiedzi Udostępnij na innych stronach
Rekomendowane odpowiedzi