AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   GasNades (aka smokegrenades make players gasp/loose HP) (https://forums.alliedmods.net/showthread.php?t=60947)

ConnorMcLeod 09-17-2007 03:03

GasNades (aka smokegrenades make players gasp/loose HP)
 
2 Attachment(s)
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

loren28 09-17-2007 05:59

Re: GasNades (aka smokegrenades make players gasp/loose HP)
 
WORKS perfectly .good job.:)

Zenith77 09-17-2007 17:05

Re: GasNades (aka smokegrenades make players gasp/loose HP)
 
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?

ConnorMcLeod 09-17-2007 20:20

Re: GasNades (aka smokegrenades make players gasp/loose HP)
 
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

hoboman 09-17-2007 23:46

Re: GasNades (aka smokegrenades make players gasp/loose HP)
 
this isn't exactly an "admin commands" plug in eh?

loren28 09-18-2007 03:16

Re: GasNades (aka smokegrenades make players gasp/loose HP)
 
i try new v.15 and its works perfectly.:)

ConnorMcLeod 09-18-2007 05:57

Re: GasNades (aka smokegrenades make players gasp/loose HP)
 
Quote:

Originally Posted by hoboman (Post 532500)
this isn't exactly an "admin commands" plug in eh?

You're right, i don't know why it was...
Changed for 'gameplay'.

franzcis066 12-30-2007 10:28

Re: GasNades (aka smokegrenades make players gasp/loose HP)
 
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?

ConnorMcLeod 01-03-2008 18:32

Re: GasNades (aka smokegrenades make players gasp/loose HP)
 
Please give me your cvars settings.

franzcis066 01-04-2008 05:27

Re: GasNades (aka smokegrenades make players gasp/loose HP)
 
There arent any settings.. I use the default..


All times are GMT -4. The time now is 19:28.

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