mirror of
https://github.com/DrBeef/JKXR.git
synced 2024-11-10 06:42:17 +00:00
Do not check angle on non-facing triggers
This commit is contained in:
parent
402277e717
commit
15d932c75f
2 changed files with 8 additions and 8 deletions
|
@ -1385,10 +1385,10 @@ void G_TouchTriggersWithHand( gentity_t *ent, vec3_t src, vec3_t vf ) {
|
|||
continue;
|
||||
}
|
||||
|
||||
// In case touching button-like entity via use gesture, check activation angle here.
|
||||
// Existing check in g_trigger.cpp Touch_Multi is problematic because we do not have
|
||||
// there information by which hand was entity triggered.
|
||||
if ( DotProduct( hit->movedir, vf ) < 0.5 ) {
|
||||
// In case touching entity requiring to be activated facing to it via use gesture, check
|
||||
// activation angle here. Existing check in g_trigger.cpp Touch_Multi is problematic because
|
||||
// we do not have there information by which hand was entity triggered.
|
||||
if ( (hit->spawnflags & 2) && DotProduct( hit->movedir, vf ) < 0.5 ) {
|
||||
//Not Within 45 degrees
|
||||
continue;
|
||||
}
|
||||
|
|
|
@ -856,10 +856,10 @@ void G_TouchTriggersWithHand( gentity_t *ent, vec3_t src, vec3_t vf ) {
|
|||
continue;
|
||||
}
|
||||
|
||||
// In case touching button-like entity via use gesture, check activation angle here.
|
||||
// Existing check in g_trigger.cpp Touch_Multi is problematic because we do not have
|
||||
// there information by which hand was entity triggered.
|
||||
if ( DotProduct( hit->movedir, vf ) < 0.5 ) {
|
||||
// In case touching entity requiring to be activated facing to it via use gesture, check
|
||||
// activation angle here. Existing check in g_trigger.cpp Touch_Multi is problematic because
|
||||
// we do not have there information by which hand was entity triggered.
|
||||
if ( (hit->spawnflags & 2) && DotProduct( hit->movedir, vf ) < 0.5 ) {
|
||||
//Not Within 45 degrees
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue