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

[CS:GO] Duck Spamming Fix .


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

Napisano 25.11.2016 07:30

<div>This fixes crouch spamming, could be useful for some people.<br />Well, when I was doing my xdream surf server on cs:go (wich I rarely play), I noticed that there was some duck restriction..<br />So after doing cl_pdump for dumping netvars and see what happened, I saw m_flDuckSpeed being close to 0.<br />What could be done was pretty obvious (for coders), do the following:<br /><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"><br />public Action:OnPlayerRunCmd(client, &amp;buttons, &amp;impulse, Float:vel[3], Float:angles[3], &amp;weapon)<br />{<br />&nbsp; &nbsp; &nbsp; &nbsp; if (!IsInGame(client)) <br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return Plugin_Continue;<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br /><br />&nbsp; &nbsp; &nbsp; &nbsp; new Float:DuckSpeed = GetEntPropFloat(client, Prop_Data, &quot;m_flDuckSpeed&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; if (DuckSpeed &lt; 7.0)<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SetEntPropFloat(client, Prop_Send, &quot;m_flDuckSpeed&quot;, 7.0, 0);<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; return Plugin_Continue;<br />}</code><hr />
</div>I've posted the compiled plugin, maybe some people want it.. Or not. c:<br /><br />Don't forgot that sv_timebetweenducks needs to be set at 0!</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...02"><strong>GetPlugin</strong></a> or
<a href="https://forums.allie...1480062266">GetSource</a> (duckfix.sp - 586 Bytes)


</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