by andrewj » Thu Oct 28, 2010 8:11 am
I'm not sure I can explain it very well, but here goes:
In QuakeC you can set various things, like the model's frame, but it only has an effect when the QuakeC code has returned back to the engine and the engine redraws the screen.
So to make animations visible, you change the frame in QuakeC and set the 'nextthink' time and then return. The engine will draws the world and eventually call back into QuakeC (when that think time is reached) where you can set the next frame, and QuakeC returns and the engine redraws the world again, and will call back into QuakeC for the next frame, and so on........
Having a loop in QuakeC (like yours) doesn't work because the engine never gets a chance to redraw the screen with the updated information.