Home   Help Search Login Register  

Author Topic: Getting sounds in an addon to work with ECP?  (Read 1134 times)

0 Members and 1 Guest are viewing this topic.

Offline Gadjuka

  • Members
  • *
  • Programmer
    • Operation Flashpoint: Commander
Getting sounds in an addon to work with ECP?
« on: 16 Jul 2006, 11:48:14 »
I've got some sounds declared in my addon's config.cpp (all having the prefix 'cmdr' not to conflict with other addons). They all work fine when playing Flashpoint Resistance, BUT I want the addon to work with the ECP-mod and when I try to play the sounds in ECP I get a "Sound cmdrSound1 not found"-dialog!

I've tried putting the pbo-file in Ofp's addon-dir, ECP's addon-dir and in both at the same time. The sound part of my config looks like this (really there are more sounds...)

Code: [Select]
class CfgSounds
{
    sounds[] = { cmdrSound1 };

    class cmdrSound1
    {
         name = "";
         sound[] = {"\cmdraddon\sound\sound1.ogg", db-0, 1.0};
         titles[] = {};
    };
};

How do I get it to work with ECP???
Currently working on Operation Flashpoint: Commander.
Website: http://www.nordserver.se/commander/