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] ZR Grenade Effects


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

Napisano 12.11.2015 12:51

<div><b><u>Decription:</u></b><br /><br />Changes he grenades to napalm grenades, smoke and <font color="Blue">decoy</font> grenades to freeze grenades and flashbangs to flashlights, and adds trails.<br /><br />For CS:GO I fixed the smokeparticle bug, some sounds problems, visual effects fixed, added decoy as freeze grenade (if you use molotov, use decoy grenades instead of smoke grenades for freeze. This is for prevent that appear smokeparticles when a smoke grenade touch the molotov fire), and others fixes.<br /><br /><br /><b><u>Requeriments:</u></b><br /><br />Zombiereloaded plugin<br /><br /><br /><b><u>Recommended plugins with this:</u></b><br /><br /><a href="https://forums.allie....php?p=2358999"target="_blank">Zombiereloaded weapons menu with grenades</a><br /><br /><br /><b><u>Todo list:</u></b><br /><br />I will add nade modes like in cs 1.6<br /><div style="margin:20px; margin-top:5px; ">
<div class="smallfont" style="margin-bottom:2px">Quote:</div>
<table cellpadding="6" cellspacing="0" border="0" width="100%">
<tr>
<td class="alt2">
<hr />

<div>
Originally Posted by <strong>ot_207</strong>
(Post 663892)
</div>
<div style="font-style:italic"><font size="5"><font color="blue">Available modes:</font></font><br />Normal: This is CS's default grenade.<br />Proximity: This grenade will explode when it detect a player within a certain radius.<br />Impact: This grenade will only explode when it comes in contact with a solid object.<br />Trip laser: This is the most complex mode. Throw this at the wall or ceiling, and it will take some time before it will activate.After it activates it will draw a laser. If anyone should blunder into the detection path, the grenade will launch itself in the direction of the victim/ explode (your choice).<br />Motion sensor: Like the proximity grenade, this detects players within a certain radius, but will only detonate if that player is moving above a certain speed. To avoid an explosion, crouch or walk around this grenade. Be careful, jumping around a motion sensing grenade is risky business!<br />Satchel charge: When you press the +use button (default e) the nade will explode.<br />Homing: Seeking the enemy!</div>

<hr />
</td>
</tr>
</table>
</div><br /><b><u>Cvars:</u></b><br /><br />Configure these cvars in the cfg/sourcemod/zombiereloaded/grenade_effects.cfg file created.<br /><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">zr_greneffect_enable - Enables/Disables the plugin<br />zr_greneffect_trails - Enables/Disables grenade trails<br />zr_greneffect_napalm_he - Changes a he grenade to a napalm grenade<br />zr_greneffect_napalm_he_duration - The napalm duration in seconds<br />zr_greneffect_smoke_freeze - Changes a smoke grenade to a freeze grenade<br />zr_greneffect_smoke_freeze_distance - The freeze grenade distance<br />zr_greneffect_smoke_freeze_duration - The freeze duration in seconds<br />zr_greneffect_flash_light - Changes a flashbang to a flashlight<br />zr_greneffect_flash_light_distance - The light distance<br />zr_greneffect_flash_light_duration - The light duration in seconds</code><hr />
</div><br /><b><u>For developers:</u></b><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: #FF8000">/**&nbsp;<br />&nbsp;*&nbsp;Called&nbsp;when&nbsp;a&nbsp;player&nbsp;is&nbsp;about&nbsp;to&nbsp;be&nbsp;freezed&nbsp;by&nbsp;a&nbsp;grenade&nbsp;<br />&nbsp;*&nbsp;<br />&nbsp;*&nbsp;@param&nbsp;client&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The&nbsp;victim&nbsp;index&nbsp;<br />&nbsp;*&nbsp;@param&nbsp;attacker&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The&nbsp;client&nbsp;index&nbsp;who&nbsp;threw&nbsp;the&nbsp;grenade&nbsp;<br />&nbsp;*&nbsp;@param&nbsp;duration&nbsp;&nbsp;&nbsp;&nbsp;The&nbsp;freeze&nbsp;duration,&nbsp;set&nbsp;by&nbsp;reference&nbsp;&nbsp;<br />&nbsp;*&nbsp;@return&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Plugin_Changed&nbsp;to&nbsp;apply&nbsp;new&nbsp;values,&nbsp;Plugin_Contninue&nbsp;to&nbsp;allow&nbsp;as&nbsp;is&nbsp;and&nbsp;&gt;=&nbsp;Plugin_Handled&nbsp;to&nbsp;block&nbsp;<br />&nbsp;*/&nbsp;<br /></span><span style="color: #0000BB">forward&nbsp;Action</span><span style="color: #007700">:</span><span style="color: #0000BB">ZR_OnClientFreeze</span><span style="color: #007700">(</span><span style="color: #0000BB">client</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">attacker</span><span style="color: #007700">,&nbsp;&amp;</span><span style="color: #0000BB">Float</span><span style="color: #007700">:</span><span style="color: #0000BB">duration</span><span style="color: #007700">);&nbsp;<br /><br /></span><span style="color: #FF8000">/**&nbsp;<br />&nbsp;*&nbsp;Called&nbsp;when&nbsp;a&nbsp;player&nbsp;has&nbsp;been&nbsp;freezed&nbsp;by&nbsp;a&nbsp;grenade&nbsp;<br />&nbsp;*&nbsp;<br />&nbsp;*&nbsp;@param&nbsp;client&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The&nbsp;victim&nbsp;index&nbsp;<br />&nbsp;*&nbsp;@param&nbsp;attacker&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The&nbsp;client&nbsp;index&nbsp;who&nbsp;threw&nbsp;the&nbsp;grenade&nbsp;<br />&nbsp;*&nbsp;@param&nbsp;duration&nbsp;&nbsp;&nbsp;&nbsp;The&nbsp;freeze&nbsp;duration&nbsp;<br />&nbsp;*&nbsp;@noreturn&nbsp;<br />&nbsp;*/&nbsp;<br /></span><span style="color: #0000BB">forward&nbsp;ZR_OnClientFreezed</span><span style="color: #007700">(</span><span style="color: #0000BB">client</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">attacker</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">Float</span><span style="color: #007700">:</span><span style="color: #0000BB">duration</span><span style="color: #007700">);&nbsp;<br /><br /></span><span style="color: #FF8000">/**&nbsp;<br />&nbsp;*&nbsp;Called&nbsp;when&nbsp;a&nbsp;player&nbsp;is&nbsp;about&nbsp;to&nbsp;be&nbsp;ignited&nbsp;by&nbsp;a&nbsp;grenade&nbsp;<br />&nbsp;*&nbsp;<br />&nbsp;*&nbsp;@param&nbsp;client&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The&nbsp;victim&nbsp;index&nbsp;<br />&nbsp;*&nbsp;@param&nbsp;attacker&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The&nbsp;client&nbsp;index&nbsp;who&nbsp;threw&nbsp;the&nbsp;grenade&nbsp;<br />&nbsp;*&nbsp;@param&nbsp;duration&nbsp;&nbsp;&nbsp;&nbsp;The&nbsp;ignite&nbsp;duration,&nbsp;set&nbsp;by&nbsp;reference&nbsp;&nbsp;<br />&nbsp;*&nbsp;@return&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Plugin_Changed&nbsp;to&nbsp;apply&nbsp;new&nbsp;values,&nbsp;Plugin_Contninue&nbsp;to&nbsp;allow&nbsp;as&nbsp;is&nbsp;and&nbsp;&gt;=&nbsp;Plugin_Handled&nbsp;to&nbsp;block&nbsp;<br />&nbsp;*/&nbsp;<br /></span><span style="color: #0000BB">forward&nbsp;Action</span><span style="color: #007700">:</span><span style="color: #0000BB">ZR_OnClientIgnite</span><span style="color: #007700">(</span><span style="color: #0000BB">client</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">attacker</span><span style="color: #007700">,&nbsp;&amp;</span><span style="color: #0000BB">Float</span><span style="color: #007700">:</span><span style="color: #0000BB">duration</span><span style="color: #007700">);&nbsp;<br /><br /></span><span style="color: #FF8000">/**&nbsp;<br />&nbsp;*&nbsp;Called&nbsp;when&nbsp;a&nbsp;player&nbsp;has&nbsp;been&nbsp;ignited&nbsp;by&nbsp;a&nbsp;grenade&nbsp;<br />&nbsp;*&nbsp;<br />&nbsp;*&nbsp;@param&nbsp;client&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The&nbsp;victim&nbsp;index&nbsp;<br />&nbsp;*&nbsp;@param&nbsp;attacker&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The&nbsp;client&nbsp;index&nbsp;who&nbsp;threw&nbsp;the&nbsp;grenade&nbsp;<br />&nbsp;*&nbsp;@param&nbsp;duration&nbsp;&nbsp;&nbsp;&nbsp;The&nbsp;freeze&nbsp;duration&nbsp;<br />&nbsp;*&nbsp;@noreturn&nbsp;<br />&nbsp;*/&nbsp;<br /></span><span style="color: #0000BB">forward&nbsp;ZR_OnClientIgnited</span><span style="color: #007700">(</span><span style="color: #0000BB">client</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">attacker</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">Float</span><span style="color: #007700">:</span><span style="color: #0000BB">duration</span><span style="color: #007700">);&nbsp;
<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
</div>
</code>
<hr />
</div>
</div><br /><b><u>Installation:</u></b><br /><br />Download the archive from the attachments with the mod prefix you are intending to play and extract it to the addons/sourcemod folder<br />If you want to allow players to carry more grenades just add those cvars to your server.cfg and set their amount<ul><li>ammo_hegrenade_max</li>
<li>ammo_flashbang_max</li>
<li>ammo_smokegrenade_max</li>
</ul><br />Unrestrict smoke grenades and flashbangs which are resticted by default (do it here sourcemod/configs/zr/weapons.txt. Find &quot;Flashbang&quot; and &quot;Smokegrenade&quot; and set their &quot;restrictdefault&quot; to &quot;no&quot;)<br /><br /><br /><b><u>Donations</u> (optional)</b>:<br /><br />If you apreciate my work, you can donate me via <a href="https://www.paypal.c...=LWD5V2WBKDQPQ"target="_blank">paypal</a> or with a <a href="https://steamcommunity.com/tradeoffer/new/?partner=51342916&amp;token=zUImHQui" target="_blank">trade offer</a><br /><br /><br />Enjoy! ;)<br /><br /><br />Offtopic; Note for costumers that bought this plugin from me:<br /><div style="margin: 5px;">
<div class="smallfont" style="margin-bottom: 2px;">
<b>Spoiler</b> <input value="Show" style="margin: 0px; padding: 0px; width: 45px; font-size: 10px;" onclick="if(this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != 'inline')
{ this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'inline'; this.innerText = ''; this.value = 'Hide'; }
else
{ this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value='Show'; }" type="button">
</div>
<div class="alt2" style="border: 1px inset; padding: 6px;">
<div class="spoiler" style="display: none;"><br />If you bought this plugin from me, contact with me and I sent you another private plugin in exchange but do not bother in this thread<br /></div>
</div>
</div></div>


<br /> <div style="padding:6px">








<fieldset class="fieldset">
<legend>Attached Files</legend>
<table cellpadding="0" cellspacing="3" border="0">
<tr>
<td><img class="inlineimg" src="https://forums.allie.../attach/sp.gif"alt="File Type: sp" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td>


<a href="http://www.sourcemod...47"><strong>GetPlugin</strong></a> or
<a href="https://forums.allie...1447328990">GetSource</a> (zr_grenade_effects_csgo.sp - 17.2 KB)


</td>
</tr><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...ts_csgo.smx</a>(13.6 KB)


</td>
</tr>
</table>
</fieldset>


</div>

Wyświetl pełny artykuł




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

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