Jump to content
Sign in to follow this  
itim_tuko

Problem with wheels dont turn

Recommended Posts

I hope somebody can help me here in this forum.

I got some problems with the config. The wheels and the steering wheel of my trucks just wont turn arround. I where lookig for this now for several days and just cant find where the bug is

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">#define true 1

#define false 0

#define private 0

#define protected 1

#define public 2

#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 VSoft 0

#define VArmor 1

#define VAir 2

#define LockNo 0

#define LockCadet 1

#define LockYes 2

#define ReadAndWrite 0

#define ReadAndCreate 1

#define ReadOnly 2

#define ReadOnlyVerified 3

class CfgPatches

{

class CZM_M35_BASIC

{

units[]={CZM_M35_PMC_1};

weapons[]={};

requiredVersion = 1.00;

};

};

class CfgSkeletons

{

class Default{};

class Car : Default{};

class CZM_M35_BASIC

{

isDiscrete=1;

skeletonInherit="";

skeletonBones[]=

{

"wheel_lf","",

"wheel_rf","",

"wheel_lm","",

"wheel_rm","",

"wheel_lb","",

"wheel_rb","",

"steering_wheel","",

};

};

class CZM_M35_PMC_1 {};

};

class CfGVehicleClasses

{

class CZM_Wheeled

{

displayName="CZM Wheeled"

};

};

class CfgModels

{

class Default

{

sections[]={""};

sectionsInherit="";

};

class Car:Default{};

class CZM_M35_BASIC

{

//class temp

sectionsInherit="Car";

sections[]=

{

"wheel_lf","",

"wheel_rf","",

"wheel_lm","",

"wheel_rm","",

"wheel_lb","",

"wheel_rb","",

"steering_wheel","",

"brake_lights","",

"light_l","",

"light_r","",

};

skeletonName="CZM_M35_BASIC";

class Animations

{

//start of wheel rotating part

class Wheel_lf

{

type="rotationX";

source="wheel";

selection="wheel_lf";

axis="";

memory=1;

sourceAddress="loop";

minValue=0;

maxValue=1;

angle0=0;

angle1="rad -360";

};

class Wheel_rf

{

selection="wheel_rf";

};

class Wheel_lm

{

selection="wheel_lm";

};

class Wheel_rm

{

selection="wheel_rm";

};

class Wheel_lb

{

selection="wheel_lb";

};

class Wheel_rb

{

selection="wheel_rb";

};

//end of wheel rotating part

//start of steering

class Wheel_lf_steering

{

type="rotationY";

source="driving_wheel";

selection="wheel_lf";

axis="";

memory=1;

sourceAddress="clamp";

minValue=-1;

maxValue=1;

angle0="rad +30";

angle1="rad -30";

};

class Wheel_rf_steering:Wheel_lf_steering

{

selection="wheel_rf";

};

class SteeringWheel:Wheel_lf_steering

{

type="rotationY";

selection="steering_wheel";

axis="axis_steeringwheel";

angle0="rad +180";

angle1="rad -180";

};

};

//end of animation

};

class CZM_M35_PMC_1:CZM_M35_BASIC{};

};

//class temp

class CfgVehicles

{

class All{};

class AllVehicles:All{};

class Land:AllVehicles{};

class LandVehicle:Land

{

//class NewTurret;

//class ViewOptics;

};

class Car:Landvehicle{};

class CZM_M35_PMC_1

{

scope = 2;

model = "\CZM-wheel\CZM_M35_MAR";

displayName = "PMC M35 Open ";

picture = "\CZM-wheel\data2\M35truck.paa";

Icon="\CZM-wheel\data2\M35_ICO.paa";

mapSize = 10;

weapons[] = {"TruckHorn"};

maxSpeed= 90;

magazines[] = {};

side=TWest;

crew = "SoldierWB";

soundEngine[]={\ca\wheeled\Data\Sound\Truck_loop_3b,db0,1};

soundGetIn[]={\ca\wheeled\Data\Sound\V3S_door_v2,db-20,1};

soundGetOut[]={\ca\wheeled\Data\Sound\V3S_door_v2,db-20,1};

soundServo[]={\ca\wheeled\Data\Sound\servo3, db-95, 1.0};

getInAction=GetInHigh;

getOutAction = GetOutHigh;

driverIsCommander = 0;

hasGunner = 0;

hasDriver = 1;

hasCommander = 0;

DriverIsCommander = true;

vehicleClass = "CZM_Wheeled";

driverAction = "Truck_Driver";

cargoAction[] =

{

Truck_Cargo02, Truck_Cargo04, Truck_Cargo04, Truck_Cargo02, Truck_Cargo03,

Truck_Cargo04, Truck_Cargo02, Truck_Cargo04, Truck_Cargo04, Truck_Cargo04,

};

transportSoldier = 11;

threat[] = {0.5, 0.5, 0.8};

memoryPointsGetInDriver = "pos driver";

memoryPointsGetInDriverDir = "pos driver dir";

class Library

{

libTextDesc = "M35 truck"

};

};

};

Share this post


Link to post
Share on other sites

1st of all you need to split the configr from the models skeleton part to do that. cut the Class CfgModels and Class CfgSkeletons (with all the inside). And paste them into a new file, named model.cfg. This file should be (model.cfg) in the same directory as your p3d). You need to do this cause only this way you can binarise your model later, when you want to.

2.) delete this line in Cfgskeletons you don't need it. class CZM_M35_PMC_1 {};

in cfgmodels you define

class Default

{

sections[]={""};

sectionsInherit="";

};

class Car:Default{};

class CZM_M35_BASIC <--you don't inherit from any of the above classes, instead write class CZM_M35_BASIC:Default, screw the class Car:Default{}; line.

Also change this line too sectionsInherit="Car"; into sectionsInherit="Default";

3) i assume the your p3d name is the same as the one in the CfgModels,

class CZM_M35_PMC_1:CZM_M35_BASIC{};,

your p3d name should be CZM_M35_PMC_1 in order this to work.

for start check all these things and see if it works. But top prioriti detach you main config from the CfgModels part.

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  

×