/-/S'pht-Translator-Active/-/


Re: PiD Weapon Damage
Posted By: Ron HunsingerDate: 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
: hitscan method to simulate player-made bullets? I say 'variant' because
: normal hitscan is where the gun fires a straight line. However, in the
: case of Frag Cartridges and the Violet Crystal, we fire a sort of cone,
: covering an area rather than a single line.

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.

[ Post a Reply | Message Index | Read Prev Msg | Read Next Msg ]
Pre-2004 Posts

Replies:

PiD Weapon DamageRon Hunsinger 6/20/12 4:12 p.m.
     Re: PiD Weapon DamagePerseusSpartacus 6/20/12 4:44 p.m.
           Re: PiD Weapon DamageRon Hunsinger 6/20/12 7:27 p.m.
     Re: PiD Weapon DamageRon Hunsinger 6/20/12 7:38 p.m.
           Re: PiD Weapon DamageEarthtopus 6/23/12 6:19 p.m.
     Re: PiD Weapon DamageEarthtopus 6/23/12 6:21 p.m.
           Re: PiD Weapon DamageRon Hunsinger 6/23/12 11:56 p.m.
                 Re: PiD Weapon DamageEarthtopus 6/26/12 10:18 a.m.
                       Re: PiD Weapon DamageRon Hunsinger 6/26/12 9:44 p.m.

[ Post a Reply | Message Index | Read Prev Msg | Read Next Msg ]
Pre-2004 Posts

 

 

Your Name:
Your E-Mail Address:
Subject:
Message:

If you'd like to include a link to another page with your message,
please provide both the URL address and the title of the page:

Optional Link URL:
Optional Link Title:

If necessary, enter your password below:

Password:

 

 

Problems? Suggestions? Comments? Email maintainer@bungie.org

Marathon's Story Forum is maintained with WebBBS 5.12.