|
自己在修改一把枪,有几个问题,想请教各位高人,请不吝赐教!
1、如何在狙击枪中加入夜视模式?
我尝试加入如下代码,但并不起效。
visionMode[] = {"Normal", "Ti", NVG};
2、代码中有ACE字样,是不是这个枪要ACE支持?
CfgWeapons.hpp代码如下:
class CfgWeapons
{
class M24; // External class reference
class UKF_L115A3 : M24
{
scope = public;
model = "\UKF_L115A3\UKF_L115A3.p3d";
displayName = L115A3;
descriptionShort = "Accuracy International L115A3";
dexterity = 1.0;
ACE_bipod = 0;
ACE_WEIGHT = 6.8;
ACE_Size = 9000;
ACE_NoPack = 1;
modelOptics = "\UKF_L115A3\scope\P3L-Fine_mildot.p3d";
opticsPPEffects[] = {"OpticsCHAbera1", "OpticsBlur1"};
opticsFlare = true;
opticsDisablePeripherialVision = true;
optics = true;
opticsZoomMin = 0.0249;
opticsZoomMax = 0.1245;
opticsZoomInit = 0.1245;
distanceZoomMin = 519;
distanceZoomMax = 519;
picture = "\UKF_L115A3\Equip\w_UKF_L115A3_ca.paa";
UiPicture = "\CA\weapons\data\Ico\i_sniper_CA.paa";
handanim[] = {"OFP2_ManSkeleton", "\UKF_L115A3\anims\UKF_L115A3.rtm"};
magazines[] = {"UKF_5Rnd_338_Mag"};
reloadMagazineSound[] = {"ca\sounds\weapons\rifles\reload-m16-3", 0.1, 1, 20};
reloadsound[] = {"\UKF_L115A3\snd\l115boltcycle.ogg", 0.0316228, 1, 20};
begin1[] = {"\UKF_L115A3\snd\l115.ogg", 1.71189, 1, 1300};
soundBegin[] = {"begin1", 1};
autoFire = false;
reloadTime = 2;
dispersion = 3e-005;
minRange = 2;
minRangeProbab = 0.1;
midRange = 800;
midRangeProbab = 0.7;
maxRange = 1500;
maxRangeProbab = 0.05;
recoil = "L115Recoil";
recoilProne = "L115RecoilProne";
class Library {
libTextDesc = "The Accuracy International L115A3 'Long Range Rifle' (LRR) was introduced in 2008 as part of the Sniper System Improvement Programme (SSIP), replacing the AI L96A1 as the primary sniper weapon system of the United Kingdom's armed forces. It is the latest militarized version of the AI 'Arctic Warfare Super Mangum' (AWSM) which was first introduced to British forces in limited numbers back in the year 2000 as the L115A1. The L115A1 was introduced to extend the accurate range of recce platoon snipers out beyond the capabilities of the 7.62mm L96A1, with the aid of the larger .338 (8.6mm) Lapua round. Operational experience in Iraq and Afghanistan has shown fire-fights frequently occurring over long ranges, resulting in large-calibre rifles like the L115A3 being adopted more widely by British snipers. The L115A3 features a Schmidt and Bender 5-25x56 PM-II telescopic sight on a Picatinny rail, AI 'Tactical' muzzle brake, 27-inch fluted barrel, Harris bipod and a folding stock with butt spike. The rifle can be fitted with a suppressor to eliminate muzzle flash, and a Qioptiq Ltd. SniperVIPIR-2+ Thermal Weapon Sight. Weight = 6.8kg, Length = 1,300mm, Muzzle Velocity = 936m/s, Ammunition = .338 Lapua, in five-round box magazines.";
};
ace_sa_enabled = 1;
ace_sa_adj_mode = "angle";
ace_sa_defaultelevation = 3.3;
ace_sa_zerooffset = 0;
ace_sa_defaultwindage = 0;
ace_sa_defaultrange = 500;
ace_sa_minelevation = -4;
ace_sa_maxelevation = 23;
ace_sa_stepelevation = 0.1;
ace_sa_windage = 6;
ace_sa_stepwindage = 0.1;
ace_sa_minrange = 100;
ace_sa_maxrange = 1500;
ace_sa_elev_unit = "mil";
ace_sa_wind_unit = "mil";
ace_sa_range_unit = "meters";
ace_sa_zeroelev = 100;
ace_sa_table_elev[] = {{0, 0}, {100, 0.5}, {200, 1.2}, {300, 1.8}, {400, 2.6}, {500, 3.3}, {550, 3.7}, {600, 4.2}, {650, 4.6}, {700, 5.0}, {750, 5.5}, {800, 6}, {850, 6.5}, {900, 7}, {950, 7.6}, {1000, 8.1}, {1050, 8.7}, {1100, 9.3}, {1150, 9.9}, {1200, 10.6}, {1250, 11.3}, {1300, 12}, {1350, 12.7}, {1400, 13.5}, {1450, 14.3}, {1500, 15.1}};
ace_drift[] = {{0, 0}, {100, 0.0}, {200, 0.0}, {300, 0.1}, {400, 0.1}, {500, 0.2}, {600, 0.3}, {700, 0.4}, {800, 0.6}, {900, 0.8}, {1000, 1.1}, {1100, 1.4}, {1200, 1.7}, {1300, 2.1}, {1400, 2.6}, {1500, 3.0}};
};
class UKF_L115A3_fgrip : UKF_L115A3 {
model = "\UKF_L115A3\UKF_L115A3_fgrip.p3d";
ACE_bipod = 1;
};
class UKF_L115A3_wdl : UKF_L115A3
{
model = "\UKF_L115A3\Camo_G\UKF_L115A3_G.p3d";
displayName = "L115A3 (WD)";
picture = "\UKF_L115A3\Equip\w_UKF_L115A3_w_ca.paa";
};
class UKF_L115A3_wdl_fgrip : UKF_L115A3_fgrip
{
model = "\UKF_L115A3\Camo_G\UKF_L115A3_G_fgrip.p3d";
displayName = "L115A3 (WD)";
picture = "\UKF_L115A3\Equip\w_UKF_L115A3_w_ca.paa";
};
class UKF_L115A3_des : UKF_L115A3
{
model = "\UKF_L115A3\Camo_D\UKF_L115A3_D.p3d";
displayName = "L115A3 (D)";
picture = "\UKF_L115A3\Equip\w_UKF_L115A3_d_ca.paa";
};
class UKF_L115A3_des_fgrip : UKF_L115A3_fgrip
{
model = "\UKF_L115A3\Camo_D\UKF_L115A3_D_fgrip.p3d";
displayName = "L115A3 (D)";
picture = "\UKF_L115A3\Equip\w_UKF_L115A3_d_ca.paa";
};
class UKF_L115A3_sd : UKF_L115A3
{
fireLightDuration = 0.0;
fireLightIntensity = 0.0;
model = "\UKF_L115A3\UKF_L115A3_sd.p3d";
displayName = "L115A3 SD";
descriptionShort = "Accuracy International L115A3 (SD)";
ace_suppressed = 1;
picture = "\UKF_L115A3\Equip\w_UKF_L115A3_sd_ca.paa";
UiPicture = "\CA\weapons\data\Ico\i_sniper_CA.paa";
begin1[] = {"\UKF_L115A3\snd\l115_sd.ogg", 1.57928, 1, 1000};
soundBegin[] = {"begin1", 1};
class Library
{
libTextDesc = "Accuracy International L115A3 (suppressed)";
};
};
class UKF_L115A3_sd_fgrip : UKF_L115A3_sd
{
model = "\UKF_L115A3\UKF_L115A3_sd_fgrip.p3d";
ACE_bipod = 1;
};
class UKF_L115A3_sd_wdl : UKF_L115A3_sd
{
model = "\UKF_L115A3\Camo_G\UKF_L115A3_G_SD.p3d";
displayName = "L115A3 SD (WD)";
picture = "\UKF_L115A3\Equip\w_UKF_L115A3_wsd_ca.paa";
};
class UKF_L115A3_sd_wdl_fgrip : UKF_L115A3_sd_fgrip {
model = "\UKF_L115A3\Camo_G\UKF_L115A3_G_SD_fgrip.p3d";
displayName = "L115A3 SD (WD)";
picture = "\UKF_L115A3\Equip\w_UKF_L115A3_wsd_ca.paa";
};
class UKF_L115A3_sd_des : UKF_L115A3_sd
{
model = "\UKF_L115A3\Camo_D\UKF_L115A3_D_SD.p3d";
displayName = "L115A3 SD (D)";
picture = "\UKF_L115A3\Equip\w_UKF_L115A3_dsd_ca.paa";
};
class UKF_L115A3_sd_des_fgrip : UKF_L115A3_sd_fgrip
{
model = "\UKF_L115A3\Camo_D\UKF_L115A3_D_SD_fgrip.p3d";
displayName = "L115A3 SD (D)";
picture = "\UKF_L115A3\Equip\w_UKF_L115A3_dsd_ca.paa";
};
};
附件上是config.bin解包出来的文件。
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?加入VME
x
|