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

[CS:GO] Flashlight (1.3.0)


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

Napisano 28.09.2013 22:38

<!-- BEGIN TEMPLATE: postbit_external -->
<div>CS:GO Flashlight.<br /><u><b>Description:</b></u><br />Since valve technically removed it for some stupid command to look at your gun skin, server owners can put this on their server to replace that command with a flashlight.<br /> <br /><u><b>Commands:</b></u><br /><i>sm_flashlight</i>: (<i>bind t sm_flashlight</i>) this is a secondary command for player to bind.<br /> <br /><u><b>Convars:</b></u><br />A config is made also in cfg/sourcemod/ folder.<br /><i>sm_flashlight_lookatweapon</i>: (<i>def 1</i>) disables the hook of <i>+lookatweapon</i>.<br /><i>sm_flashlight_return</i>: (<i>def 0</i>) determines whether to ignore the command completely or to continue the command.<br /> <br /><b><u>Convar: (cont)</u></b><br /><b><i>1.</i></b> If you want to have the +lookatweapon to still work and not turn on flashlight, and just have the command: sm_flashlight, set the following cvars to these values: (no need to set return to anything cause the cvar is skipped due to the fact lookatweapon cvar is checked first in the hook.<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"><i>sm_flashlight_lookatweapon 0</i></code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable --><b><i>2.</i></b> If you want to have +lookatweapon still look at the weapon and turn on the flashlight use this config:<!-- 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"><i>sm_flashlight_lookatweapon 1</i><br /><i>sm_flashlight_return 1</i></code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable --><b><i>3. </i></b>The third option is my favorite cause it replaces a command i never use (+lookatweapon) which is the default variables. Uses this config.<!-- 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"><i>sm_flashlight_lookatweapon 1</i><br /><i>sm_flashlight_return 0</i></code><hr />
</div>
<!-- END TEMPLATE: bbcode_code_printable --><u><b>Version Notes:</b></u><br /><i>1.3.0</i>: Adjusted code to be more clean, and added comments.<br /><i>1.2.0</i>: Added a cvar to enable the return, also a cvar to disable the +lookatweapon hook. and the cvar sm_flashlight<br /><i>1.1.0:</i> Bacardi gave me some bit examples which i consider in this update, and replaced the check with just IsPlayerAlive().<br /><i>1.0.0:</i> initial release.</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=126481"><strong>Get Plugin</strong></a> or
<a href="https://forums.allie...38;d=1380986649">Get Source</a> (CsGoFlashlight.sp - 2.1 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