///// BLA BLA BLA //////
class CfgSounds
{
class WH40KEPIC_PORTONE
{
sound[]={"\WH40KEPIC\doors\portone.ogg",db+30,0.90};
name = "Epic doors";
titles[] = {};
};
};
///// BLA BLA BLA //////
/////////////////////////////////
////////// Epic Gate ///////////
/////////////////////////////////
class Epic_0701Gate: strategic
{
vehicleClass = "WH40K - Epic Objects";
scope = 2;
cost = 1000;
mapSize=20;
armor = 5000;
model = "\WH40KEPIC\Epic_0701Gate.p3d";
displayName = "Epic 0701 Gate";
class Animations
{
class door1
{
type="rotation";
animPeriod=6;
selection="door1";
axis="door1axis";
sound[]={"\WH40KEPIC\doors\portone.ogg",db+30,0.90};
angle0=0.000000;
angle1=-1.50000;
};
class door2
{
type="rotation";
animPeriod=6;
selection="door2";
axis="door2axis";
sound[]={"\WH40KEPIC\doors\portone.ogg",db+30,0.90};
angle0=0.000000;
angle1=1.50000;
};
};
class UserActions
{
class Opendoor1
{
displayName="Open Gate";
position="pos_doorswitch1";
radius=2.5;
sound[]={"\WH40KEPIC\doors\portone.ogg",db+30,0.90};
condition="this animationPhase ""door1"" < 0.5; this animationPhase ""door2"" < 0.5";
statement="this animate [""door1"", 1]; this animate [""door2"", 1]";
};
class Closedoor1
{
displayName="Close Gate";
position="pos_doorswitch1";
radius=2.5;
sound[]={"\WH40KEPIC\doors\portone.ogg",db+30,0.90};
condition="this animationPhase ""door1"" >= 0.5; this animationPhase ""door2"" >= 0.5";
statement="this animate [""door1"", 0]; this animate [""door2"", 0]";
};
};
};
//////////////////////