<div><font color="DarkOrange"><font size="6">TF2 Class Regen Config</font></font><br /><br />Module plugin for TF2 RegenThink Hook.<br /><br />Allows you to re-define passive health, ammo and metal regeneration for all classes using a config.<br /><br />Disable medics health regen, let everyone slowly regen ammo or heck, make everyone regen health like a medic.<br /><br />Plugins can use this as well to override the regeneration per class or player.<br /><br /><font color="darkorange"><font size="5">Commands & ConVars</font></font><br /><br /><tt>sm_classregen_reloadconfig</tt> - requires ADMFLAG_CONFIG, reload the config at <tt>cfg/sourcemod/classregenconfig.cfg</tt><br /><br /><tt>sm_tf2classregenconfig_version</tt> - version ConVar<br /><br /><font color="darkorange"><font size="5">Config</font></font><br /><br />The following config section will directly apply to classes:<ul><li> scout</li>
<li> sniper</li>
<li> soldier</li>
<li> demoman</li>
<li> medic</li>
<li> heavy</li>
<li> pyro</li>
<li> spy</li>
<li> engineer</li>
<li> #default - Can be used to configure all classes that are not specified</li>
</ul><br />You can also create sections with custom names to copy they values into class section, you can not copy copied sections.<br />To copy one sections into another, specify <tt>"copy" "othersection"</tt>. Other keys in the section will be ignored if copied.<br /><br />KeyValues per config:<ul><li> baseRegen (number) - base health gain per second</li>
<li> healingAdd (number) - additional health gain per second if the player is medic and has a patient</li>
<li> noDamageBoost (section) - section that defines how health regen behaved if the player hasn't received damage for some time<ul><li> startAfterSec (number) - start changeing health regen after this amount of seconds without taking damage</li>
<li> scaleUntilSec (number) - change peaks after this amount of seconds without taking damage</li>
<li> maxScale (number) - maximum change value after `scaleUntilSec`</li>
<li> additive (0/1) - defines how the scaling is applied. Multiplicative values will take into account if the medic has a patient, additive will allway add the interpolated value flat<br />Multiplicative (0): regen *= clamed remap of time-since-last-damage from noDamageStart...noDamageEnd to 1.0-times...noDamageScale-times <br />Additive (1): regen += clamed remap of time-since-last-damage from noDamageStart...noDamageEnd to +0 HP...+noDamageScale HP</li>
</ul></li>
<li> neverHurt (0/1) - if enabled, and the health regen including attributes would result in damaging the player, both values are reset to 0. This is a dirty fix for the blutsauger, you should probably use a CustomWeapons plugin instead.</li>
<li> ammo (section) - configure ammo regeneration. Ammo regeneration will only tick every 5 seconds<ul><li> scaleAttributeValue (number) - multiply the amount of ammo regeneration from item attribute by this value</li>
<li> addRegenPrecent (number) - add this amount of ammo on top of item attributes in percent. 100 = full ammo</li>
</ul></li>
<li> metal (section) - configure metal regeneration. This is run with ammo regeneration, but only interesting for engineer<ul><li> scaleAttributeValue (number) - multiply the amount of metal regeneration from item attributes by this value</li>
<li> addRegenAmount (number) - plain amount of metal to add every tick on top of item attributes</li>
</ul></li>
</ul><br />Example Config:<br /><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: #DD0000">"ClassRegenConfig"
<br /></span><span style="color: #007700">{
<br /> </span><span style="color: #DD0000">"Medic Like"
<br /> </span><span style="color: #007700">{
<br /> </span><span style="color: #DD0000">"baseRegen" "3.0"
<br /> "noDamageBoost"
<br /> </span><span style="color: #007700">{
<br /> </span><span style="color: #DD0000">"startAfterSec" "5.0"
<br /> "scaleUntilSec" "10.0"
<br /> "maxScale" "2.0"
<br /> "additive" "0"
<br /> </span><span style="color: #007700">}
<br /> }
<br />
<br /> </span><span style="color: #DD0000">"pyro"
<br /> </span><span style="color: #007700">{
<br /> </span><span style="color: #DD0000">"copy" "Medic Like"
<br /> </span><span style="color: #007700">}
<br />
<br /> </span><span style="color: #DD0000">"medic"
<br /> </span><span style="color: #007700">{
<br /> </span><span style="color: #FF8000">//disable medic health regen
<br /> </span><span style="color: #DD0000">"baseRegen" "0.0"
<br /> "healingAdds" "0.0" </span><span style="color: #FF8000">// healing a patient
<br /> </span><span style="color: #DD0000">"neverHurt" "1" </span><span style="color: #FF8000">// cheap blutsuager fix
<br /> </span><span style="color: #007700">}
<br />}
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div><font color="DarkOrange"><font size="5">Dependency</font></font><br /><br />This plugin requires <a href="https://forums.allie...d.php?t=340217"title="AlliedModders - Thread 340217">TF2 RegenThink Hook</a><br /><br /><div align="center"><font size="7"><a href="https://github.com/DosMike/TF2-RegenThinkHook/releases" target="_blank" rel="nofollow noopener">Get it on GitHub</a></font></div></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

[TF2] ClassRegenConfig
Temat rozp. Adminek AMXX.PL, 05.11.2022 18:03
Brak odpowiedzi do tego tematu
Użytkownicy przeglądający ten temat: 0
0 użytkowników, 0 gości, 0 anonimowych