vasyyshakov / zombiereloaded

Automatically exported from code.google.com/p/zombiereloaded
0 stars 0 forks source link

Grenade features #5

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Some optional effects with grenades that affect one or both teams.

- Freezing players with flashbang/he grenades.
- Poison smoke grenade. Not by hurting zombies, because that will be 
abused, but instead decreasing running speed a lot.

Original issue reported on code.google.com by richard.helgeby@gmail.com on 4 Jan 2010 at 6:31

GoogleCodeExporter commented 8 years ago
Class attribute for humans: Freeze grenade

Grenades freeze zombies. This feature need two new attributes:

A human-only attribute telling if he can throw freeze grenades.
A zombie-only attribute will tell how long they are frozen. 0 or negative to 
disable 
feature.

When a zombie is frozen, it can't take damage from humans, except napalm 
grenades. 
It gotta be this way to keep the game balanced. Humans should only use this 
feature 
to escape from zombies.

In addition, frozen zombies should have a different render color. We could use 
the 
freeze feature in SM for this, or make our own.

Original comment by richard.helgeby@gmail.com on 4 Jan 2010 at 6:59

GoogleCodeExporter commented 8 years ago
Added milestone label.

Original comment by richard.helgeby@gmail.com on 16 Jan 2010 at 10:16

GoogleCodeExporter commented 8 years ago
SetEntProp(client, Prop_Data, "m_takedamage", 0);
SetEntProp(client, Prop_Data, "m_fFlags", FL_FROZEN);

Perfect for freeze grenades.  This above stops the zombie from taking damage 
(m_takedamage) and freezes the client, even blocking them from attacking.

Default values are m_takedamage = 2, m_fFlags = FL_ONGROUND

Original comment by andrewbo...@gmail.com on 18 Jan 2010 at 8:26