<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, &buttons, &impulse, Float:vel[3], Float:angles[3], &weapon)<br />{<br /> if (!IsInGame(client)) <br /> {<br /> return Plugin_Continue;<br /> }<br /><br /> new Float:DuckSpeed = GetEntPropFloat(client, Prop_Data, "m_flDuckSpeed");<br /> <br /> if (DuckSpeed < 7.0)<br /> {<br /> SetEntPropFloat(client, Prop_Send, "m_flDuckSpeed", 7.0, 0);<br /> }<br /> <br /> 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ł
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
[CS:GO] Duck Spamming Fix .
Temat rozp.
Adminek AMXX.PL
, 25.11.2016 07:30
Brak odpowiedzi do tego tematu
Użytkownicy przeglądający ten temat: 0
0 użytkowników, 0 gości, 0 anonimowych