123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499 |
- #include "../../config_macros.hpp"
- #include "../../../RD501_main/config_macros.hpp"
- #include "../../../RD501_main/config_macros.hpp"
- #define unit_addon B2
- #define patch_name MODNAME##unit_addon##_Patches
- #define unit_classname MODNAME##_##unit_addon
- class CfgPatches
- {
- class macro_patch_name(b2_units)
- {
- addonRootClass=macro_patch_name(units);
- requiredAddons[]=
- {
- macro_patch_name(units)
- };
- requiredVersion=0.1;
- units[]={
- macro_new_unit_class(opfor,B2_droid_Super),
- macro_new_unit_class(opfor,B2_droid_Standard)
- };
- weapons[]=
- {
-
- };
- };
- };
- class Extended_Init_EventHandlers
- {
- class macro_new_unit_class(opfor,B2_droid_Standard)
- {
- class ForceWalk
- {
- init = [_this select 0] call rd501_fnc_force_b2_walk;
- };
- };
- }
- class CfgVehicles
- {
- class O_Soldier_F;
- class macro_new_unit_class(opfor,B2_droid_Standard): O_Soldier_F
- {
- faction=macro_cis_faction
- editorSubcategory=macro_editor_cat(B2)
- displayname = "B2 Mk2";
- scope=2;
- class HitPoints
- {
- class HitFace
- {
- armor=8;
- material=-1;
- name="face_hub";
- passThrough=0.013;
- radius=0.079999998;
- explosionShielding=1;
- minimalHit=0.0099999998;
- };
- class HitNeck: HitFace
- {
- armor=8;
- material=-1;
- name="neck";
- passThrough=0.013;
- radius=0.1;
- explosionShielding=1;
- minimalHit=0.0099999998;
- };
- class HitHead: HitNeck
- {
- armor=8;
- material=-1;
- name="head";
- passThrough=0.13;
- radius=0.2;
- explosionShielding=1;
- minimalHit=0.0099999998;
- depends="HitFace max HitNeck";
- };
- class HitPelvis: HitHead
- {
- armor=10;
- material=-1;
- name="pelvis";
- passThrough=0.44;
- radius=0.23999999;
- explosionShielding=1;
- visual="injury_body";
- minimalHit=0.0099999998;
- depends="0";
- };
- class HitAbdomen: HitPelvis
- {
- armor=8;
- material=-1;
- name="spine1";
- passThrough=0.44;
- radius=0.16;
- explosionShielding=1;
- visual="injury_body";
- minimalHit=0.0099999998;
- };
- class HitDiaphragm: HitAbdomen
- {
- armor=10;
- material=-1;
- name="spine2";
- passThrough=0.44;
- radius=0.18000001;
- explosionShielding=1.5;
- visual="injury_body";
- minimalHit=0.0099999998;
- };
- class HitChest: HitDiaphragm
- {
- armor=10;
- material=-1;
- name="spine3";
- passThrough=0.44;
- radius=0.18000001;
- explosionShielding=1.5;
- visual="injury_body";
- minimalHit=0.0099999998;
- };
- class HitBody: HitChest
- {
- armor=1000;
- material=-1;
- name="body";
- passThrough=1;
- radius=0;
- explosionShielding=1.5;
- visual="injury_body";
- minimalHit=0.0099999998;
- depends="HitPelvis max HitAbdomen max HitDiaphragm max HitChest";
- };
- class HitArms: HitBody
- {
- armor=8;
- material=-1;
- name="arms";
- passThrough=0.13;
- radius=0.1;
- explosionShielding=0.4;
- visual="injury_hands";
- minimalHit=0.0099999998;
- depends="0";
- };
- class HitRightHand :HitArms
- {
- armor = 10;
- explosionShielding = 0.25;
- material = -1;
- minimalHit = 0.01;
- name = "hand_r";
- passThrough = 0.1;
- radius = 0.1;
- visual = "injury_hands";
- };
- class HitLeftHand :HitArms
- {
- armor = 10;
- explosionShielding = 0.25;
- material = -1;
- minimalHit = 0.01;
- name = "hand_l";
- passThrough = 0.1;
- radius = 0.1;
- visual = "injury_hands";
- };
- class HitHands: HitArms
- {
- armor=8;
- material=-1;
- name="hands";
- passThrough=0.13;
- radius=0.1;
- explosionShielding=0.30000001;
- visual="injury_hands";
- minimalHit=0.0099999998;
- depends="HitArms";
- };
- class HitLegs: HitHands
- {
- armor=8;
- material=-1;
- name="legs";
- passThrough=0.13;
- radius=0.1;
- explosionShielding=0.30000001;
- visual="injury_legs";
- minimalHit=0.0099999998;
- depends="0";
- };
- class HitLeftLeg :HitLegs
- {
- armor = 8;
- explosionShielding = 0.25;
- material = -1;
- minimalHit = 0.01;
- name = "leg_l";
- passThrough = 0.1;
- radius = 0.1;
- visual = "injury_legs";
- };
- class HitRightLeg :HitLegs
- {
- armor = 8;
- explosionShielding = 0.25;
- material = -1;
- minimalHit = 0.01;
- name = "leg_r";
- passThrough = 0.1;
- radius = 0.1;
- visual = "injury_leg";
- };
- class Incapacitated: HitLegs
- {
- armor=1000;
- material=-1;
- name="body";
- passThrough=1;
- radius=0;
- explosionShielding=1;
- visual="";
- minimalHit=0;
- depends="(((Total - 0.25) max 0) + ((HitHead - 0.25) max 0) + ((HitBody - 0.25) max 0)) * 2";
- };
- };
- armor=30;
- armorStructural=1.1;
- explosionShielding=0.40000001;
- model="\101st_Aux_Mod\Addons\DBA_CIS\Assets\B2.p3d";
- uniformClass=macro_new_uniform_class(opfor,B2_Armor_mk2)
- class EventHandlers;
- hiddenSelections[]=
- {
- "Camo1","Camo2","Camo3"
- };
- hiddenSelectionsTextures[]=
- {
- "RD501_Units\textures\CIS\B2\rocket\Reskinb2_chest.paa",
- "RD501_Units\textures\CIS\B2\rocket\ReskinB2_waist.paa",
- "RD501_Units\textures\CIS\B2\rocket\ReskinB2_legs.paa"
- };
- respawnWeapons[] = {macro_new_weapon(b2,standard),"Put"};
- magazines[] = {macro_new_mag(b2gun,40),macro_new_mag(b2gun,40),macro_new_mag(b2gun,40),macro_new_mag(b2gun,40),macro_new_mag(b2rocket,3),macro_new_mag(b2rocket,3)};
- weapons[] = {macro_new_weapon(b2,standard),"Put"};
- respawnMagazines[]= {macro_new_mag(b2gun,40),macro_new_mag(b2gun,40),macro_new_mag(b2gun,40),macro_new_mag(b2gun,40),macro_new_mag(b2rocket,3),macro_new_mag(b2rocket,3)};
- linkedItems[] = {"ItemMap","ItemCompass","ItemWatch","ItemRadio","NVGoggles"};
- };
- class macro_new_unit_class(opfor,B2_droid_Super) : macro_new_unit_class(opfor,B2_droid_Standard)
- {
- displayname = "Super B2";
- armor=60;
- armorStructural=1.5;
- uniformClass=macro_new_uniform_class(opfor,B2_SuperArmor)
- hiddenSelections[]=
- {
- "Camo1","Camo2","Camo3"
- };
- hiddenSelectionsTextures[]=
- {
- "RD501_Units\textures\CIS\B2\super\super_b2_chest.paa",
- "RD501_Units\textures\CIS\B2\super\super_b2_waist.paa",
- "RD501_Units\textures\CIS\B2\super\super_b2_legs.paa"
- };
- /*class HitPoints
- {
- class HitFace
- {
- armor=10;
- material=-1;
- name="face_hub";
- passThrough=0.1;
- radius=0.079999998;
- explosionShielding=1;
- minimalHit=0.0099999998;
- };
- class HitNeck: HitFace
- {
- armor=15;
- material=-1;
- name="neck";
- passThrough=0.1;
- radius=0.1;
- explosionShielding=1;
- minimalHit=0.0099999998;
- };
- class HitHead: HitNeck
- {
- armor=10;
- material=-1;
- name="head";
- passThrough=0.1;
- radius=0.2;
- explosionShielding=1;
- minimalHit=0.0099999998;
- depends="HitFace max HitNeck";
- };
- class HitPelvis: HitHead
- {
- armor=15;
- material=-1;
- name="pelvis";
- passThrough=0.1;
- radius=0.23999999;
- explosionShielding=1;
- visual="injury_body";
- minimalHit=0.0099999998;
- depends="0";
- };
- class HitAbdomen: HitPelvis
- {
- armor=15;
- material=-1;
- name="spine1";
- passThrough=0.1;
- radius=0.16;
- explosionShielding=1;
- visual="injury_body";
- minimalHit=0.0099999998;
- };
- class HitDiaphragm: HitAbdomen
- {
- armor=20;
- material=-1;
- name="spine2";
- passThrough=0.1;
- radius=0.18000001;
- explosionShielding=1.5;
- visual="injury_body";
- minimalHit=0.0099999998;
- };
- class HitChest: HitDiaphragm
- {
- armor=25;
- material=-1;
- name="spine3";
- passThrough=0.1;
- radius=0.18000001;
- explosionShielding=1.5;
- visual="injury_body";
- minimalHit=0.0099999998;
- };
- class HitBody: HitChest
- {
- armor=1000;
- material=-1;
- name="body";
- passThrough=0.1;
- radius=0;
- explosionShielding=1.5;
- visual="injury_body";
- minimalHit=0.0099999998;
- depends="HitPelvis max HitAbdomen max HitDiaphragm max HitChest";
- };
- class HitArms: HitBody
- {
- armor=25;
- material=-1;
- name="arms";
- passThrough=0.13;
- radius=0.1;
- explosionShielding=0.4;
- visual="injury_hands";
- minimalHit=0.0099999998;
- depends="0";
- };
- class HitRightHand :HitArms
- {
- armor = 8;
- explosionShielding = 0.25;
- material = -1;
- minimalHit = 0.01;
- name = "hand_r";
- passThrough = 0.1;
- radius = 0.1;
- visual = "injury_hands";
- };
- class HitLeftHand :HitArms
- {
- armor = 8;
- explosionShielding = 0.25;
- material = -1;
- minimalHit = 0.01;
- name = "hand_l";
- passThrough = 0.1;
- radius = 0.1;
- visual = "injury_hands";
- };
- class HitHands: HitArms
- {
- armor=6;
- material=-1;
- name="hands";
- passThrough=0.13;
- radius=0.1;
- explosionShielding=0.30000001;
- visual="injury_hands";
- minimalHit=0.0099999998;
- depends="HitArms";
- };
- class HitLegs: HitHands
- {
- armor=20;
- material=-1;
- name="legs";
- passThrough=0.13;
- radius=0.1;
- explosionShielding=0.30000001;
- visual="injury_legs";
- minimalHit=0.0099999998;
- depends="0";
- };
- class HitLeftLeg :HitLegs
- {
- armor = 8;
- explosionShielding = 0.25;
- material = -1;
- minimalHit = 0.01;
- name = "leg_l";
- passThrough = 0.1;
- radius = 0.1;
- visual = "injury_legs";
- };
- class HitRightLeg :HitLegs
- {
- armor = 8;
- explosionShielding = 0.25;
- material = -1;
- minimalHit = 0.01;
- name = "leg_r";
- passThrough = 0.1;
- radius = 0.1;
- visual = "injury_leg";
- };
- class Incapacitated: HitLegs
- {
- armor=1000;
- material=-1;
- name="body";
- passThrough=1;
- radius=0;
- explosionShielding=1;
- visual="";
- minimalHit=0;
- depends="(((Total - 0.25) max 0) + ((HitHead - 0.25) max 0) + ((HitBody - 0.25) max 0)) * 2";
- };
- };*/
- };
- };
- class CfgWeapons
- {
- class DefaultEventhandlers;
- class UniformItem;
- class macro_new_uniform_class(opfor,B2_Armor_mk2): UniformItem
- {
- scope=2;
- displayName="RD501 B2";
- //picture = "\SWOP_droids\data\ico\B2ico.paa" - Replace with proper one
- model = "\A3\Characters_F\Common\Suitpacks\suitpack_blufor_diver";
- class ItemInfo: UniformItem
- {
- uniformModel="-";
- uniformClass=macro_new_unit_class(opfor,B2_droid_Standard)
- containerClass="Supply40";
- mass=80;
- };
- JLTS_isDroid = 1;
- JLTS_hasEMPProtection = 0;
- JLTS_deathSounds = "DeathDroid";
- class EventHandlers : DefaultEventhandlers {};
- };
- class macro_new_uniform_class(opfor,B2_SuperArmor): UniformItem
- {
- scope=2;
- displayName="RD501 Super B2";
- //picture = "\SWOP_droids\data\ico\B2ico.paa" - Replace with proper one
- model = "\A3\Characters_F\Common\Suitpacks\suitpack_blufor_diver";
- class ItemInfo: UniformItem
- {
- uniformModel="-";
- uniformClass=macro_new_unit_class(opfor,B2_droid_Super);
- containerClass="Supply40";
- mass=80;
- };
- JLTS_isDroid = 1;
- JLTS_hasEMPProtection = 0;
- JLTS_deathSounds = "DeathDroid";
- class EventHandlers : DefaultEventhandlers {};
- };
- };
|