Material types? Sound triggers?

Get help with installing and running the Cafu Engine here. This forum is also for general questions and discussion of all aspects regarding the Cafu Engine.
Post Reply
Joined:2011-05-31, 07:37
Material types? Sound triggers?

Post by HWGuy » 2012-02-28, 08:52

Either I've failed to find it or it doesn't exist; is there an assignable material type for textures? Either text or numerical group value.
This simple feature is essential for a wide variety of things, if you shoot it what sound does it make, what kind of mark does does it leave, if you walk on it what sound does it make, friction, collision dampening, in some games even "temperature factor".

Another thing that should be added is a new form of volume, "sound modifier" which would have two values; echo/reverb and dampening.
Could also have an assignable sound which loops while you're in the volume, when you leave or enter the volume the sound and values fade in and out.
This could have a binary output so it can be used as a regular trigger volume.
This feature missing can be worked around, but working around it missing would be as much work as implementing it.

I personally find these two features even more important then a new rendering device... a game world is dead without good sound.
User avatar
Site Admin
Joined:2004-08-19, 13:46

Re: Material types? Sound triggers?

Post by Carsten » 2012-02-28, 23:26

Sorry, no such features yet.
All that we currently have, besides playback of background music tracks, is the speaker entity, which implements a subset of the features that you describe.

Worse, I realize that we don't seem to have any worthwhile documentation about it, but you may have a look at section
Insert new entity class in EntityClassDefs.lua, which refers to the speaker entity indirectly,
and to, which is about the speaker entity as well.

Sorry for not having more at the moment (but as always, any help to improve things is welcome!).
Best regards,
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests