m4 kick fix

This commit is contained in:
Bryce Hutchings 2002-06-29 02:41:34 +00:00
parent 78619394fc
commit 2a11d4be13

View file

@ -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;
}
} }