Promuj serwer
csb-weapon-models / README.md
3 lines 1.6 KiB Markdown Source Rendered Raw Permalink History
<p><strong>CSB Weapon Models</strong> swaps the view (<code>v_</code>) and world (<code>p_</code>) models of any weapon for your own, driven by a plain ini file. Models are precached at map start; on every <code>CurWeapon</code> the plugin writes the custom model into <code>pev_viewmodel2</code> / <code>pev_weaponmodel2</code>. Players who prefer the stock look can turn it off for themselves with <code>/wmodels</code>.</p><h2>Configuration</h2><p>Create <code>addons/amxmodx/configs/csb_weapon_models.ini</code> with one weapon per line:</p><pre>ak47 models/csb/v_ak47.mdl models/csb/p_ak47.mdl
awp  models/csb/v_awp.mdl  models/csb/p_awp.mdl
knife models/csb/v_knife.mdl models/csb/p_knife.mdl</pre><p>Accepted names: knife, usp, glock, deagle, p228, elite, fiveseven, m4a1, ak47, awp, scout, aug, sg552, galil, famas, m3, xm1014, mp5, tmp, mac10, ump45, p90, m249, sg550, g3sg1. Only entries whose model files exist are precached.</p><h2>Features</h2><ul><li>ini-driven, no recompile to change models.</li><li>View and world models both supported per weapon.</li><li>Per-player <code>/wmodels</code> toggle back to the default models.</li><li>Missing files are logged and skipped, never crashing the server.</li></ul><h2>Installation</h2><ol><li>Enable the <code>fakemeta</code> module in <code>modules.ini</code> (default on).</li><li>Put your <code>.mdl</code> files where the ini points and add them to your fastdl.</li><li>Compile, copy <code>csb_weapon_models.amxx</code> into <code>plugins/</code>, add it to <code>plugins.ini</code>, change map.</li></ol><p>Inspired by the classic &quot;Weapon Model Replacement&quot; by Emp`; independent GPL re-implementation.</p>