Skocz do zawartości

  • Zaloguj korzystając z Facebooka Zaloguj korzystając z Twittera Zaloguj przez Steam Zaloguj poprzez Google      Logowanie »   
  • Rejestracja

Witamy w Nieoficjalnym polskim support'cie AMX Mod X

Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.

  • Rozpoczynaj nowe tematy i odpowiedaj na inne
  • Zapisz się do tematów i for, aby otrzymywać automatyczne uaktualnienia
  • Dodawaj wydarzenia do kalendarza społecznościowego
  • Stwórz swój własny profil i zdobywaj nowych znajomych
  • Zdobywaj nowe doświadczenia

Dołączona grafika Dołączona grafika

Guest Message by DevFuse


[TF2] Medic's Anti-Projectile Shield v1.0

  • Nie możesz napisać tematu
  • Zaloguj się, aby dodać odpowiedź
Brak odpowiedzi do tego tematu

#1 Adminek AMXX.PL

    Admin :)

  • Bot

Reputacja: 156

  • Postów:7116
  • Lokalizacja:AMXX.PL

Napisano 16.05.2014 00:23

<!-- BEGIN TEMPLATE: postbit_external -->
<div><font size="4"><b><u>Medic's Anti-Projectile Shield</u></b></font><br /><img src="" 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>
</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>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'; }
{ this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value='Show'; }" type="button">
<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 />
<!-- END TEMPLATE: bbcode_code_printable --></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>

<br /> <div style="padding:6px">

<fieldset class="fieldset">
<legend>Attached Files</legend>
<table cellpadding="0" cellspacing="3" border="0">
<!-- BEGIN TEMPLATE: postbit_attachment -->
<td><img class="inlineimg" src="https://forums.allie...s/attach/sp.gif" alt="File Type: sp" width="16" height="16" border="0" style="vertical-align:baseline" /></td>

<a href="http://www.sourcemod...?file_id=133539"><strong>Get Plugin</strong></a> or
<a href="https://forums.allie...38;d=1400196141">Get Source</a> (TF2_MedicMvMShield.sp - 3.2 KB)

<!-- END TEMPLATE: postbit_attachment -->


<!-- END TEMPLATE: postbit_external -->

Wyświetl pełny artykuł

Użytkownicy przeglądający ten temat: 0

0 użytkowników, 0 gości, 0 anonimowych