Editing Talk:BFG9000 (section) From DoomWiki.org Warning: You are not logged in. Your IP address will be recorded in this page's edit history. Anti-spam check. Do not fill this in! ==&7== I'm trying to understand how the damage is calculated for the traces. It was hard enough finding out that the hypothetical damage of the traces is 5-120 (we should really mention that somewhere on the page, even though it's not actually possible to do; we did it for the hypothetical max total damage). Now, I can accept that the actual range of damage possibilities is 49-87. However, I want to know how this is. The damage for all of the other weapons I understand. For example, the player's bullet: damage = 5*(P_Random ()%3+1); Damage is a random number between 1 and 3, multiplied by 5. Simple. I've used this sort of function before in C. But the code for the tracer damage is weird. Bolded for emphasis: for (j=0;j<15;j++) damage += (P_Random()'''&7''') + 1; The damage of a ray is a random number between 1 and the number stored at the address "7" (?!), done 15 times with the results added together? What the fuck? The only other use of "&" I know of is the bitwise AND, and that makes no sense either in this context. Is there someone who can clarify what the &7 means? --[[User:Reaper with no name|Reaper with no name]] 04:13, 21 January 2009 (UTC) : According to [[User talk:Fredrik#BFG blast tracers|this]] it means bitwise AND. [[User:Ryan W|Ryan W]] 19:06, 21 January 2009 (UTC) Summary: 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. Upload images to the wiki. Don't forget to categorize pages! For testing, please use a sandbox. View this template Cancel | Editing help (opens in new window)