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
 

Zdjęcie

L Duke's Tripmines: Reborn 1.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:7170
  • Lokalizacja:AMXX.PL
Offline

Napisano 20.09.2016 05:54

<div><div align="center"><font size="3"><b><u>L Duke's Tripmines: Reborn</u></b></font><br /></div>This was just something I did because I felt like it. It was a really easy fix. Just changed the entity from prop_physics_override to prop_dynamic_override (so it would actually stick to walls), change the way the beam is generated so it doesn't share the same &quot;ent&quot; variable name as the model, and converted 99% of the source code to new syntax (convars haven't been converted to new syntax yet)<br /><br /><font color="Red"><b>I'll eventually update this thing further with additional features and some game detection (because it uses Hint text and that could screw up for games that don't have Hint text) and other fun stuff.</b></font><br /><br />Need proof it's working? Check out these images:<br /><a href="http://i.imgur.com/cM61XXb.jpg"target="_blank">http://i.imgur.com/c...1XXb.jpg</a><br /><a href="http://i.imgur.com/PA7NUsu.jpg" target="_blank">http://i.imgur.com/P...NUsu.jpg</a><br /><br /><b>Compiler needed is 1.8, don't know if it'll compile on the forums (it should) but I provided an SMX just in case</b><br /><br /><font size="3"><b><u>Notes</u></b></font><br /><ul><li>This should work on just about every game...I think. I tested it in TF2 and that's all I've tested it in.</li>
<li>Hint Text may cause issues with some games but as I said above, I plan to update this plugin significantly and add some proper engine detection to handle the Hint Text situation</li>
</ul><br /><br /><font size="3"><b><u>Commands</u></b></font><br />There's only one command in this plugin, and it's a normal publicly-accessible client command, so everyone has access to it.<br /><br /><ul><li><b>sm_tripmine</b> - Places a tripmine (must be facing a wall or ceiling or floor or other object with which tripmines can be placed)</li>
</ul><br /><br />Want to restrict who has access? Simply head over to your server's &quot;admin_overrides.cfg&quot; file and add in the following:<br /><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">&quot;sm_tripmine&quot;&nbsp; &quot;&lt;add flag here&gt;&quot;</code><hr />
</div>Just replace the &quot;&lt;add flag here&gt;&quot; bit with whatever flag you want to restrict it to, i.e. &quot;z&quot; or &quot;b&quot;.<br /><br /><br /><font size="3"><b><u>Convars</u></b></font><br /><ul><li><b>sm_tripmines2016_version</b> - Standard version convar. Do not touch!</li>
<li><b>sm_tripmines_allowed</b> - Number of tripmines to spawn with?<ul><li><b>Default:</b> 3</li>
</ul></li>
<li><b>sm_tripmines_activate_time</b> - Time before the trip beam is activated?<ul><li><b>Default:</b> 2.0</li>
</ul></li>
<li><b>sm_tripmines_model</b> - Model to use for the tripmine?<ul><li><b>Default:</b> &quot;models/props_lab/tpplug.mdl&quot;</li>
</ul></li>
<li><b>sm_tripmines_restrictedteam</b> - Which team should be restricted from getting tripmines?<ul><li><b>Default:</b> 0</li>
<li><b>Usage:</b> This is based off the team number. 0 is Spectator (not that Specs can place tripmines anyway), 1 is RED, 2 is BLU (that's usually the case).</li>
</ul> </li>
</ul> <br /><br /><font size="3"><b><u>Installation Instructions</u></b></font><br /><ol style="list-style-type: decimal"><li>Download tripmines2016.smx and put it into &quot;addons/sourcemod/plugins&quot;</li>
<li>rcon sm plugins load tripmines2016</li>
<li>???</li>
<li>Profit!</li>
</ol><br /><br /><br /><font size="3"><b><u>Version History</u></b></font><br /><div style="margin: 5px;">
<div class="smallfont" style="margin-bottom: 2px;">
<b>Version History</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 /><div style="margin: 5px;">
<div class="smallfont" style="margin-bottom: 2px;">
<b>1.0</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 /><ul><li>Initial release</li>
</ul><br /></div>
</div>
</div><br /></div>
</div>
</div><br /><br /><br /><font size="3"><b><u>Credits</u></b></font><br /><ul><li><b>L Duke</b> - The original tripmine plugin</li>
</ul><br /><br /><br /><font size="3"><b><u>Problems? Suggestions?</u></b></font><br />There shouldn't be any errors or bugs in this plugin, but if you do happen to find any, please let me know on this thread and I'll try my best to correct the issues! And as well, if you have any suggestions for ways to rework my code, or suggestions of new things to add, let me know! Lastly, if you think I should create convars to control other things in this plugin, let me know!</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/sp.gif"alt="File Type: sp" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>


<a href="http://www.sourcemod...96"><strong>GetPlugin</strong></a> or
<a href="https://forums.allie...1474347273">GetSource</a> (tripmines2016.sp - 8.1 KB)


</td>
</tr><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...nes2016.smx</a>(9.4 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