setviewpos along a predefined path


(Wikkit) #1

What I wanna do is create a custom camera (much like the ones found in RTCW SP) that moves along a predefined path, by supplying the game with a stream of setviewpos values. This could of course be done with a simple cfg, but would I then have to write down every set of viewpos values? Needless to say, that is too time consuming and the result wouldn’t be that nice.

The thought was to use an equation that will yeild a camera position as a function of time. Is this doable? Could it be done with a script of some sort? I would be thankful for pointers on this. :slight_smile:


(Rain) #2

etpro 3.0.1 (when released) or the current bugfix release will enable the camera code from RtCW. You might want to take a look at that, since it’ll be very difficult to get consistent behavior using a config and a bunch of setviewpos calls. (Plus, setviewpos won’t work in demos.)


(Wikkit) #3

Thank you very much for pointing this out. I seem to recall having looked for the camera command on previous occasions just to find nothing. But now it’s there and it works like a charm. :slight_smile:

Bani for president!