Camera Orbit

From WiCWiki

Revision as of 08:29, 16 May 2008 by Tabu (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

Camera orbit at the start of the map:

This is broken and will be fixed in the next release. In the meantime you can go to the map folder of your custom map, find the "server.py" file, open it in a text editor and delete everything in it. Then add the following single line (without quotation marks): "from serverimports import * "

Do the exact same thing with the file "client.py", but instead add (without quotation marks): "from clientimports import * "

This activates the camera sweep. It should also be possible to make map specific camera sweeps, although we haven't tried this internally.

To do this, in the file clientimports.py (in the root "python" folder), there is a function called "OnStartCameraSweepScript". This function is called once when the camera sweep starts (true) and once when it stops (false). This camera ride is global for all maps.

Theoretically, if you want to make it unique for a certain map, you can create a function with the same name in the file "client.py" (in the folder "maps/mapname/python") and script your own camera sweeps in there. It should be possible to have the camera do map specific stuff (look at specific coordinates et cetera) during the sweep.

Personal tools
User Created Content