Jump to content

Home

weapon pop up


Coasterdude

Recommended Posts

Okay I'm in cg_weapons.c under cg_FireWeapon()

			if (ent->weapon == WP_CONCUSSION)
		{
			if (!cg.renderingThirdPerson )//gives an advantage to being in 3rd person, but would look silly otherwise
			{//kick the view back
				cg.kick_angles[PITCH] = flrand( -10, -15 );
				cg.kick_time = cg.time;
			}
		}

What does flrand() do? And what Can I do to make it so once the weapon is shot the crosshair bobs up and stays up, rather than going back down again?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...