MCPcopy Create free account
hub / github.com/demoth/jake2 / SV_Impact

Method SV_Impact

game/src/main/java/jake2/game/SV.java:102–112  ·  view source on GitHub ↗

Two entities have touched, so run their touch functions.

(SubgameEntity e1, trace_t trace, GameExportsImpl gameExports)

Source from the content-addressed store, hash-verified

100 * Two entities have touched, so run their touch functions.
101 */
102 private static void SV_Impact(SubgameEntity e1, trace_t trace, GameExportsImpl gameExports) {
103 // assuming edicts are created only on game side
104 SubgameEntity e2 = (SubgameEntity) trace.ent;
105
106 if (e1.touch != null && e1.solid != Defines.SOLID_NOT)
107 e1.touch.touch(e1, e2, trace.plane, trace.surface, gameExports);
108
109 // fixme: why trace plane & surface are not passed here?
110 if (e2.touch != null && e2.solid != Defines.SOLID_NOT)
111 e2.touch.touch(e2, e1, GameBase.dummyplane, null, gameExports);
112 }
113
114 private static int SV_FlyMove(SubgameEntity ent, float time, int mask, GameExportsImpl gameExports) {
115 edict_t hit;

Callers 2

SV_FlyMoveMethod · 0.95
SV_PushEntityMethod · 0.95

Calls 1

touchMethod · 0.45

Tested by

no test coverage detected