Open GoogleCodeExporter opened 9 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
Added milestone label.
Original comment by richard.helgeby@gmail.com
on 16 Jan 2010 at 10:16
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
Original issue reported on code.google.com by
richard.helgeby@gmail.com
on 4 Jan 2010 at 6:31