Skocz do zawartości

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
 

Zdjęcie

[TF2] Weapon Pickup Responses


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

#1 Adminek AMXX.PL

    Admin :)

  • Bot

Reputacja: 156
Profesjonalista

  • Postów:7 476
  • Lokalizacja:AMXX.PL
Offline

Napisano 16.07.2016 08:33

<div><a href="https://redd.it/4t079a"target="_blank">Idea stolen from this post.</a><br /><br /><b>Description:<br /></b>Players speak their MvM loot responses when picking up rare weapons.<br /><br />Specifically:<br /><ul><li>Rare loot response:<ul><li>Assassin-grade weapons.</li>
<li>The C.A.P.P.E.R and Giger Counter also fall into this category.</li>
</ul></li>
<li>Ultra rare loot response:<ul><li>Unusual, Elite-grade, or Australium weapons.</li>
<li>Batsaber, Golden Wrench, and the Saxxy also fall into this category.</li>
</ul> </li>
</ul>The weapon rarity depends on a hard-coded list of item defindices.<br /><br />The plugin does not have any externally configurable options (i.e., no config files or ConVars).<br /><br /><b>Things this plugin will clobber:</b><br />The plugin detects weapon pickups by checking that the weapon in a <tt>WeaponEquipPost</tt> event hook is equipped by a different person than the owner.<br />As a result, if you're equipping items that fit one of the criteria mentioned onto players <i>and</i> not setting the account ID before that hook is fired, then the voice response will play.<br /><br /><b>Dependencies:</b><br />Just SDKHooks is absolutely required. Australium detection is handled by checking for the &quot;is australium item&quot; attribute via TF2Attributes.<br /><br /><b>Changelog:</b><br /><ul><li><b>0.1.0</b> (2015-07-16)<ul><li>Rewrote the lookup table handling. Instead of checking the weapon's grading, we just check for its perceived rarity instead. The table is also zero-terminated now, instead of specifying how long it should be.</li>
</ul></li>
<li><b>0.0.2</b> (2015-07-16)<ul><li>Changed weapon pickup detection method. Does not require SourceMod 1.8+ for <tt>OnClientCommandKeyValues_Post</tt> anymore.</li>
<li>This also means picking up a weapon they own (e.g., from killing a player that picked up their weapon) will not trigger the response line.</li>
</ul></li>
<li><b>0.0.1</b> (2015-07-16)<ul><li>Initial release.</li>
</ul> </li>
</ul><a href="https://github.com/n...ickupResponses"target="_blank">Source code and releases on Github.</a></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.allie...attach/smx.gif"alt="File Type: smx" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>


<a href="https://forums.allie...sponses.smx</a>(6.2 KB)


</td>
</tr>
</table>
</fieldset>


</div>

Wyświetl pełny artykuł




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

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