Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ( ent->client->ps.weapon == WP_BLASTER )
- slopFactor = 0.2;
- else if ( ent->client->ps.weapon == WP_DISRUPTOR )
- slopFactor = 0.1;
- //Crouching = more accurate
- if ( ent->client->ps.pm_flags & PMF_DUCKED )
- slopFactor *= 0.030000;
- else
- slopFactor *= 0.055555;
- //If they're running, make them less accurate
- if( PM_RunningAnim( ent->client->ps.legsAnim ) )
- slopFactor *= 0.033333;
- //If they're running, make them less accurate(not as inaccurate as running, though)
- if( PM_WalkingAnim( ent->client->ps.legsAnim ) )
- slopFactor *= 0.888888;
- //[/OpenRP - Weapon Accuracy]
- vectoangles( forward, angs );
- angs[PITCH] += flrand( -slopFactor, slopFactor );
- angs[YAW] += flrand( -slopFactor, slopFactor );
- AngleVectors( angs, forward, NULL, NULL );
Advertisement
Add Comment
Please, Sign In to add comment