Guest User

Untitled

a guest
Nov 10th, 2019
269
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 7.85 KB | None | 0 0
  1. #include "basicdefines_A3.hpp"
  2. class DefaultEventhandlers;
  3. class WeaponFireGun;
  4. class WeaponCloudsGun;
  5. class WeaponFireMGun;
  6. class WeaponCloudsMGun;
  7. class CfgPatches
  8. {
  9.     class Charlieco89_Skin_AddOn_Cars
  10.     {
  11.         units[]= {"Charlieco89_Skin_AddOn_Cars"};
  12.         weapons[]={};
  13.         requiredVersion=0.1;
  14.         requiredAddons[]={};
  15.     };
  16. };
  17. class CfgSounds {
  18.         sounds[] = {"siren_stadt","siren_land"};
  19.         class siren_stadt {
  20.             name = "siren_stadt";
  21.             sound[] = {"Charlieco89_Skins\sirene\stadt\stadt.ogg", 4.48, 1.0, 250};
  22.             titles[] = {};
  23.         };
  24.         class siren_land {
  25.             name = "siren_land";
  26.             sound[] = {"Charlieco89_Skins\sirene\land\land.ogg", 4.47, 1.0, 250};
  27.             titles[] = {};
  28.         };
  29. };
  30. class cfgWeapons {
  31.     class SportCarHorn;
  32.     class stadt: SportCarHorn {
  33.         reloadTime=0;
  34.         drySound[]=
  35.             {
  36.                 "Charlieco89_Skins\sirene\stadt\stadt.ogg",
  37.                 1,
  38.                 1
  39.             };
  40.         scope=2;
  41.     };
  42.     class land: SportCarHorn {
  43.         reloadTime=0;
  44.         drySound[]=
  45.             {
  46.                 "Charlieco89_Skins\sirene\land\land.ogg",
  47.                 1,
  48.                 1
  49.             };
  50.         scope=2;
  51.     };
  52. };
  53. class CfgVehicles {
  54.     class Car_F {
  55.         class UserActions;
  56.     };
  57.     class passatb6ch_base_F:Car_F{};
  58.     class passatb6ch_samu : passatb6ch_base_F{};
  59.     class Charlieco89_Skin_AddOn_Cars : passatb6ch_samu
  60.     {
  61.         scope = public;
  62.         crew = "C_man_1";
  63.         side = 3;
  64.         faction = CIV_F;
  65.         displayName = "VW Passat B6 (NEF)";
  66.         author = "Charlieco89";
  67.         editorSubcategory = "chSAMU";
  68.         vehicleClass = "chSAMU";
  69.         weapons[] = {"chkla1","stadt","land","kompressor"};
  70.         hiddenSelectionsTextures[] = {"Charlieco89_Skins\textures\passat_b6_body_BER_FW.paa"};
  71.         class EventHandlers{init = "_this execVM ""Charlieco89_Skins\sirene\stadt\init_stadt.sqf"";""Charlieco89_Skins\sirene\land\init_land.sqf"";";};
  72.         class UserActions:UserActions {
  73.             //Blinker
  74.             class ClignotantsDroitAllumer{
  75.                 condition = "(driver this == player) && (alive this) && (this animationPhase ""ClignotantsDroitStart"" == 0) && isEngineOn this";
  76.                 displayName = "<t color='#fff000'>Blinker Rechts</t>";
  77.                 displayNameDefault = "<t color='#fff000'>Blinker Rechts</t>";
  78.                 onlyForPlayer = 1;
  79.                 position = "drivewheel";
  80.                 priority = 3;
  81.                 radius = 20;
  82.                 shortcut = "LeanRight";
  83.                 showWindow = 0;
  84.                 statement = "vehicle player animate [""ClignotantsDroitStart"", 1];";
  85.             };
  86.             class ClignotantsDroitEteindre {
  87.                 condition = "(driver this == player) && (alive this) && (this animationPhase ""ClignotantsDroitStart"" != 0)";
  88.                 displayName = "<t color='#fff000'>Blinker Rechts (Aus)</t>";
  89.                 displayNameDefault = "<t color='#fff000'>Blinker Rechts (Aus)</t>";
  90.                 onlyForPlayer = 1;
  91.                 position = "drivewheel";
  92.                 priority = 3;
  93.                 radius = 20;
  94.                 shortcut = "LeanRight";
  95.                 showWindow = 0;
  96.                 statement = "vehicle player animate [""ClignotantsDroitStart"", 0];";
  97.             };
  98.             class ClignotantsGaucheAllumer {
  99.                 condition = "(driver this == player) && (alive this) && (this animationPhase ""ClignotantsGaucheStart"" == 0) && isEngineOn this";
  100.                 displayName = "<t color='#fff000'>Blinker Links</t>";
  101.                 displayNameDefault = "<t color='#fff000'>Blinker Links</t>";
  102.                 onlyForPlayer = 1;
  103.                 position = "drivewheel";
  104.                 priority = 3;
  105.                 radius = 20;
  106.                 shortcut = "LeanLeft";
  107.                 showWindow = 0;
  108.                 statement = "vehicle player animate [""ClignotantsGaucheStart"", 1];";
  109.             };
  110.             class ClignotantsGaucheEteindre {
  111.                 condition = "(driver this == player) && (alive this) && (this animationPhase ""ClignotantsGaucheStart"" != 0)";
  112.                 displayName = "<t color='#fff000'>Ausschalten den linken Blinker (A)</t>";
  113.                 displayNameDefault = "<t color='#fff000'>Ausschalten den linken Blinker (A)</t>";
  114.                 onlyForPlayer = 1;
  115.                 position = "drivewheel";
  116.                 priority = 3;
  117.                 radius = 20;
  118.                 shortcut = "LeanLeft";
  119.                 showWindow = 0;
  120.                 statement = "vehicle player animate [""ClignotantsGaucheStart"", 0];";
  121.             };
  122.             //Blaulicht
  123.             class gyrophare {
  124.                 condition = "(side player != civilian) && player IN this && this animationPhase ""lamp1"" > 0.5";
  125.                 displayName = "<t color='#0000ff'>Blaulicht (Ausschalten)</t>";
  126.                 onlyForPlayer = 0;
  127.                 position = "drivewheel";
  128.                 radius = 2;
  129.                 shortcut = "buldTerrainLower5m";
  130.                 showWindow = 0;
  131.                 statement = "this animate [""lamp1"",0];this animate [""btgyr"",0];this animate [""lamp2"",0]";
  132.             };
  133.             class gyropharef {
  134.                 condition = "(side player != civilian) && player IN this && this animationPhase ""lamp1"" <= 0.5";
  135.                 displayName = "<t color='#0000ff'>Blaulicht</t>";
  136.                 onlyForPlayer = 0;
  137.                 position = "drivewheel";
  138.                 radius = 2;
  139.                 shortcut = "buldTerrainLower5m";
  140.                 showWindow = 0;
  141.                 statement = "this animate [""lamp1"",1];this animate [""btgyr"",1];this animate [""lamp2"",1]";
  142.             };
  143.             //Abblendlicht + Fernlicht + Warnleuchten
  144.             class PP {
  145.                 condition = "(side player != civilian) && player IN this && this animationPhase ""PP"" > 0.5";
  146.                 displayName = "<t color='#2d9900'>Abblendlicht</t>";
  147.                 onlyForPlayer = 0;
  148.                 position = "drivewheel";
  149.                 radius = 2;
  150.                 statement = "this animate [""PP"",0]";
  151.             };
  152.             class PPf {
  153.                 condition = "(side player != civilian) && player IN this && this animationPhase ""PP"" <= 0.5";
  154.                 displayName = "<t color='#0094ff'>Fernlicht</t>";
  155.                 onlyForPlayer = 0;
  156.                 position = "drivewheel";
  157.                 radius = 2;
  158.                 statement = "this animate [""PP"",1]";
  159.             };
  160.             class redir {
  161.                 condition = "(side player != civilian) && player IN this && this animationPhase ""redir1"" <= 0.5";
  162.                 displayName = "<t color='#ff5500'>Warnleuchten</t>";
  163.                 onlyForPlayer = 0;
  164.                 position = "drivewheel";
  165.                 radius = 2;
  166.                 shortcut = "salute";
  167.                 showWindow = 0;
  168.                 statement = "this animate [""redir1"",1];this animate [""redir2"",1];this animate [""redir3"",1];this animate [""redir4"",1];this animate [""redir5"",1];this animate [""redir6"",1];this animate [""redir7"",1]";
  169.             };
  170.             class rediroff {
  171.                 condition = "(side player != civilian) && player IN this && this animationPhase ""redir1"" > 0.5";
  172.                 displayName = "<t color='#ff5500'>Warnleuchten (Ausschalten)</t>";
  173.                 onlyForPlayer = 0;
  174.                 position = "drivewheel";
  175.                 radius = 2;
  176.                 shortcut = "salute";
  177.                 showWindow = 0;
  178.                 statement = "this animate [""redir1"",0];this animate [""redir2"",0];this animate [""redir3"",0];this animate [""redir4"",0];this animate [""redir5"",0];this animate [""redir6"",0];this animate [""redir7"",0]";
  179.             };
  180.             //Sirene
  181.             class Siren_off {
  182.                 condition = "(side player != civilian) && player IN this && (this getVariable ['chsiren',0]) == 1";
  183.                 displayName = "<t color='#ff0000'>Stadt (Ausschalten)</t>";
  184.                 onlyForplayer = 0;
  185.                 position = "drivewheel";
  186.                 radius = 1;
  187.                 shortcut = "sitDown";
  188.                 showWindow = 0;
  189.                 statement = "this setVariable ['chsiren',0,true] && this animate [""btsiren"",0]";
  190.             };
  191.             class Siren_on {
  192.                 condition = "(side player != civilian) && player IN this && (this getVariable ['chsiren',0]) == 0";
  193.                 displayName = "<t color='#ff0000'>Stadt</t>";
  194.                 onlyForplayer = 0;
  195.                 position = "drivewheel";
  196.                 radius = 1;
  197.                 shortcut = "sitDown";
  198.                 showWindow = 0;
  199.                 statement = "this setVariable ['chsiren',1,true] && this animate [""btsiren"",1]";
  200.             };
  201.             class Sirensinu_off {
  202.                 condition = "(side player != civilian) && player IN this && (this getVariable ['chsinusiren',0]) == 1";
  203.                 displayName = "<t color='#ff0000'>Land (Ausschalten)</t>";
  204.                 onlyForplayer = 0;
  205.                 position = "drivewheel";
  206.                 radius = 1;
  207.                 shortcut = "landGear";
  208.                 showWindow = 0;
  209.                 statement = "this setVariable ['chsinusiren',0,true]";
  210.             };
  211.             class Sirensinu_on {
  212.                 condition = "(side player != civilian) && player IN this && (this getVariable ['chsinusiren',0]) == 0";
  213.                 displayName = "<t color='#ff0000'>Land</t>";
  214.                 onlyForplayer = 0;
  215.                 position = "drivewheel";
  216.                 radius = 1;
  217.                 shortcut = "landGear";
  218.                 showWindow = 0;
  219.                 statement = "this setVariable ['chsinusiren',1,true]";
  220.             };
  221.         };
  222.     };
Advertisement
Add Comment
Please, Sign In to add comment