Bug 5016 - Calls to trap_CM_PointContents don't update their origins based on moving entities (water).
Status: RESOLVED FIXED
Alias: None
Product: ioquake3
Classification: Unclassified
Component: Misc
Version: unspecified
Hardware: PC Windows NT
: P3 normal
Assignee: Zachary J. Slater
QA Contact: ioquake3 bugzilla mailing list
URL:
Depends on:
Blocks:
 
Reported: 2011-05-26 01:08 EDT by ensiform
Modified: 2011-06-06 11:05:32 EDT
1 user (show)

See Also:


Attachments
Diff file for CG_PointContents replacement and fixed trap_CM_TransformedPointContents usage (4.05 KB, application/octet-stream)
2011-05-26 01:08 EDT, ensiform

Description ensiform 2011-05-26 01:08:20 EDT
Created attachment 2751 [details]
Diff file for CG_PointContents replacement and fixed trap_CM_TransformedPointContents usage

If a map has moving water entity as a door, train or whatever to "drain" or "fill" and missile trails are passing through, the trail does not properly switch to bubbles or stop causing smoke.  Shotguns still seem to smoke while under these types of water brushes as well.

Solution: Fix CG_PointContents to use cent->lerpOrigin and cent->lerpAngles in the trap_CM_TransformedPointContents and replace all other trap_CM_PointContents with CG_PointContents (save the one inside of CG_PointContents itself).

Diff included for r2000.

Obviously really only applies to open source mods that want to make use of this change since it is for the cgame.
Comment 1 Thilo Schulz 2011-06-06 11:05:32 EDT
I'll take it anyway trusting you're doing the right thing.
Committed r2010