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] Bots Weapon Preferences Editor


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

Napisano 13.06.2015 03:16

<div><font size="4">About :</font> This plugin allows some level of manipulation over which primary weapons we want to allow the survivor bots to use.<br /><br /><font size="4">How it works :</font><br />Via a cfg file, we use cvars to allow or disallow bots from picking up certain primary weapons, and what kind of restriction to apply.<br /><br />The weapon restrictions are all categorized and divided on a per survivor bot basis, for example, you can manipulate and change what survivor bot Coach can use, and make it different, or the same as, what survivor bot Nick will use.<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">Version 1.0&nbsp; &nbsp; 04-15-2015 (55 views)<br />- Initial Release</code><hr />
</div><font size="4"> To DO :</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">- Nothing as of now (NOTE : MELEE WEAPONS ARE NOT PLANNED TO BE IMPLEMENTED AND WILL NEVER BE)</code><hr />
</div><b><br /><br />When the plugin is first used, a cfg file will be created called l4d2_bots_weapon_preferences_manipulation<br />CVARS from the CFG FILE<br /></b><div style="margin: 5px;">
<div class="smallfont" style="margin-bottom: 2px;">
<b>Spoiler</b> <input value="Show" style="margin: 0px; padding: 0px; width: 45px; font-size: 10px;" onclick="if(this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != 'inline')
{ this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'inline'; this.innerText = ''; this.value = 'Hide'; }
else
{ this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value='Show'; }" type="button">
</div>
<div class="alt2" style="border: 1px inset; padding: 6px;">
<div class="spoiler" style="display: none;"><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">// ConVars for plugin &quot;[L4D2] Bots Weapon Preference Manipulation.smx&quot;<br /><br /><br />// Can Bill use assault rifles? (0 = No, 1 = Yes)<br />// -<br />// Default: &quot;1&quot;<br />// Minimum: &quot;0.000000&quot;<br />// Maximum: &quot;1.000000&quot;<br />bill_enable_assault_rifles &quot;1&quot;<br /><br />// Can Bill use magnums? (0 = No, 1 = Yes)<br />// -<br />// Default: &quot;1&quot;<br />// Minimum: &quot;0.000000&quot;<br />// Maximum: &quot;1.000000&quot;<br />bill_enable_magnums &quot;1&quot;<br /><br />// Can Bill use pistols? (0 = No, 1 = Yes)<br />// -<br />// Default: &quot;1&quot;<br />// Minimum: &quot;0.000000&quot;<br />// Maximum: &quot;1.000000&quot;<br />bill_enable_pistols &quot;1&quot;<br /><br />// Can Bill use smgs? (0 = No, 1 = Yes)<br />// -<br />// Default: &quot;1&quot;<br />// Minimum: &quot;0.000000&quot;<br />// Maximum: &quot;1.000000&quot;<br />bill_enable_smgs &quot;1&quot;<br /><br />// Can Bill use snipers? (0 = No, 1 = Yes)<br />// -<br />// Default: &quot;1&quot;<br />// Minimum: &quot;0.000000&quot;<br />// Maximum: &quot;1.000000&quot;<br />bill_enable_snipers &quot;1&quot;<br /><br />// Can Bill use t1 shotguns? (0 = No, 1 = Yes)<br />// -<br />// Default: &quot;1&quot;<br />// Minimum: &quot;0.000000&quot;<br />// Maximum: &quot;1.000000&quot;<br />bill_enable_t1_shotguns &quot;1&quot;<br /><br />// Can Bill use t2 shotguns? (0 = No, 1 = Yes)<br />// -<br />// Default: &quot;1&quot;<br />// Minimum: &quot;0.000000&quot;<br />// Maximum: &quot;1.000000&quot;<br />bill_enable_t2_shotguns &quot;1&quot;<br /><br />// Can Coach use assault rifles? (0 = No, 1 = Yes)<br />// -<br />// Default: &quot;1&quot;<br />// Minimum: &quot;0.000000&quot;<br />// Maximum: &quot;1.000000&quot;<br />coach_enable_assault_rifles &quot;1&quot;<br /><br />// Can Coach use magnums? (0 = No, 1 = Yes)<br />// -<br />// Default: &quot;1&quot;<br />// Minimum: &quot;0.000000&quot;<br />// Maximum: &quot;1.000000&quot;<br />coach_enable_magnums &quot;1&quot;<br /><br />// Can Coach use pistols? (0 = No, 1 = Yes)<br />// -<br />// Default: &quot;1&quot;<br />// Minimum: &quot;0.000000&quot;<br />// Maximum: &quot;1.000000&quot;<br />coach_enable_pistols &quot;1&quot;<br /><br />// Can Coach use smgs? (0 = No, 1 = Yes)<br />// -<br />// Default: &quot;1&quot;<br />// Minimum: &quot;0.000000&quot;<br />// Maximum: &quot;1.000000&quot;<br />coach_enable_smgs &quot;1&quot;<br /><br />// Can Coach use snipers? (0 = No, 1 = Yes)<br />// -<br />// Default: &quot;1&quot;<br />// Minimum: &quot;0.000000&quot;<br />// Maximum: &quot;1.000000&quot;<br />coach_enable_snipers &quot;1&quot;<br /><br />// Can Coach use t1 shotguns? (0 = No, 1 = Yes)<br />// -<br />// Default: &quot;1&quot;<br />// Minimum: &quot;0.000000&quot;<br />// Maximum: &quot;1.000000&quot;<br />coach_enable_t1_shotguns &quot;1&quot;<br /><br />// Can Coach use t2 shotguns? (0 = No, 1 = Yes)<br />// -<br />// Default: &quot;1&quot;<br />// Minimum: &quot;0.000000&quot;<br />// Maximum: &quot;1.000000&quot;<br />coach_enable_t2_shotguns &quot;1&quot;<br /><br />// Can Ellis use assault rifles? (0 = No, 1 = Yes)<br />// -<br />// Default: &quot;1&quot;<br />// Minimum: &quot;0.000000&quot;<br />// Maximum: &quot;1.000000&quot;<br />ellis_enable_assault_rifles &quot;1&quot;<br /><br />// Can Ellis use magnums? (0 = No, 1 = Yes)<br />// -<br />// Default: &quot;1&quot;<br />// Minimum: &quot;0.000000&quot;<br />// Maximum: &quot;1.000000&quot;<br />ellis_enable_magnums &quot;1&quot;<br /><br />// Can Ellis use pistols? (0 = No, 1 = Yes)<br />// -<br />// Default: &quot;1&quot;<br />// Minimum: &quot;0.000000&quot;<br />// Maximum: &quot;1.000000&quot;<br />ellis_enable_pistols &quot;1&quot;<br /><br />// Can Ellis use smgs? (0 = No, 1 = Yes)<br />// -<br />// Default: &quot;1&quot;<br />// Minimum: &quot;0.000000&quot;<br />// Maximum: &quot;1.000000&quot;<br />ellis_enable_smgs &quot;1&quot;<br /><br />// Can Ellis use snipers? (0 = No, 1 = Yes)<br />// -<br />// Default: &quot;1&quot;<br />// Minimum: &quot;0.000000&quot;<br />// Maximum: &quot;1.000000&quot;<br />ellis_enable_snipers &quot;1&quot;<br /><br />// Can Ellis use t1 shotguns? (0 = No, 1 = Yes)<br />// -<br />// Default: &quot;1&quot;<br />// Minimum: &quot;0.000000&quot;<br />// Maximum: &quot;1.000000&quot;<br />ellis_enable_t1_shotguns &quot;1&quot;<br /><br />// Can Ellis use t2 shotguns? (0 = No, 1 = Yes)<br />// -<br />// Default: &quot;1&quot;<br />// Minimum: &quot;0.000000&quot;<br />// Maximum: &quot;1.000000&quot;<br />ellis_enable_t2_shotguns &quot;1&quot;<br /><br />// Can Francis use assault rifles? (0 = No, 1 = Yes)<br />// -<br />// Default: &quot;1&quot;<br />// Minimum: &quot;0.000000&quot;<br />// Maximum: &quot;1.000000&quot;<br />francis_enable_assault_rifles &quot;1&quot;<br /><br />// Can Francis use magnums? (0 = No, 1 = Yes)<br />// -<br />// Default: &quot;1&quot;<br />// Minimum: &quot;0.000000&quot;<br />// Maximum: &quot;1.000000&quot;<br />francis_enable_magnums &quot;1&quot;<br /><br />// Can Francis use pistols? (0 = No, 1 = Yes)<br />// -<br />// Default: &quot;1&quot;<br />// Minimum: &quot;0.000000&quot;<br />// Maximum: &quot;1.000000&quot;<br />francis_enable_pistols &quot;1&quot;<br /><br />// Can Francis use smgs? (0 = No, 1 = Yes)<br />// -<br />// Default: &quot;1&quot;<br />// Minimum: &quot;0.000000&quot;<br />// Maximum: &quot;1.000000&quot;<br />francis_enable_smgs &quot;1&quot;<br /><br />// Can Francis use snipers? (0 = No, 1 = Yes)<br />// -<br />// Default: &quot;1&quot;<br />// Minimum: &quot;0.000000&quot;<br />// Maximum: &quot;1.000000&quot;<br />francis_enable_snipers &quot;1&quot;<br /><br />// Can Francis use t1 shotguns? (0 = No, 1 = Yes)<br />// -<br />// Default: &quot;1&quot;<br />// Minimum: &quot;0.000000&quot;<br />// Maximum: &quot;1.000000&quot;<br />francis_enable_t1_shotguns &quot;1&quot;<br /><br />// Can Francis use t2 shotguns? (0 = No, 1 = Yes)<br />// -<br />// Default: &quot;1&quot;<br />// Minimum: &quot;0.000000&quot;<br />// Maximum: &quot;1.000000&quot;<br />francis_enable_t2_shotguns &quot;1&quot;<br /><br />// Can Louis use assault rifles? (0 = No, 1 = Yes)<br />// -<br />// Default: &quot;1&quot;<br />// Minimum: &quot;0.000000&quot;<br />// Maximum: &quot;1.000000&quot;<br />louis_enable_assault_rifles &quot;1&quot;<br /><br />// Can Louis use magnums? (0 = No, 1 = Yes)<br />// -<br />// Default: &quot;1&quot;<br />// Minimum: &quot;0.000000&quot;<br />// Maximum: &quot;1.000000&quot;<br />louis_enable_magnums &quot;1&quot;<br /><br />// Can Louis use pistols? (0 = No, 1 = Yes)<br />// -<br />// Default: &quot;1&quot;<br />// Minimum: &quot;0.000000&quot;<br />// Maximum: &quot;1.000000&quot;<br />louis_enable_pistols &quot;1&quot;<br /><br />// Can Louis use smgs? (0 = No, 1 = Yes)<br />// -<br />// Default: &quot;1&quot;<br />// Minimum: &quot;0.000000&quot;<br />// Maximum: &quot;1.000000&quot;<br />louis_enable_smgs &quot;1&quot;<br /><br />// Can Louis use snipers? (0 = No, 1 = Yes)<br />// -<br />// Default: &quot;1&quot;<br />// Minimum: &quot;0.000000&quot;<br />// Maximum: &quot;1.000000&quot;<br />louis_enable_snipers &quot;1&quot;<br /><br />// Can Louis use t1 shotguns? (0 = No, 1 = Yes)<br />// -<br />// Default: &quot;1&quot;<br />// Minimum: &quot;0.000000&quot;<br />// Maximum: &quot;1.000000&quot;<br />louis_enable_t1_shotguns &quot;1&quot;<br /><br />// Can Louis use t2 shotguns? (0 = No, 1 = Yes)<br />// -<br />// Default: &quot;1&quot;<br />// Minimum: &quot;0.000000&quot;<br />// Maximum: &quot;1.000000&quot;<br />louis_enable_t2_shotguns &quot;1&quot;<br /><br />// Can Nick use assault rifles? (0 = No, 1 = Yes)<br />// -<br />// Default: &quot;1&quot;<br />// Minimum: &quot;0.000000&quot;<br />// Maximum: &quot;1.000000&quot;<br />nick_enable_assault_rifles &quot;1&quot;<br /><br />// Can Nick use magnums? (0 = No, 1 = Yes)<br />// -<br />// Default: &quot;1&quot;<br />// Minimum: &quot;0.000000&quot;<br />// Maximum: &quot;1.000000&quot;<br />nick_enable_magnums &quot;1&quot;<br /><br />// Can Nick use pistols? (0 = No, 1 = Yes)<br />// -<br />// Default: &quot;1&quot;<br />// Minimum: &quot;0.000000&quot;<br />// Maximum: &quot;1.000000&quot;<br />nick_enable_pistols &quot;1&quot;<br /><br />// Can Nick use smgs? (0 = No, 1 = Yes)<br />// -<br />// Default: &quot;1&quot;<br />// Minimum: &quot;0.000000&quot;<br />// Maximum: &quot;1.000000&quot;<br />nick_enable_smgs &quot;1&quot;<br /><br />// Can Nick use snipers? (0 = No, 1 = Yes)<br />// -<br />// Default: &quot;1&quot;<br />// Minimum: &quot;0.000000&quot;<br />// Maximum: &quot;1.000000&quot;<br />nick_enable_snipers &quot;1&quot;<br /><br />// Can Nick use t1 shotguns? (0 = No, 1 = Yes)<br />// -<br />// Default: &quot;1&quot;<br />// Minimum: &quot;0.000000&quot;<br />// Maximum: &quot;1.000000&quot;<br />nick_enable_t1_shotguns &quot;1&quot;<br /><br />// Can Nick use t2 shotguns? (0 = No, 1 = Yes)<br />// -<br />// Default: &quot;1&quot;<br />// Minimum: &quot;0.000000&quot;<br />// Maximum: &quot;1.000000&quot;<br />nick_enable_t2_shotguns &quot;1&quot;<br /><br />// What kind of restrictions will be applied to disabled weapons? (0 = Bots may pick up disabled weapons when it is their only choice, 1 = Bots will NEVER pick up restricted weapons)<br />// -<br />// Default: &quot;0&quot;<br />// Minimum: &quot;0.000000&quot;<br />// Maximum: &quot;1.000000&quot;<br />restriction_type &quot;0&quot;<br /><br />// Can Rochelle use assault rifles? (0 = No, 1 = Yes)<br />// -<br />// Default: &quot;1&quot;<br />// Minimum: &quot;0.000000&quot;<br />// Maximum: &quot;1.000000&quot;<br />rochelle_enable_assault_rifles &quot;1&quot;<br /><br />// Can Rochelle use magnums? (0 = No, 1 = Yes)<br />// -<br />// Default: &quot;1&quot;<br />// Minimum: &quot;0.000000&quot;<br />// Maximum: &quot;1.000000&quot;<br />rochelle_enable_magnums &quot;1&quot;<br /><br />// Can Rochelle use pistols? (0 = No, 1 = Yes)<br />// -<br />// Default: &quot;1&quot;<br />// Minimum: &quot;0.000000&quot;<br />// Maximum: &quot;1.000000&quot;<br />rochelle_enable_pistols &quot;1&quot;<br /><br />// Can Rochelle use smgs? (0 = No, 1 = Yes)<br />// -<br />// Default: &quot;1&quot;<br />// Minimum: &quot;0.000000&quot;<br />// Maximum: &quot;1.000000&quot;<br />rochelle_enable_smgs &quot;1&quot;<br /><br />// Can Rochelle use snipers? (0 = No, 1 = Yes)<br />// -<br />// Default: &quot;1&quot;<br />// Minimum: &quot;0.000000&quot;<br />// Maximum: &quot;1.000000&quot;<br />rochelle_enable_snipers &quot;1&quot;<br /><br />// Can Rochelle use t1 shotguns? (0 = No, 1 = Yes)<br />// -<br />// Default: &quot;1&quot;<br />// Minimum: &quot;0.000000&quot;<br />// Maximum: &quot;1.000000&quot;<br />rochelle_enable_t1_shotguns &quot;1&quot;<br /><br />// Can Rochelle use t2 shotguns? (0 = No, 1 = Yes)<br />// -<br />// Default: &quot;1&quot;<br />// Minimum: &quot;0.000000&quot;<br />// Maximum: &quot;1.000000&quot;<br />rochelle_enable_t2_shotguns &quot;1&quot;<br /><br />// [L4D2] Bots Weapon preferences manipulation Version<br />// -<br />// Default: &quot;1.0&quot;<br />sm_bots_weapon_preferences_manipulation_version &quot;1.0&quot;<br /><br />// Can Zoey use assault rifles? (0 = No, 1 = Yes)<br />// -<br />// Default: &quot;1&quot;<br />// Minimum: &quot;0.000000&quot;<br />// Maximum: &quot;1.000000&quot;<br />zoey_enable_assault_rifles &quot;1&quot;<br /><br />// Can Zoey use magnums? (0 = No, 1 = Yes)<br />// -<br />// Default: &quot;1&quot;<br />// Minimum: &quot;0.000000&quot;<br />// Maximum: &quot;1.000000&quot;<br />zoey_enable_magnums &quot;1&quot;<br /><br />// Can Zoey use pistols? (0 = No, 1 = Yes)<br />// -<br />// Default: &quot;1&quot;<br />// Minimum: &quot;0.000000&quot;<br />// Maximum: &quot;1.000000&quot;<br />zoey_enable_pistols &quot;1&quot;<br /><br />// Can Zoey use smgs? (0 = No, 1 = Yes)<br />// -<br />// Default: &quot;1&quot;<br />// Minimum: &quot;0.000000&quot;<br />// Maximum: &quot;1.000000&quot;<br />zoey_enable_smgs &quot;1&quot;<br /><br />// Can Zoey use snipers? (0 = No, 1 = Yes)<br />// -<br />// Default: &quot;1&quot;<br />// Minimum: &quot;0.000000&quot;<br />// Maximum: &quot;1.000000&quot;<br />zoey_enable_snipers &quot;1&quot;<br /><br />// Can Zoey use t1 shotguns? (0 = No, 1 = Yes)<br />// -<br />// Default: &quot;1&quot;<br />// Minimum: &quot;0.000000&quot;<br />// Maximum: &quot;1.000000&quot;<br />zoey_enable_t1_shotguns &quot;1&quot;<br /><br />// Can Zoey use t2 shotguns? (0 = No, 1 = Yes)<br />// -<br />// Default: &quot;1&quot;<br />// Minimum: &quot;0.000000&quot;<br />// Maximum: &quot;1.000000&quot;<br />zoey_enable_t2_shotguns &quot;1&quot;</code><hr />
</div></div>
</div>
</div><br /><br />About the &quot;restriction_type&quot; cvar, it works like this:<br /><br />if the cvar is set to 0, bots will pick up disabled weapons, but <i><b>only</b></i> if they have no other choice, if set to 1, they will NEVER pick up disabled weapons at all.<br />This means if the CVAR is set to 1, and the bot has no primary, but they only found disabled weapons, they will not pick anything up because they are disabled, and as such they will be stuck with only their pistol/melee in this case, so choose your restrictions carefully.<br /><br />ABOUT PISTOLS/MAGNUMS:<br />This plugin forces all bots to default to magnums over pistols, if this is unwanted, just disable magnum usage for whatever bots you don't want using magnums.<br /><b> <br />THIS PLUGIN NOW REQUIRES <a href="https://forums.allie...d.php?t=134032"target="_blank">Left4Downtown2</a> TO FUNCTION!<br /><br />(Huge thanks to Sev for extensively testing this with me!)<br /></b></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/zip.gif"alt="File Type: zip" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>


<a href="https://forums.allie...4161963">[L4D2]Bots Weapon Preferences Manipulation.zip</a> (39.7 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