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

[L4D & L4D2] Lagged Movement - Plugin Conflict Resolver (1.0) [12-Nov-2022]


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

Napisano 12.11.2022 12:46

<div><u><font size="2"><b>About<b></b>:</b></font></u><ul><li>Fixes plugins fighting over the &quot;<tt>m_flLaggedMovementValue</tt>&quot; 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 &amp; L4D2] Weapons Movement Speed</a> (v2.4 or newer) by &quot;Silvers&quot;</li>
<li><a href="https://forums.allie...d.php?t=336751"target="_blank" rel="noopener">[L4D &amp; L4D2] Indomitable Survivor Bot</a> (v1.8 or newer) by &quot;NoroHime&quot;</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 &quot;<a href="https://forums.allie...d.php?t=334240"target="_blank" rel="noopener">Weapons Movement Speed</a>&quot; plugin for an implementation example on making this plugin optional.</li>
<li>Highly suggest searching for &quot;Fix movement speed bug when jumping or staggering&quot; in &quot;<a href="https://forums.allie...d.php?t=334240"target="_blank" rel="noopener">Weapons Movement Speed</a>&quot; 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 />&nbsp;*&nbsp;@brief&nbsp;Given&nbsp;the&nbsp;requested&nbsp;value,&nbsp;returns&nbsp;the&nbsp;required&nbsp;value&nbsp;to&nbsp;set&nbsp;considering&nbsp;all&nbsp;plugins&nbsp;wanting&nbsp;to&nbsp;set&nbsp;the&nbsp;m_flLaggedMovementValue&nbsp;value.
<br />&nbsp;*&nbsp;@remarks&nbsp;The&nbsp;last&nbsp;plugin&nbsp;requesting&nbsp;this&nbsp;value&nbsp;in&nbsp;the&nbsp;same&nbsp;frame&nbsp;will&nbsp;be&nbsp;the&nbsp;one&nbsp;writing&nbsp;the&nbsp;value.
<br />&nbsp;*&nbsp;@remarks&nbsp;Typically&nbsp;plugins&nbsp;set&nbsp;the&nbsp;m_flLaggedMovementValue&nbsp;in&nbsp;a&nbsp;PreThinkPost&nbsp;function.
<br />&nbsp;*
<br />&nbsp;*&nbsp;@notes&nbsp;Highly&nbsp;suggest&nbsp;viewing&nbsp;"Weapons&nbsp;Movement&nbsp;Speed"&nbsp;plugin&nbsp;by&nbsp;"Silvers"&nbsp;and&nbsp;adding&nbsp;the&nbsp;"Fix&nbsp;movement&nbsp;speed&nbsp;bug&nbsp;when&nbsp;jumping&nbsp;or&nbsp;staggering"&nbsp;code
<br />&nbsp;*&nbsp;@notes&nbsp;from&nbsp;that&nbsp;plugin&nbsp;to&nbsp;your&nbsp;plugins&nbsp;PreThinkPost&nbsp;function&nbsp;before&nbsp;setting&nbsp;the&nbsp;m_flLaggedMovementValue&nbsp;value.&nbsp;This&nbsp;fixes&nbsp;bugs&nbsp;with&nbsp;the&nbsp;m_flLaggedMovementValue
<br />&nbsp;*&nbsp;@Notes&nbsp;causing&nbsp;player&nbsp;to&nbsp;jump&nbsp;faster&nbsp;or&nbsp;slower&nbsp;when&nbsp;the&nbsp;value&nbsp;is&nbsp;changed&nbsp;from&nbsp;1.0.
<br />&nbsp;*
<br />&nbsp;*&nbsp;@Notes&nbsp;View&nbsp;the&nbsp;"Weapons&nbsp;Movement&nbsp;Speed"&nbsp;plugin&nbsp;source&nbsp;to&nbsp;make&nbsp;this&nbsp;plugin&nbsp;optionally&nbsp;used&nbsp;if&nbsp;detected.
<br />&nbsp;*&nbsp;@Notes&nbsp;Example&nbsp;code&nbsp;usage:&nbsp;SetEntPropFloat(client,&nbsp;Prop_Send,&nbsp;"m_flLaggedMovementValue",&nbsp;L4D_LaggedMovement(client,&nbsp;2.0));
<br />&nbsp;*
<br />&nbsp;*&nbsp;@param&nbsp;client&nbsp;&nbsp;&nbsp;&nbsp;Client&nbsp;index&nbsp;of&nbsp;the&nbsp;person&nbsp;we're&nbsp;changing&nbsp;the&nbsp;speed&nbsp;value&nbsp;on
<br />&nbsp;*&nbsp;@param&nbsp;value&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The&nbsp;speed&nbsp;we&nbsp;want&nbsp;to&nbsp;set&nbsp;on&nbsp;this&nbsp;player
<br />&nbsp;*&nbsp;@param&nbsp;forced&nbsp;&nbsp;&nbsp;&nbsp;If&nbsp;forcing&nbsp;the&nbsp;value&nbsp;it&nbsp;will&nbsp;override&nbsp;all&nbsp;other&nbsp;plugins&nbsp;setting&nbsp;the&nbsp;value
<br />&nbsp;*
<br />&nbsp;*&nbsp;@return&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The&nbsp;speed&nbsp;value&nbsp;we&nbsp;need&nbsp;to&nbsp;set
<br />&nbsp;*/
<br /></span><span style="color: #0000BB">native&nbsp;float&nbsp;L4D_LaggedMovement</span><span style="color: #007700">(</span><span style="color: #0000BB">int&nbsp;client</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">float&nbsp;value</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">bool&nbsp;forced&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">false</span><span style="color: #007700">);&nbsp;
<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">//&nbsp;When&nbsp;plugins&nbsp;compete&nbsp;to&nbsp;set&nbsp;a&nbsp;players&nbsp;speed&nbsp;value&nbsp;should&nbsp;the&nbsp;final&nbsp;value&nbsp;be:&nbsp;1=Average&nbsp;of&nbsp;both.&nbsp;2=Combined&nbsp;value&nbsp;added&nbsp;from&nbsp;both.
<br /></span><span style="color: #0000BB">l4d_lagged_movement_type&nbsp;</span><span style="color: #DD0000">"1"
<br />
<br /></span><span style="color: #FF8000">//&nbsp;Lagged&nbsp;Movement&nbsp;-&nbsp;Plugin&nbsp;Conflict&nbsp;Resolver&nbsp;plugin&nbsp;version.
<br /></span><span style="color: #0000BB">l4d_lagged_movement_version&nbsp;
<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 />&nbsp; &nbsp; - Initial release.</code><hr />
</div><br /><br /><u><font size="2"><b>Installation:</b></font></u><ol style="list-style-type: decimal"><li>Click &quot;<b>Get Plugin</b>&quot; 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ł




Użytkownicy przeglądający ten temat: 0

0 użytkowników, 0 gości, 0 anonimowych