Talk:Func tanktrain

From Valve Developer Community
Revision as of 17:42, 2 June 2015 by BitMage (talk | contribs) (Documenting Bug)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Code Bug

Icon-Bug.pngBug:This entity has a hard-coded damage filter for BLAST damage and is not even properly configured to take damage in the first place.  [todo tested in ?]

Even if you comment out the hacky damage filter on line 80, the Spawn() function sets m_takedamage to true (on line 73) which is an inappropriate value. The true, or 1, will be interpreted as DAMAGE_EVENTS_ONLY and since the only damage-related output it has is OnDeath this can never happen since it's health will never change until takedamage is set to DAMAGE_YES. Bit Mage (talk) 00:42, 3 June 2015 (UTC)