Jump to content
Sign in to follow this  
trevormcneill

Binocular Config,cpp

Recommended Posts

so I am new to modding and at the moment I am making the config for my Thermal Monocular but I am not sure how to set up features including Zoom, thermal/non thermal, and set classname

if someone could help me out this is what I have so far.

#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
#define private 0
#define protected 1
#define public 2

class CfgPatches
{
class MX2A_weapons
{
units[] = {};
weapons[] = 
{

};
requiredAddons[] = 
{	
};
requiredVersion = 1.0;
};
};
class cfgWeapons
{	
class Default;
class MX2A_Binocular : Default
{
scope = 2;
model="\MX-2A.p3d";
modelOptics="";
picture="";
value = 5;
type = 4096;
displayName = MX-2A;
nameSound = "binoculars";
reloadTime = 0.000000;
sound[] = {"",0,1};
canLock = 0;
optics = 1;
forceOptics = 1;
useAsBinocular = 1;
primary = 0;
magazines[] = {};
class OpticsModes
{
class Scope
{
OpticsID = 1;
UseModelOptics = 1;
MemoryPointCamera = "Eye";
opticsPPEffects[] = 
{
"OpticsCHAbera1",
"OpticsBlur1"
};
OpticsFlare = 1;
opticsDisablePeripherialVision = 1;
OpticsZoomInit = 0.047000;
distanceZoomMin = 300;
distanceZoomMax = 300;
opticsZoomMin = 0.047000;
opticsZoomMax = 0.047000;
discreteDistance[] = {};
discreteDistanceInitIndex = 2;
VisionMode[] = {"Normal"};
CameraDir = "";
};
class Eyes
{
OpticsID = 2;
UseModelOptics = 0;
MemoryPointCamera = "Eye";
OpticsPPEffects[] = {};
OpticsFlare = 0;
OpticsDisablePeripherialVision = 0;
OpticsZoomMin = 0.250000;
OpticsZoomMax = 1.100000;
OpticsZoomInit = 0.500000;
DistanceZoomMin = 200;
DistanceZoomMax = 200;
VisionMode[] = {};
CameraDir = "";
};
};
class Library	 {libTextDesc = "MX2A_binocular";};
descriptionShort = "Thermal monocular";
};
};

Any help is appreciated, Thank you.

Edited by TrevorMcNeill

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  

×