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] Universal Upgrades


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

Napisano 10.05.2013 23:25

<!-- BEGIN TEMPLATE: postbit_external -->
<div><div align="center"><font face="Impact"><font size="6"><font size="6">-- [ </font>UNIVERSAL UPGRADES ] --</font></font><br /><br />My first (and probably only) attempt at making a SourceMod plugin,<br />this plugin allows you to purchase upgrades via an in-game currency gained by killing people.<br /><br /><font size="4"><b>::FEATURES<font size="4">::</font></b></font><ul><li>Kill Streak: Gain bonus money based on the number of players you've killed!</li>
<li>Customizable Upgrades System: Works in non-MVM gamemodes!</li>
<li>Toggleable: Can be turned off to reset everyone's stats!</li>
<li>Purchase upgrades through a menu!</li>
</ul><font size="4"><b>::REQUIREMENTS<font size="4">::</font></b></font><br /><u><b>TF2Attributes</b></u><br /><br /><font size="4"><b>::INSTALLATION<font size="4">::</font></b></font><br />Put &quot;sm_tf2_ugprades.smx&quot; into your server's &quot;addons/sourcemod/plugins&quot; folder.<br />Put &quot;uu_upgrades.txt&quot; into your server's &quot;addons/sourcemod/configs&quot; folder.<br />Make sure you have TF2Attributes installed as well.<br /><br /><font size="4"><b>::CVARS<font size="4">::</font></b></font><b><br />sm_uu_enabled</b><br />Enables (1) the plugin or Disables (0) it.<br /><b><br />sm_uu_currencystart</b><br />How much money each player starts with. Defaults to 500.<br /><b><br />sm_uu_currencyonkill<br /></b>How much money you earn per kill. Defaults to 25.<br /><br /><b>sm_uu_killstreakstart<br /></b>After so many kills, you gain a percentage of bonus money every kill! This is the kill streak requirement before you get extra money. Defaults to 2.<br /><br /><b>sm_uu_killstreakbonus<br /></b>This is the percentage of extra money you get per kill. This gets multiplied by your kill streak, by the way. Defaults to 0.05.<br /><br /><b>sm_uu_costincrease</b><br />This adds so much money to each upgrade, based on the upgrade's original cost. It's disabled by default (0.0). 1.0 causes each upgrade to cost 100% more than the previous amount.<br /><br /><font size="4"><b>::COMMANDS<font size="4">::</font></b></font><br /><b>sm_upgrade<br /></b>Opens up the upgrade menu! Use /upgrade, !upgrade, or bind sm_upgrade to a key.<br /><br /><b>sm_checkcurrency<br /></b>This tells you how much money you have in total. /checkcurrency, !checkcurrency, or binding works with this too.<br /><br /><div align="left"><div align="center"><font size="4"><b>::NOTES<font size="4">::</font></b></font><br /></div><ul><li>Upgrades and money are removed when using &quot;sm_uu_enabled 0&quot; or when the round ends and restarts.</li>
<li>When you die, your kill streak will be set back to zero, causing you to gain normal money again.</li>
<li>Upgrades can only be applied to players and their currently held weapon.</li>
<li>Upgrades DO NOT discriminate what they're allowed to be on. This doesn't me they'll always work, though.</li>
</ul><br /><div align="center"><font size="4"><b>::<font size="4">UPGRADE <font size="4">CREATION</font>::</font></b></font><br /></div>The file &quot;uu_upgrades.txt&quot; is where all the upgrades are stored. Here's an example of a Damage Upgrade:<br /><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;Upgrades&quot; // Generic File Section Name.<br />{<br />&nbsp; &nbsp; &quot;damage bonus&quot; // Actual TF2 Attribute Name. More upgrades can be made using different attributes.<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;menuname&quot;&nbsp; &nbsp; &quot;[W] Damage +25%&quot; // What the name of the upgrade is in the Menu.<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;cost&quot;&nbsp; &nbsp; &nbsp; &nbsp; &quot;400&quot; // How much money each upgrade costs.<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;upgrade&quot;&nbsp; &nbsp; &quot;0.25&quot; // How much each upgrade increases the value. Also works for numbers that go down.<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;max&quot;&nbsp; &nbsp; &nbsp; &nbsp; &quot;2.5&quot; // The maximum. Also works for numbers that go down.<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;start&quot;&nbsp; &nbsp; &nbsp; &nbsp; &quot;1.0&quot; // The starting point of the attribute.<br />&nbsp; &nbsp; &nbsp; &nbsp; &quot;onweapon&quot;&nbsp; &nbsp; &quot;1&quot; // 1 = On your currently weilded weapon. 0 = Directly on the player.<br />&nbsp; &nbsp; }<br />}</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable --><div align="center"><font size="4"><b>::<font size="4">FINAL NOTE<font size="4">S</font>::<br /></font></b><font size="4"><font size="1"><font size="2">I honestly hope this gets used. I know <font size="2">there's another plugin like this that's being tested, but I had made this without ac<font size="2">tually knowing someone <font size="2">else was doing the same thing.<font size="2"> Either wa<font size="2">y, <font size="2">whoever uses this<font size="2">, I hope you enjoy it.</font></font></font></font></font></font></font></font></font></font></font><br /><br /><font size="2">I have no plans on alter<font size="2">ing this any f<font size="2">urther, as I have no use for a<font size="2">dmin commands to add money and what<font size="2">not. I feel it's fine as is. Also, if<font size="2"> it ends up getting buggy, s<font size="2">omeone else can pick up the source, I don't know <font size="2">enough about <font size="2">SourcePawn<font size="2"> to maintain this.</font></font></font></font></font></font></font></font></font></font><br /></div> </div></div></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=119722"><strong>Get Plugin</strong></a> or
<a href="https://forums.allie...38;d=1368224699">Get Source</a> (sm_tf2_upgrades.sp - 11.6 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=1368224701">sm_tf2_upgrades.smx</a> (11.0 KB)


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


<a href="https://forums.allie...38;d=1368224705">uu_upgrades.txt</a> (2.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