Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define TEast 0
- #define TWest 1
- #define TGuerrila 2
- #define TCivilian 3
- #define TSideUnknown 4
- #define TEnemy 5
- #define TFriendly 6
- #define TLogic 7
- #define private 0
- #define protected 1
- #define public 2
- class CfgPatches {
- class inkObjets {
- units[] = {"barriere_chantier","borne_escamotable","Barriere_Chantier_p","ATM","Machine_boisson","barriere_metal"};
- weapons[] = {};
- requiredVersion = 0.1;
- requiredAddons[] = {"ink_cars"};
- };
- };
- class CfgVehicleClasses {
- class Objets {
- displayName = "Ink Objects";
- };
- };
- class CfgFactionClasses {
- class inkobjets {
- displayName = "inkobjets";
- priority = 100;
- side = TCivilian;
- };
- };
- class CfgVehicles {
- class Strategic; // External class reference
- class inkobjets_Strategic_Base : Strategic {
- scope = 2;
- model = "";
- faction = "inkobjets";
- destrType = "DestructNo";
- armor = 1e+011;
- vehicleClass = "Objets";
- displayName = "";
- mapSize = 1;
- };
- class inkobjets_Barriere_Chantier: inkobjets_Strategic_Base
- {
- scope=2;
- model="\ink_objets\barriere_chantier\barriere_chantier.p3d";
- displayName="Barriere Chantier";
- };
- class inkobjets_Barriere_Chantier_p: inkobjets_Strategic_Base
- {
- scope=2;
- model="\ink_objets\barriere_chantier\barriere_chantier_p.p3d";
- displayName="Barriere Chantier petite";
- };
- class inkobjets_ATM: inkobjets_Strategic_Base
- {
- scope=2;
- model="\ink_objets\Accessoires_div\ATM.p3d";
- displayName="Bancomat";
- };
- class inkobjets_Machine_boisson: inkobjets_Strategic_Base
- {
- scope=2;
- model="\ink_objets\Accessoires_div\Machine_boisson.p3d";
- displayName="Machine_boissons";
- };
- class inkobjets_barriere_metal: inkobjets_Strategic_Base
- {
- scope=2;
- model="\ink_objets\Barriere_decors\barriere_metal.p3d";
- displayName="barriere_metal";
- };
- class inkobjets_Barriere_droite_route: inkobjets_Strategic_Base
- {
- scope=2;
- model="\ink_objets\Barriere_decors\Barriere_droite_route.p3d";
- displayName="Barriere droite route longue";
- };
- class inkobjets_Barriere_Virage1_route: inkobjets_Strategic_Base
- {
- scope=2;
- model="\ink_objets\Barriere_decors\Barriere_Virage2_route.p3d";
- displayName="Barriere Virage2 route";
- };
- class inkobjets_Barriere_Virage2_route: inkobjets_Strategic_Base
- {
- scope=2;
- model="\ink_objets\Barriere_decors\Barriere_Virage1_route.p3d";
- displayName="Barriere Virage1 route";
- };
- class inkobjets_Barriere_Virage3_route: inkobjets_Strategic_Base
- {
- scope=2;
- model="\ink_objets\Barriere_decors\Barriere_Virage3_route.p3d";
- displayName="Barriere Virage3 route";
- };
- class inkobjets_Barriere_Virage4_route: inkobjets_Strategic_Base
- {
- scope=2;
- model="\ink_objets\Barriere_decors\Barriere_Virage4_route.p3d";
- displayName="Barriere Virage4 route";
- };
- class inkobjets_Barriere_Virage5_route: inkobjets_Strategic_Base
- {
- scope=2;
- model="\ink_objets\Barriere_decors\Barriere_Virage5_route.p3d";
- displayName="Barriere Virage5 route";
- };
- class inkobjets_Barriere_Virage6_route: inkobjets_Strategic_Base
- {
- scope=2;
- model="\ink_objets\Barriere_decors\Barriere_Virage6_route.p3d";
- displayName="Barriere Virage int6 route";
- };
- class inkobjets_Barriere_Virage7_route: inkobjets_Strategic_Base
- {
- scope=2;
- model="\ink_objets\Barriere_decors\Barriere_Virage7_route.p3d";
- displayName="Barriere Virage int7 route";
- };
- class inkobjets_Barriere_Virage8_route: inkobjets_Strategic_Base
- {
- scope=2;
- model="\ink_objets\Barriere_decors\Barriere_Virage8_route.p3d";
- displayName="Barriere Virage int8 route";
- };
- class inkobjets_Barriere_Virage9_route: inkobjets_Strategic_Base
- {
- scope=2;
- model="\ink_objets\Barriere_decors\Barriere_Virage9_route.p3d";
- displayName="Barriere Virage int9 route";
- };
- class inkobjets_Barriere_Virage10_route: inkobjets_Strategic_Base
- {
- scope=2;
- model="\ink_objets\Barriere_decors\Barriere_Virage10_route.p3d";
- displayName="Barriere Virage int10 route";
- };
- class inkobjets_Barriere_droite_fin2_route: inkobjets_Strategic_Base
- {
- scope=2;
- model="\ink_objets\Barriere_decors\Barriere_droite_fin2.p3d";
- displayName="Barriere droite fin2";
- };
- class inkobjets_Barriere_droite_fin1_route: inkobjets_Strategic_Base
- {
- scope=2;
- model="\ink_objets\Barriere_decors\Barriere_droite_fin1.p3d";
- displayName="Barriere droite fin1";
- };
- class inkobjets_Barriere_droite_fin3_route: inkobjets_Strategic_Base
- {
- scope=2;
- model="\ink_objets\Barriere_decors\Barriere_droite_fin3.p3d";
- displayName="Barriere droite fin3";
- };
- class inkobjets_Barriere_droite_fin_route: inkobjets_Strategic_Base
- {
- scope=2;
- model="\ink_objets\Barriere_decors\Barriere_droite_fin.p3d";
- displayName="Barriere droite fin";
- };
- class inkobjets_Barriere_bois: inkobjets_Strategic_Base
- {
- scope=2;
- model="\ink_objets\Barriere_decors\Barriere_bois.p3d";
- displayName="Barriere_bois";
- };
- class inkobjets_panneaux_pub: inkobjets_Strategic_Base
- {
- scope=2;
- model="\ink_objets\Panneau_pub\panneaux_pub.p3d";
- displayName="Panneau Pub grand";
- };
- class inkobjets_borne_escamotabler: inkobjets_Strategic_Base
- {
- scope=2;
- model="\ink_objets\borne_escamotable\borne_escamotable.p3d";
- displayName="borne_escamotable";
- class AnimationSources
- {
- // Animation sources for Bornes
- class Borne_1
- {
- source = "user"; // "user" = custom source = not controlled by some engine value
- initPhase = 0; // Initial value of animations based on this source
- animPeriod = 2; // Coefficient for duration of change of this animation
- playSound = "Bornemp3"; /// Selects sound class from CfgAnimationSourceSounds that is going to be used for sounds of Bornes
- };
- };
- class UserActions
- {
- class CloseBorne_1
- {
- displayName = "Ouvrir la Borne"; // Label of the action used in the action menu itself.
- position = Borne_1_trigger; // Point in Memory lod in p3d around which the action is available.
- priority = 0.2; // Priority coefficient used for sorting action in the action menu.
- radius = 2; // Range around the above defined point in which you need to be to access the action.
- onlyForPlayer = false; // Defines if the action is available only to players or AI as well.
- condition = "this animationPhase ""Borne_1""< 0.5"; // Condition for showing the action in action menu. In this case it checks if the Borne is closed and if the part of the house in which the Borne is located hasn't been destroyed yet).
- statement = "this animate [""Borne_1"",1];";
- };
- class OpenBorne_1: CloseBorne_1
- {
- displayName = "Fermer la Borne";
- condition = "this animationPhase ""Borne_1"">= 0.5"; // Condition for showing the action in action menu. In this case it checks if the Borne is closed and if the part of the house in which the Borne is located hasn't been destroyed yet).
- statement = "this animate [""Borne_1"",0];";
- };
- };
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement