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

[TF2] Custom Weapons 3 (Beta 1)


  • 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 15.07.2016 17:55

<div>Wanting new weapons in TF2? Valve not doing it? Take matters into your own hands with <b>Custom Weapons 3</b>! Based on the <a href="https://forums.allie...d.php?t=236242"target="_blank">Custom Weapons 2 plugin by MasterOfTheXP</a>, Custom Weapons 3 has a brand new menu system and the ability for servers to make shields and wearables!<br /><br />Unlike Custom Weapons 2, however, Custom Weapons 3 uses a module-based system.<br /><i>&quot;What is that supposed to mean?&quot;</i><br />Well, what that means is that if you want to contribute to Custom Weapons 3, a lot of the plugin is exposed via forwards in the .inc file. It also means that if a server owner finds a module that causes lag, it can be removed or replaced by a more optimized module.<br /><br /><i>&quot;How do I know what to insta...&quot;</i><br />Shhhh... I was about to get to that. In the attachments of this post, you will see something called &quot;CW3 Starter Kit.zip&quot;. If you're setting up a server, the starter kit has everything you need to get it going, just copy the plugins folder into your servers sourcemod/plugins folder. There are a few modules in the scripting folder, but the default modules do mostly the same job. cw2legacy is only to be used if you have issues getting your CW2 server working with the split CW2 modules.<br /><br /><font size="4"><b>COMMANDS AND CVARS</b></font><br /><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;"><br />Any player can equip a custom weapon by typing /c, /cus, /custom, !c, !cus, or !custom in the chat.<br /><br /><b>Admin commands</b><ul><li><b>sm_cw3_addattribute</b> &lt;client&gt; &lt;slot&gt; &lt;&quot;attribute name&quot;&gt; &lt;&quot;value&quot;&gt; &lt;&quot;plugin&quot;&gt; - Adds a custom cw3 attribute onto any weapon. Requires cw3-attributes</li>
<li><b>sm_custom_addattribute</b> &lt;client&gt; &lt;slot&gt; &lt;&quot;attribute name&quot;&gt; &lt;&quot;value&quot;&gt; &lt;&quot;plugin&quot;&gt; - Adds a custom cw2 attribute onto any weapon. Requires cw2attributes</li>
<li><b>/c reload</b> - Reloads CW3 and all the modules.</li>
</ul><br /><b>Cvars</b><ul><li><b>sm_cw3_enable</b> (1/0, def. 1) Enables the plugin, of course! Set to 0 to remove all active custom weapons.</li>
<li><b>sm_cw3_onlyinspawn</b> (1/0, def. 1) Only allow /custom to be used inside of a spawn room.</li>
<li><b>sm_cw3_arena_time</b> (def. 20) Time, in seconds, to allow /custom after spawning in Arena.</li>
<li><b>sm_cw3_bots</b> (def. 0.15) Percent chance, per slot, that bots will equip a random custom weapon.</li>
<li><b>sm_cw3_menu</b> (1/0, def. 1) Clients are allowed to say /custom to equip weapons manually. Set to 0 to disable manual weapon selection without disabling the entire plugin.</li>
<li><b>sm_cw3_sethealth</b> (1/0, def. 1) When a custom weapon is equipped, the user's health will be set to their maximum.</li>
<li><b>sm_cw3_onlyteam</b> (def. 0) If non-zero, custom weapons can only be equipped by one team; 2 = RED, 3 = BLU.</li>
</ul></div>
</div>
</div><br /><br /><font size="4"><b>LIST OF WHAT THE OFFICIAL MODULES DO</b></font><br /><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;"><ul><li>cw2attributes<ul><li>This provides backwards compatibility with Custom Weapons 2 attribute plugins. This will spam errors if an attribute is applied to a wearable or shield.</li>
<li>To add an attribute, put a block in your weapon config titled &quot;attributes&quot;. Inside there, put blocks with the names of the attributes you want to apply, one attribute per block. Inside those blocks, insert two keys titled &quot;plugin&quot; and &quot;value&quot;. The value for &quot;plugin&quot; is the name of the plugin the attribute is from. The value for &quot;value&quot; is the value of the attribute.</li>
</ul></li>
<li>cw2legacy<ul><li>This plugin basically replicates Custom Weapons 2's functionality. This can be used to guarantee compatibility with an old Custom Weapons 2 server.</li>
</ul></li>
<li>cw2model-application<ul><li>Allows custom models to be added to a weapon.</li>
<li>Due to Valve making a change a few years ago, your weapon will be invisible to other players. There is no way to fix this. If you know a workaround, <b>DO NOT POST IT HERE</b>.</li>
<li>For a custom viewmodel, insert a block into your weapon config titled &quot;viewmodel&quot;. Inside that block, put a key titled &quot;modelname&quot;. The value of &quot;modelname&quot; is the location of the model to display.</li>
<li>For a custom worldmodel, insert a block into your weapon config titled &quot;worldmodel&quot;. Inside that block, put a key titled &quot;modelname&quot;. The value of &quot;modelname&quot; is the location of the model to display. This will be invisible to other players. There is no fix.</li>
</ul></li>
<li>cw2sounds<ul><li>Allows custom sounds to be played for various weapon events.</li>
<li>To use this, make a block titled &quot;sound&quot; and inside that block, put a block titled &quot;player&quot; for every sound you want to replace. Inside each of those blocks, put a &quot;find&quot; and &quot;replace&quot; key. The value for &quot;find&quot; is the sound you want to replace, and the value for &quot;replace&quot; is the sound to play instead.</li>
</ul></li>
<li>cw3-attributes<ul><li>This allows vanilla and new attributes to be applied to weapons.</li>
<li>To use attributes from plugins build on cw3-attributes, put a block titled &quot;cw3_attributes&quot; in your weapon config.</li>
<li>You can put &quot;while active&quot; &quot;1&quot; in an attribute block to tell an attribute plugin to make the attribute only work while the weapon is out. Bear in mind that this is not law, an attribute plugin can ignore this if they wish.</li>
<li>Other than that, the parameters are the same as cw2attributes.</li>
</ul></li>
<li>cw3model-application<ul><li>This does essentially the same thing as the cw2model-application module, but saves one entity per worldmodel. If you have server crashes due to a lot of edicts, give this a shot!</li>
</ul></li>
</ul></div>
</div>
</div><br /><br /><font size="4"><b>HOW TO MAKE A WEAPON CONFIG</b></font><br /><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;"><br />Creating a new custom weapon is plain easy. Simply duplicate a custom weapon's config file, and fill out its info with your own.<ul><li>The weapon's name goes right at the top, in &quot;quotes&quot;.</li>
<li>&quot;classes&quot; is the array of player classes the weapon should be available for; the number next to each class is the weapon slot (0 = Primary, 1 = Secondary, 2 = Melee)</li>
<li>&quot;baseclass&quot; is the classname of the weapon, without &quot;tf_weapon_&quot;. For a shield put &quot;wearable_demoshield&quot;, and for a wearable (such as boots) put &quot;wearable&quot;.</li>
<li>&quot;baseindex&quot; is the item index of the base weapon, see above classname link. If unsure, stick within the 0-30s.</li>
<li>If it uses ammo (i.e. most non-melee weapons) it should have &quot;mag&quot; and &quot;ammo&quot; keys with the intended starting ammo.</li>
<li>&quot;logname&quot; will be displayed in client consoles when a kill is made with the weapon. Not currently implemented.</li>
<li>&quot;killicon&quot;, also not implemented yet, will be able to change the weapon's icon in the kill feed.</li>
<li>&quot;description&quot; is the stat list that players will see when selecting the weapon. n = Newline. &quot;n n&quot; will skip an entire line.<br /></li>
<li>&quot;attributes&quot;; Requires cw2attributes module. Each attribute has:<ul><li>An identifier, to set what attribute it is. This will either be a case-sensitive name (Custom Weapons, TF2Attributes) or an attribute index (TF2Items).</li>
<li>&quot;plugin&quot;: Who will provide the attribute's functionality?<ul><li>For official Valve attributes, you'll usually want to use TF2Attributes, so put &quot;tf2attributes&quot;. A select few attributes require &quot;tf2attributes.int&quot; instead.</li>
<li>If TF2Attributes doesn't work for said attribute (so far I've only seen &quot;alt-fire is vampire&quot; not work with TF2Att) then try &quot;tf2items&quot; instead, with the identifier being the number beside the attribute's name. (e.g. &quot;move speed penalty&quot; should instead be &quot;54&quot;)</li>
</ul></li>
<li>Or, of course, a custom attribute! In which case, &quot;plugin&quot; should be set to the name of the attributes plugin, minus &quot;.smx&quot;.</li>
<li>And of course, a value. Most attributes are multipliers; with &quot;damage bonus/penalty&quot;, &quot;2.0&quot; is double (+100%), and &quot;0.5&quot; is halved (-50%). With time-based attributes such as &quot;Reload time increased/decreased&quot;, &quot;0.5&quot; is half time (good), whereas &quot;2.0&quot; makes it take twice as long (bad). And some attributes are simply &quot;1.0 = on, 0.0 = off&quot;.</li>
<li>If you're unsure about values, check out a weapon that already has that attribute (Ctrl+F the official weapon's name in tf/scripts/items_game.txt, or just look at the custom weapon's config)</li>
</ul></li>
<li>&quot;cw3_attributes&quot;; the bread-n-butter. Requires cw3-attributes module. Each attribute has:<ul><li>An identifier, to set what attribute it is. This will either be a case-sensitive name (Custom Weapons, TF2Attributes) or an attribute index (TF2Items).</li>
<li>&quot;plugin&quot;: Who will provide the attribute's functionality?<ul><li>For official Valve attributes, you'll usually want to use TF2Attributes, so put &quot;tf2attributes&quot;. A select few attributes require &quot;tf2attributes.int&quot; instead.</li>
<li>If TF2Attributes doesn't work for said attribute (so far I've only seen &quot;alt-fire is vampire&quot; not work with TF2Att) then try &quot;tf2items&quot; instead, with the identifier being the number beside the attribute's name. (e.g. &quot;move speed penalty&quot; should instead be &quot;54&quot;)</li>
</ul></li>
<li>Or, of course, a custom attribute! In which case, &quot;plugin&quot; should be set to the name of the attributes plugin, minus &quot;.smx&quot;. The Starter Kit includes &quot;aw2attrib&quot; and &quot;rays-attributes&quot;.</li>
<li>&quot;while active&quot;: If this is 1, cw3-attributes will tell the attribute plugin that this attribute should only work while the weapon is out. Do note, that this is a recommendation, and some attributes may intentionally ignore this.</li>
<li>And of course, a value. Most attributes are multipliers; with &quot;damage bonus/penalty&quot;, &quot;2.0&quot; is double (+100%), and &quot;0.5&quot; is halved (-50%). With time-based attributes such as &quot;Reload time increased/decreased&quot;, &quot;0.5&quot; is half time (good), whereas &quot;2.0&quot; makes it take twice as long (bad). And some attributes are simply &quot;1.0 = on, 0.0 = off&quot;.</li>
<li>If you're unsure about values, check out a weapon that already has that attribute (Ctrl+F the official weapon's name in tf/scripts/items_game.txt, or just look at the custom weapon's config)</li>
</ul></li>
</ul></div>
</div>
</div><br /><br /><font size="4"><b>EXAMPLE WEAPON CONFIG</b></font><br /><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;"><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">&quot;AW - Penetrator&quot; // Weapon name.<br />{<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;classes&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;sniper&quot;&nbsp; &nbsp; &nbsp; &nbsp; &quot;0&quot; // Class and slot equipping the weapon.<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;baseclass&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;compound_bow&quot; // The base class. This uses the Huntsman as a base.<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;baseindex&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;56&quot; // Weapon index for base model and sounds.<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;nobots&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;1&quot; // Whether or not bots can equip it.<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;quality&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;6&quot; // Quality of the weapon, this one is unique.<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;steamids&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;STEAM_0:0:17402999&quot; // Steamids of who should have this weapon in Self-Made quality. Also adds the sparkle effect!<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;logname&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;penetrator&quot; // What prints in the log when someone is killed by this weapon.<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;description&quot;&nbsp; &nbsp; &nbsp; &nbsp; &quot;Arrows can bounce up to 2 timesnArrows penetrates all enemiesn n50% slower move speed when aimingn25% slower fire raten n nCredit:nGeneral Stat Sugguestionn-Advanced WeaponisernCustom Attributen-MekuCuben-TheraynModeln-Jukebox&quot; // Description.<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;cw3_attributes&quot; // Attribute block<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;projectiles bounce&quot; // Attribute name.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;plugin&quot;&nbsp; &nbsp; &nbsp; &nbsp; &quot;advanced-weaponiser-2-attributes&quot; // Plugin the attribute is from.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;value&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;2&quot; // Attribute value.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;projectile penetration&quot; // Attribute name.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;plugin&quot;&nbsp; &nbsp; &nbsp; &nbsp; &quot;tf2attributes&quot; // Plugin the attribute is from.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;value&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;1&quot; // Attribute value.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;fire rate penalty&quot; // Attribute name.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;plugin&quot;&nbsp; &nbsp; &nbsp; &nbsp; &quot;tf2attributes&quot; // Plugin the attribute is from.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;value&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;1.25&quot; // Attribute value.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;sniper aiming movespeed decreased&quot; // Attribute name.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;plugin&quot;&nbsp; &nbsp; &nbsp; &nbsp; &quot;tf2attributes&quot; // Plugin the attribute is from.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;value&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;.5&quot; // Attribute value.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;weapon_allow_inspect&quot; // Attribute name.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;plugin&quot;&nbsp; &nbsp; &nbsp; &nbsp; &quot;tf2attributes&quot; // Plugin the attribute is from.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;value&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;1&quot; // Attribute value.<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;viewmodel&quot; // Custom viewmodel.<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;modelname&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;models/weapons/c_models/c_doublebow/c_doublebow.mdl&quot; // Location of the viewmodel file.<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;worldmodel&quot; // Custom worldmodel.<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;modelname&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;models/weapons/c_models/c_doublebow/c_doublebow.mdl&quot; // Location of the worldmodel file.<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />}</code><hr />
</div></div>
</div>
</div><br /><br /><font size="4"><b>Q&amp;A</b></font><br /><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;"><br /><b>I'm an attribute developer, how does this affect me?</b><br />Well, there are a few changes to how attributes are applied. First off, in CW2, attributes were indexed mostly by weapon entity index. This is no longer the case. Attributes should now be indexed by client id and slot. It's not really as bad as it seems at first, my AW2 attributes plugin took about an hour or two to port.<br /><br /><b>I'm a server owner, how does this affect me?</b><br />If you've used CW2, it shouldn't affect you at all! Just use the cw2legacy or all the cw2 builds and your server will just have the fancy new menu.<br /></div>
</div>
</div><br /><br /><font size="4"><b>SIMPLE INSTALLATION</b></font><br />First things first, make sure your server has <a href="https://builds.limet...rg/?p=tf2items"target="_blank">tf2items</a> and <a href="https://forums.alliedmods.net/showthread.php?t=210221" target="_blank">tf2attributes</a> installed. You will also need tf2items.randomizer.txt from <a href="https://forums.alliedmods.net/showthread.php?p=1308831" target="_blank">this post</a>.<ol style="list-style-type: decimal"><li>Download the CW3 Starter Kit from this post.</li>
<li>Extract the plugins folder from the .zip file you download into your sourcemod folder.</li>
<li>You're done! All you have to do now is download or create some custom weapons! (They go into sourcemod/configs/customweapons btw)</li>
</ol><br /><font size="4"><b>MANUAL INSTALLATION</b></font><br />First things first, make sure your server has <a href="https://builds.limet...rg/?p=tf2items"target="_blank">tf2items</a> installed. For either of the attribute modules, make sure you also have <a href="https://forums.alliedmods.net/showthread.php?t=210221" target="_blank">tf2attributes</a> installed. You will also need tf2items.randomizer.txt from <a href="https://forums.alliedmods.net/showthread.php?p=1308831" target="_blank">this post</a>.<ol style="list-style-type: decimal"><li>Put cw3.smx into your sourcemod/plugins folder</li>
<li>Create a cw3 folder in sourcemod/plugins</li>
<li>Inside that folder, create a modules folder</li>
<li>Inside THAT folder, place any modules you want to use.</li>
<li>Inside the cw3 folder, create a folder titled attributes</li>
<li>Inside that folder, place any attribute plugins that run on cw3</li>
<li>Inside your sourcemod/configs folder, create a folder called cutsomweapons</li>
<li>Inside that folder, place any weapon configs you have, or create your own!</li>
<li>Place tf2items.randomizer.txt into your sourcemod/gamedata folder.</li>
<li>(CW2 attribute users only) Inside your sourcemod/plugins folder, create a folder called customweaponstf</li>
<li>Inside that folder, place any attribute plugins that are built on CW2</li>
</ol><br /><font size="6"><b>ABOUT INVISIBLE WEAPONS</b></font><br />If weapon models are invisible to other people on your server, that is not a bug. Valve disabled visible weapons a few years ago. <b>DO NOT POST A FIX HERE! IT IS BANNED ON ALLIEDMODS!</b><br /><br /><font size="4"><b>(FREE) DLC</b></font><br />You need weapons and modules to use CW3, so why not grab some of these?<ul><li>Weapons<ul><li><a href="https://forums.allie...38;postcount=2"target="_blank">Craftings Basic Weapon Pack</a></li>
</ul></li>
<li>Modules<ul><li>No unofficial modules posted (yet!)</li>
</ul></li>
<li>Attributes<ul><li>No unofficial attributes posted (yet!)</li>
</ul></li>
</ul><br /><font size="4"><b>CHANGELOG</b></font><br /><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;"><ul><li>Beta 1<ul><li>Initial release.</li>
</ul></li>
</ul></div>
</div>
</div><br /><br /><font size="3">Looking for a server? Come check out <a href="https://steamcommuni...m/groups/ctf2w"target="_blank">Custom TF2 Weapons, the officially supported Custom Weapons 3 server</a>!</font><br /><br /><font size="2"><b>VIDEOS</b></font><br /><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;"><br />Muselk<br /><iframe width="420" height="315" src="https://www.youtube....d5mbUuVQ?rel=0"frameborder="0" allowfullscreen></iframe><br /></div>
</div>
</div></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...1468601589">CW3Starter Kit.zip</a> (331.3 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