mirror of
https://github.com/yquake2/xatrix.git
synced 2024-11-12 23:54:30 +00:00
Revert "Update weapon.c"
This reverts commit 44e50a12ca
.
The author didn't give us permission to relicense the code to GPL2.
This commit is contained in:
parent
6fb31423e5
commit
b2fe34a575
1 changed files with 0 additions and 13 deletions
|
@ -1798,21 +1798,8 @@ weapon_supershotgun_fire(edict_t *ent)
|
||||||
v[YAW] = ent->client->v_angle[YAW] - 5;
|
v[YAW] = ent->client->v_angle[YAW] - 5;
|
||||||
v[ROLL] = ent->client->v_angle[ROLL];
|
v[ROLL] = ent->client->v_angle[ROLL];
|
||||||
AngleVectors(v, forward, NULL, NULL);
|
AngleVectors(v, forward, NULL, NULL);
|
||||||
|
|
||||||
if (aimfix->value)
|
|
||||||
{
|
|
||||||
AngleVectors(v, forward, right, NULL);
|
|
||||||
|
|
||||||
VectorScale(forward, -2, ent->client->kick_origin);
|
|
||||||
ent->client->kick_angles[0] = -2;
|
|
||||||
|
|
||||||
VectorSet(offset, 0, 8, ent->viewheight - 8);
|
|
||||||
P_ProjectSource(ent, offset, forward, right, start);
|
|
||||||
}
|
|
||||||
|
|
||||||
fire_shotgun(ent, start, forward, damage, kick, DEFAULT_SHOTGUN_HSPREAD,
|
fire_shotgun(ent, start, forward, damage, kick, DEFAULT_SHOTGUN_HSPREAD,
|
||||||
DEFAULT_SHOTGUN_VSPREAD, DEFAULT_SSHOTGUN_COUNT / 2, MOD_SSHOTGUN);
|
DEFAULT_SHOTGUN_VSPREAD, DEFAULT_SSHOTGUN_COUNT / 2, MOD_SSHOTGUN);
|
||||||
|
|
||||||
v[YAW] = ent->client->v_angle[YAW] + 5;
|
v[YAW] = ent->client->v_angle[YAW] + 5;
|
||||||
AngleVectors(v, forward, NULL, NULL);
|
AngleVectors(v, forward, NULL, NULL);
|
||||||
fire_shotgun(ent, start, forward, damage, kick, DEFAULT_SHOTGUN_HSPREAD,
|
fire_shotgun(ent, start, forward, damage, kick, DEFAULT_SHOTGUN_HSPREAD,
|
||||||
|
|
Loading…
Reference in a new issue