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

[ANY] Bunnyhop Statistics (v1.0.0 09/August/2016)


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

Napisano 09.08.2016 13:41

<div><a href="https://github.com/s...tush/bhopstats"target="_blank"><font size="5">GitHub Repository</font></a><br /><br /><img src="https://api.travis-ci.org/shavitush/bhopstats.svg?branch=master" border="0" alt="" /><br /><br /><font size="4"><b>Bunnyhop Statistics</b></font><br />Bunnyhop Statistics is an API made in SourcePawn for developers that provides bhop related statistics. <br />Made with hope it will be used for the creation of high quality, open sourced anti-cheats or bhop server utilities for Source Engine games. <br /><b>Note</b>: Not tested with autobhop plugins <i>at all</i>, use at your own risk!<br /><br /><font size="3">Download<br /></font>Either download the attached .zip or from the <a href="https://github.com/shavitush/bhopstats/releases" target="_blank">GitHub releases page</a>.<br /><br /><font size="3">Requirements:</font><ul><li><a href="https://www.sourcemod.net/downloads.php" target="_blank">SourceMod 1.8</a> or above.</li>
</ul><br /><font size="3">Forwards</font><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">// Called when the jump key is pressed.<br />// The variable `onground` will be true if the jump key will do anything for the player when tapped.<br />forward void Bunnyhop_OnJumpPressed(int client, bool onground);<br /><br />// Called when the jump key is released.<br />// The variable `onground` will be true if the jump key will do anything for the player when tapped.<br />forward void Bunnyhop_OnJumpReleased(int client, bool onground);<br /><br />// Called when the player touches the ground.<br />forward void Bunnyhop_OnTouchGround(int client);<br /><br />// Called when the player leaves the ground, by either jumping or falling from somewhere.<br />// AKA the HookEventless better version of player_jump.<br />// The `jumped` variable is true if the ground was left by tapping the jump key, or false if the player fell from somewhere.<br />// `ladder` is true if the player left the 'ground' from a ladder.<br />forward void Bunnyhop_OnLeaveGround(int client, bool jumped, bool ladder);</code><hr />
</div><font size="3">Natives: (Methodmap equivalents are also available)</font><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">// Amount of separate +jump inputs since the player left the ground.<br />// The result will be 0 if the player is on ground.<br />native int Bunnyhop_GetScrollCount(int client);<br /><br />// Is the player on ground?<br />// The result will be true if the player is on a ladder or in water, as jumping will be functional.<br />native bool Bunnyhop_IsOnGround(int client);<br /><br />// Is the player holding the jump key?<br />native bool Bunnyhop_IsHoldingJump(int client);<br /><br />// Gets a percentage of perfectly timed bunnyhops.<br />// Resets at player connection or the Bunnyhop_ResetPerfectJumps native for it is called.<br />// Results are from 0.0 to 100.0.<br />native float Bunnyhop_GetPerfectJumps(int client);<br /><br />// Resets the perfect jumps percentage of a player back to 0.0.<br />native void Bunnyhop_ResetPerfectJumps(int client);</code><hr />
</div><font size="3">Methodmaps usage:</font><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">// Class-like<br />BunnyhopStats stats = new BunnyhopStats(client);<br />PrintToServer(&quot;Scroll count: %dnOn ground? %snHolding jump key? %s&quot;, stats.ScrollCount, (stats.OnGround)? &quot;Yes&quot;:&quot;No&quot;, (stats.HoldingJump)? &quot;Yes&quot;:&quot;No&quot;);<br /><br />// Static<br />PrintToServer(&quot;Scroll count: %dnOn ground? %snHolding jump key? %s&quot;, BunnyhopStats.GetScrollCount(client), (BunnyhopStats.IsOnGround(client))? &quot;Yes&quot;:&quot;No&quot;, (BunnyhopStats.IsHoldingJump(client))? &quot;Yes&quot;:&quot;No&quot;);</code><hr />
</div>Report issues <a href="https://github.com/s...ats/issues/new"target="_blank">here</a>.<br />Contribute by sending a pull request <a href="https://github.com/shavitush/bhopstats/compare" target="_blank">here</a>.</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...28"><strong>GetPlugin</strong></a> or
<a href="https://forums.allie...1470746381">GetSource</a> (bhopstats.sp - 5.3 KB)


</td>
</tr><tr>
<td><img class="inlineimg" src="https://forums.allie...attach/inc.gif"alt="File Type: inc" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>


<a href="https://forums.allie...opstats.inc</a>(5.3 KB)


</td>
</tr><tr>
<td><img class="inlineimg" src="https://forums.allie...attach/zip.gif"alt="File Type: zip" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>


<a href="https://forums.allie...s-1.0.0.zip</a>(23.4 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