Classname: | func_rotating |
Purpose: | Pinwheels, decapitation, whatever. |
H2 Code: | misc.hc |
Their brushes
spin around the x, y or z=default axis, and other axes in the
horizontal plane with the aid of an angle field. And you can ride on them, and they can inflict damage. My personal experiments have been a bit perfunctory because Eutectic looked into them carefully. They need to either be triggered, or have their `START_ON' spawnflag checked. Editors vary somewhat in the facilities they provide for rotating brushes; Here are some instructions for Worldcraft. |
origin | Value is a triple of numbers, the X-Y-Z coordinates of the point around
which the brush rotates (no default; value REQUIRED). But if the brush
rotates around the Z axis, it doesn't matter what the Z-coordinate
actually is. Many editors, including HexMaker and Worldcraft don't seem to support the origin field for rotating brushes, but instead require the use of an alternative, an origin brush. This is simply a brush, owned by the rotating door, and typically extending through it, that carries the `origin' texture (white texture with ORIGIN written on it). The origin brush will not appear in the .bsp, but the door will rotate around its center. |
speed | Value is a number, the speed of rotation; default = 100 (neither real fast nor real slow). |
thingtype | Value is a name, determines chunk-type and hit-sound when hit, as follows. Default = WOOD = 2. Only has effect when BREAK spawnflag is set. |
health | Value is a mumber, how much damage it takes before breaking.
The BREAK spawnflag must be set this to work, health is set by
default from thingtype as follows:
|
dmg | Value is a number, supposedly damage inflicted when movement is actually blocked, e.g. player is caught between rotating brush and a wallm, but only 666 = gib sems to work. |
abslight | Value is a number between 0 and 1, giving absolute light-level |
targetname | Value is a name, toggles rotation when triggered |
anglespeed | Value is a number, how fast rotator speeds up & slows down if the GRADUAL spawnflag is on. 1 will be very slow, 100 will be instant. (Default is 10). |
angle | Value is a number, rotating brushes will appear in the game rotated by that amount around its origin in the horizontal plane, and if the X_AXIS or Y_AXIS spawnflag is checked, will open accordingly (swinging around the X and Y axes thru its origin as rotated by angle). This rotation does not show up up in the map (at least with QuArK 4.7), so getting complex effects might requuire a fair amount of pre-calculation. The 3D angles field angles_y can also be used for this effect, but I haven't gotten the others to do anthing, and I haven't gotten a door to rotate around an arbitrary 3D axis). |
spawnflags | Value is a number, sum up the ones below for the properties you
want (hopefully your editor has a checkbox scheme or something to
do the arithmetic for you):
|