123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214 |
- #define COMPONENT DC_15s
- #include "../../../RD501_main/config_macros.hpp"
- #include "../../_common/common.hpp"
- class CfgPatches
- {
- class macro_patch_name(dc_15s)
- {
- author=DANKAUTHORS;
- addonRootClass= macro_patch_name(weapons)
- requiredAddons[]=
- {
- macro_patch_name(weapons)
- };
- requiredVersion=0.1;
- units[]={};
- weapons[]={
- macro_new_weapon(DC,15s),
- macro_new_weapon(DC,15s_shield),
- macro_new_weapon(DC,r15s)
- };
- };
- };
- class cfgWeapons
- {
- class SWOP_B2gun;
- class Rifle_Long_Base_F;
- class SWOP_BlasterRifle_Base:Rifle_Long_Base_F
- {
- class WeaponSlotsInfo;
- };
- class SWOP_DC15: SWOP_BlasterRifle_Base
- {
- class Single;
- class Burst;
- class FullAuto;
- class WeaponSlotsInfo: WeaponSlotsInfo
- {
- class CowsSlot;
- };
-
-
-
- };
- class macro_new_weapon(DC,15s):SWOP_DC15
- {
- DC_Family_Flashlight
- displayName="DC-15s Carbine";
- scope=2;
- scopeArsenal=2;
- weaponPoolAvailable = 1;
-
- dlc = "RD501";
- author= "RD501";
- baseWeapon = macro_new_weapon(DC,15s);
- magazines[]={macro_new_mag(DC15s,60),macro_new_mag(DC15_underwater,40)};
- ACE_Overheating_Dispersion = DC15a_Overheat_Dispersion
- ACE_Overheating_SlowdownFactor = DC15a_Overheat_SlowdownFactor
- ACE_Overheating_JamChance = DC15a_Overheat_JamChance
- ACE_overheating_mrbs = DC15a_Overheat_mrbs
- ACE_overheating_allowSwapBarrel = 1;
- ACE_clearJamAction = "ReloadMagazine";
- modes[] = {"Single","FullAuto", "close", "short", "medium"};
- class FullAuto:FullAuto
- {
- reloadTime = DC15s_reloadtime_full
- dispersion = DC15s_accuracy
- };
- class Single:Single
- {
- reloadTime = DC15s_reloadtime_full*2;
- dispersion = DC15s_accuracy*0.8;
- };
- class WeaponSlotsInfo: WeaponSlotsInfo
- {
- mass = 30;
- class CowsSlot: CowsSlot
- {
- access = 1;
- compatibleItems[] =
- {
- macro_new_weapon(scope,dc_15a_acog)
- };
- };
- };
- };
- class Pistol;
- class Pistol_Base_F:Pistol
- {
- class WeaponSlotsInfo;
- };
-
- class SWOP_DC15_sh: Pistol_Base_F
- {
-
- class FullAuto;
-
- class WeaponSlotsInfo: WeaponSlotsInfo
- {
- class CowsSlot;
- }
-
- };
-
- class macro_new_weapon(DC,15s_shield):SWOP_DC15_sh
- {
- DC_Family_Flashlight
- weaponPoolAvailable = 1;
- displayName="DC-15s Carbine Shield";
- scope=2;
- scopeArsenal=2;
- canShootInWater = 1;
- magazines[]={macro_new_mag(DC15s,60)};
- dlc = "RD501";
- author= "RD501";
- baseWeapon = macro_new_weapon(DC,15s_shield);
- ACE_Overheating_Dispersion = DC15a_Overheat_Dispersion
- ACE_Overheating_SlowdownFactor = DC15a_Overheat_SlowdownFactor
- ACE_Overheating_JamChance = DC15a_Overheat_JamChance
- ACE_overheating_mrbs = DC15a_Overheat_mrbs
- ACE_overheating_allowSwapBarrel = 1;
- ACE_clearJamAction = "ReloadMagazine";
- modes[] = {"FullAuto", "close", "short", "medium"};
- class FullAuto:FullAuto
- {
- reloadTime = DC15s_reloadtime_full
- dispersion = DC15s_accuracy
- };
- class WeaponSlotsInfo: WeaponSlotsInfo
- {
- mass = 30;
- class CowsSlot: CowsSlot
- {
- access = 1;
- compatibleItems[] =
- {
- macro_new_weapon(scope,dc_15a_acog)
- };
- };
- };
- };
- class macro_new_weapon(DC,15s_shield_212):macro_new_weapon(DC,15s_shield)
- {
- displayname = "DC-15s Carbine Shield (212th Battalion)";
- hiddenSelections[] = {"Camo"};
- hiddenSelectionsTextures[] = {"\SW_CloneWarsWeapons\DCrifles\textures\sh212.paa"};
- baseWeapon = macro_new_weapon(DC,15s_shield_212);
- };
- class macro_new_weapon(DC,15s_shield_cg):macro_new_weapon(DC,15s_shield)
- {
- displayname = "DC-15s Carbine Shield (Corusant Guard)";
- hiddenSelections[] = {"Camo"};
- hiddenSelectionsTextures[] = {"\SW_CloneWarsWeapons\DCrifles\textures\shCG.paa"};
- baseWeapon = macro_new_weapon(DC,15s_shield_cg);
- };
- class RD501_stun_muzzle;
- class 3AS_DC15S_Base_F;
- class 3AS_DC15S_F:3AS_DC15S_Base_F
- {
- class Single;
- class FullAuto;
- };
- class macro_new_weapon(DC,r15s):3AS_DC15S_F
- {
- displayName="Republic DC-15S";
- reloadTime=0.66;
- magazines[]=
- {
- macro_new_mag(5mw,60)
- };
- muzzles[]=
- {
- "this",
- "Stun"
- };
- class Stun: RD501_stun_muzzle
- {
- displayName="High Energy StunMode";
- };
- class Single:Single
- {
- reloadTime=0.066;
- };
- class FullAuto:FullAuto
- {
- reloadTime=0.066;
- };
- };
- };
- };
|