Coasterdude Posted March 14, 2007 Share 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? Link to comment Share on other sites More sharing options...
ensiform Posted March 14, 2007 Share 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? Link to comment Share on other sites More sharing options...
ensiform Posted March 14, 2007 Share 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 Link to comment Share on other sites More sharing options...
Coasterdude Posted March 14, 2007 Author Share Posted March 14, 2007 K thanks, LoL I didn't switch the -10 and -15, they were like that when I found them lol. Link to comment Share on other sites More sharing options...
ensiform Posted March 15, 2007 Share Posted March 15, 2007 I know, just stating that it may be a bug. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.