AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [CS:GO] ZR Grenade Effects (https://forums.alliedmods.net/showthread.php?t=274641)

Franc1sco 11-12-2015 06:51

[CS:GO] ZR Grenade Effects
 
Decription:

Changes he grenades to napalm grenades, smoke and decoy grenades to freeze grenades and flashbangs to flashlights, and adds trails.

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.


You can test the latest version here:
http://cache.www.gametracker.com/ser...0000_0_1_0.png


Requeriments:

Zombiereloaded plugin


Recommended plugins with this:

Zombiereloaded weapons menu with grenades


Todo list:

I will add nade modes like in cs 1.6
Quote:

Originally Posted by ot_207 (Post 663892)
Available modes:
Normal: This is CS's default grenade.
Proximity: This grenade will explode when it detect a player within a certain radius.
Impact: This grenade will only explode when it comes in contact with a solid object.
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).
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!
Satchel charge: When you press the +use button (default e) the nade will explode.
Homing: Seeking the enemy!


Cvars:

Configure these cvars in the cfg/sourcemod/zombiereloaded/grenade_effects.cfg file created.
Code:

zr_greneffect_enable - Enables/Disables the plugin
zr_greneffect_trails - Enables/Disables grenade trails
zr_greneffect_napalm_he - Changes a he grenade to a napalm grenade
zr_greneffect_napalm_he_duration - The napalm duration in seconds
zr_greneffect_smoke_freeze - Changes a smoke grenade to a freeze grenade
zr_greneffect_smoke_freeze_distance - The freeze grenade distance
zr_greneffect_smoke_freeze_duration - The freeze duration in seconds
zr_greneffect_flash_light - Changes a flashbang to a flashlight
zr_greneffect_flash_light_distance - The light distance
zr_greneffect_flash_light_duration - The light duration in seconds


For developers:

PHP Code:

/** 
 * Called when a player is about to be freezed by a grenade 
 * 
 * @param client     The victim index 
 * @param attacker     The client index who threw the grenade 
 * @param duration    The freeze duration, set by reference  
 * @return        Plugin_Changed to apply new values, Plugin_Contninue to allow as is and >= Plugin_Handled to block 
 */ 
forward Action:ZR_OnClientFreeze(clientattacker, &Float:duration); 

/** 
 * Called when a player has been freezed by a grenade 
 * 
 * @param client     The victim index 
 * @param attacker     The client index who threw the grenade 
 * @param duration    The freeze duration 
 * @noreturn 
 */ 
forward ZR_OnClientFreezed(clientattackerFloat:duration); 

/** 
 * Called when a player is about to be ignited by a grenade 
 * 
 * @param client     The victim index 
 * @param attacker     The client index who threw the grenade 
 * @param duration    The ignite duration, set by reference  
 * @return        Plugin_Changed to apply new values, Plugin_Contninue to allow as is and >= Plugin_Handled to block 
 */ 
forward Action:ZR_OnClientIgnite(clientattacker, &Float:duration); 

/** 
 * Called when a player has been ignited by a grenade 
 * 
 * @param client     The victim index 
 * @param attacker     The client index who threw the grenade 
 * @param duration    The freeze duration 
 * @noreturn 
 */ 
forward ZR_OnClientIgnited(clientattackerFloat:duration);  

/** 
 * Called when a grenade will get his effect
 * 
 * @param client     Client that throw the grenade
 * @param grenade     Grenade index
 * @return        Plugin_Continue to allow as is and Plugin_Handled to block effect in the grenade
 */ 
forward Action:ZR_OnGrenadeEffect(clientgrenade); 


Installation:

Download the archive from the attachments with the mod prefix you are intending to play and extract it to the addons/sourcemod folder
If you want to allow players to carry more grenades just add those cvars to your server.cfg and set their amount
  • ammo_hegrenade_max
  • ammo_flashbang_max
  • ammo_smokegrenade_max

Unrestrict smoke grenades and flashbangs which are resticted by default (do it here sourcemod/configs/zr/weapons.txt. Find "Flashbang" and "Smokegrenade" and set their "restrictdefault" to "no")


Donations (optional):

If you apreciate my work, you can donate me via paypal or with a trade offer


Download:

Main repository
Direct download
Code changes

mazdarx8 11-12-2015 07:16

Re: [CS:GO] ZR Grenade Effects
 
thank you

natrios 11-12-2015 09:25

Re: [CS:GO] ZR Grenade Effects
 
don't work :/
Quote:

28 <Failed> "[ZR] CS:GO Grenade Effects" (2.2 CSGO fix by Franc1sco franug) by FrozDark (HLModders.ru LLC) and Franc1sco franug

Franc1sco 11-12-2015 09:28

Re: [CS:GO] ZR Grenade Effects
 
Quote:

Originally Posted by natrios (Post 2362354)
don't work :/

Check log errors and check that you have succesfully installed zombiereloaded plugin.

If you cant make that the plugin works for you, then you can add me in steam and we will see why dont work my plugin in your server :wink:

natrios 11-12-2015 10:02

Re: [CS:GO] ZR Grenade Effects
 
Now work, sry for problem :D
I look forward to modes of grenades, good luck ! :)

Franc1sco 11-24-2015 04:19

Re: [CS:GO] ZR Grenade Effects
 
Quote:

Originally Posted by natrios (Post 2362379)
I look forward to modes of grenades, good luck ! :)

I will do it asap when my new ZE server will be completed where I will test it.

I hope that the grenade modes can like to the people :)

mazdarx8 11-24-2015 14:50

Re: [CS:GO] ZR Grenade Effects
 
  • ammo_hegrenade_max 2
  • ammo_flashbang_max 2
  • ammo_smokegrenade_max 2
Dont work for me... Any ideas?

iGANGNAM 11-24-2015 15:23

Re: [CS:GO] ZR Grenade Effects
 
oh damn definetly good plugin for Zombie Plague mod! Great job as always Franc1sco, just release hats plugin already ;9

Franc1sco 11-24-2015 15:52

Re: [CS:GO] ZR Grenade Effects
 
Quote:

Originally Posted by mazdarx8 (Post 2365997)
  • ammo_hegrenade_max 2
  • ammo_flashbang_max 2
  • ammo_smokegrenade_max 2
Dont work for me... Any ideas?

Try using my weapons menu plugin and this cvars:
Code:

sm_zeusweapons_smoke 2 // Number of smoke
sm_zeusweapons_hegrenade 2 // Number of hegrenade
sm_zeusweapons_flash 2 // // Number of flashbang

Quote:

Originally Posted by iGANGNAM (Post 2366010)
oh damn definetly good plugin for Zombie Plague mod! Great job as always Franc1sco

Ohh thanks, I just try to do it with my best effort, but surely a lot of people can do it better that me, I'm just a coder like any other :oops::oops:

Quote:

Originally Posted by iGANGNAM (Post 2366010)
ojust release hats plugin already ;9

I still need to do some modifications for a better use of everybody, and also I will add this menu for set the correct position to each hat

mazdarx8 11-25-2015 01:10

Re: [CS:GO] ZR Grenade Effects
 
Thank you for answering. I did use the weapons menu plugin (and there it works), but the players don't really like it. Is there another solution maybe?


All times are GMT -4. The time now is 11:56.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.