Coasterdude Posted March 14, 2007 Posted March 14, 2007 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?
ensiform Posted March 14, 2007 Posted March 14, 2007 flrand chooses a random float between -10 and -15 as you can see there, though shouldn't it be -15, -10 considering -15 is technically more negative?
ensiform Posted March 14, 2007 Posted March 14, 2007 I'm not sure why you would want to make it stay up though dood... Anyway, check CG_OffsetFirstPersonView in cg_view.c
Coasterdude Posted March 14, 2007 Author Posted March 14, 2007 K thanks, LoL I didn't switch the -10 and -15, they were like that when I found them lol.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.