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

[ANY] Trigger 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
Profesjonalista

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

Napisano 22.08.2013 17:54

<!-- BEGIN TEMPLATE: postbit_external -->
<div>Although I have been using SourceMod and coding private plugins for some time, this is my very first public release, but I felt it to be useful enough to release at large.<br /><br />The inspiration for this plugin was the &quot;Trigger Mapentities&quot; plugin written by <a href="https://forums.allie...ber.php?u=30457" target="_blank">HSFighter</a>. It had been a useful device for map development and testing, not to mention the occasional prank. However, we soon learned its limitations, such as requiring the class name to be able to fire the event. It also couldn't accept input values.<br /><br />This is the result of my development to create a better version. It basically mimics the function of the &quot;ent_fire&quot; cheat command, enabling the triggering of any and all matching entities complete with optional input, but without spoiling your session by activating cheat mode.<br /><br />I only delve into Team Fortress 2, but the basic nature of this plugin should render it mod-agnostic.<br />No CVARs are used other than the version CVAR &quot;sm_trigger_version&quot;.<br />It's as simple as loading it to enable the commands and unloading it to remove them.<br /><br />The plugin provides two commands, both with high restrictions due to their technical or powerful nature:<br /><br /><ul><li><b>sm_trigger &lt;entity&gt; [input] [value]</b><br />(<b>ROOT</b> privilege required)<br />This is the command as described. Just use an entity's name or * wildcard and an input and value if desired. It should act just like the <i>ent_fire</i> command should.</li>
<li><b>sm_findentity &lt;entity&gt;</b><br />(Server command only)<br />This is a debugging command I used alongside this one and uses the same entity tracking feature. It will list all entities matching your input, complete with number, actual name, and class name.</li>
</ul>Standard disclaimers apply. You assume all responsibility for the use of this plugin. Having said that, I sincerely hope this plugin is of use to anyone. I know it has been for myself.</div>


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








<fieldset class="fieldset">
<legend>Attached Files</legend>
<table cellpadding="0" cellspacing="3" border="0">
<!-- BEGIN TEMPLATE: postbit_attachment -->
<tr>
<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>
<td>


<a href="http://www.sourcemod...?file_id=124628"><strong>Get Plugin</strong></a> or
<a href="https://forums.allie...38;d=1377190330">Get Source</a> (trigger.sp - 11.2 KB)


</td>
</tr>
<!-- END TEMPLATE: postbit_attachment -->
</table>
</fieldset>


</div>

<!-- 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