Effects on objects

The mud client can display effects such as an explosion and fire. There are two effects. They are fire and blurring effects. The blurring effect works on entire scene and not on a single object. Effects can specified as part of an object (eg fire for a candle in FIREFX child) or an effect can be displayed due to an actions (eg a bomb exploding). A list of effects is in the config file under effects. Both types of effects (effect as child of object or effect caused by action) reference this list.

Effect as child of object

files/candle.jpg

The following is an object that is a candle with a fire effect. It is made up of a cylinder and a dummycube where the dummycube has the fire effect.


<OBJECT name="candle">

<DUMMYCUBE z="0.035" scalex="0.3" scaley="0.3" scalez="0.3" >
<EFFECTS>
<FIREFX manager="candle"/>
</EFFECTS>
</DUMMYCUBE>
<CYLINDER height="0.025" topradius="0.002"/>

</OBJECT>

The FIREFX effect references a fire effect in the effects list. In this way many different objects can share the same effect.

Effects from actions
Effects are also instigated by actions such as an explosion (eg obomb,aboom).

files/firefx.jpg

Again these effects are located in the effects list. An action is linked to an effect through the 'effect' attribute in actions.

For example this boom action links to the 'boom' effect in effects:

<ACTION action="aboom" effect="boom" sound="boom"/>

and then in effects:


<EFFECTS>

<FIREFXS>
<FIREFX name="boom" maxparticles="512" particlesize="0.2"

firedensity="0.6" fireevaporation="0.86" particlelife="1" fireradius="0.5"
particleinterval="0.01" useinterval="true" innercolor="0000FF" outercolor="AAAAFF"/>

</FIREFXS>

</EFFECTS>

Blur
The blur effect blurs an entire scene and is specified in the SCENEEFFECTS element in effects. Like the fire effect the 'effect' attribute in actions links to the name of effect eg

<ACTIONS action="adeath" effect="blur" sound="scream"/>

would link to the following "blur" effect:


<SCENEEFFECTS>

<BLUR name="blur" preset="dream" time="10"/>

</SCENEEFFECTS>

files/blur.jpg