|Re: PiD Weapon Damage|
|Posted By: Ron Hunsinger||Date: 6/20/12 7:27 p.m.|
In Response To: Re: PiD Weapon Damage (PerseusSpartacus)
: So I presume, based on what your post says, that PiD uses a variant of the
The algorithm they use takes advantage of the fact that they've just drawn the scene from your point of view, and they still have a display list of all the visible texture rectangles conveniently sorted by z-depth, with hidden parts already clipped away. Each rectangle was tagged with where it came from. (Wall? Critter? If a critter, which one?) They just walk that list, looking for rectangles that overlap the part of the screen they consider the target, pausing at each critter to let the code decide whether to continue down the list.
The target consists of either the center line of the screen, or the middle half of it. Any critter whose visible image overlaps the target is considered hit. Only horizontal is considered. You're not so much firing a cone as a wedge.
: Also, could you give us the code for the damage done by monster attacks?
There's lots more coming. Crystal tables; Item tables; Monster specs; Friendly fire; etc. I didn't want to put it all in one post, or even one thread.
|PiD Weapon Damage||Ron Hunsinger||6/20/12 4:12 p.m.|
|Re: PiD Weapon Damage||PerseusSpartacus||6/20/12 4:44 p.m.|
|Re: PiD Weapon Damage||Ron Hunsinger||6/20/12 7:27 p.m.|
|Re: PiD Weapon Damage||Ron Hunsinger||6/20/12 7:38 p.m.|
|Re: PiD Weapon Damage||Earthtopus||6/23/12 6:19 p.m.|
|Re: PiD Weapon Damage||Earthtopus||6/23/12 6:21 p.m.|
|Re: PiD Weapon Damage||Ron Hunsinger||6/23/12 11:56 p.m.|
|Re: PiD Weapon Damage||Earthtopus||6/26/12 10:18 a.m.|
|Re: PiD Weapon Damage||Ron Hunsinger||6/26/12 9:44 p.m.|
Problems? Suggestions? Comments? Email email@example.com
Marathon's Story Forum is maintained with WebBBS 5.12.