PDA

View Full Version : AT Laucnher Config



Kapyong
Nov 12 2007, 03:57
Anyone about to help me out with a basic AT Launcher Config?

BilOlson
Nov 12 2007, 11:53
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&#91;&#93; = { };
weapons&#91;&#93; = { };
requiredVersion = 0.108000;
requiredAddons&#91;&#93; = {
&#34;CAweapons&#34;
};
};
};
class cfgWeapons
{
class LauncherCore;
class Launcher&#58; LauncherCore
{
cursorAim = &#34;&#92;ca&#92;Weapons&#92;Data&#92;clear_empty&#34;;
cursor = &#34;LawCursor&#34;;
autoAimEnabled = 0;
opticsDisablePeripherialVision = 1;
magazines&#91;&#93; = {};
value = 10;
nameSound = &#34;atlauncher&#34;;
magazineReloadTime = 12;
reloadTime = 0;
sound&#91;&#93; = {&#34;&#92;ca&#92;Weapons&#92;Data&#92;Sound&#92;at7_RocketLauncher_Shot1&#34;,0.01,1};
initSpeed = 30;
canLock = 0;
reloadAction = &#34;ManActReloadAT&#34;;
autoReload = 0;
ffMagnitude = 0.1;
ffFrequency = 1;
ffCount = 1;
recoil = &#34;LAWSingle&#34;;
aiRateOfFire = 10;
aiRateOfFireDistance = 500;
optics = 1;
primary = 0;
opticsZoomMin = 0.22;
opticsZoomMax = 0.95;
opticsZoomInit = 0.42;
distanceZoomMin = 100;
distanceZoomMax = 100;
UiPicture = &#34;&#92;CA&#92;weapons&#92;data&#92;Ico&#92;i_at_CA.paa&#34;;

};
class New_M136&#58; Launcher
{
scope = 2;
displayName = &#34;New M136&#34;;
model = &#34;&#92;ca&#92;weapons&#92;m136_launcher&#34;;
modelSpecial = &#34;&#92;ca&#92;weapons&#92;m136_launcher_loaded&#34;;
modelOptics = &#34;-&#34;;
magazines&#91;&#93; = {&#34;M136&#34;};
sound&#91;&#93; = {&#34;&#92;ca&#92;Weapons&#92;Data&#92;Sound&#92;Javelin_fire_v3_A&#34;,10,1};
drySound&#91;&#93; = {&#34;&#92;ca&#92;Weapons&#92;Data&#92;Sound&#92;Javelin_dry_v1&#34;,0.0001,1};
reloadMagazineSound&#91;&#93; = {&#34;&#92;ca&#92;Weapons&#92;Data&#92;Sound&#92;flare_reload&#34;,0.000316228,1};
soundFly&#91;&#93; = {&#34;&#92;ca&#92;Weapons&#92;Data&#92;Sound&#92;rocket_fly1&#34;,100,1.5};
picture = &#34;&#92;CA&#92;weapons&#92;data&#92;equip&#92;W_m136_launcher_CA.paa&#34;;
UiPicture = &#34;&#92;CA&#92;weapons&#92;data&#92;Ico&#92;i_at_CA.paa&#34;;
recoil = &#34;launcherBase&#34;;
aiRateOfFire = 5;
aiRateOfFireDistance = 500;
class Library
{
libTextDesc = &#34;&#036;STR_LIB_M136&#34;;

};

};[/QUOTE]


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&#39;s init line:

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

Kapyong
Nov 13 2007, 01:29
will be fine, works great, thanks mate