Bug 4695 - Buildable model displacement
Status: RESOLVED DUPLICATE of bug 2929
Alias: None
Product: Tremulous
Classification: Unclassified
Component: Misc
Version: SVN HEAD
Hardware: PC All
: P3 normal
Assignee: Tim Angus
QA Contact: Tremulous Bugs
URL:
Depends on:
Blocks:
 
Reported: 2010-08-10 23:26 EDT by WilliamH
Modified: 2010-08-11 00:44:17 EDT
0 users

See Also:


Attachments
Screenshot showing buggy behavior (89.75 KB, image/jpeg)
2010-08-10 23:26 EDT, WilliamH
Fix (769 bytes, patch)
2010-08-10 23:33 EDT, WilliamH

Description WilliamH 2010-08-10 23:26:50 EDT
Created attachment 2390 [details]
Screenshot showing buggy behavior

Under certain circumstances, especially when a buildable is placed extremely near a ledge, the model of the bbox can be displayed at the bottom of the ledge, while the bbox and hitbox remain at the top of the ledge. This can make building difficult as it is not always easy to predict where your buildable's bbox will end up, and it can be abused to hide boosters and turrets behind ledges, while allowing them to effect the environment above the ledge.

This bug can be visible on many maps including tremor, atcs, and arachnid2.
Comment 1 WilliamH 2010-08-10 23:33:43 EDT
Created attachment 2391 [details]
Fix

The function CG_PositionAndOrientateBuildable uses CG_CapTrace initially to place the buildable, and if errors are detected, then it resorts to CG_Trace. However, it appears that not all of the errors can be caught, resulting in the nasty visual bugs described above. Using CG_Trace in all cases fixes the bug and does not appear to degrade performance significantly or break anything else as far as I have found.
Comment 2 WilliamH 2010-08-11 00:44:17 EDT
Shit, I need to look around more carefully

*** This bug has been marked as a duplicate of bug 2929 ***