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

Method P_ProjectSource

game/src/main/java/jake2/game/PlayerWeapon.java:1045–1055  ·  view source on GitHub ↗
(gclient_t client, float[] point,
            float[] distance, float[] forward, float[] right, float[] result)

Source from the content-addressed store, hash-verified

1043 };
1044
1045 public static void P_ProjectSource(gclient_t client, float[] point,
1046 float[] distance, float[] forward, float[] right, float[] result) {
1047 float[] _distance = { 0, 0, 0 };
1048
1049 Math3D.VectorCopy(distance, _distance);
1050 if (client.pers.hand == Defines.LEFT_HANDED)
1051 _distance[1] *= -1;
1052 else if (client.pers.hand == Defines.CENTER_HANDED)
1053 _distance[1] = 0;
1054 Math3D.G_ProjectSource(point, _distance, forward, right, result);
1055 }
1056
1057 /*
1058 * ===============

Callers 3

thinkMethod · 0.95
weapon_grenade_fireMethod · 0.95
Blaster_FireMethod · 0.95

Calls 2

VectorCopyMethod · 0.95
G_ProjectSourceMethod · 0.95

Tested by

no test coverage detected