add a comment describing PC specific shield handling

This commit is contained in:
joshuarwood committed 2026-03-13 18:01:10 -05:00
1 parent 0946cd18c6
commit fc70da875e
1 file changed
+7
+7
View File
@@ -4545,6 +4545,13 @@ void chrTestHit(struct prop *prop, struct shotdata *shotdata, bool isshooting, b
if (hitpart) {
if (chrGetShield(chr) > 0.0f) {
#ifndef PLATFORM_N64
/**
* var8005efc0 > 0.0f adds a padding to bbox hit detection
* in modelTestBboxNodeForHit() that accounts for a character's
* surrounding shield. We skip this step on PC when checking
* line-of-sight hits to light artifacts because lights should
* be visible through the transparent shield.
*/
if (g_BgHitXluDisabled == false)
#endif
var8005efc0 = 10.0f / model->scale;