<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 "z" 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">// add map to random map list (If the required requirements are met)
<br /></span><span style="color: #0000BB">sm_rm_addconfig
<br /></span><span style="color: #FF8000">// reload random map list
<br /></span><span style="color: #0000BB">sm_rm_reload
<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">// 0 - plugin disable, 1 - plugin enable
<br /></span><span style="color: #0000BB">random_map_enable </span><span style="color: #007700">= </span><span style="color: #0000BB">1
<br />
<br /></span><span style="color: #FF8000">// Chance of random map in map transition
<br /></span><span style="color: #0000BB">random_map_chance </span><span style="color: #007700">= </span><span style="color: #0000BB">0.5
<br />
<br /></span><span style="color: #FF8000">// 0 = Use the entire random list, 1 = Use only official maps from random list
<br /></span><span style="color: #0000BB">random_map_only_official </span><span style="color: #007700">= </span><span style="color: #0000BB">1
<br />
<br /></span><span style="color: #FF8000">// Maximum number of random maps that can be triggered throughout the entire process from the first map to the final map
<br /></span><span style="color: #0000BB">random_map_max_mix_count </span><span style="color: #007700">= </span><span style="color: #0000BB">5
<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 "l4d2_mix_map.cfg" and put into your servers addonssourcemoddata folder.</li>
<li> Download "l4d2_mix_map.txt" and put into your servers addonssourcemodgamedata folder.</li>
<li> Download "l4d2_mix_map.sp" 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ł
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.
|
Guest Message by DevFuse

[L4D2] MixMap - (1.1) [22/Oct/2023]
Temat rozp. Adminek AMXX.PL, 22.10.2023 04:51
Brak odpowiedzi do tego tematu
Użytkownicy przeglądający ten temat: 0
0 użytkowników, 0 gości, 0 anonimowych