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] ClassRegenConfig


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

Napisano 05.11.2022 18:03

<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 &amp; 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>&quot;copy&quot; &quot;othersection&quot;</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 />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">"Medic&nbsp;Like"
<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">{
<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">"baseRegen"&nbsp;"3.0"
<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"noDamageBoost"&nbsp;
<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">{
<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">"startAfterSec"&nbsp;"5.0"
<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"scaleUntilSec"&nbsp;"10.0"
<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"maxScale"&nbsp;"2.0"
<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"additive"&nbsp;"0"
<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">}
<br />&nbsp;&nbsp;&nbsp;&nbsp;}
<br />&nbsp;&nbsp;&nbsp;&nbsp;
<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">"pyro"
<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">{
<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">"copy"&nbsp;"Medic&nbsp;Like"
<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">}
<br />&nbsp;&nbsp;&nbsp;&nbsp;
<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">"medic"
<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">{
<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FF8000">//disable&nbsp;medic&nbsp;health&nbsp;regen
<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">"baseRegen"&nbsp;"0.0"
<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"healingAdds"&nbsp;"0.0"&nbsp;</span><span style="color: #FF8000">//&nbsp;healing&nbsp;a&nbsp;patient
<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">"neverHurt"&nbsp;"1"&nbsp;</span><span style="color: #FF8000">//&nbsp;cheap&nbsp;blutsuager&nbsp;fix
<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">}
<br />}&nbsp;
<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ł




Użytkownicy przeglądający ten temat: 0

0 użytkowników, 0 gości, 0 anonimowych