<div><u><font size="2"><b>About<b></b>:</b></font></u><ul><li>Fixes plugins fighting over the "<tt>m_flLaggedMovementValue</tt>" netprop value.</li>
<li>Multiple plugins can now use this plugin to retrieve the value to set, whilst considering other plugins that may set the speed.</li>
<li>Server owners have the option to combine the speed from plugins setting player speed, or average the speed set by them.</li>
</ul><br /><br /><br /><u><font size="2"><b>Plugins using this:</b></font></u><ul><li><a href="https://forums.allie...d.php?t=334240"target="_blank" rel="noopener">[L4D & L4D2] Weapons Movement Speed</a> (v2.4 or newer) by "Silvers"</li>
<li><a href="https://forums.allie...d.php?t=336751"target="_blank" rel="noopener">[L4D & L4D2] Indomitable Survivor Bot</a> (v1.8 or newer) by "NoroHime"</li>
</ul><br /><br /><br /><u><font size="2"><b>Natives and Information for developers:</b></font></u><br /><div style="margin: 5px;">
<div class="smallfont" style="margin-bottom: 2px;">
<b>Spoiler</b> <input value="Show" style="margin: 0px; padding: 0px; width: 45px; font-size: 10px;" onclick="if(this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != 'inline')
{ this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'inline'; this.innerText = ''; this.value = 'Hide'; }
else
{ this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value='Show'; }" type="button">
</div>
<div class="alt2" style="border: 1px inset; padding: 6px;">
<div class="spoiler" style="display: none;"><ul><li>Suggest viewing "<a href="https://forums.allie...d.php?t=334240"target="_blank" rel="noopener">Weapons Movement Speed</a>" plugin for an implementation example on making this plugin optional.</li>
<li>Highly suggest searching for "Fix movement speed bug when jumping or staggering" in "<a href="https://forums.allie...d.php?t=334240"target="_blank" rel="noopener">Weapons Movement Speed</a>" and adding this section to fix issues when jumping and speed value is set.</li>
</ul><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">/**
<br /> * @brief Given the requested value, returns the required value to set considering all plugins wanting to set the m_flLaggedMovementValue value.
<br /> * @remarks The last plugin requesting this value in the same frame will be the one writing the value.
<br /> * @remarks Typically plugins set the m_flLaggedMovementValue in a PreThinkPost function.
<br /> *
<br /> * @notes Highly suggest viewing "Weapons Movement Speed" plugin by "Silvers" and adding the "Fix movement speed bug when jumping or staggering" code
<br /> * @notes from that plugin to your plugins PreThinkPost function before setting the m_flLaggedMovementValue value. This fixes bugs with the m_flLaggedMovementValue
<br /> * @Notes causing player to jump faster or slower when the value is changed from 1.0.
<br /> *
<br /> * @Notes View the "Weapons Movement Speed" plugin source to make this plugin optionally used if detected.
<br /> * @Notes Example code usage: SetEntPropFloat(client, Prop_Send, "m_flLaggedMovementValue", L4D_LaggedMovement(client, 2.0));
<br /> *
<br /> * @param client Client index of the person we're changing the speed value on
<br /> * @param value The speed we want to set on this player
<br /> * @param forced If forcing the value it will override all other plugins setting the value
<br /> *
<br /> * @return The speed value we need to set
<br /> */
<br /></span><span style="color: #0000BB">native float L4D_LaggedMovement</span><span style="color: #007700">(</span><span style="color: #0000BB">int client</span><span style="color: #007700">, </span><span style="color: #0000BB">float value</span><span style="color: #007700">, </span><span style="color: #0000BB">bool forced </span><span style="color: #007700">= </span><span style="color: #0000BB">false</span><span style="color: #007700">);
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div></div>
</div>
</div><br /><br /><br /><br /><u><font size="2"><b>CVars:</b></font></u><br /><br />Saved to <font color="Green">l4d_lagged_movement.cfg</font> in your servers <font color="Green">cfgsourcemod</font> folder.<br /><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">// When plugins compete to set a players speed value should the final value be: 1=Average of both. 2=Combined value added from both.
<br /></span><span style="color: #0000BB">l4d_lagged_movement_type </span><span style="color: #DD0000">"1"
<br />
<br /></span><span style="color: #FF8000">// Lagged Movement - Plugin Conflict Resolver plugin version.
<br /></span><span style="color: #0000BB">l4d_lagged_movement_version
<br /></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div><br /><br /><u><font size="2"><b>Changes:</b></font></u><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.0 (12-Nov-2022)<br /> - Initial release.</code><hr />
</div><br /><br /><u><font size="2"><b>Installation:</b></font></u><ol style="list-style-type: decimal"><li>Click "<b>Get Plugin</b>" and put the .smx file into your servers <font color="Green">addonssourcemodplugins</font> folder.</li>
</ol></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...09"><strong>GetPlugin</strong></a> or
<a href="https://forums.allie...1668253590">GetSource</a> (l4d_lagged_movement.sp - 5.8 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

[L4D & L4D2] Lagged Movement - Plugin Conflict Resolver (1.0) [12-Nov-2022]
Temat rozp. Adminek AMXX.PL, 12.11.2022 12:46
Brak odpowiedzi do tego tematu
Użytkownicy przeglądający ten temat: 0
0 użytkowników, 0 gości, 0 anonimowych