ruff 102 Posted April 19, 2003 trying to change a civillian unit to a west unit by decrypting a pbo file and changing the cpp and repacking but cant find where in the cpp am i suppsed to change so the the civillian unit changes to the west side Share this post Link to post Share on other sites
ruff 102 Posted April 20, 2003 i tried it but wen i pack it back in and put it in the addons folder it doesnt work all together ill show any hu is interested the ccp file Share this post Link to post Share on other sites
ruff 102 Posted April 20, 2003 class CfgPatches { class otwglock { units[] = {"otwglock17man","otwglock18man"}; weapons[] = {"otwglock17","otwglock18"}; requiredVersion = 1.75; }; }; class CfgModels { class Default { sections[] = {}; sectionsInherit=""; }; class Weapon: Default{}; class otwglock: Weapon{}; class otwglock18: Weapon{}; }; class CfgRecoils { otwglock[]={0.050000,0.030000,0.040000,0.050000,0,0}; }; class CfgAmmo { class Default {}; class BulletSingle : Default{}; class otwglockAmmo: BulletSingle { access=2; hit=6; indirectHit=1; indirectHitRange=0.050000; visibleFire=14; audibleFire=14; visibleFireTime=2; minRange=1; minRangeProbab=0.100000; midRange=10; midRangeProbab=0.700000; maxRange=100; maxRangeProbab=0.040000; cartridge="FxCartridgeSmall"; tracerColor[]={0.800000,0.500000,0.100000,0.040000}; tracerColorR[]={0,0,0,0.005000}; }; }; class CfgWeapons { class Default {}; class MGun: Default {}; class Riffle: MGun {}; class HandGunBase: Riffle {}; class otwglock17Base: HandGunBase { access=2; scopeWeapon=0; scopeMagazine=0; weaponType=2; magazineType=32; model="\otwglock\otwglock.p3d"; modelOptics="\O\Guns\optika_glock17"; picture="\otwglock\glock.paa"; optics=1; opticsZoomMin=0.350000; opticsZoomMax=0.350000; distanceZoomMin=300; distanceZoomMax=300; displayName="Glock 17"; displayNameMagazine="Glock Mag"; shortNameMagazine="Glock"; count=17; reloadTime=0.100000; magazineReloadTime=1; reloadMagazineSound[]={"\otwglock\hgreload.wav",0.004623,1.000000}; drySound[]={"weapons\M16dry",0.003162,1}; magazines[]={"otwglock17"}; modes[]={"Single"}; class Single { ammo="otwglockAmmo"; multiplier=1; burst=1; displayName="Glock 17"; dispersion=0.002000; sound[]={"\otwglock\glock.wav",1,1.000000}; soundContinuous=0; reloadTime=0.100000; ffCount=1; recoil="otwglock"; autoFire=0; aiRateOfFire=0.500000; aiRateOfFireDistance=60; useAction=0; useActionTitle=""; }; }; class otwglock17Mag: otwglock17Base { scopeMagazine=2; picture="\O\Guns\zasobnik.paa"; }; class otwglock17: otwglock17Base { scopeWeapon=2; magazines[]={"otwglock17mag"}; uiPicture="\misc\ipistole.paa"; }; class otwglock18Base: HandGunBase { access=2; scopeWeapon=0; scopeMagazine=0; weaponType=2; magazineType=32; model="\otwglock\otwglock18.p3d"; modelOptics="\O\Guns\optika_glock17"; picture="\otwglock\glock.paa"; optics=1; opticsZoomMin=0.350000; opticsZoomMax=0.350000; distanceZoomMin=300; distanceZoomMax=300; displayName="Glock 18"; displayNameMagazine="Glock Mag"; shortNameMagazine="Glock"; count=17; reloadTime=0.100000; magazineReloadTime=1; reloadMagazineSound[]={"\otwglock\hgreload.wav",0.004623,1.000000}; drySound[]={"weapons\M16dry",0.003162,1}; magazines[]={"otwglock18"}; modes[]={"Single","FullAuto"}; class Single { ammo="otwglockAmmo"; multiplier=1; burst=1; displayName="Glock Semi"; dispersion=0.002000; sound[]={"\otwglock\glock.wav",1,1.000000}; soundContinuous=0; reloadTime=0.070000; ffCount=1; recoil="otwglock"; autoFire=0; aiRateOfFire=0.050000; aiRateOfFireDistance=60; useAction=0; useActionTitle=""; }; class FullAuto { ammo="otwglockAmmo"; multiplier=1; burst=1; displayName="Glock Auto"; dispersion=0.002000; sound[]={"\otwglock\glock.wav",1,1.000000}; soundContinuous=0; reloadTime=0.070000; ffCount=1; recoil="otwglock"; autoFire=1; aiRateOfFire=0.050000; aiRateOfFireDistance=60; useAction=0; useActionTitle=""; }; }; class otwglock18Mag: otwglock18Base { scopeMagazine=2; picture="\O\Guns\zasobnik.paa"; }; class otwglock18: otwglock18Base { scopeWeapon=2; magazines[]={"otwglock18mag"}; uiPicture="\misc\ipistole.paa"; }; }; class CfgNonAIVehicles { class ProxyWeapon {}; class Proxyotwglock17 : ProxyWeapon {}; class Proxyotwglock18 : ProxyWeapon {}; }; class CfgVehicles { class All{}; class AllVehicles : All{}; class Land : AllVehicles{}; class Man : Land{}; class Civilian: Man{}; class otwglock17man: Civilian { model="\O\Char\Char03"; displayName="Glock17 Man"; weapons[]={"otwglock17","Throw","Put"}; magazines[]={"otwglock17mag","otwglock17mag","otwglock17mag","otwgl ock17mag"}; }; class otwglock18man: Civilian { model="\O\Char\Char02"; displayName="Glock18 Man"; weapons[]={"otwglock18","Throw","Put"}; magazines[]={"otwglock18mag","otwglock18mag","otwglock18mag","otwgl ock18mag"}; }; }; Share this post Link to post Share on other sites
Guest BratZ Posted April 21, 2003 </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Quote (ruff @ April 20 2003,12:26)</td></tr><tr><td id="QUOTE">class CfgVehicles { class All{}; class AllVehicles : All{}; class Land : AllVehicles{}; class Man : Land{}; class Civilian: Man{}; class otwglock17man: Civilian { model="\O\Char\Char03"; displayName="Glock17 Man"; side = 1; <-----------------------------------HERE weapons[]={"otwglock17","Throw","Put"}; magazines[]={"otwglock17mag","otwglock17mag","otwglock17mag","otwgl ock17mag"}; }; class otwglock18man: Civilian { model="\O\Char\Char02"; displayName="Glock18 Man"; side = 1; <-----------------------------------HERE weapons[]={"otwglock18","Throw","Put"}; magazines[]={"otwglock18mag","otwglock18mag","otwglock18mag","otwgl ock18mag"}; }; };<span id='postcolor'> Add it to the CfgVehicles Share this post Link to post Share on other sites