Jufa Posted October 23, 2005 Share Posted October 23, 2005 I have one function and I want it to run every client frame. Like if u have 90fps it would run 90 times/second. Or u have 33 and it runs 33 times per second. Now I use: next.think = level.time and it runs every server frame (sv_fps). How I get it running every client frame? Sry for stupid-sounding question, Jufa Link to comment Share on other sites More sharing options...
stubert Posted October 24, 2005 Share Posted October 24, 2005 cg_runframe or g_runframe Link to comment Share on other sites More sharing options...
Jufa Posted October 24, 2005 Author Share Posted October 24, 2005 w00t thnx Link to comment Share on other sites More sharing options...
Jufa Posted October 24, 2005 Author Share Posted October 24, 2005 uhh... how is that supposed to help me? This function does the movement of flashlight and now it runs every serverframe, so it doesn't match the crosshair's movement (which updates every clientframe). Link to comment Share on other sites More sharing options...
razorace Posted October 24, 2005 Share Posted October 24, 2005 mmm, I think the short answer is that you can't make the server side code update faster than client side except inside the clientthink process. This sort of think really should be a client side functionality. Link to comment Share on other sites More sharing options...
razorace Posted October 24, 2005 Share Posted October 24, 2005 mmm, I think the short answer is that you can't make the server side code update as fast as the client fps, except possibly inside the clientthink process (which isn't designed to update world models other than the players). This sort of code really should be client side. Link to comment Share on other sites More sharing options...
Jufa Posted October 25, 2005 Author Share Posted October 25, 2005 hmm... i'll try what happends if i move that function to client-side... Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.