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

[L4D2] MixMap - (1.1) [22/Oct/2023]


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

Napisano 22.10.2023 04:51

<div><div align="center"><br /><iframe width="420" height="315" src="https://www.youtube....lyVtpDpE?rel=0"frameborder="0" allowfullscreen></iframe><br /></div><b>About<b></b>:</b><ul><li>Random map at the map transition.</li>
<li>Support player item transition. (using valve landmark and changelevel entity)</li>
<li>Support setting the maximum of random map that can be triggered throughout the process from first map to final map.</li>
<li>Support add map to random map list setting.</li>
</ul><br /><b>Requirements:</b><ul><li> <b>Sourcemod 1.11+</b></li>
</ul><br /><b>Admin Commands: (requires &quot;z&quot; flag)</b><br /><div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">PHP Code:</div>
<div class="alt2">
<hr />
<code style="white-space:nowrap">
<div dir="ltr" style="text-align:left;">
<!-- php buffer start --><code><span style="color: #000000">
<span style="color: #0000BB"></span><span style="color: #FF8000">//&nbsp;add&nbsp;map&nbsp;to&nbsp;random&nbsp;map&nbsp;list&nbsp;(If&nbsp;the&nbsp;required&nbsp;requirements&nbsp;are&nbsp;met)
<br /></span><span style="color: #0000BB">sm_rm_addconfig
<br /></span><span style="color: #FF8000">//&nbsp;reload&nbsp;random&nbsp;map&nbsp;list
<br /></span><span style="color: #0000BB">sm_rm_reload&nbsp;
<br /></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div><b>CVars:</b><br /><div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">PHP Code:</div>
<div class="alt2">
<hr />
<code style="white-space:nowrap">
<div dir="ltr" style="text-align:left;">
<!-- php buffer start --><code><span style="color: #000000">
<span style="color: #0000BB"></span><span style="color: #FF8000">//&nbsp;0&nbsp;-&nbsp;plugin&nbsp;disable,&nbsp;1&nbsp;-&nbsp;plugin&nbsp;enable
<br /></span><span style="color: #0000BB">random_map_enable&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">1
<br />
<br /></span><span style="color: #FF8000">//&nbsp;Chance&nbsp;of&nbsp;random&nbsp;map&nbsp;in&nbsp;map&nbsp;transition
<br /></span><span style="color: #0000BB">random_map_chance&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">0.5
<br />
<br /></span><span style="color: #FF8000">//&nbsp;0&nbsp;=&nbsp;Use&nbsp;the&nbsp;entire&nbsp;random&nbsp;list,&nbsp;1&nbsp;=&nbsp;Use&nbsp;only&nbsp;official&nbsp;maps&nbsp;from&nbsp;random&nbsp;list
<br /></span><span style="color: #0000BB">random_map_only_official&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">1
<br />
<br /></span><span style="color: #FF8000">//&nbsp;Maximum&nbsp;number&nbsp;of&nbsp;random&nbsp;maps&nbsp;that&nbsp;can&nbsp;be&nbsp;triggered&nbsp;throughout&nbsp;the&nbsp;entire&nbsp;process&nbsp;from&nbsp;the&nbsp;first&nbsp;map&nbsp;to&nbsp;the&nbsp;final&nbsp;map
<br /></span><span style="color: #0000BB">random_map_max_mix_count&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">5&nbsp;
<br /></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div><b>Known Issue:</b><ul><li>If the item carried during the transition do not exist on the map after the transition, they will disappear or report an error. <b>(ex. Melee weapons not unlocked on post-transition map)</b></li>
<li>If you unload the plugin on the way to use it, it will cause the safehouse items to be misplaced during the first transition to the map.</li>
<li>Due to the mismatch between the size of the safe house after triggering the random transition and the size of the safe house before the transition, some players will be outside the map or outside the safe house. <b>(this plugin use team warp to temporarily avoid this issue)</b></li>
</ul><br /><b>ChangeLog:</b><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">1.1 - use warp_to_start_area command avoid transitioned to outside safe house.<br />1.0 - Initial release.</code><hr />
</div><b>Thanks:</b><ul><li> <b>Silvers</b> - Source of the IsFirstMapInScenario method (in Left 4 DHooks Direct)</li>
<li> <b>sorallll</b> - Some help on the code and fix player_transitioned event not working properly in 4+ player.</li>
</ul><br /><b>Installation:</b><ul><li> Download &quot;l4d2_mix_map.cfg&quot; and put into your servers addonssourcemoddata folder.</li>
<li> Download &quot;l4d2_mix_map.txt&quot; and put into your servers addonssourcemodgamedata folder.</li>
<li> Download &quot;l4d2_mix_map.sp&quot; and put into your servers addonssourcemodscripting folder.</li>
<li> Compiling plugin and put into your servers addonssourcemodplugins folder.</li>
</ul></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="https://www.sourcemo...38"><strong>GetPlugin</strong></a> or
<a href="https://forums.allie...1697943839">GetSource</a> (l4d2_mix_map.sp - 21.2 KB)


</td>
</tr><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...mix_map.txt</a>(2.2 KB)


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


<a href="https://forums.allie...mix_map.cfg</a>(2.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