Jump to content
Sign in to follow this  
Kapyong

AT Laucnher Config

Recommended Posts

I more than likely can, if you want to PM me...

When you mean basic, what exactly are you doing?

1)new model, new sound, new everything?

2) altering an existing weapon to your liking?

See below.....

this code here (tested) will put a new M136 in game, although it just uses default BIS model, textures, and sounds.

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class CfgPatches

{

class New_M136

{

units[] = { };

weapons[] = { };

requiredVersion = 0.108000;

requiredAddons[] = {

"CAweapons"

};

};

};

class cfgWeapons

{

class LauncherCore;

class Launcher: LauncherCore

{

cursorAim = "\ca\Weapons\Data\clear_empty";

cursor = "LawCursor";

autoAimEnabled = 0;

opticsDisablePeripherialVision = 1;

magazines[] = {};

value = 10;

nameSound = "atlauncher";

magazineReloadTime = 12;

reloadTime = 0;

sound[] = {"\ca\Weapons\Data\Sound\at7_RocketLauncher_Shot1",0.01,1};

initSpeed = 30;

canLock = 0;

reloadAction = "ManActReloadAT";

autoReload = 0;

ffMagnitude = 0.1;

ffFrequency = 1;

ffCount = 1;

recoil = "LAWSingle";

aiRateOfFire = 10;

aiRateOfFireDistance = 500;

optics = 1;

primary = 0;

opticsZoomMin = 0.22;

opticsZoomMax = 0.95;

opticsZoomInit = 0.42;

distanceZoomMin = 100;

distanceZoomMax = 100;

UiPicture = "\CA\weapons\data\Ico\i_at_CA.paa";

};

class New_M136: Launcher

{

scope = 2;

displayName = "New M136";

model = "\ca\weapons\m136_launcher";

modelSpecial = "\ca\weapons\m136_launcher_loaded";

modelOptics = "-";

magazines[] = {"M136"};

sound[] = {"\ca\Weapons\Data\Sound\Javelin_fire_v3_A",10,1};

drySound[] = {"\ca\Weapons\Data\Sound\Javelin_dry_v1",0.0001,1};

reloadMagazineSound[] = {"\ca\Weapons\Data\Sound\flare_reload",0.000316228,1};

soundFly[] = {"\ca\Weapons\Data\Sound\rocket_fly1",100,1.5};

picture = "\CA\weapons\data\equip\W_m136_launcher_CA.paa";

UiPicture = "\CA\weapons\data\Ico\i_at_CA.paa";

recoil = "launcherBase";

aiRateOfFire = 5;

aiRateOfFireDistance = 500;

class Library

{

libTextDesc = "$STR_LIB_M136";

};

};

Copy and Paste code above in a text file and save as config.cpp, put it in a folder named "New_M136", create .pbo of this folder and put in AddOns folder, then in editor put this in soldier's init line:

this addMagazine "M136";this addWeapon "New_M136";

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×