It's a sub-trivial thing, but I've always been a little puzzled about the little 'hole' in the tip of the rocket launcher; you can only see through it when you have just fired a rocket, which implies that the tip of the unfired rocket blocks your view through the hole when you're just running around. I don't know if it's a mistake on the part of the authors, or if I'm being unreasonably observant.-Ashley Pomeroy 21:07, 10 Jul 2005 (UTC)
question: does a direct hit from the rocket launcher count as two hits or one? in other words, does the direct damage count separately from the area damage? i ask this because if it is two separate hits it would mean 2x chance to cause pain.
also, has anyone ever noticed that projectiles which graze you seem to do less damage than those that hit you square in the face? or am i just imagining things?
- I'm sure the splash and direct damage are done seperately. And the projectile thing is probabally a coincedence since the only reason projectiles of the same type do different damage is because of a random chance. -- TheDarkArchon 21:46, 13 Jan 2006 (UTC)
- It seems like it would be computationally more efficient to check for pain at the end of each tic, not every time a blow landed (especially since the "staggering" animation takes up multiple frames). Coming from me, of course, that's just a guess, because I can never really tell what's going on in the source code. But one does hear certain stories about how many things id had to do to shave clock cycles, so that their opus would actually run on a 386. Ryan W 23:32, 13 Jan 2006 (UTC)
- Painchance is handled in P_DamageMobj () in p_inter.c. This is the generic "hurt something" code which is called for all damage events. I'm not aware of any situations in the game where multiple seperate damage events are combined into one painchance check. For rocket splashes, P_RadiusAttack () from p_map.c calls P_DamageMobj individually for each splash it makes, and the direct hit is also a separate call. BFG tracers and shotgun pellets also call P_DamageMobj individually for each one, even if many hit one target. Goyuken 05:14, 20 October 2007 (UTC)
- Heh, I suppose that's why shooting a cyberdemon with an SSG makes him flinch more often than not (a Leukart-style calculation says 80% of the time), even though his pain chance is so low. Ryan W 14:50, 23 April 2008 (UTC)