UFO: Alien Invasion Issue Tracker
UFO: Alien Invasion
Go to the previous open issue
Go to the previous issue (open or closed)
star_faded.png
Please log in to bookmark issues
icon_project.png UFO: Alien Invasion / Closed Bug report #437 body blocks line of fire
Go to the next issue (open or closed)
Go to the next open issue
This issue has been closed with status "Closed" and resolution "Not determined".
Issue basics
  • Type of issue
    Bug report
  • Category
    General
  • Targetted for
    Not determined
  • Status
    Closed
  • Priority
    3. Normal
User pain
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
Affected by this issue (0)
There are no items
People involved
Times and dates
  • Posted at
  • Last updated
  • Estimated time
    Not estimated
Issue details
  • Resolution
    Not determined
  • Reproducability
    Not determined
  • Severity
    Not determined
  • Complexity
    Not determined
  • Platform
    Not determined
  • Architecture
    Not determined
Attachments (0)
There is nothing attached to this issue
Duplicate issues (0)
This issue does not have any duplicates
Description
[http://sourceforge.net/p/ufoai/bugs/437 Item 437] imported from sourceforge.net tracker on 2013-01-28 18:21:29

Dead body seems to block line on fire. RC6, winXP, see screenshoots (from mine01n):
http://voovoos.killfile.pl/roznosci/deadbody1.jpg
http://voovoos.killfile.pl/roznosci/deadbody2.jpg
===== Comments Ported from Sourceforge =====

====== nobody (2006-11-16 05:19:10) ======

Logged In: NO

Does it on 2.1, latest build also.
====== cassiterite (2006-11-16 07:04:08) ======

Logged In: YES
user_id=1171370
Originator: NO

Thanks for discovering this.

The client-side tracing code is slightly incorrect - it doesn't do collision with "entities" (like soldiers/aliens) correctly. You will find that even though the interface is indicating the line of fire is blocked, you can still shoot past the dead alien, because the server-side code which controls the actual executed action of shooting does have correct code :-)

There is a simple hack that will fix this, but to do it properly requires fixing the client-side tracing code to bring it in-line with the server's tracing code (indeed the only difference is the way it handles entity collision). I looked at this not so long ago and I do think it is possible, but involves a little work and testing since the client-side and server-side entity model data structures are a bit different (or maybe I missed something obvious). I'll look into implementing a proper fix...
====== cassiterite (2006-11-26 00:01:16) ======

Logged In: YES
user_id=1171370
Originator: NO

Well I had a look at the client-side tracing code again, but I still can't work out how to trace against the client-side actor models.

So for now I've implemented the simple hack I alluded to earlier (see trunk revision 4920). Testing incidcates this hack performs very well (at least as well as other client-side approximates already in place).

I think the simple approach will suffice for now, however I have added a TODO to the code with some pointers on how the client-side code should ultimately be fixed.
====== alexb4 (2011-10-09 13:29:37) ======

The problem still persists. Bodies do not block the line of fire, but fire always ends at dead body.
2.3.1, Gentoo Linux, amd64, CFLAGS="-O2 -pipe -march=core2 -fomit-frame-pointer"
Steps to reproduce this issue
Nothing entered.
Todos (0 / 0)
Issue created
footer_logo.png The Bug Genie 4.3.1 | Support | Feedback spinning_16.gif