Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
1. Witch takes damage from your gun
2. You set "TakeDamage" on "infected_hurt" when witch takes damage.
3. Witch takes damage from your "TakeDamage"
4. Loop back from no. 2 infinitely until it crashes.
One of safest mechanisms to use "infected_hurt" is by setting the "type", like this:
side question: why would GetZombieType() not take witch/common EntID ? I keep getting [the index 'GetZombieType' does not exist]
still trying to figure out what this "event" of yours is. similiar to my parms in OnGameEvent_infected_hurt( params ) or is it something else ?
Actually you can also use "bullet_impact" to damage witch with "TakeDamage" & this one won't cause crash, but this event function is a little tricky because you also need to set the vector coordinate of the bullet (x,y,z) & detect a zombie hit by the bullet via "Entities.FindByClassname"