[TFC] Teleporter arrows
Adminek AMXX.PL
17.03.2015
<div>One problem with TFC's teleporters is that you don't know where they lead to. There's a Metamod plugin running on Drippy's 2fort which works great, however it's private AFAIK. I decided to write my own. It sorta works, however it has some flaws.<br /><br />Difficulty with AMXX is that it doesn't give access to certain private entity data of buildings, such as owner of a teleporter and whether it's entrance or exit. There is a modified TFCX module, however it's very old and never made its way into official AMXX, so I'm using a work-around. To get hold of the necessary info, I'm tracking players as they teleport, and make a correlation between teleporters this way. Disadvantage with this method is that when the teleporters are originally built, there is no arrow yet as no one has used the teleporter yet. For anyone interested, the modified TFCX module (which I'm *not* using) can be found <a href="https://forums.allie...638#post465638"target="_blank"><u>here</u></a>.<br /><br />I made two versions. The first one draws arrows from the entrance all the way to the exit, across the whole map if necessary. These teleporter routes are only visible by the corresponding team and by spectators.<br /><br />The 2nd version is the standard approach, that is drawing a single arrow above the tele entrance.<br /><br />v1<br /><br /><img src="http://cloud-4.steamusercontent.com/ugc/32988355002105902/76923260D9D88119D04D7DD4D4F9C641C053FF9D/" border="0" alt="" /><br /><br />v2<br /><br /><img src="http://cloud-4.steamusercontent.com/ugc/32988355005300423/AFC009EC6DC82A21AB1F7A1BC4848F3A5DEF41AC/" border="0" alt="" /></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/sma.gif"alt="File Type: sma" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>
<a href="http://www.amxmodx.o...95"><strong>GetPlugin</strong></a> or
<a href="https://forums.allie...1426553435">GetSource</a> (tele_arrows.sma - 2.7 KB)
</td>
</tr><tr>
<td><img class="inlineimg" src="https://forums.allie...attach/sma.gif"alt="File Type: sma" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>
<a href="http://www.amxmodx.o...96"><strong>GetPlugin</strong></a> or
<a href="https://forums.allie...1426553435">GetSource</a> (tele_arrows2.sma - 3.0 KB)
</td>
</tr>
</table>
</fieldset>
</div>
Wyświetl pełny artykuł
<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/sma.gif"alt="File Type: sma" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>
<a href="http://www.amxmodx.o...95"><strong>GetPlugin</strong></a> or
<a href="https://forums.allie...1426553435">GetSource</a> (tele_arrows.sma - 2.7 KB)
</td>
</tr><tr>
<td><img class="inlineimg" src="https://forums.allie...attach/sma.gif"alt="File Type: sma" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>
<a href="http://www.amxmodx.o...96"><strong>GetPlugin</strong></a> or
<a href="https://forums.allie...1426553435">GetSource</a> (tele_arrows2.sma - 3.0 KB)
</td>
</tr>
</table>
</fieldset>
</div>
Wyświetl pełny artykuł