|
DesignWhat the Pseudocam knows...(a lot)The pseudocam, and camera structsEach pseudocam knows the following things....
What the pseudocam doesThe pseudocam methodsThese are the methods written explicity in the g_pseudocam.c file, there are other methods written to support these as well as to provide extra functionality and interface. But these are the heart and soul (more so the heart).
Creates and initialises a pseudo camera
lists the available pseudocams
sets the screen dimenstions of the pserudocam related to the scrren height and width of the client that connects
Tells if the pseudo cam exists or not
This is the major method that gets called once a frame, this method determines the position of the pseudocamera, then the camera. It also determines the looking vectors for each of the cameras associated with the pseudocamera, and does a lot of maths to calculate the final vectors
Goes through the folllow cycle of the players
Updates the clients that are associacted with individual cameras, this is called from the updateCamera
gives you the viewpos of the pseudocamera
sets the viewpos of the pseudocamera so you can jump around with it
lets an entity (player) join the pseudo camera
lists each of the clients associated with the pseudocamera and gives you their position and looking vectors
frees the client from the pseudocamera
Zooms in the pseudocamera (called everyframe when zooming in)
Zooms out the pseudocamera (called everyframe when zooming in) |