Jump to content

Home

next.think pr0oblem


Jufa

Recommended Posts

Posted

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 :p

Posted

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).

Posted

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.

Posted

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.

Archived

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

×
×
  • Create New...