Raised This Month: $106 Target: $400
 26% 

GasNades (aka smokegrenades make players gasp/loose HP)


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay        Approver:   Zenith77 (34)
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-17-2007 , 04:03   GasNades (aka smokegrenades make players gasp/loose HP)
Reply With Quote #1

GasNades




.: Description :.


This plugin make players gasp/cough and/or loose hp when they are in the smoke of a smoke grenade.



.: Cvars :.

  • amx_gasnades < 1|0 >
    enable|disable the plugin
  • amx_gasobeyFF < 1|0 >
    for the plugin to act according to cvar mp_friendlyfire (def=0)
  • amx_gascheck < cycle in seconds >
    how often does it do damage/gasp(see 2 next cvars) in secs (def=2) - i recommand to set this at 1.0 or more if sounds are turned on.
  • amx_gasdmg < amount of damage >
    how much damage does it do every check cycle (see amx_gascheck cvar) (def=2)
  • amx_smokegasp < 0|1 >
    Gasping sounds when in the gas (def=1)
  • amx_gasradius < radius in units >
    The radius toxic gas takes effect. The radius at 180-220 equals to appearance of smoke that a grenade spreads. Beware that the appearance of smoke won't increases by this value. if it is 0, damage takes no effects. (def=200)
  • amx_gas_restore < 0|1 >
    restore players HP (def=1)
  • amx_gaslife < timelength > (default 25)
    Time it takes to the gaz to disappear
  • amx_gas_nosmoke < 0|1 >
    See the smoke or not (def=0)



.: Requirements :.


Modules : Fakemeta & Hamsandwich
Two sounds that go in "cstrike/sound/player/"(or "czero/sound/player/") - see attachments



.: Changelog :.

Code:
v2.0.0 ( 08 nov 2008 )
- rewritten from the scratch
- nades are now additive
- gas life by cvar
- new cvar to prevent the smoke from showing
v1.6 ( 13 nov 2007 )
- now when a player dies, nade's owner gets a frag
- don't make death msgs if another plugin block those messages
v1.5b
 - little optimization ( get_gametime was used more than 1 time in few functions )
 - error fix in entity think forward, now check first if entity is valid
 - added a public cvar
 - little changes/cleanup
v1.5a
 - amx_gas_restore now works according to cvars amx_gascheck and amx_gasdmg
v1.5
 - added cvar  amx_gas_restore that allow to restore players HP
v1.4b
 - fixed plugin didn't work correctly with mp_friendlyfire
 - little optimization
v1.4
 - Almost completly rewrote the plugin


.: Credits :.


RichoDemus, AssKicR and T(+)rget for previous versions

VEN

previous version (v1.6) ~ 3500 DL
Attached Files
File Type: zip gaspsounds.zip (15.2 KB, 9095 views)
File Type: sma Get Plugin or Get Source (amx_gasnades.sma - 7880 views - 8.2 KB)

Last edited by ConnorMcLeod; 04-14-2010 at 03:06.
ConnorMcLeod is offline
loren28
Senior Member
Join Date: Nov 2006
Old 09-17-2007 , 06:59   Re: GasNades (aka smokegrenades make players gasp/loose HP)
Reply With Quote #2

WORKS perfectly .good job.
loren28 is offline
Zenith77
Veteran Member
Join Date: Aug 2005
Old 09-17-2007 , 18:05   Re: GasNades (aka smokegrenades make players gasp/loose HP)
Reply With Quote #3

Code looks good. From the other thread it appears it works. Approved.

As a side note:

Code:
    new Float:damage = get_pcvar_float(amx_gasdmg)     if(damage > 0.0) {         ExtraDamage(id, owner, damage, "gasgrenade")     }

Perhaps make it set to back to a default value with an else statement?
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred

Last edited by Zenith77; 09-17-2007 at 18:07.
Zenith77 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-17-2007 , 21:20   Re: GasNades (aka smokegrenades make players gasp/loose HP)
Reply With Quote #4

Thanks for approval,

Actualy this plugin is very different from the one of the other thread.

I've just added your suggestion in v1.5, but i haven't tested yet.
HP should be set back one by one, each second.
I'll test it tomorrow but if someone want to test i attach it here.

new cvar :
amx_gas_restore 0|1

Last edited by ConnorMcLeod; 09-18-2007 at 08:48.
ConnorMcLeod is offline
hoboman
Senior Member
Join Date: Jul 2007
Old 09-18-2007 , 00:46   Re: GasNades (aka smokegrenades make players gasp/loose HP)
Reply With Quote #5

this isn't exactly an "admin commands" plug in eh?
hoboman is offline
loren28
Senior Member
Join Date: Nov 2006
Old 09-18-2007 , 04:16   Re: GasNades (aka smokegrenades make players gasp/loose HP)
Reply With Quote #6

i try new v.15 and its works perfectly.
loren28 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-18-2007 , 06:57   Re: GasNades (aka smokegrenades make players gasp/loose HP)
Reply With Quote #7

Quote:
Originally Posted by hoboman View Post
this isn't exactly an "admin commands" plug in eh?
You're right, i don't know why it was...
Changed for 'gameplay'.
ConnorMcLeod is offline
franzcis066
Member
Join Date: Nov 2007
Old 12-30-2007 , 11:28   Re: GasNades (aka smokegrenades make players gasp/loose HP)
Reply With Quote #8

I think there's a bug here..if you go in and out the edge of the smoke radius you gradually increase over the 100% Hp limit (if ur health is full)...Isn't there a delay on gas restore if you are out of the smoke to avoid this effect?
franzcis066 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-03-2008 , 19:32   Re: GasNades (aka smokegrenades make players gasp/loose HP)
Reply With Quote #9

Please give me your cvars settings.
__________________
- tired and retired -
ConnorMcLeod is offline
franzcis066
Member
Join Date: Nov 2007
Old 01-04-2008 , 06:27   Re: GasNades (aka smokegrenades make players gasp/loose HP)
Reply With Quote #10

There arent any settings.. I use the default..
franzcis066 is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:00.


Powered by vBulletin®
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Theme made by Freecode