ruff 102 Posted April 14, 2003 need to know how to change a civillian unit to a west unit by unpacking the pbo file and redoing cpp file can some one just send me a cpp already typed up that i only have to type in the unit name and weapon to change he unit into a west unit is it possible Share this post Link to post Share on other sites
Skaircro 0 Posted April 14, 2003 You need to find where it has: side=TCivilian; or side=3; And change it to: side=TWest; or side=1; Share this post Link to post Share on other sites
ruff 102 Posted April 17, 2003 is that all do i have to change anything else do i only have to look for where it days side and change it im going to try it now thanks for replying Share this post Link to post Share on other sites
ruff 102 Posted April 17, 2003 i unpacked the pbo but the cpp doesnt say anything about side which type of files do i need to unpack?? Share this post Link to post Share on other sites
king homer 1 Posted April 17, 2003 Pls post ur config Share this post Link to post Share on other sites
ruff 102 Posted April 18, 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
Jimboh 0 Posted April 18, 2003 </span><table border="0" align="center" width="95%" cellpadding="3" cellspacing="1"><tr><td>Code Sample </td></tr><tr><td id="CODE">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 { side=1; model="\O\Char\Char03"; displayName="Glock17 Man"; weapons[]={"otwglock17","Throw","Put"}; magazines[]={"otwglock17mag","otwglock17mag","otwglock17mag","otwgl ock17mag"}; }; class otwglock18man: Civilian { side=1; model="\O\Char\Char02"; displayName="Glock18 Man"; weapons[]={"otwglock18","Throw","Put"}; magazines[]={"otwglock18mag","otwglock18mag","otwglock18mag","otwgl ock18mag"}; }; };<span id='postcolor'> Share this post Link to post Share on other sites
Jimboh 0 Posted April 18, 2003 If you didn''t want to search for what I did, I just added a side=1; to your units under CfgVehicles. BTW, this should be under Addon Config & Scripting...you posted on wrong board Share this post Link to post Share on other sites
ruff 102 Posted April 19, 2003 thanks jimbo sorry man dunno where in te forum cpp was thanks alot man Share this post Link to post Share on other sites