Changes

From DoomWiki.org

Talk:Rocket launcher

585 bytes added, 05:14, 20 October 2007
no edit summary
::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 [[Doom#History and development|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 [http://www.homestarrunner.com/sbemail41.html 386].     [[User:Ryan W|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. [[User:Goyuken|Goyuken]] 05:14, 20 October 2007 (UTC)
Doomer
21
edits