<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 /> * Calling this native will force the plugin to regulate the survivor bots based<br /> * on whatever the current survivor minimum and maximum requirements are.<br /> * <br /> */<br /></span><span style="color: #0000BB">native OnRegulateSurvivorBots</span><span style="color: #007700">();<br /><br /></span><span style="color: #FF8000">/*<br /> * Forces the player to attempt to join the survivor team - or create bots. See params.<br /> *<br /> * @param client If set to 0, will create a bot but not assign a player to it.<br /> * Will do nothing if the survivor limit has been reached.<br /> *<br /> */<br /></span><span style="color: #0000BB">native 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 /> * Sets the Survivor Minimum and Maximum requirements. OnRegulateSurvivorBots() will not<br /> * be called if BotRegulation override is enabled.<br /> *<br /> * @param min The minimum number of survivors that MUST exist. Humans + Bots.<br /> * @param max The maximum number of survivors that CAN exist.<br /> *<br /> */<br /></span><span style="color: #0000BB">native OnSetSurvivorRequirements</span><span style="color: #007700">(</span><span style="color: #0000BB">min</span><span style="color: #007700">, </span><span style="color: #0000BB">max</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">/*<br /> * Will block BotControl core from running any Survivor Bot Restriction Regulation functions.<br /> * If the function is blocked, the OnRegulateSurvivorBots() native must be called for these<br /> * functions to be performed.<br /> *<br /> */<br /></span><span style="color: #0000BB">native OnBlockSurvivorBotRegulation</span><span style="color: #007700">();<br /><br /></span><span style="color: #FF8000">/*<br /> *<br /> * Will allow BotControl core to run all Survivor Bot Restriction Regulation functions.<br /> * This is the default setting. Don't forget to call this OnPluginEnd() if your plugin<br /> * blocks the functionality!!!<br /> *<br /> */<br /></span><span style="color: #0000BB">native OnAllowSurvivorBotRegulation</span><span style="color: #007700">();<br /><br /></span><span style="color: #FF8000">/*<br /> *<br /> * Allows the creation of a custom number of survivor bots.<br /> * Important: Disable SurvivorBotRegulation by the core plugin before using this native.<br /> *<br /> * @param count The number of Survivor Bots to create.<br /> *<br /> */<br /></span><span style="color: #0000BB">native 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 /> *<br /> * Allows the destruction of a custom number of survivor bots.<br /> * Important: This will not remove bots that are tied to idle players.<br /> *<br /> * @param count The number of Survivor Bots to destroy.<br /> *<br /> */<br /></span><span style="color: #0000BB">native OnDestroySurvivorBots</span><span style="color: #007700">(</span><span style="color: #0000BB">count</span><span style="color: #007700">);
<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ł
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

[L4D2] Bot Controller (Framework)
Temat rozp. Adminek AMXX.PL, 07.12.2015 05:09
Brak odpowiedzi do tego tematu
Użytkownicy przeglądający ten temat: 0
0 użytkowników, 0 gości, 0 anonimowych