Jump to content
Sign in to follow this  
Rob

Bad modelling problem...

Recommended Posts

i also have vipersheart looking at this but i want other peoples views...

i got the demo version of the m60 and pulled down the tripod so that it was set up ready for use (if you know what i mean)

I did this for all the views and knowing my luck i have probably done something wrong in the cpp file but everytime i try to use it in the game it crashes back to the desktop for no reason....

here is the cpp file

<span style='color:red'>// Model by SOT-wolf (SOT-wolf@yahoo.com)

// 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

#define WeaponNoSlot 0// dummy weapons

#define WeaponSlotPrimary 1// primary weapons

#define WeaponSlotSecondary 16// secondary weapons

#define WeaponSlotItem 256// items

#define WeaponSlotBinocular 4096// binocular

#define WeaponHardMounted 65536

class CfgPatches

{

class M60T

{

units[] = {};

weapons[] = {M60TR};

requiredVersion = 1.10;

};

class M60Tsoldier

{

units[] = {M60Tsoldier};

weapons[] = {};

requiredVersion = 1.10;

};

};

class CfgAmmo

{

class default {};

class BulletSingle : default {};

class BulletBurst : BulletSingle {};

class BulletBurstW : BulletBurst {};

class M60Tx : BulletBurstW

{

hit=20;indirectHit=0.010000;indirectHitRange=0.010000;

};

};

class CfgWeapons

{

class default {};

class MGun : default {};

class Riffle : MGun {};

class MachineGun7_6 : Riffle {};

class MachineGun7_6Manual : MachineGun7_6 {};

class M60 : MachineGun7_6Manual {};

class M60T : M60

{

scopeWeapon=5;

scopeMagazine=5;

model="\M60T\M60_MG_proxy";

modelOptics="optika_M60_MG";

picture="\dtaext\equip\m\m_m60.paa";

optics=3;

opticsFlare=0;

opticsZoomMin=0.250000;

opticsZoomMax=0.250000;

displayName="M60T";

displayNameMagazine="M60T Mag";

shortNameMagazine="M60T";

drySound[]={"weapons\M16Dry",0.010000,1};

magazines[]={"M60T"};

count=200;

magazineType="2 * 256";

modes[]={"single","FullAuto"};

class single

{

ammo="M60Tx";

count=200;

multiplier=1;

burst=1;

displayName="M60T single";

dispersion=0.003500;

sound[]={"\M60T\single.wav",db0,1};

soundContinuous=0;

flash="gunfire";

flashSize=0.900000;

reloadTime=0.080000;

ffCount=5;

recoil="mgunBurst3";

autoFire=0;

aiRateOfFire=5.000000;

aiRateOfFireDistance=800;

useAction=0;

useActionTitle="";

};

class FullAuto

{

ammo="M60Tx";

count=200;

multiplier=1;

burst=1;

displayName="M60T Auto";

dispersion=0.004000;

sound[]={"\M60T\Auto.wav",db0,1};

soundContinuous=0;

flash="gunfire";

flashSize=0.900000;

reloadTime=0.080000;

ffCount=6;

recoil="mgunBurst3";

autoFire=1;

aiRateOfFire=0.500000;

aiRateOfFireDistance=800;

useAction=0;

useActionTitle="";

};

};

class M60TR

{

scopeWeapon=3;

scopeMagazine=3;

weaponType=1;

displayName="M60T";

model="\M60T\m60_MG_proxy";

picture="\MM60T\w_M60TR.paa";

muzzles[] = {"M60TMuzzle"};

class M60TMuzzle : M60T

{

magazines[] = {M60T};

};

};

};

class CfgVehicles

{

class All{};

class AllVehicles:All{};

class Land:AllVehicles{};

class Man:Land{};

class Soldier:Man{};

class SoldierWB:Soldier{};

class SoldierWMG:SoldierWB{};

class M60TSoldier:SoldierWMG{

displayName="M60T Soldier";

weapons[]={M60TR,"binocular", "throw", "put"};

magazines[]={M60T,M60T,M60T,M60T};

};

};

class CfgNonAIVehicles

{

class ProxyWeapon {};

class ProxyM60TR: ProxyWeapon {};

};</span>

change...

m60t.jpg

Share this post


Link to post
Share on other sites

A few things...

class M60TR

{

Should be

class M60TR : M60T

{

And your Scopeweapon and magazine are wrong.

scopeWeapon=5;

scopeMagazine=5;

and

scopeWeapon=3;

scopeMagazine=3;

is illegal methinks. you can use

// type scope

#define private 0

#define protected 1

#define public 2

so they should be

scopeWeapon=2;

scopeMagazine=2;

/HuBBa

Share this post


Link to post
Share on other sites

could you please copy the above and add it where you think it should go please

Share this post


Link to post
Share on other sites

Sure ...

// Model by SOT-wolf (SOT-wolf@yahoo.com)

// 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

#define WeaponNoSlot 0// dummy weapons

#define WeaponSlotPrimary 1// primary weapons

#define WeaponSlotSecondary 16// secondary weapons

#define WeaponSlotItem 256// items

#define WeaponSlotBinocular 4096// binocular

#define WeaponHardMounted 65536

class CfgPatches

{

class M60T

{

units[] = {};

weapons[] = {M60TR};

requiredVersion = 1.10;

};

class M60Tsoldier

{

units[] = {M60Tsoldier};

weapons[] = {};

requiredVersion = 1.10;

};

};

class CfgAmmo

{

class default {};

class BulletSingle : default {};

class BulletBurst : BulletSingle {};

class BulletBurstW : BulletBurst {};

class M60Tx : BulletBurstW

{

hit=20;indirectHit=0.010000;indirectHitRange=0.010000;

};

};

class CfgWeapons

{

class default {};

class MGun : default {};

class Riffle : MGun {};

class MachineGun7_6 : Riffle {};

class MachineGun7_6Manual : MachineGun7_6 {};

class M60 : MachineGun7_6Manual {};

class M60T : M60

{

scopeWeapon=2;

scopeMagazine=2;

model="\M60T\M60_MG_proxy";

modelOptics="optika_M60_MG";

picture="\dtaext\equip\m\m_m60.paa";

optics=3;

opticsFlare=0;

opticsZoomMin=0.250000;

opticsZoomMax=0.250000;

displayName="M60T";

displayNameMagazine="M60T Mag";

shortNameMagazine="M60T";

drySound[]={"weapons\M16Dry",0.010000,1};

magazines[]={"M60T"};

count=200;

magazineType="2 * 256";

modes[]={"single","FullAuto"};

class single

{

ammo="M60Tx";

count=200;

multiplier=1;

burst=1;

displayName="M60T single";

dispersion=0.003500;

sound[]={"\M60T\single.wav",db0,1};

soundContinuous=0;

flash="gunfire";

flashSize=0.900000;

reloadTime=0.080000;

ffCount=5;

recoil="mgunBurst3";

autoFire=0;

aiRateOfFire=5.000000;

aiRateOfFireDistance=800;

useAction=0;

useActionTitle="";

};

class FullAuto

{

ammo="M60Tx";

count=200;

multiplier=1;

burst=1;

displayName="M60T Auto";

dispersion=0.004000;

sound[]={"\M60T\Auto.wav",db0,1};

soundContinuous=0;

flash="gunfire";

flashSize=0.900000;

reloadTime=0.080000;

ffCount=6;

recoil="mgunBurst3";

autoFire=1;

aiRateOfFire=0.500000;

aiRateOfFireDistance=800;

useAction=0;

useActionTitle="";

};

};

class M60TR : M60T

{

scopeWeapon=2;

scopeMagazine=2;

weaponType=1;

displayName="M60T";

model="\M60T\m60_MG_proxy";

picture="\MM60T\w_M60TR.paa";

muzzles[] = {"M60TMuzzle"};

class M60TMuzzle : M60T

{

magazines[] = {M60T};

};

};

};

class CfgVehicles

{

class All{};

class AllVehicles:All{};

class Land:AllVehicles{};

class Man:Land{};

class Soldier:Man{};

class SoldierWB:Soldier{};

class SoldierWMG:SoldierWB{};

class M60TSoldier:SoldierWMG{

displayName="M60T Soldier";

weapons[]={M60TR,"binocular", "throw", "put"};

magazines[]={M60T,M60T,M60T,M60T};

};

};

class CfgNonAIVehicles

{

class ProxyWeapon {};

class ProxyM60TR: ProxyWeapon {};

};

/HuBBa

Share this post


Link to post
Share on other sites

thx mate i will see if it works...

Share this post


Link to post
Share on other sites

i tried and no luck... can i send you the file?

i can't access your address as you have it private

Share this post


Link to post
Share on other sites

no offence people but i dont want you guys to nick my idea

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  

×