Submitted by
Miniwood on Sat, 2003-11-08 02:32.
Quake 2 Worldspawn Entities
worldspawn - This entity has got to be one of the easiest entities to use, (hence one of the easiest tutorials to write, heh) but it adds immensely to the completeness of a level.
If you've compiled and run a map, you've already used worldspawn. There are, however, a few keys that you can add to it, that change the environment throughout the map. These are:
sky -
This key changes the environment map for the level. In order to use it, add the "sky" key, and give it the value of the sky you wish to use. The environment maps included in Quake II are unit1_ through unit9_ and space1.
skyaxis -
If you would like to have a rotating sky, like in the final boss level, you'll need to define an axis for the sky to rotate around. Simply add a key of "skyaxis" and give it a vector using three numbers (vectors are the same values that define projectile paths, and line of sight for monsters.) If you don't quite know vectors, just play around with the numbers until you find one you like. Don't use 0 0 0 however, as this will give you a hall of mirrors effect. (doesn't define a vector, so it doesn't draw the sky) 0 0 1 will give a flat rotation.
skyrotate -
This controls the speed of rotation for the sky. Add the "skyrotate" key, and give it a value in degrees per second.
sounds -
This is the CD track that will play during the level. Add the "sounds" key, and give it a track number.
gravity -
This controls the gravity level. Default is 800. The gravity in the Comm Sattelite level is set at 100.
message -
This is the text that will appear at the console when you begin the level, and in the computer. Anything more than 32 characters, and you'll get a warning at the beginning of the level. Add a key of "message" and give it a value of whatever the title of the level is.
-GrrandMaMa