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] Load-Out Manager


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

Napisano 30.09.2014 19:43

<!-- BEGIN TEMPLATE: postbit_external -->
<div><b>Important:<br /></b>This mod is not fully finished - it works, but doesn't save your data anywhere. So once you disconnect - mod forget about you and your weapons and loadouts. I am very, very s..l..o..w..p..o..k..e so decided to release it, since it's already took half a year to write it.<br /><br /><b>N.B.<br /></b>The source code is madness with 3k lines and enumerators stored in dynamic arrays. I am not sure if it works well. Use at own risk.<br /><br /><b>Development:</b><br />Latest version available here <a href="https://bitbucket.org/avi9526/lom/src" target="_blank">https://bitbucket.or...526/lom/src</a> but it may not work properly<br /><br />This plugin must be properly installed and configured in order to work.<br /><br /><b>Installation:</b><br />weapons.cfg goes in &lt;server_root&gt;/addons/sourcemod/configs/<br />lom.sp goes in &lt;server_root&gt;/addons/sourcemod/scripting/<br />lom.smx goes in &lt;server_root&gt;/addons/sourcemod/plugins/<br /><br /><b>Configuring (TL;DR):</b><br />Add this to your server.cfg file<br /><!-- BEGIN TEMPLATE: bbcode_code_printable -->
<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">sm_lom_instant 1<br />sm_lom_apocalypse 0<br />sm_lom_weapons 1<br />sm_lom_givecustom 0<br />sm_lom_reload</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable --><b>Configuring (Detailed):</b><br /><b>sm_lom_access</b><br />Fake (non-existent) command to limit access to plugin. By default everyone can use this plugin. To limit access add to your admin_overrides.cfg something like<br /><!-- BEGIN TEMPLATE: bbcode_code_printable -->
<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">&quot;sm_lom_access&quot; &quot;a&quot;</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable --><b>sm_lom_instant</b><br />Console variable, default is 1<br />1 - player gets weapon instantly, recommended for MvM and Fun servers only;<br />0 - player need touch locker to get weapon<br /><br /><b>sm_lom_apocalypse</b><br />Console variable, default is 0, read bellow about Apocalypse mode, for the first time you want it to be 0<br />0 - apocalypse disabled;<br />1 - apocalypse enabled<br /><br /><b>sm_lom_weapons</b><br />Console variable, default is 1, define if plugin reads weapons.cfg config file<br />1 - yes, recommended<br />0 - no<br /><br /><b>sm_lom_givecustom</b><br />Console variable, default is 1, define if plugin reads tf2items.givecustom.txt config file<br />1 - yes, recommended if you have something in tf2items.givecustom.txt config file;<br />0 - no, recommended in other cases<br /><br /><b>sm_lom_reload</b><br />Console command, reload config files, <u><b>**REQUIRED**</b></u> to be put in server.cfg or other config that executed by game server. Plugin doesn't do what you didn't ask - it will not read configs until you tell it to do so<br /><br /><b>Usage:</b><br /><b>sm_lom</b> [&lt;int arg1&gt;]<br />Console command, chat version <b>!lom</b>. Without arguments shows LOM menu. With integer number argument provided - try load appropriate loadout.<br /><br /><b>sm_loname</b> &lt;str arg1&gt;<br />Console command, chat version <b>!loname</b>. After you get some weapon from LOM menu and you want save it (did you still remember that plugin doesn't save your data after disconnect?) as loadout with name - open chat and write something like<br /><!-- BEGIN TEMPLATE: bbcode_code_printable -->
<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">!loname MyFavoriteLoadout</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable -->Admins please note - this command may be security issue, since Sourcemod seems to have problems with menu items that have line break<br /><br /><b>Apocalypse mode:</b><br />Apocalipse mode was designed to handle situation when it's admin and 1 or 2 more players on mvm_ghost_town map and they get chance to win<br />1) I assume your tf2items.givecustom.txt file looks like this<br />&quot;custom_give_weapons_vlolz&quot;<br />{<br /><br />}<br /><br />2) Add this inside of { } bounds (I took it from my config)<br /><!-- BEGIN TEMPLATE: bbcode_code_printable -->
<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">&nbsp; &nbsp; &quot;9001&quot;<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;name&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;The Sharpest Dresser (by The Freaking One)&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;apocalyptic&quot;&nbsp; &nbsp; &quot;1&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;class&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;256&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;classname&quot;&nbsp; &nbsp; &quot;tf_weapon_knife&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;index&quot;&nbsp; &nbsp; &quot;638&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;slot&quot;&nbsp; &nbsp; &quot;2&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;quality&quot;&nbsp; &nbsp; &quot;9&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;level&quot;&nbsp; &nbsp; &quot;99&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;attribs&quot;&nbsp; &nbsp; &quot;154&nbsp; ; 1 ; 156 ; 1 ; 158 ; 100 ; 160 ; 1 ; 217 ; 1 ; 218 ; 1 ; 203 ; 1 ; 396 ; 0.5 ; 180 ; 100 ; 399 ; 100 ; 31 ; 4 ; 347 ; 1 ; 361 ; 3600 ; 134 ; 2&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;ammo&quot;&nbsp; &nbsp; &quot;-1&quot;<br />&nbsp; &nbsp; }<br />&nbsp; &nbsp; &quot;9002&quot;<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;name&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;The Freaking Pan (by The Freaking One)&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;classname&quot;&nbsp; &nbsp; &quot;saxxy&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;apocalyptic&quot;&nbsp; &nbsp; &quot;1&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;index&quot;&nbsp; &nbsp; &quot;264&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;slot&quot;&nbsp; &nbsp; &quot;2&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;quality&quot;&nbsp; &nbsp; &quot;9&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;level&quot;&nbsp; &nbsp; &quot;99&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;attribs&quot;&nbsp; &nbsp; &quot;396 ; 0.5 ; 252 ; 0.01 ; 275 ; 1 ; 251 ; 1 ; 218 ; 1 ; 16 ; 100 ; 203 ; 1 ; 179 ; 1 ; 26 ; 375 ; 31 ; 4 ; 180 ; 100 ; 361 ; 3600 ; 134 ; 2 ; 376 ; 1 ; 358 ; 1&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;ammo&quot;&nbsp; &nbsp; &quot;-1&quot;<br />&nbsp; &nbsp; }<br />&nbsp; &nbsp; &quot;10331&quot;&nbsp; &nbsp; // Fists of Steel<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;name&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;Super Fists of Steel (by avi9526)&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;apocalyptic&quot;&nbsp; &nbsp; &quot;1&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;class&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;64&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;classname&quot;&nbsp; &nbsp; &nbsp; &nbsp; &quot;tf_weapon_fists&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;index&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;331&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;slot&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;2&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;quality&quot;&nbsp; &nbsp; &nbsp; &nbsp; &quot;9&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;level&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;0&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;attribs&quot;&nbsp; &nbsp; &nbsp; &nbsp; &quot;396 ; 0.5 ; 180 ; 100 ; 146 ; 1 ; 215 ; 500 ; 216 ; 1000 ; 26 ; 700 ; 107 ; 1.3 ; 326 ; 1.3 ; 178 ; 0.25 ; 275 ; 1 ; 402 ; 1&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;ammo&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;-1&quot;<br />&nbsp; &nbsp; }<br />&nbsp; &nbsp; &quot;10025&quot;&nbsp; &nbsp; // Construction PDA<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;name&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;Super Construction PDA (by avi9526)&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;apocalyptic&quot;&nbsp; &nbsp; &quot;1&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;class&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;1023&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;classname&quot;&nbsp; &nbsp; &nbsp; &nbsp; &quot;tf_weapon_pda_engineer_build&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;index&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;25&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;slot&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;3&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;quality&quot;&nbsp; &nbsp; &nbsp; &nbsp; &quot;9&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;level&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;0&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;attribs&quot;&nbsp; &nbsp; &nbsp; &nbsp; &quot;344 ; 10 ; 134 ; 9 ; 80 ; 5 ; 113 ; 200 ; 148 ; -100 ; 351 ; 1 ; 287 ; 2 ; 286 ; 10 ; 343 ; 1.0 ; 345 ; 50 ; 295 ; 1 ; 276 ; 1&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;ammo&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;-1&quot;<br />&nbsp; &nbsp; }<br />&nbsp; &nbsp; &quot;10041&quot;&nbsp; &nbsp; //&nbsp; &nbsp; Natascha<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;name&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;Precise Natascha (by avi9526)&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;apocalyptic&quot;&nbsp; &nbsp; &quot;1&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;class&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;64&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;classname&quot;&nbsp; &nbsp; &nbsp; &nbsp; &quot;tf_weapon_minigun&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;index&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;41&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;slot&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;0&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;quality&quot;&nbsp; &nbsp; &nbsp; &nbsp; &quot;9&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;level&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;0&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;attribs&quot;&nbsp; &nbsp; &nbsp; &nbsp; &quot;2 ; 1.2 ; 31 ; 5 ; 32 ; 1 ; 6 ; 0.50 ; 76 ; 10 ; 87 ; 0.25 ; 106 ; 0.25 ; 208 ; 1 ; 180 ; 200 ; 323 ; 2 ; 397 ; 10 ; 375 ; 10 ; 430 ; 50 ; 215 ; -100 ; 216 ; 100&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;ammo&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;2000&quot;<br />&nbsp; &nbsp; }<br />&nbsp; &nbsp; &quot;10237&quot;&nbsp; &nbsp; // Rocket Jumper<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;name&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;Nuclear Rocket Jumper (by avi9526)&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;class&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;8&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;apocalyptic&quot;&nbsp; &nbsp; &quot;1&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;classname&quot;&nbsp; &nbsp; &quot;tf_weapon_rocketlauncher&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;index&quot;&nbsp; &nbsp; &nbsp; &nbsp; &quot;237&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;slot&quot;&nbsp; &nbsp; &nbsp; &nbsp; &quot;0&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;quality&quot;&nbsp; &nbsp; &quot;6&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;level&quot;&nbsp; &nbsp; &nbsp; &nbsp; &quot;0&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;attribs&quot;&nbsp; &nbsp; &quot;31 ; 5 ; 348 ; 0.3 ; 424 ; 1 ; 181 ; 1 ; 76 ; 10 ; 2 ; 2 ; 440 ; 16 ; 318 ; 0.25 ; 6 ; 0.5 ; 180 ; 200 ; 103 ; 1 ; 99 ; 1.25 ; 413 ; 1&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;ammo&quot;&nbsp; &nbsp; &quot;200&quot;<br />&nbsp; &nbsp; }</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable -->3) Set sm_lom_givecustom to 1, and write in game console sm_lom_reload<br />4) Load mvm_ghost_town map and set sm_lom_apocalypse to 1<br />5) Check LOM menu for over-powered weapon<br /><br /><b>Config syntax:</b><br />Plugin uses own config file weapons.cfg as well tf2items.givecustom.txt file from GiveWeapon plugin, but with some extra fields (GiveWeapon plugin ignore that fields so no problems).<br /><br />Supported fields:<br /><br /><b>Class</b> Integer. Default is 1023 - all classes. Class binary mask: Scout = 2; Sniper = 4; Soldier = 8; Demo = 16; Medic = 32; Heavy = 64; Pyro = 128; Spy = 256; Engineer = 512. So if you want weapon be available for Heavy and Scout - open your scientific calculator and write there 64 + 2, you'll get binary class mask, if you want weapon available for every class use 1023<br /><b>Slot</b> Integer. Slot for weapon. Primary = 0; Secondary = 1; <br /><b>Name</b> String. Weapon name displayed in menu<br /><b>Index</b> Integer. Default is -1. GivesWeapon plugin doesn't create new weapon, all it's weapon based on other weapon, so here stored parent weapon ID for custom weapons. Currently not really used<br /><b>GameMode</b> Integer. Default is 1023 - any game mode. Game mode binary mask. Used for Deflector minigun which is only available in MvM game mode. Set this to 2 for weapon available only in MvM mode<br /><b>Apocalyptic</b> Integer. Default is 0. Define if weapon is apocalyptic - very over-powered (see above)<br /><b>Access</b> String. Default is &quot;&quot;. Write here some fake command that is in your admins_overrides.cfg config file. Used to limit access to some weapon. Not recommended for use because of performance considerations.<br /><br /><br />My head cache is empty right now, so I assume I didn't forget anything</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...s/attach/sp.gif" alt="File Type: sp" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>


<a href="http://www.sourcemod...?file_id=138372"><strong>Get Plugin</strong></a> or
<a href="https://forums.allie...38;d=1412102586">Get Source</a> (lom.sp - 107.0 KB)


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


<a href="https://forums.allie...38;d=1412102586">weapons.cfg</a> (16.9 KB)


</td>
</tr>
<!-- END TEMPLATE: postbit_attachment --><!-- BEGIN TEMPLATE: postbit_attachment -->
<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...38;d=1412102586">lom.smx</a> (24.4 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