<!-- BEGIN TEMPLATE: postbit_external -->
<div><font size="4"><b><u>Medic's Anti-Projectile Shield</u></b></font><br /><img src="http://i.imgur.com/xL32u0g.jpg" border="0" alt="" /><br /><i>(Image taken from a Steam &quot;Guide&quot; on MvM)</i><br /><br />Yes, I've finally released it, albeit in a very early state. I had to release it in such an early state because due to unforeseen circumstances, I was unable to work on adding in many of the things in the To Do section below. You could call this plugin a &quot;basic bitch&quot;. It's about as basic as a plugin can get, but it works. Simply bind either sm_shield or sm_shield2 to a key and press that bind as a Medic and you're using the Anti-Projectile shield!<br /><br />There's no limitations coded in; both commands are &quot;public access&quot; so anyone can use them. The shields last for about 10 seconds (don't ask me to change this because I can't. that limit is hardcoded), and once the shield disappears, you have to wait 60 seconds (this is changeable if you edit the plugin) before using the shield again. The bigger level 2 shield is usable, but apparently the hitbox or collision detection or some shit isn't proper and uses the level 1 shield's hitbox. Dunno how to change that either, so don't ask.<br /><br /><b>This plugin will also be logged automatically by HLStatsX. I did not code it to do so however. HLStats just kinda detects kills that players get via the damage the shield does to enemies, and logs these kills under the logclassname &quot;entity_medigun_shield&quot;. I don't know of any way to stop HLStats from tracking this, so you may want to get designing a fancy-ass shield icon for your HLStats &quot;Weapons&quot; pages!</b><br /><br /><br /><font size="4"><b><u>Commands</u></b></font><ul><li><b>sm_shield</b> - Use the Medic's Anti-Projectile Shield!</li>
<li><b>sm_shield2</b> - Use the Medic's Anti-Projectile Shield (Level 2)!</li>
</ul><br /><br /><font size="4"><b><u>ConVars</u></b></font><ul><li><b>sm_medicshield_version</b> - Standard version ConVar, nothing to see here.</li>
</ul><br /><br /><font size="4"><b><u>Installation</u></b></font><ol style="list-style-type: decimal"><li>Download TF2_MedicMvMShield.smx</li>
<li>Place the file in sourcemod/plugins folder.</li>
<li>Load the plugin up ingame via RCON <i>(rcon sm plugins load TF2_MedicMvMShield.smx)</i></li>
<li>???</li>
<li>Profit!</li>
</ol><br /><br /><font size="4"><b><u>Credits</u></b></font><ul><li><b>I'll fill this out eventually. I have to track down the dude who first released the snippet of how to spawn the Medic's shield, and also the dude who provided the code for using the level 2 shield model.</b></li>
</ul><br /><br /><font size="4"><b><u>To Do</u></b></font><ul><li>Further restrict how this command is used so that you not only need to be a Medic, but you need to have your Medigun out in order for the shield to appear.</li>
<li>Kill the shield if you switch from your Medigun to your primary/melee.</li>
<li>Add CheckCommandAccess thingamajig so people can make this a donator feature if they want to <i>(though I know of two or three servers run by good friends of mine that already offer this shield as a Donator feature because I hard-coded up Donator flag-using versions for their servers. What? Bros before hoes!)</i></li>
<li>Maybe add something where if you have full Ubercharge, you'll spawn the Level 2 shield, but if you don't have full Ubercharge you'll instead spawn the Level 1 shield.</li>
<li>Add a convar so you can change how long the wait time is between spawning shields.</li>
<li>UPDATER SUPPORT.</li>
<li>Probably something else that I've forgotten.</li>
</ul><br /><br /><font size="4"><b><u>Known Bugs</u></b></font><ul><li>If you die during the shield's 10 second lifetime, if the server has any amount of respawn time, you can control the shield while waiting to respawn and it will continue to damage any who touch it until its 10 second lifetime is up. I'm too dumb to figure out how to target an entity spawned by a specific player and kill it without killing every other instance of that entity. <b>halp me plz</b></li>
</ul> <br /><br /><font size="4"><b><u>Change Log</u></b></font><br /><div style="margin: 5px;">
<div class="smallfont" style="margin-bottom: 2px;">
<b>Spoiler</b> <input value="Show" style="margin: 0px; padding: 0px; width: 45px; font-size: 10px;" onclick="if(this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != 'inline')
{ this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'inline'; this.innerText = ''; this.value = 'Hide'; }
else
{ this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value='Show'; }" type="button">
</div>
<div class="alt2" style="border: 1px inset; padding: 6px;">
<div class="spoiler" style="display: none;"><br /><!-- BEGIN TEMPLATE: bbcode_code_printable -->
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">Code:</div>
<hr /><code style="margin:0px" dir="ltr" style="text-align:left"><b><u>Version 1.0 - May 15th, 2014</u></b><br />* Initial release</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable --></div>
</div>
</div><br /><br /><br /><font size="4"><b><u>Bugs? Errors? Suggestions? Comments?</u></b></font><br />If you encounter any bugs, or notice any errors in your error logs stemming from this plugin, please post a reply and include as much information about the bug, or the full error listing from your logs, so I can fix this if necessary!<br /><br />As for comments or suggestions, again, just post a reply! I won't bite :wink:</div>