Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class CfgPatches
- {
- class proRP_ChemicalFactory_F
- {
- units[] = {};
- weapons[] = {};
- requiredVersion = 0.1;
- requiredAddons[] = {};
- };
- };
- class CfgAnimationSourceSounds
- {
- class GarageDoor
- {
- class DoorMovement
- {
- loop = 0;
- terminate = 0;
- trigger = "(phase factor[0.05,0.10]) * (phase factor[0.95,0.])";
- sound0[] = {"proRP\ChemicalFactory\data\GarageDoor.ogg",0.398107,1,20};
- sound[] = {"sound0",1};
- };
- };
- };
- class CfgVehicles
- {
- class House;
- class House_F: House{};
- class Ruins_F;
- class Land_ChemicalFactory_F: House_F
- {
- displayName = "Chemical Factory";
- textSingular = "Chemical Factory";
- model = "\proRP\ChemicalFactory\proRP_ChemicalFactory.p3d";
- vehicleClass = "Structures";
- scope = 2;
- cost = 5000;
- mapSize = 10;
- class AnimationSources
- {
- class ChemicalFactory_Door01_Rotation
- {
- source = "user";
- initPhase = 0;
- animPeriod = 1;
- sound = "GenericDoorsSound";
- };
- class ChemicalFactory_Door02_Rotation: ChemicalFactory_Door01_Rotation {};
- class ChemicalFactory_Door03_Rotation: ChemicalFactory_Door01_Rotation
- {
- animPeriod = 12;
- sound = "GarageDoor";
- };
- class ChemicalFactory_Door_04_Rotation: ChemicalFactory_Door01_Rotation
- {
- animPeriod = 12;
- sound = "GarageDoor";
- };
- class ChemicalFactory_Door_05_Rotation
- {
- source = "user";
- initPHase = 0;
- animPeriod = 1;
- sound = "GenericDoorsSound";
- };
- class ChemicalFactory_CraneTop_Translation: ChemicalFactory_Door01_Rotation
- {
- animPeriod = 10;
- sound = "";
- };
- class ChemicalFactory_CraneBottom_Translation: ChemicalFactory_Door01_Rotation
- {
- animPeriod = 25;
- sound = "";
- };
- };
- class UserActions
- {
- class ChemicalFactory_Door0102_Open
- {
- displayNameDefault = "<img image='\JCA_Main\JCA_Data\data\open_door_ca.paa' size='2.5' />";
- displayName = "Open Doors";
- position = "Door_01_Trigger";
- radius = 2;
- priority = 1;
- onlyForPlayer = 0;
- condition = "this animationPhase ""ChemicalFactory_Door01_Rotation"" <0.5";
- statement = "this animate [""ChemicalFactory_Door01_Rotation"", 1]; this animate [""ChemicalFactory_Door02_Rotation"", 1];";
- };
- class ChemicalFactory_Door0102_Close: ChemicalFactory_Door0102_Open
- {
- displayName = "Close Doors";
- condition = "this animationPhase ""ChemicalFactory_Door01_Rotation"" >= 0.5";
- statement = "this animate [""ChemicalFactory_Door01_Rotation"", 0]; this animate [""ChemicalFactory_Door02_Rotation"", 0];";
- };
- class ChemicalFactory_Door03_Open
- {
- displayNameDefault = "<img image='\JCA_Main\JCA_Data\data\open_door_ca.paa' size='2.5' />";
- displayName = "Open Garage Door";
- position = "Door_034_Trigger";
- radius = 5;
- priority = 1;
- onlyForPlayer = 0;
- condition = "this animationPhase ""ChemicalFactory_Door03_Rotation"" < 0.5";
- statement = "this animate [""ChemicalFactory_Door03_Rotation"", 1];";
- };
- class ChemicalFactory_Door03_Close: ChemicalFactory_Door03_Open
- {
- displayName = "Close Garage Door";
- condition = "this animationPhase ""ChemicalFactory_Door03_Rotation"" >= 0.5";
- statement = "this animate [""ChemicalFactory_Door03_Rotation"", 0];";
- };
- class ChemicalFactory_Door04_Open: ChemicalFactory_Door03_Open
- {
- displayName = "Open Garage Door";
- condition = "this animationPhase ""ChemicalFactory_Door04_Rotation"" < 0.5";
- statement = "this animate [""ChemicalFactory_Door04_Rotation"", 1];";
- };
- class ChemicalFactory_Door04_Close: ChemicalFactory_Door03_Open
- {
- displayName = "Close Garage Door";
- condition = "this animationPhase ""ChemicalFactory_Door04_Rotation"" >= 0.5";
- statement = "this animate [""ChemicalFactory_Door04_Rotation"", 0];";
- };
- class ChemicalFactory_Door05_Open
- {
- displayName = "Open Door";
- position = "Door_05_Trigger";
- radius = 2;
- priority = 1;
- onlyForPlayer = 0;
- condition = "this animationPhase ""ChemicalFactory_Door05_Rotation"" < 0.5";
- statement = "this animate [""ChemicalFactory_Door05_Rotation"", 1];";
- };
- class ChemicalFactory_Door05_Close
- {
- displayName = "Close Door";
- position = "Door_05_Trigger";
- radius = 2;
- priority = 1;
- onlyForPlayer = 0;
- condition = "this animationPhase ""ChemicalFactory_Door05_Rotation"" >= 0.5";
- statement = "this animate [""ChemicalFactory_Door05_Rotation"", 0];";
- };
- class ChemicalFactory_Crane_Start
- {
- displayName = "Move Crane";
- position = "ControlPanel_Trigger";
- radius = 2;
- priority = 2;
- onlyForPlayer = 0;
- condition = "this animationPhase ""ChemicalFactory_CraneTop_Translation"" < 0.5";
- statement = "this animate [""ChemicalFactory_CraneTop_Translation"", 1]; this animate [""ChemicalFactory_CraneBottom_Translation"", 1];";
- };
- class ChemicalFactory_Crane_End: ChemicalFactory_Crane_Start
- {
- condition = "this animationPhase ""ChemicalFactory_CraneBottom_Translation"" >= 0.5";
- statement = "this animate [""ChemicalFactory_CraneBottom_Translation"", 0] this animate [""ChemicalFactory_CraneTop_Translation"", 0];";
- };
- };
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement