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] Gravestone Markers - Updated 5/14/2013


  • 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 492
  • Lokalizacja:AMXX.PL
Offline

Napisano 06.05.2013 08:53

<!-- BEGIN TEMPLATE: postbit_external -->
<div>Spawns a tombstone at the corpse of a player when they die (given set conditions).<br />Each player may only have one down at a time.<br /><br /><img src="http://s16.postimg.o...vestones105.png" border="0" alt="" /><br /><br /><font size="5"><b><u>CVARs:</u></b></font><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>revengestone_version</b>: version number, for tracking (don't change)<br /><b>sm_gravestones_mode</b> (2) Mode of Operation [0-4]*<br /><b>sm_gravestones_alert</b> (5) Duration of Notification Popups [0-20]<br /><b>sm_gravestones_distance</b> (300) Max distance gravestones will be visible on hud from [50+]<br /><b>sm_gravestones_time</b> (600) Max time gravestones will exist for (in seconds) [0+]<br /><b>sm_gravestones_bots</b> (1) Allow bots to spawn gravestones [0/1]</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable -->Modes of Operation:<ul><li>Disabled: [0]: Nothing will spawn, hud will not update.</li>
<li>Every Death: [Ratio between 0 and 1]: Chance that stone will drop on a death, (0.25) is 25%, (0.5) is 50%, (1.0) is 100%.</li>
<li>Revenge: [2]: Stones will drop only on revenge kills.</li>
<li>Domination: [3]: Stones will drop only on domination kills.</li>
<li>Revenge+Domination: [4]: Stones will drop on both revenge and domination kills.</li>
</ul><br />When a player dies, an alert with the players name for (sm_gravestones_alert) will be sent to players within viewable range (sm_gravestones_distance) of the marker. When viewing a marker, the line will be displayed for as long as they are looking at it, and are within range (sm_gravestones_distance) of if it. <br /><br />The props are not solid, and shouldn't interfere with combat in any way. They will always spawn pointing downward, but will adjust their angle to terrain normals.<br /><br />The player's name/epitaph index is stored inside of the gravestone prop itself, so it will persist, even if the player leaves the server, or reconnects.<br /><br /><font size="5"><b><u>Configuration File:</u></b></font>:<br />The configuration file consists of lines of text that will appear on the hud to clients looking at the stones.<br />use * to insert the player's name, use | to insert a newline (line break)<br />Do not use newlines in the configuration file (blank text lines) it just reads each one into the array for now :S<br />The file is read into pre-allocated arrays of fixed size. If you need many more, or want them to be extremely long, you may have to recompile the SP and change the defines at the top.<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">Here lies *|Who could replace you?|Anyone with a gun</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable -->Translates to:<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">Here lies Player<br />Who could replace you?<br />Anyone with a gun</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable --><font size="5"><b><u>Commands:</u></b></font><ul><li><b>sm_gravestones_reload</b>: (Rcon) Reloads the configuration file, changes take effect immediately. Markers will be preserved and updated if content is added or changed, but if lines are removed, all existing markers will be destroyed.</li>
<li><b>sm_gravestones</b>: Toggles automatic display of text for users. When automatic display is enabled, users must press alt-fire while looking at a marker to view the text. Name notifications on spawn are also disabled in this mode.</li>
</ul><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">2013-5-6 (v1.0.0)<br />* Initial Release<br /><br />2013-5-6 (v1.0.1)<br />* Fixed bug which would allow a player with semicolon in name to interfere with string deliminator<br /><br />2013-5-6 (v1.0.2)<br />* Fixed array size which could have lead to truncation when really long epitaphs were used<br />* Epitaphs are now stored in dynamic arrays<br />* Added more error handling to files (it will warn if the file is empty, and populate a dummy item)<br />* Added more info when reloading the config file.<br />* Reduction in lines when reloading the config file will destroy all placed markers, to prevent invalid array indexes.<br /><br />2013-5-10(v1.0.4)<br />* Added annotations to appear for a short time to players in radius of the stone when dropped.<br />* Edited sample config list.<br /><br />2013-5-11(v1.0.5)<br />* Annotations now replace hud text.<br />* Added more options to configure when/how markers spawn.<br />* Edited sample config list.<br /><br />2013-5-14(v1.0.6)<br />* Added clientprefs support to allow users to disable viewing of annotation messages automatically.<br />* Added command for clients to toggle automatic annotation popups.<br />* Properly resized the physics model of the gravestones.<br /><br />2013-5-14(v1.0.7)<br />* Added convar to filter bots, by default bots will spawn gravestones.<br />* Reformatted/added a few epitaph lines.<br />* Minor code/formatting cleanup</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable --><font size="5"><b><u>Installation:</u></b></font><ul><li>Place the gravestones.txt file in your &quot;addons/sourcemod/configs&quot; directory</li>
<li>Place the gravestones.smx file in your &quot;addons/sourcemod/plugins&quot; directory.</li>
</ul><br /><font size="5"><b><u>Comments:</u></b></font><ul><li>Some basic prop spawming trace/code was taken from <a href="http://forums.allied...d.php?p=1340412" target="_blank">FortWars</a></li>
<li>Some basic trace/hud code was taken from <a href="http://forums.allied...ad.php?t=157075" target="_blank">Entcontrol</a></li>
</ul></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=119900"><strong>Get Plugin</strong></a> or
<a href="https://forums.allie...38;d=1368583757">Get Source</a> (gravestones.sp - 18.3 KB)


</td>
</tr>
<!-- END TEMPLATE: postbit_attachment --><!-- BEGIN TEMPLATE: postbit_attachment -->
<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...38;d=1368583760">gravestones.smx</a> (13.2 KB)


</td>
</tr>
<!-- END TEMPLATE: postbit_attachment --><!-- BEGIN TEMPLATE: postbit_attachment -->
<tr>
<td><img class="inlineimg" src="https://forums.allie.../attach/txt.gif" alt="File Type: txt" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>


<a href="https://forums.allie...38;d=1368583763">gravestones.txt</a> (1.9 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