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] Map Voting Tweaks (2015-10-23)


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

Napisano 24.11.2015 09:31

<div><div align="center"><img src="https://i.imgur.com/VeiSzT1.png"border="0" alt="" /><br /></div><br /><b>Description:<br /></b>Changes the vote panel so it:<br /><ol style="list-style-type: decimal"><li>Resolves the workshop map name to a friendly display name (currently built for 1.7, so I can't take advantage of GetMapDisplayName). Also removes excluded maps (as determined by the MapChooser plugin).</li>
<li>Hooks the &quot;callvote&quot; command, handling it if it's a NextLevel vote and resolving display names back into workshop names if necessary.</li>
<li>Optionally overrides the vote call, allowing clients to use the vote panel to nominate a map instead.</li>
</ol><b>ConVars:</b><br /><ul><li><b>sm_tfmapvote_version</b>: Plugin version.</li>
<li><b>sm_tfmapvote_nominate</b> (default true): Whether &quot;next map&quot; vote calls should be treated as map nominations.</li>
<li><b>sm_tfmapvote_exclude</b> (default true): Whether recent maps (as determined by <font face="Courier New">GetExcludeMapList</font>) are removed from the vote panel.</li>
</ul><b>Things the plugin will clobber:</b><br />The plugin modifies the user data of the first entry in the <font face="Courier New">ServerMapCycle</font> string table, which <a href="https://github.com/V...vote.cpp#L1465"target="_blank">stores the map cycle for the voting panel</a>. Honestly, I don't know if it's used for anything else. I've spent a long night testing the <i>crap</i> out of this plugin, and I can't find any other side effects of modifying that table, so it <i>should</i> be okay.<br /><br /><u>Also, the plugin does not resolve <font face="Courier New">ChangeLevel</font> vote calls yet</u>, if you're using that vote option. Attempting to call a <font face="Courier New">ChangeLevel</font> vote on a Workshop map will probably result in an error claiming that the map doesn't exist.<br /><br />This plugin will try to clean up and restore something that resembles the original ServerMapCycle table when unloaded, so if A VERY BAD THING™ happens, you can unload it and things should act like the plugin was never there. I'm pretty sure that the table gets regenerated on map change, too.<br /><br /><b>Dependencies:</b><br />Currently requires MapChooser to perform map nominations and get map exclusions. I'll have to see if this can be an optional dependency eventually.<br /><br /><b>Changelog:</b><br /><ul><li><b>0.1.1</b> (2015-10-23)<ul><li>Initial public release.</li>
</ul> </li>
</ul><a href="https://github.com/n...apVotingTweaks"target="_blank">Source code 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/sp.gif"alt="File Type: sp" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>


<a href="http://www.sourcemod...93"><strong>GetPlugin</strong></a> or
<a href="https://forums.allie...1448353578">GetSource</a> (tf_map_voting_tweaks.sp - 10.6 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