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

[TF2] AFK PLAYER MEDIC BOT (controls player's client) 9 JAN 2015


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

Napisano 09.01.2015 21:16

<!-- BEGIN TEMPLATE: postbit_external -->
<div>Allows your admins to go afk medic bot AND does not spawn bots to replace them. It also works with a afk_manager to force players to afk medic bot when they go afk instead of sending them to spec.<br /><br /><br /><b>How does this work?</b><br /><br />This plugin creates a &quot;bot like effect&quot; except that it <u>is not a bot</u> or does not reuse any bot code from team fortress 2. This plugin is actually is a bit less smart than regular bots, as the move around code is crude. <u>It does not use any teleportation to move players around!</u> It does not force teleport on the player, because players will complain about not being able to kill your a teleporting medic, so this plugin refrains from teleporting to move around. This plugin using velocity to move players around via OnPlayerRunCmd <a href="https://sm.alliedmod...38;id=937&#38;"target="_blank">https://sm.alliedmod...id=937&#38;</a> ... so it actually does not use any button commands, but instead it uses vel[] from the OnPlayerRunCmd to control where it goes. It uses TR_TraceRayFilter <a href="https://sm.alliedmods.net/api/index.php?fastload=show&amp;id=233&amp;" target="_blank">https://sm.alliedmod...id=233&#38;</a> in order to help the plugin see if it needs to move left or right.<br /><br />If a player yells &quot;medic&quot; via their voicemenu command, and they are close to a player whom is in afk player bot medic mode, then that medic will retarget to them and they will be the new owner of a afk player bot medic.<br /><br />If a pyro pushes a afk player medic bot away from it's controller, it will clear it's memory of that controller and start searching for a new controller.<br /><br /><br />Dependencies:<br /><br />I've included everything to make it run stand alone, but if you compile it using the web compiler, you will not gain all features in the plugin.<br /><br />It requires <b>sdkhooks</b> if you want the medic bot to respond to being hit by damage and triggering it's uber charge in response.<br /><br />It requires <b>my verison of the afk_manager</b>. Credits for creating it goes to <a href="https://forums.alliedmods.net/showthread.php?p=708265" target="_blank">https://forums.allie...hp?p=708265</a> BUT, you'll still need my version of it, because I've created a special interface that allows this plugin to work with the afk_manager plugin so that when a player goes afk, it will put them into afk bot mode instead. (If more than 4 players go afk, the afk manager will act normally).<br /><br />It will try to include colors or morecolors, but if they don't exists, its fine.<br /><br />It will try to include smlib, but if you don't have it, its fine.<br /><br /><br /><u><b>Commands:</b></u><br /><br />Admin Commands:<br /><br /><b>afkon</b> - requires ADMFLAG_KICK - puts admin into afk mode (admin still has to switch to medic on his/her own)<br /><br /><b>afkoff</b> - requires ADMFLAG_KICK - removes afk mode from admin<br /><br /><b>forceclass</b> - requires ADMFLAG_ROOT - forces a player into medic class. Usage: forceclass userid Don't use # sign in that. Example: forceclass 123<br /><br /><b>forceafkon</b> - requires ADMFLAG_ROOT - forces a player into afk mode. Usage: forceafkon userid Don't use # sign in that. Example: forceafkon 123<br /><br /><b>forceafkoff</b> - requires ADMFLAG_ROOT - removes a player from afk mode. Usage: forceafkoff userid Don't use # sign in that. Example: forceafkoff 123<br /><br /><br /><u><b>Regular Player Commands:</b></u><br /><br /><b>sm_back</b> in console, or <b>!back </b>or<b>/back</b> in chat - removes afk from a player<br /><b>sm_afkoff</b> - same as sm_back<br /><br /><br /><br />Notes:<br /><br />afk_manager will not compile using normal web compiler as it requires afk_manager.inc<br />^^ you'll need to download afk_manager and use my version of it if you want to have your players be moved into afk medic bots when they go afk.<br /><br />If you use the compiled version of the afk_bot_stand_alone.sp, you will still be able to go medic afk bot, but you will not have the feature of forcing players into afk bot when they go afk. I'm not sure if the web compiler supports sdkhooks, but if it does not support sdkhooks you will then not have medic afk bots responding to damage.<br /><br /><br /><br /><br /><br /><br /><br /><br /><br />Sourcemod Plugin Dev for Hire<br /><a href="http://war3evo.info/plugin-development-team/" target="_blank">http://war3evo.info/...team/</a></div>


<br /> <div style="padding:6px">








<fieldset class="fieldset">
<legend>Attached Files</legend>
<table cellpadding="0" cellspacing="3" border="0">
<!-- BEGIN TEMPLATE: postbit_attachment -->
<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...dic_bot.zip</a>(65.1 KB)


</td>
</tr>
<!-- END TEMPLATE: postbit_attachment --><!-- BEGIN TEMPLATE: postbit_attachment -->
<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...46"><strong>GetPlugin</strong></a> or
<a href="https://forums.allie...1420834417">GetSource</a> (afk_bot_stand_alone.sp - 22.9 KB)


</td>
</tr>
<!-- END TEMPLATE: postbit_attachment -->
</table>
</fieldset>


</div>

<!-- END TEMPLATE: postbit_external -->

Wyświetl pełny artykuł




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

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