Skocz do zawartości

  • Zaloguj korzystając z Facebooka Zaloguj korzystając z Twittera Zaloguj przez Steam Zaloguj poprzez Google      Logowanie »   
  • Rejestracja

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

[L4D2] Bot Controller (Framework)


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

Napisano 07.12.2015 05:09

<div><font size="4"><font face="Tahoma"><font size="2"><b>IMPORTANT INFORMATION: </b>This is an early release of the Bot Controller Framework - It's lacking in both natives and forwards, but I plan on updating the framework, adding new natives, forwards, and generalized features as needed.</font></font></font><font size="4"><font face="Tahoma"><font size="2"><font size="4"><font face="Tahoma"><font size="2"><font size="4"><font face="Tahoma"><font size="2"><font size="4"><font face="Tahoma"><font size="2"><font size="4"><font face="Tahoma"><font size="2"><br /><br /></font></font></font></font></font></font></font></font></font></font></font></font> </font></font></font><font size="4"><font face="Tahoma"><font size="2"><b>FRAMEWORK: </b>Bot Controller primarily acts as a framework; It's created with basic function in mind, that to generally replicate several of the desired features of a plugin such as Bebop or Super Versus. Currently, natives are implemented to provide other plugins access to build on top of the framework. Designing the plugin in this way allows me to update the framework with new features, bug fixes, and other updates, without damaging the development of plugins built to use the framework. Think of Bot Controller as the tree trunk, and the plugins that use it are like branches. The trunk might change and evolve, but the branches will always be compatible.<br /><br /><b>TEST PLUGIN:</b> I've attached a test plugin, it just shows some of the basic functionality you can create using the natives.<br /><br /><b>TEST SERVER: </b>I'm running a development server, where the latest versions of my open-source plugins can be found to be tested; This is great if you or your community doesn't have a spare server to test the plugins on, so you can see exactly WHAT they do. You can find it by searching this address in hlsw / console. 162.248.92.192:27015 ready up development<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">/*<br />&nbsp;*&nbsp;&nbsp;Calling&nbsp;this&nbsp;native&nbsp;will&nbsp;force&nbsp;the&nbsp;plugin&nbsp;to&nbsp;regulate&nbsp;the&nbsp;survivor&nbsp;bots&nbsp;based<br />&nbsp;*&nbsp;&nbsp;on&nbsp;whatever&nbsp;the&nbsp;current&nbsp;survivor&nbsp;minimum&nbsp;and&nbsp;maximum&nbsp;requirements&nbsp;are.<br />&nbsp;*&nbsp;&nbsp;<br />&nbsp;*/<br /></span><span style="color: #0000BB">native&nbsp;OnRegulateSurvivorBots</span><span style="color: #007700">();<br /><br /></span><span style="color: #FF8000">/*<br />&nbsp;*&nbsp;&nbsp;Forces&nbsp;the&nbsp;player&nbsp;to&nbsp;attempt&nbsp;to&nbsp;join&nbsp;the&nbsp;survivor&nbsp;team&nbsp;-&nbsp;or&nbsp;create&nbsp;bots.&nbsp;See&nbsp;params.<br />&nbsp;*<br />&nbsp;*&nbsp;@param&nbsp;client&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If&nbsp;set&nbsp;to&nbsp;0,&nbsp;will&nbsp;create&nbsp;a&nbsp;bot&nbsp;but&nbsp;not&nbsp;assign&nbsp;a&nbsp;player&nbsp;to&nbsp;it.<br />&nbsp;*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Will&nbsp;do&nbsp;nothing&nbsp;if&nbsp;the&nbsp;survivor&nbsp;limit&nbsp;has&nbsp;been&nbsp;reached.<br />&nbsp;*<br />&nbsp;*/<br /></span><span style="color: #0000BB">native&nbsp;OnJoinSurvivorTeam</span><span style="color: #007700">(</span><span style="color: #0000BB">client</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">/*<br />&nbsp;*&nbsp;&nbsp;Sets&nbsp;the&nbsp;Survivor&nbsp;Minimum&nbsp;and&nbsp;Maximum&nbsp;requirements.&nbsp;OnRegulateSurvivorBots()&nbsp;will&nbsp;not<br />&nbsp;*&nbsp;&nbsp;be&nbsp;called&nbsp;if&nbsp;BotRegulation&nbsp;override&nbsp;is&nbsp;enabled.<br />&nbsp;*<br />&nbsp;*&nbsp;&nbsp;@param&nbsp;min&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The&nbsp;minimum&nbsp;number&nbsp;of&nbsp;survivors&nbsp;that&nbsp;MUST&nbsp;exist.&nbsp;Humans&nbsp;+&nbsp;Bots.<br />&nbsp;*&nbsp;&nbsp;@param&nbsp;max&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The&nbsp;maximum&nbsp;number&nbsp;of&nbsp;survivors&nbsp;that&nbsp;CAN&nbsp;exist.<br />&nbsp;*<br />&nbsp;*/<br /></span><span style="color: #0000BB">native&nbsp;OnSetSurvivorRequirements</span><span style="color: #007700">(</span><span style="color: #0000BB">min</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">max</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">/*<br />&nbsp;*&nbsp;&nbsp;Will&nbsp;block&nbsp;BotControl&nbsp;core&nbsp;from&nbsp;running&nbsp;any&nbsp;Survivor&nbsp;Bot&nbsp;Restriction&nbsp;Regulation&nbsp;functions.<br />&nbsp;*&nbsp;&nbsp;If&nbsp;the&nbsp;function&nbsp;is&nbsp;blocked,&nbsp;the&nbsp;OnRegulateSurvivorBots()&nbsp;native&nbsp;must&nbsp;be&nbsp;called&nbsp;for&nbsp;these<br />&nbsp;*&nbsp;&nbsp;functions&nbsp;to&nbsp;be&nbsp;performed.<br />&nbsp;*<br />&nbsp;*/<br /></span><span style="color: #0000BB">native&nbsp;OnBlockSurvivorBotRegulation</span><span style="color: #007700">();<br /><br /></span><span style="color: #FF8000">/*<br />&nbsp;*<br />&nbsp;*&nbsp;&nbsp;Will&nbsp;allow&nbsp;BotControl&nbsp;core&nbsp;to&nbsp;run&nbsp;all&nbsp;Survivor&nbsp;Bot&nbsp;Restriction&nbsp;Regulation&nbsp;functions.<br />&nbsp;*&nbsp;&nbsp;This&nbsp;is&nbsp;the&nbsp;default&nbsp;setting.&nbsp;Don't&nbsp;forget&nbsp;to&nbsp;call&nbsp;this&nbsp;OnPluginEnd()&nbsp;if&nbsp;your&nbsp;plugin<br />&nbsp;*&nbsp;&nbsp;blocks&nbsp;the&nbsp;functionality!!!<br />&nbsp;*<br />&nbsp;*/<br /></span><span style="color: #0000BB">native&nbsp;OnAllowSurvivorBotRegulation</span><span style="color: #007700">();<br /><br /></span><span style="color: #FF8000">/*<br />&nbsp;*<br />&nbsp;*&nbsp;&nbsp;Allows&nbsp;the&nbsp;creation&nbsp;of&nbsp;a&nbsp;custom&nbsp;number&nbsp;of&nbsp;survivor&nbsp;bots.<br />&nbsp;*&nbsp;&nbsp;Important:&nbsp;&nbsp;Disable&nbsp;SurvivorBotRegulation&nbsp;by&nbsp;the&nbsp;core&nbsp;plugin&nbsp;before&nbsp;using&nbsp;this&nbsp;native.<br />&nbsp;*<br />&nbsp;*&nbsp;&nbsp;@param&nbsp;count&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The&nbsp;number&nbsp;of&nbsp;Survivor&nbsp;Bots&nbsp;to&nbsp;create.<br />&nbsp;*<br />&nbsp;*/<br /></span><span style="color: #0000BB">native&nbsp;OnCreateSurvivorBots</span><span style="color: #007700">(</span><span style="color: #0000BB">count</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">/*<br />&nbsp;*<br />&nbsp;*&nbsp;&nbsp;Allows&nbsp;the&nbsp;destruction&nbsp;of&nbsp;a&nbsp;custom&nbsp;number&nbsp;of&nbsp;survivor&nbsp;bots.<br />&nbsp;*&nbsp;&nbsp;Important:&nbsp;&nbsp;This&nbsp;will&nbsp;not&nbsp;remove&nbsp;bots&nbsp;that&nbsp;are&nbsp;tied&nbsp;to&nbsp;idle&nbsp;players.<br />&nbsp;*<br />&nbsp;*&nbsp;&nbsp;@param&nbsp;count&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The&nbsp;number&nbsp;of&nbsp;Survivor&nbsp;Bots&nbsp;to&nbsp;destroy.<br />&nbsp;*<br />&nbsp;*/<br /></span><span style="color: #0000BB">native&nbsp;OnDestroySurvivorBots</span><span style="color: #007700">(</span><span style="color: #0000BB">count</span><span style="color: #007700">);&nbsp;
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div></font></font></font></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/txt.gif"alt="File Type: txt" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>


<a href="https://forums.allie...control.txt</a>(1,018 Bytes)


</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...control.inc</a>(3.6 KB)


</td>
</tr><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...22"><strong>GetPlugin</strong></a> or
<a href="https://forums.allie...1449461783">GetSource</a> (botcontroller.sp - 8.6 KB)


</td>
</tr><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...23"><strong>GetPlugin</strong></a> or
<a href="https://forums.allie...1449461800">GetSource</a> (botcontroller_commands.sp - 2.4 KB)


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


<a href="https://forums.allie...troller.smx</a>(7.9 KB)


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


<a href="https://forums.allie...ommands.smx</a>(4.1 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