Editing Talk:Pain state

From DoomWiki.org

Warning: You are not logged in. Your IP address will be recorded in this page's edit history.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 566: Line 566:
  
 
For Hexen, it differs: the array of numbers ({{c|M_MISC.C}} lines 139-156) now includes ''one'' occurrence of each number 0-255.  Therefore the prior approach of dividing pain chance values by 256 actually gives correct percentages.  Other statements look unchanged: the conditional test is line 2056 of {{c|P_INTER.C}}, and {{c|P_Random()}} is line 1251 of {{c|H2DEF.H}} (except it's now a {{c|#define}} instead of a function, which I think only matters at a low level, below such things as actor behavior).    [[User:Ryan W|Ryan W]] ([[User talk:Ryan W|talk]]) 20:47, 11 March 2016 (CST)
 
For Hexen, it differs: the array of numbers ({{c|M_MISC.C}} lines 139-156) now includes ''one'' occurrence of each number 0-255.  Therefore the prior approach of dividing pain chance values by 256 actually gives correct percentages.  Other statements look unchanged: the conditional test is line 2056 of {{c|P_INTER.C}}, and {{c|P_Random()}} is line 1251 of {{c|H2DEF.H}} (except it's now a {{c|#define}} instead of a function, which I think only matters at a low level, below such things as actor behavior).    [[User:Ryan W|Ryan W]] ([[User talk:Ryan W|talk]]) 20:47, 11 March 2016 (CST)
 
[[User:Quasar|Quasar]] has corroborated on IRC that Strife behaves the same as Doom in this regard.  (Which ought to be good enough for everyone, except {{wp|Holy Crap|Francis Griffin}}.)  E.g. in the Strife source from Chocolate v2.2.1, see line 1380 of {{c|p_inter.c}} and lines 29-59 of {{c|m_random.c}}.    [[User:Ryan W|Ryan W]] ([[User talk:Ryan W|talk]]) 22:07, 11 March 2016 (CST)
 

All contributions to DoomWiki.org are considered to be released under the CC BY-SA 4.0 International (see Doom Wiki:Copyrights for details). By contributing, you agree to be bound by the Terms of Use.
Your changes will be visible immediately. Please enter a summary of your changes above.

Do not submit copyrighted images or text without permission! This includes text taken from in-game codices or logbooks, or from official instruction manuals, strategy guides, and other such books.

This project is not affiliated with id Software, Raven Software, ZeniMax Media, Bethesda SoftWorks, or any other commercial software developer or publisher. Use of trademarked logos and other protected intellectual property is solely for the purpose of analysis and critical commentary on the identified products and associated fan community activity, and does not imply any endorsement by any of these organizations or their employees, past or present.

Cancel | Editing help (opens in new window)

Templates used on this page: