Jump to content
Sign in to follow this  
Guest major gandhi

No gun on plane with gunner

Recommended Posts

Guest major gandhi

Have extracted CSLA's L410 to use it seperately form CSLA-Mod, for private use only of course!

It works, the only problem is it has a mg-gun ingame. And it has this mg independetly of the plane having a gunner or not (I added the gunner in order ot have a co-pilot). Does anyone know how to fix this problem?

Here's the config:

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

#define TEast 0

#define TWest 1

#define TGuerrila 2

#define TCivilian 3

#define TSideUnknown 4

#define TEnemy 5

#define TFriendly 6

#define TLogic 7

#define true 1

#define false 0

// type scope

#define private 0

#define protected 1

#define public 2

class CfgPatches

{

class OPFOR_Air

{

units[] = {L410A};

weapons[] = {};

requiredVersion = 1.91;

};

};

class CfgModels

{

class Default{};

class Vehicle: Default{};

class L410A: Vehicle

{

sectionsInherit="Vehicle";

sections[]={"cislo1","cislo2","cislo3","cislo4","csla","cccp","Sign","Fotka1","Fotka2","vrtule staticka","vrtule blur"};

};

};

class CfgVehicles

{

class All {};

class AllVehicles: All {};

class Air: AllVehicles {};

class Plane: Air {};

class L410A:Plane

{

scope=public;

side=3;

vehicleClass="Air";

displayName="L410A";

crew="dc3_pilot";

model="\OPFOR_Air\l410a";

icon="\OPFOR_Air\Icons\l410.paa";

picture="\OPFOR_Air\Icons\l410aero.paa";

driverAction="ManActJeepDriver";

gunnerAction="ManActJeepDriver";

cargoAction[]={"ManActJeepCoDriver"};

transportSoldier=19;

hiddenSelections[]={"cislo1","cislo2","cislo3","cislo4","sign"};

accuracy=0.3;

gearRetracting=1;

nameSound="plane";

ejectSpeed[]={0,0,0};

soundEngine[]={"\OPFOR_Air\Sounds\l410_motor.wav",3.1622777,1};

soundEnviron[]={"Objects\noise",0.0316228,1.0};

soundLandCrash[]={"\OPFOR_Air\Sounds\l410_land.wav",100.0000076,1};

soundGear[]={"\OPFOR_Air\Sounds\gear1.wav",0,1};

soundServo[]={"\OPFOR_Air\Sounds\klap.wav",0.0562341,1};

insideSoundCoef=0.0025;

maneuvrability=30.0;

maxSpeed=365;

armor=70;

aileronSensitivity=0.45;

elevatorSensitivity=0.35;

noseDownCoef=0.3;

brakeDistance=450;

hasdriver=1;

hasgunner=1;

driveriscommander=1;

type=VAir;

//threat[] VSoft, VArmor, VAir

threat[]={0.1, 0.8, 10.0};

class IndicatorSpeed

{

selection="ruc_kmh_0";

axis="osa_kmh_0";

angle=-202;

min=0;

max=90;

};

class IndicatorSpeed2

{

selection="ruc_kmh_1";

axis="osa_kmh_1";

angle=-202;

min=0;

max=90;

};

class IndicatorVertSpeed

{

selection="ruc_vrs_0";

axis="osa_vrs_0";

angle=110;

min=-5;

max=5;

};

class IndicatorVertSpeed2

{

selection="ruc_vrs_1";

axis="osa_vrs_1";

angle=-110;

min=-20;

max=20;

};

class IndicatorRPM

{

selection="ruc_rph_1";

axis="osa_rph_1";

angle=-240;

min=0;

max=1;

};

class IndicatorAltBaro

{

selection="ruc_mtr_0";

axis="osa_mtr_0";

angle=-360;

min=0;

max=300;

};

class IndicatorAltRadar

{

selection="ruc_mtr_1";

axis="osa_mtr_1";

angle=-360;

min=0;

max=300;

};

class Animations

{

class anim_kolo

{

type="rotation";

animPeriod=4.5;

selection="kolo";

axis="osa_kolo";

angle0=0;

angle1=1.937308;

};

class anim_pod_sig

{

type="rotation";

animPeriod=0.1;

selection="pod_sig";

axis="osa_kolo";

angle0=0;

angle1=-1.5;

};

class anim_pkryt

{

type="rotation";

animPeriod=3;

selection="pkryt";

axis="osa_pkryt";

angle0=0;

angle1=1.989668;

};

class anim_pkryta

{

type="rotation";

animPeriod=3;

selection="pkryta";

axis="osa_pkryta";

angle0=0;

angle1=-1.658056;

};

class anim_pkrytb

{

type="rotation";

animPeriod=2.5;

selection="pkrytb";

axis="osa_pkrytb";

angle0=0;

angle1=1.658056;

};

class anim_kolol

{

type="rotation";

animPeriod=7;

selection="kolol";

axis="osa_kolol";

angle0=0;

angle1=-1.5707901;

};

class anim_krytl

{

type="rotation";

animPeriod=7;

selection="krytl";

axis="osa_krytl";

angle0=0;

angle1=-2.4434519;

};

class anim_kolop

{

type="rotation";

animPeriod=5.5;

selection="kolop";

axis="osa_kolop";

angle0=0;

angle1=1.5707901;

};

class anim_krytp

{

type="rotation";

animPeriod=5.5;

selection="krytp";

axis="osa_krytp";

angle0=0;

angle1=2.4434519;

};

class anim_bud1

{

type="rotation";

animPeriod=3;

selection="ruc_kpa0";

axis="osa_kpa0";

angle0=0;

angle1=-1.989668;

};

class anim_bud2

{

type="rotation";

animPeriod=5;

selection="ruc_kpa1";

axis="osa_kpa1";

angle0=0;

angle1=-1.989668;

};

class anim_bud3

{

type="rotation";

animPeriod=3;

selection="ruc_kpa3";

axis="osa_kpa3";

angle0=0;

angle1=-1.989668;

};

class anim_bud4

{

type="rotation";

animPeriod=5;

selection="ruc_kpa02";

axis="osa_kpa2";

angle0=0;

angle1=-1.989668;

};

};

class Reflectors

{

class Left

{

color[]={0.8,0.8,1.0,1.0};

ambient[]={0.07,0.07,0.07,1.0};

position="L svetlo";

direction="konec L svetla";

hitpoint="L svetlo";

selection="L svetlo";

size=1;

brightness=1.5;

};

class Right

{

color[]={0.8,0.8,1.0,1.0};

ambient[]={0.07,0.07,0.07,1.0};

position="P svetlo";

direction="konec P svetla";

hitpoint="P svetlo";

selection="P svetlo";

size=1;

brightness=1.5;

};

};

class EventHandlers

{

// Init="_this exec ""\OPFOR_Air\Scripts\randomnumber_airb3.sqs"";";

gear="_this exec ""\OPFOR_Air\Scripts\l410_gear.sqs"";";

engine="_this exec ""\OPFOR_Air\Scripts\l410_engine.sqs"";";

};

};

};

};

Share this post


Link to post
Share on other sites

Try to add something like this:

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

weapons[]={};

magazines[]={};

smile_o.gif

Share this post


Link to post
Share on other sites
Guest major gandhi

thanks it works now yay.gif

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  

×