mirror of
https://github.com/ReactionQuake3/reaction.git
synced 2024-11-11 07:42:15 +00:00
m4 kick fix
This commit is contained in:
parent
78619394fc
commit
2a11d4be13
1 changed files with 12 additions and 3 deletions
|
@ -5,6 +5,9 @@
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
//
|
//
|
||||||
// $Log$
|
// $Log$
|
||||||
|
// Revision 1.71 2002/06/29 02:41:34 niceass
|
||||||
|
// m4 kick fix
|
||||||
|
//
|
||||||
// Revision 1.70 2002/06/26 03:27:37 niceass
|
// Revision 1.70 2002/06/26 03:27:37 niceass
|
||||||
// handcannon crash bug fixed
|
// handcannon crash bug fixed
|
||||||
//
|
//
|
||||||
|
@ -1349,9 +1352,15 @@ void Weapon_M4_Fire(gentity_t * ent)
|
||||||
} else {
|
} else {
|
||||||
spread = M4_SPREAD;
|
spread = M4_SPREAD;
|
||||||
//M4-kick stuff
|
//M4-kick stuff
|
||||||
ent->client->consecutiveShots++;
|
|
||||||
if (ent->client->consecutiveShots > 23)
|
// NiceAss; Make it so M4 kickback doesn't happen
|
||||||
ent->client->consecutiveShots = 23;
|
// if looking straight up
|
||||||
|
if (ent->client->ps.viewangles[0] > -85.0f) {
|
||||||
|
ent->client->consecutiveShots++;
|
||||||
|
|
||||||
|
if (ent->client->consecutiveShots > 23)
|
||||||
|
ent->client->consecutiveShots = 23;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue