<!-- BEGIN TEMPLATE: postbit_external -->
<div>While this plugin performs the same functions as <a href="http://forums.allied...ad.php?t=229123" target="_blank">http://forums.allied...hp?t=229123</a>, I wrote it with self-usage in mind. That is, "sm_setspell <charges>" as the base command that targets yourself, with various other options available as parameters.<br /><br /><u><b>Commands<br /></b></u><b>sm_setspell</b> <charges> [spell] [target] - Defaults to "cheats" admin access. Set the number of spell <charges> on yourself. Optional parameter [spell] accepts a number to set the spell type as well. Optional parameter [target] allows you to specify some target(s) instead of targetting yourself. The number of charges and the ability to target other players is dependent on the cvars and overrides listed further down.<br /><b>sm_spelllist</b> - Defaults to public access. Displays the list of spells and the number associated with each spell.<br /><br /><u><b>ConVars<br /></b></u><b>tf_spellbookcmds_version</b> - Ignore this, it does nothing and you shouldn't touch it.<br /><b>tf_spellbookcmds_limit</b> -1 - If >= 0, sets the maximum number of charges you're allowed to set with sm_setspell. Whether this affects a player or not depends on one of the overrides listed below.<br /><br /><u><b><a href="http://wiki.alliedmods.net/Overriding_Command_Access_%28SourceMod%29" target="_blank">Overrides</a><br /></b></u><b>sm_setspell_target</b> - Default "cheats" access. Players with access to this will be able to use the 3rd parameter of sm_setspell to target other players instead of only being able to target themselves.<br /><b>sm_setspell_unlimit</b> - Default "root" access. Players with access to this will ignore the spell charge limit cvar.<br /><br />As a reminder, if you want to make sm_setspell public/less-restricted-access (the way I pretty much intended it to be for use with overrides), you can use an override for sm_setspell to change who can access it. Basically, you can give everyone access to sm_setspell but only give certain people access to the ability to target others or go over the spell limit. Give it a try.<br /><br /><u><b>Changelog<br /></b></u><!-- 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"><u>1.0 - 11/2/2013</u><br />*Initial release</code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable --><u>To-Do:<br /></u>*Split spell limit cvar split into rare vs. normal spells, other changes regarding this dichotomy.<br />*Release another plugin that enables the Spell HUD/spell drops on any map (I've already figured it out, just need to write it up nicely)<br /><br /><font size="1"><i>Previous plugin view count: --</i></font></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=127436"><strong>Get Plugin</strong></a> or
<a href="https://forums.allie...38;d=1383437784">Get Source</a> (tf_spellbookcmds.sp - 5.4 KB)
</td>
</tr>
<!-- END TEMPLATE: postbit_attachment -->
</table>
</fieldset>
</div>
<!-- END TEMPLATE: postbit_external -->
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] Spellbook Commands
Temat rozp. Adminek AMXX.PL, 03.11.2013 01:14
Brak odpowiedzi do tego tematu
Użytkownicy przeglądający ten temat: 0
0 użytkowników, 0 gości, 0 anonimowych