中国虚拟军事网(VME)- 专注于武装突袭系列虚拟军事游戏

 找回密码
 加入VME

QQ登录

只需一步,快速开始

搜索
查看: 2455|回复: 21

[求助] “哈雷”请还我五一假日

[复制链接]
发表于 2016-5-2 22:27:22 | 显示全部楼层 |阅读模式
本帖最后由 WIN 于 2016-5-5 00:51 编辑

利用节假日的一点时间研究了载具的制作,找了个2代的摩托插件,重制模型导入游戏调整好各部分的层与定义点,设置config.cpp东拼西凑,加入定义了原本没有的喇叭功能,重制引擎音效等,现在有几个问题一时没办解决;
第一个问题是:动作文件不太合适,后续我会发时间重制一下!我现用的是A3里的quadbike越野摩托的驾驶动作文件和乘客动作文件,但是这些动作如何可以定义它能跟着摩托方向把手一起活动?
第二个问题是:我把摩托方向把与前轮做为一起命名定义为volant时,前轮不转动,但是可以正常打放向,我把摩托方向把与前轮分开定义,方向把可以正常打,前轮也转了,但是前轮不会与方向把一起跟着偏转。config.cpp与model.cfg里我不确定是否定义完全,请高手指点一下,给个思路解决一下。
就这两个问题一时难已解决,后续我会花些时间重制驾驶动作,加入排气管气浪效果,加入前后灯光等等。前面两个问题大家帮讨论一下,给点思路,看如何解决?
放个这两个问题表示视频给大家看一下。
上述的两个问题已解决,可能是A2时代的摩托参数在引擎中被剃除了,拆了人家A3一个作者做的自行车,重新修改定义模型,两个问题就解决了。但是新的问题出来了config中不能改快车速,只能改显示的最大车速数值,改不了车速,用的是自行车的基础参数,看来,单车要想变摩托还真的是先天不足呀!呵呵,不知道从哪可以改,引用摩托的基础参数吗?
发表于 2016-5-3 00:51:12 | 显示全部楼层
不错不错!你终于做了自己的第一个mod,支持一下!不过现在太晚了,明天我再想想你的这两个问题,给你提供下思路。
 楼主| 发表于 2016-5-3 10:22:12 | 显示全部楼层
jinj8401 发表于 2016-5-3 00:51
不错不错!你终于做了自己的第一个mod,支持一下!不过现在太晚了,明天我再想想你的这两个问题,给你提供 ...

jinj8401大哥好久不见?呵呵,之前没时间,要像老外,一周几天班,玩的时间多,就好了,可以做自己感兴趣的事。载具算是第一个了,得意于KISS兄最初的枪械教程,我从枪械和物件开始摸索,举一反三,做了些物件的东西,箱子,桌子呀这些的,因为这些简单,不加功能的话,不需要MOMENY层定义。返正是多拆包别人的东西,看懂别人的config与model.cfg定义内容,从模型里增加定义点内容,对应设置文件,有些功能可以直接从config里增加。也算是这几天的一点心得。解决不了的问题还是和大家交流一下才好,才能更好的解决!
发表于 2016-5-3 12:09:05 | 显示全部楼层
先说下,我对车辆定义还没有研究过,只能给你些参考建议。
你的第一个问题我的确不知道原因在哪里,方向把手你有没有定义,也许是这个问题?
第二个问题,我觉得应该是model.cfg的定义有问题。摩托方向把与前轮一起定义应该是正确的,但你是在哪里定义的,命名定义为volant是不是在模型层?那model.cfg里你有没有定义呢?model.cfg的作用很大一部分就是能够识别调用各种动画效果的。
你用的二代模型,二代模型原有的定义大部分应该还有效,与三代的差别主要是在config.cpp里。
 楼主| 发表于 2016-5-3 13:06:48 | 显示全部楼层
本帖最后由 WIN 于 2016-5-3 13:34 编辑
jinj8401 发表于 2016-5-3 12:09
先说下,我对车辆定义还没有研究过,只能给你些参考建议。
你的第一个问题我的确不知道原因在哪里,方向把 ...


jinj8401大哥,model.cfg有定义的,定义层里也有命名,就是那个轮子放一起命名为volant就不转了,分开都正常的,只是轮子不会和把手一起偏向,看起来很不合理。我贴出CONFIG看看是哪没有定义,水平有限,呵呵


CONFIG.CPP内容:
class CfgPatches
{
class win_motorbike
{
units[] = {"win_motorbike"};  
weapons[] = {};
requiredVersion = 1.0;
requirewinddons[] = {};
        };
};

class cfgweapons///我新加入的喇叭功能
{
        class CarHorn;
        class motorcycle_Horn: CarHorn
        {
                cursor = "";
                cursorAim = "";
                scope = 1;
                displayName = "Horn";
                reloadTime = 0;
                drySound[] = {"win_motorbike\sounds\motorcycle_horn",1,1,100};
                canLock = 0;
                optics = 0;
                enableAttack = 0;
        };
};

class CfgFactionClasses
{
        class win_motorbike_nice
        {
                displayName="winman Civilian Bikes";
                priority=100;
                side=3;
        };
};

class CfgVehicleClasses
{
        class Nice_Vehicles
        {
                displayName="Hayley Gavidson";
        };
};
class CfgModels {
        class Motorcycle;        // External class reference
       
        class win_motorbike : Motorcycle {
                sectionsInherit = "";
                sections[] = {"Object02","n1", "n2", "n3", "n4", "n5", "n6", "pruh", "light_brake", "pravy predni", "pravy winlsi", "pravy zadni", "pravy prostredni", "levy predni", "levy winlsi", "levy zadni", "levy prostredni", "L svetlo", "P svetlo", "clan"};
                skeletonName = "win_motorbikeBones";
               
                class Animations {
                        class mainTurret {
                                type = "rotationY";
                                source = "mainTurret";
                                selection = "mainTurret";
                                axis = "OsaVeze";
                                memory = 1;
                                sourceAddress = "loop";
                                minValue = "rad -360";
                                maxValue = "rad 360";
                                angle0 = "rad -360";
                                angle1 = "rad 360";
                        };
                       
                        class mainGun {
                                type = "rotationX";
                                source = "mainGun";
                                selection = "mainGun";
                                axis = "OsaHlavne";
                                memory = 1;
                                sourceAddress = "clamp";
                                minValue = "-rad 4";
                                maxValue = "rad 60";
                                angle0 = "-rad 4";
                                angle1 = "rad 60";
                        };
                       
                        class Dvere1 {
                                type = "rotation";
                                source = "rpm";
                                selection = "dvere1";
                                axis = "osa_dvere1";
                                memory = 1;
                                //sourceAddress = "clamp";
                                minValue = 0;
                                maxValue = 0.1;
                                angle0 = 0;
                                angle1 = 0.58;
                        };
                       
                        class win_motorbikeFrontWheelR {
                                type = "rotationX";
                                source = "wheel";
                                selection = "pravy predni";
                                axis = "";
                                memory = 1;
                                sourceAddress = "loop";
                                minValue = 0;
                                maxValue = 1;
                                angle0 = 0;
                                angle1 = "rad -360";
                        };
                       
                        class win_motorbikeFrontWheelL : win_motorbikeFrontWheelR {
                                selection = "levy predni";
                        };
                       
                        class win_motorbike2FrontWheelL : win_motorbikeFrontWheelR {
                                selection = "levy winlsi";
                        };
                       
                        class win_motorbike2FrontWheelR : win_motorbikeFrontWheelR {
                                selection = "pravy winlsi";
                        };
                       
                        class win_motorbike2RearWheelR : win_motorbikeFrontWheelR {
                                selection = "pravy prostredni";
                        };
                       
                        class win_motorbike2RearWheelL : win_motorbikeFrontWheelR {
                                selection = "levy prostredni";
                        };
                       
                        class win_motorbikeRearWheelR : win_motorbikeFrontWheelR {
                                selection = "pravy zadni";
                        };
                       
                        class win_motorbikeRearWheelL : win_motorbikeFrontWheelR {
                                selection = "levy zadni";
                        };
                       
                        class win_motorbikeFrontWheelRTurn {
                                type = "rotationY";
                                source = "drivingWheel";
                                selection = "pravy predni";
                                axis = "";
                                memory = 1;
                                sourceAddress = "clamp";
                                minValue = -1;
                                maxValue = 1;
                                angle0 = "rad 35";
                                angle1 = "rad -35";
                        };
                       
                        class win_motorbikeFrontWheelLTurn : win_motorbikeFrontWheelRTurn {
                                selection = "levy predni";
                        };
                       
                        class win_motorbike2FrontWheelRTurn : win_motorbikeFrontWheelRTurn {
                                selection = "pravy winlsi";
                        };
                       
                        class win_motorbike2FrontWheelLTurn : win_motorbikeFrontWheelLTurn {
                                selection = "levy winlsi";
                        };
                       
                        class win_motorbikewinmperFrontWheelR {
                                type = "translationY";
                                source = "winmper";
                                selection = "pravy predni";
                                axis = "";
                                memory = 1;
                                sourceAddress = "clamp";
                                minValue = 0;
                                maxValue = 1;
                                angle0 = 0;
                                angle1 = "35";
                        };
                       
                        class win_motorbikewinmperFrontWheelL : win_motorbikewinmperFrontWheelR {
                                selection = "levy predni";
                        };
                       
                        class win_motorbike2winmperFrontWheelL : win_motorbikewinmperFrontWheelR {
                                selection = "levy winlsi";
                        };
                       
                        class win_motorbike2winmperFrontWheelR : win_motorbikewinmperFrontWheelR {
                                selection = "pravy winlsi";
                        };
                       
                        class win_motorbike2winmperRearWheelR : win_motorbikewinmperFrontWheelR {
                                selection = "pravy prostredni";
                        };
                       
                        class win_motorbike2winmperRearWheelL : win_motorbikewinmperFrontWheelR {
                                selection = "levy prostredni";
                        };
                       
                        class win_motorbikewinmperRearWheelR : win_motorbikewinmperFrontWheelR {
                                selection = "pravy zadni";
                        };
                       
                        class win_motorbikewinmperRearWheelL : win_motorbikewinmperFrontWheelR {
                                selection = "levy zadni";
                        };
                       
                        class win_motorbikeIndicatorSpeed {
                                type = "rotation";
                                source = "speed";
                                memory = 0;
                                selection = "ukaz_rychlo";
                                axis = "osa_rychlo";
                                angle0 = 0;
                                angle1 = "rad -240";
                                minValue = 0;
                                maxValue = 60;
                        };
                       
                        class win_motorbikeIndicatorRPM {
                                type = "rotation";
                                source = "rpm";
                                memory = 0;
                                selection = "ukaz_rpm";
                                axis = "osa_rpm";
                                angle0 = 0;
                                angle1 = "rad -270";
                                minValue = 0;
                                maxValue = 1.5;
                        };
                       
                        class win_motorbikeIndicatorFuel {
                                type = "rotation";
                                source = "fuel";
                                memory = 0;
                                selection = "ukaz_fuel";
                                axis = "osa_fuel";
                                angle0 = "0";
                                angle1 = "rad 270";
                                minValue = 0;
                                maxValue = 1;
                        };
                       
                        class win_motorbikeDrivingWheel {
                                type="rotation";
                                source="drivingWheel";
                                selection="volant";
                                axis="volant osa";
                                memory="true";
                                animPeriod=0;
                                minValue=-1;
                                maxValue=1;
                                angle0=15;
                                angle1=-15;
                        };
                };
        };
};


class CfgVehicles
{
class Motorcycle;
class win_motorbike : Motorcycle
{
selectionBackLights = "brno manjet";
                hiddenSelections[] = {
                        "object2",
                };
                hiddenSelectionsTextures[] = {
                        "\win_motorbike\invpics\grouppic.paa",
                };
scope = public;
model = "\win_motorbike\win_motorbike.p3d";
Picture = "\win_motorbike\invpics\grouppic.paa";
Icon = "\win_motorbike\invpics\icon.paa";
mapSize = 8;
terrainCoef = 9;
displayName = "Haylay Gavidson";
side = TCivilian;
maxspeed = 160;
crew = "Pilot";
extCameraPosition[]={0,0,-3};
nameSound = "Car";
winmperwinmping = 3;
winmperSize = 0.05;
turnCoef = 5;
armor = 40;
type = VArmor;
cost = 100000;
armorGlass = 0.5;
armorWheels = 0.05;
weapons[] = {"motorcycle_Horn"};///在此载入定义的喇叭功能
fuelCapacity=20;
faction="win_motorbike_nice";
vehicleClass="nice_Vehicles";
soundEngine[] = {"\win_motorbike\sounds\motorcycle.wss", db15, 0.7};
soundGetIn[] = {"\a3\sounds_f\vehicles\noises\get_in_out", db-20, 1};
soundGetOut[] = {"\a3\sounds_f\vehicles\noises\get_in_out", db-20, 1};
soundServo[] = {"\a3\sounds_f\vehicles\noises\servo_best", db-40, 1.0};
typicalCargo[] = {"SoldierWB", "SoldierWB", "SoldierWAT", "SoldierWBOfficer"};
transportSoldier = 1;
canfloat = 0;
driverForceOptics = 0;
hasGunner = 0;
accuracy=0.50;
class Turrets {};
castDriverShadow = true;
driverIsCommander = true;
driverAction = "Bike_Driver";
cargoAction[] = {"Bike_Cargo", "HMMWV_Cargo01", "UAZ_Cargo01"};
canLock = LockNo;
unitInfoType = "UnitInfoSoldier";
class Library {libTextDesc = "Haylay winvidson motorcycle, suited for long cruising on big islands.";};

                class HitLFWheel {armor=0.38;material=-1;name="Levy predni tlumic";visual="Levy predni";passThrough=0;};
                class HitRFWheel {armor=0.38;material=-1;name="Pravy predni tlumic";visual="Pravy predni";passThrough=0;};

                class HitLBWheel {armor=0.38;material=-1;name="Levy zadni tlumic";visual="Levy zadni";passThrough=0;};
                class HitRBWheel {armor=0.38;material=-1;name="Pravy zadni tlumic";visual="Pravy zadni";passThrough=0;};
                winmageHalf[] =
                {
                        win_motorbike\textures\louisbike_winmageHalf.paa,
                        win_motorbike\textures\louisbike_winmageHalf.paa
                };
                winmageFull[] =
                {
                        win_motorbike\textures\louisbike_winmageFull.paa,
                        win_motorbike\textures\louisbike_winmageFull.paa
                };
                class winmage
                {
                        tex[]={};
                        mat[]=
                        {
                                "a3\winta_f\penetration\armour_plate_3mm.rvmat",
                                "a3\winta_f\destruct\default_destruct_exterior.rvmat",
                                "a3\winta_f\penetration\leather.rvmat",
                                "a3\winta_f\penetration\leather.rvmat",
                                "a3\winta_f\destruct\default_destruct_exterior.rvmat",
                                "a3\winta_f\penetration\metal_plate.rvmat",
                                "a3\winta_f\penetration\metal_plate.rvmat",
                                "a3\winta_f\destruct\default_destruct_exterior.rvmat",
                                "a3\winta_f\penetration\metal.rvmat",
                                "a3\winta_f\penetration\metal.rvmat",
                                "a3\winta_f\destruct\default_destruct_exterior.rvmat"
                        };
                };
                        

// threat (VSoft, VArmor, VAir), how threatening vehicle is to unit types
threat[] = {1, 0.1, 0.4};
};
};


这里是model cfg肉容:
class CfgTextureToMaterial {
        class BTRSide {
                textures[] = {"win_motorbike\textures\louisbike_co.paa"};
                material = "#BTRSide";
        };
       
        class BTRFront {
                textures[] = {"win_motorbike\textures\louisbike_co.paa"};
                material = "#BTRFront";
        };
       
        class BTRRest {
                textures[] = {"win_motorbike\textures\louisbike_co.paa"};
                material = "#BTRRest";
        };
       
        class BTRBack {
                textures[] = {"win_motorbike\textures\louisbike_co.paa"};
                material = "#BTRBack";
        };
       
        class BTRTurr {
                textures[] = {"win_motorbike\textures\louisbike_co.paa"};
                material = "#BTRTurr";
        };
       
        class BTRK {
                textures[] = {"win_motorbike\textures\louisbike_co.paa"};
                material = "#BTRK";
        };
       
        class BTRwhee {
                textures[] = {"win_motorbike\textures\louisbike_co.paa"};
                material = "#BTRwhee";
        };
};

class CfgMaterials {
        class BTRSide {
                ambient[] = {1.0, 1.0, 1.0, 1.0};
                diffuse[] = {1.0, 1.0, 1.0, 1.0};
                forcedDiffuse[] = {0.0, 0.0, 0.0, 0.0};
                emmisive[] = {0.0, 0.0, 0.0, 1.0};
                specular[] = {0.746, 0.746, 0.746, 1.0};
                specularPower = 130.0;
                PixelShaderID = "NormalMapSpecularDIMap";
                VertexShaderID = "NormalMap";
               
                class Stage1 {
                        texture = "win_motorbike\textures\louisbike_nohq.paa";
                        uvSource = "tex";
                       
                        class uvTransform {
                                aside[] = {1.0, 0.0, 0.0};
                                up[] = {0.0, 1.0, 0.0};
                                dir[] = {0.0, 0.0, 0.0};
                                pos[] = {0.0, 0.0, 0.0};
                        };
                };
               
                class Stage2 {
                        texture = "win_motorbike\textures\louisbike_smdi.paa";
                        uvSource = "tex";
                       
                        class uvTransform {
                                aside[] = {1.0, 0.0, 0.0};
                                up[] = {0.0, 1.0, 0.0};
                                dir[] = {0.0, 0.0, 0.0};
                                pos[] = {0.0, 0.0, 0.0};
                        };
                };
        };
       
        class BTRFront {
                ambient[] = {1.0, 1.0, 1.0, 1.0};
                diffuse[] = {1.0, 1.0, 1.0, 1.0};
                forcedDiffuse[] = {0.0, 0.0, 0.0, 0.0};
                emmisive[] = {0.0, 0.0, 0.0, 1.0};
                specular[] = {0.746, 0.746, 0.746, 1.0};
                specularPower = 130.0;
                PixelShaderID = "NormalMapSpecularDIMap";
                VertexShaderID = "NormalMap";
               
                class Stage1 {
                        texture = "win_motorbike\textures\louisbike_nohq.paa";
                        uvSource = "tex";
                       
                        class uvTransform {
                                aside[] = {1.0, 0.0, 0.0};
                                up[] = {0.0, 1.0, 0.0};
                                dir[] = {0.0, 0.0, 0.0};
                                pos[] = {0.0, 0.0, 0.0};
                        };
                };
               
                class Stage2 {
                        texture = "win_motorbike\textures\louisbike_smdi.paa";
                        uvSource = "tex";
                       
                        class uvTransform {
                                aside[] = {1.0, 0.0, 0.0};
                                up[] = {0.0, 1.0, 0.0};
                                dir[] = {0.0, 0.0, 0.0};
                                pos[] = {0.0, 0.0, 0.0};
                        };
                };
        };
       
        class BTRRest {
                ambient[] = {1.0, 1.0, 1.0, 1.0};
                diffuse[] = {1.0, 1.0, 1.0, 1.0};
                forcedDiffuse[] = {0.0, 0.0, 0.0, 0.0};
                emmisive[] = {0.0, 0.0, 0.0, 1.0};
                specular[] = {0.746, 0.746, 0.746, 1.0};
                specularPower = 130.0;
                PixelShaderID = "NormalMapSpecularDIMap";
                VertexShaderID = "NormalMap";
               
                class Stage1 {
                        texture = "win_motorbike\textures\louisbike_nohq.paa";
                        uvSource = "tex";
                       
                        class uvTransform {
                                aside[] = {1.0, 0.0, 0.0};
                                up[] = {0.0, 1.0, 0.0};
                                dir[] = {0.0, 0.0, 0.0};
                                pos[] = {0.0, 0.0, 0.0};
                        };
                };
               
                class Stage2 {
                        texture = "win_motorbike\textures\louisbike_smdi.paa";
                        uvSource = "tex";
                       
                        class uvTransform {
                                aside[] = {1.0, 0.0, 0.0};
                                up[] = {0.0, 1.0, 0.0};
                                dir[] = {0.0, 0.0, 0.0};
                                pos[] = {0.0, 0.0, 0.0};
                        };
                };
        };
       
        class BTRBack {
                ambient[] = {1.0, 1.0, 1.0, 1.0};
                diffuse[] = {1.0, 1.0, 1.0, 1.0};
                forcedDiffuse[] = {0.0, 0.0, 0.0, 0.0};
                emmisive[] = {0.0, 0.0, 0.0, 1.0};
                specular[] = {0.746, 0.746, 0.746, 1.0};
                specularPower = 130.0;
                PixelShaderID = "NormalMapSpecularDIMap";
                VertexShaderID = "NormalMap";
               
                class Stage1 {
                        texture = "win_motorbike\textures\louisbike_nohq.paa";
                        uvSource = "tex";
                       
                        class uvTransform {
                                aside[] = {1.0, 0.0, 0.0};
                                up[] = {0.0, 1.0, 0.0};
                                dir[] = {0.0, 0.0, 0.0};
                                pos[] = {0.0, 0.0, 0.0};
                        };
                };
               
                class Stage2 {
                        texture = "win_motorbike\textures\louisbike_smdi.paa";
                        uvSource = "tex";
                       
                        class uvTransform {
                                aside[] = {1.0, 0.0, 0.0};
                                up[] = {0.0, 1.0, 0.0};
                                dir[] = {0.0, 0.0, 0.0};
                                pos[] = {0.0, 0.0, 0.0};
                        };
                };
        };
       
        class BTRTurr {
                ambient[] = {1.0, 1.0, 1.0, 1.0};
                diffuse[] = {1.0, 1.0, 1.0, 1.0};
                forcedDiffuse[] = {0.0, 0.0, 0.0, 0.0};
                emmisive[] = {0.0, 0.0, 0.0, 1.0};
                specular[] = {0.746, 0.746, 0.746, 1.0};
                specularPower = 130.0;
                PixelShaderID = "NormalMapSpecularDIMap";
                VertexShaderID = "NormalMap";
               
                class Stage1 {
                        texture = "win_motorbike\textures\louisbike_nohq.paa";
                        uvSource = "tex";
                       
                        class uvTransform {
                                aside[] = {1.0, 0.0, 0.0};
                                up[] = {0.0, 1.0, 0.0};
                                dir[] = {0.0, 0.0, 0.0};
                                pos[] = {0.0, 0.0, 0.0};
                        };
                };
               
                class Stage2 {
                        texture = "win_motorbike\textures\louisbike_smdi.paa";
                        uvSource = "tex";
                       
                        class uvTransform {
                                aside[] = {1.0, 0.0, 0.0};
                                up[] = {0.0, 1.0, 0.0};
                                dir[] = {0.0, 0.0, 0.0};
                                pos[] = {0.0, 0.0, 0.0};
                        };
                };
        };
       
        class BTRK {
                ambient[] = {1.0, 1.0, 1.0, 1.0};
                diffuse[] = {1.0, 1.0, 1.0, 1.0};
                forcedDiffuse[] = {0.0, 0.0, 0.0, 0.0};
                emmisive[] = {0.0, 0.0, 0.0, 1.0};
                specular[] = {0.746, 0.746, 0.746, 1.0};
                specularPower = 130.0;
                PixelShaderID = "NormalMapSpecularDIMap";
                VertexShaderID = "NormalMap";
               
                class Stage1 {
                        texture = "win_motorbike\textures\louisbike_nohq.paa";
                        uvSource = "tex";
                       
                        class uvTransform {
                                aside[] = {1.0, 0.0, 0.0};
                                up[] = {0.0, 1.0, 0.0};
                                dir[] = {0.0, 0.0, 0.0};
                                pos[] = {0.0, 0.0, 0.0};
                        };
                };
               
                class Stage2 {
                        texture = "win_motorbike\textures\louisbike_smdi.paa";
                        uvSource = "tex";
                       
                        class uvTransform {
                                aside[] = {1.0, 0.0, 0.0};
                                up[] = {0.0, 1.0, 0.0};
                                dir[] = {0.0, 0.0, 0.0};
                                pos[] = {0.0, 0.0, 0.0};
                        };
                };
        };
       
        class BTRwheel {
                ambient[] = {1.0, 1.0, 1.0, 1.0};
                diffuse[] = {1.0, 1.0, 1.0, 1.0};
                forcedDiffuse[] = {0.0, 0.0, 0.0, 0.0};
                emmisive[] = {0.0, 0.0, 0.0, 1.0};
                specular[] = {0.746, 0.746, 0.746, 1.0};
                specularPower = 130.0;
                PixelShaderID = "NormalMapSpecularDIMap";
                VertexShaderID = "NormalMap";
               
                class Stage1 {
                        texture = "win_motorbike\textures\louisbike_nohq.paa";
                        uvSource = "tex";
                       
                        class uvTransform {
                                aside[] = {1.0, 0.0, 0.0};
                                up[] = {0.0, 1.0, 0.0};
                                dir[] = {0.0, 0.0, 0.0};
                                pos[] = {0.0, 0.0, 0.0};
                        };
                };
               
                class Stage2 {
                        texture = "win_motorbike\textures\louisbike_smdi.paa";
                        uvSource = "tex";
                       
                        class uvTransform {
                                aside[] = {1.0, 0.0, 0.0};
                                up[] = {0.0, 1.0, 0.0};
                                dir[] = {0.0, 0.0, 0.0};
                                pos[] = {0.0, 0.0, 0.0};
                        };
                };
        };
};

class CfgSkeletons {
        class Car;       
       
        class win_motorbikeBones : Car {
                isDiscrete = 1;
                skeletonInherit = "";
                skeletonBones[] = {"pravy predni", "", "pravy winlsi", "", "pravy zadni", "", "pravy prostredni", "", "levy predni", "", "levy winlsi", "", "levy zadni", "", "levy prostredni", "", "dvere1", "", "ukaz_fuel", "", "ukaz_rpm", "", "ukaz_rychlo", "", "volant", "", "mainTurret", "", "mainGun", "mainTurret"};
        };
};

class CfgModels {
        class Car;       
       
        class win_motorbike : Car {
                sectionsInherit = "";
                sections[] = {"n1", "n2", "n3", "n4", "n5", "n6", "pruh", "light_brake", "pravy predni", "pravy winlsi", "pravy zadni", "pravy prostredni", "levy predni", "levy winlsi", "levy zadni", "levy prostredni", "L svetlo", "P svetlo", "clan"};
                skeletonName = "win_motorbikeBones";
               
                class Animations {
                        class mainTurret {
                                type = "rotationY";
                                source = "mainTurret";
                                selection = "mainTurret";
                                axis = "OsaVeze";
                                memory = 1;
                                sourceAddress = "loop";
                                minValue = "rad -360";
                                maxValue = "rad 360";
                                angle0 = "rad -360";
                                angle1 = "rad 360";
                        };
                       
                        class mainGun {
                                type = "rotationX";
                                source = "mainGun";
                                selection = "mainGun";
                                axis = "OsaHlavne";
                                memory = 1;
                                sourceAddress = "clamp";
                                minValue = "-rad 4";
                                maxValue = "rad 60";
                                angle0 = "-rad 4";
                                angle1 = "rad 60";
                        };
                       
                        class Dvere1 {
                                type = "rotation";
                                source = "rpm";
                                selection = "dvere1";
                                axis = "osa_dvere1";
                                memory = 1;
                                //sourceAddress = "clamp";
                                minValue = 0;
                                maxValue = 0.1;
                                angle0 = 0;
                                angle1 = 0.58;
                        };
                       
                        class win_motorbikeFrontWheelR {
                                type = "rotationX";
                                source = "wheel";
                                selection = "pravy predni";
                                axis = "";
                                memory = 1;
                                sourceAddress = "loop";
                                minValue = 0;
                                maxValue = 1;
                                angle0 = 0;
                                angle1 = "rad -360";
                        };
                       
                        class win_motorbikeFrontWheelL : win_motorbikeFrontWheelR {
                                selection = "levy predni";
                        };
                       
                        class win_motorbike2FrontWheelL : win_motorbikeFrontWheelR {
                                selection = "levy winlsi";
                        };
                       
                        class win_motorbike2FrontWheelR : win_motorbikeFrontWheelR {
                                selection = "pravy winlsi";
                        };
                       
                        class win_motorbike2RearWheelR : win_motorbikeFrontWheelR {
                                selection = "pravy prostredni";
                        };
                       
                        class win_motorbike2RearWheelL : win_motorbikeFrontWheelR {
                                selection = "levy prostredni";
                        };
                       
                        class win_motorbikeRearWheelR : win_motorbikeFrontWheelR {
                                selection = "pravy zadni";
                        };
                       
                        class win_motorbikeRearWheelL : win_motorbikeFrontWheelR {
                                selection = "levy zadni";
                        };
                       
                        class win_motorbikeFrontWheelRTurn {
                                type = "rotationY";
                                source = "drivingWheel";
                                selection = "pravy predni";
                                axis = "";
                                memory = 1;
                                sourceAddress = "clamp";
                                minValue = -1;
                                maxValue = 1;
                                angle0 = "rad 15";
                                angle1 = "rad -15";
                        };
                       
                        class win_motorbikeFrontWheelLTurn : win_motorbikeFrontWheelRTurn {
                                selection = "levy predni";
                        };
                       
                        class win_motorbike2FrontWheelRTurn : win_motorbikeFrontWheelRTurn {
                                selection = "pravy winlsi";
                        };
                       
                        class win_motorbike2FrontWheelLTurn : win_motorbikeFrontWheelLTurn {
                                selection = "levy winlsi";
                        };
                       
                        class win_motorbikewinmperFrontWheelR {
                                type = "translationY";
                                source = "winmper";
                                selection = "pravy predni";
                                axis = "";
                                memory = 1;
                                sourceAddress = "clamp";
                                minValue = 0;
                                maxValue = 1;
                                angle0 = 0;
                                angle1 = "35";
                        };
                       
                        class win_motorbikewinmperFrontWheelL : win_motorbikewinmperFrontWheelR {
                                selection = "levy predni";
                        };
                       
                        class win_motorbike2winmperFrontWheelL : win_motorbikewinmperFrontWheelR {
                                selection = "levy winlsi";
                        };
                       
                        class win_motorbike2winmperFrontWheelR : win_motorbikewinmperFrontWheelR {
                                selection = "pravy winlsi";
                        };
                       
                        class win_motorbike2winmperRearWheelR : win_motorbikewinmperFrontWheelR {
                                selection = "pravy prostredni";
                        };
                       
                        class win_motorbike2winmperRearWheelL : win_motorbikewinmperFrontWheelR {
                                selection = "levy prostredni";
                        };
                       
                        class win_motorbikewinmperRearWheelR : win_motorbikewinmperFrontWheelR {
                                selection = "pravy zadni";
                        };
                       
                        class win_motorbikewinmperRearWheelL : win_motorbikewinmperFrontWheelR {
                                selection = "levy zadni";
                        };
                       
                        class win_motorbikeIndicatorSpeed {
                                type = "rotation";
                                source = "speed";
                                memory = 0;
                                selection = "ukaz_rychlo";
                                axis = "osa_rychlo";
                                angle0 = 0;
                                angle1 = "rad -240";
                                minValue = 0;
                                maxValue = 60;
                        };
                       
                        class win_motorbikeIndicatorRPM {
                                type = "rotation";
                                source = "rpm";
                                memory = 0;
                                selection = "ukaz_rpm";
                                axis = "osa_rpm";
                                angle0 = 0;
                                angle1 = "rad -270";
                                minValue = 0;
                                maxValue = 1.5;
                        };
                       
                        class win_motorbikeIndicatorFuel {
                                type = "rotation";
                                source = "fuel";
                                memory = 0;
                                selection = "ukaz_fuel";
                                axis = "osa_fuel";
                                angle0 = "0";
                                angle1 = "rad 270";
                                minValue = 0;
                                maxValue = 1;
                        };
                       
                        class DrivingWheel
                        {
                                type="rotation";
                                source="drivingWheel";
                                selection="volant";
                                axis="volant osa";
                                memory="true";
                                animPeriod=0;
                                minValue=-1;
                                maxValue=1;
                                angle0=15;
                                angle1=-15;
                        };                                   
                        
                };
        };
};


 楼主| 发表于 2016-5-3 13:19:02 | 显示全部楼层
jinj8401 发表于 2016-5-3 12:09
先说下,我对车辆定义还没有研究过,只能给你些参考建议。
你的第一个问题我的确不知道原因在哪里,方向把 ...

原config是2代的自行车的,里面有些内容用不到的,比如定义脚踏板就不需要了,
发表于 2016-5-3 21:51:28 | 显示全部楼层
你是不是把贴图定义写到了model.cfg里?这么看我也看不出问题,要不我还是把我的直升机载具发给你,你参考着看看吧,最近实在是没时间,可能帮不了你。
 楼主| 发表于 2016-5-3 23:43:49 | 显示全部楼层
jinj8401 发表于 2016-5-3 21:51
你是不是把贴图定义写到了model.cfg里?这么看我也看不出问题,要不我还是把我的直升机载具发给你,你参考 ...

贴图材质本是要分开的,原来这个config有,我就没有分开了直接增加进去,前面不用看的,关键的地方就后面方向定义那里的几个定义内容,我也试着修改过好多次,看来还是只能用A3的config,和MODEL来修改着做,A3里的4轮越野摩托的MODEL文件解不出来,解开了,就好办了。
发表于 2016-5-4 00:22:38 | 显示全部楼层
本帖最后由 jinj8401 于 2016-5-4 00:34 编辑
WIN 发表于 2016-5-3 23:43
贴图材质本是要分开的,原来这个config有,我就没有分开了直接增加进去,前面不用看的,关键的地方就后面 ...


当然要用A3的config参考着用了,model.cfg也是这样。你可以试试用Dep3d1.74看能不能解出越野摩托的model.cfg来。没人教最好就是找这些来作参考用。
另外,你可以参考一下我给你的直升机mod,看下mainTurret和mainGun之间的联动关系,也许能解决你的问题。
发表于 2016-5-4 09:26:49 | 显示全部楼层
兄弟处女作要出来超顶一下,老牛逼了,再接再励。
发表于 2016-5-4 09:35:01 | 显示全部楼层
这美国的哈雷摩托老贵了,想不到你都可以批量生产了
发表于 2016-5-4 09:53:07 | 显示全部楼层
能不能放到创意工坊!
 楼主| 发表于 2016-5-4 14:47:40 | 显示全部楼层
xuehan 发表于 2016-5-4 09:53
能不能放到创意工坊!

兄弟,这个插件还没有制作好,驾使动作,还有损毁和排气烟雾效果没有加入,有时间我会弄好的,半成品我不会发布的。
 楼主| 发表于 2016-5-4 14:49:37 | 显示全部楼层
曾经沧海 发表于 2016-5-4 09:35
这美国的哈雷摩托老贵了,想不到你都可以批量生产了

呵呵,花了我假日时间呀,都没出去玩,还有问题没有解决呢,半调子货,等我解决了到时就可以真的批量摩托MOD了。
 楼主| 发表于 2016-5-4 14:53:40 | 显示全部楼层
jinj8401 发表于 2016-5-4 00:22
当然要用A3的config参考着用了,model.cfg也是这样。你可以试试用Dep3d1.74看能不能解出越野摩托的mode ...

Dep3d1.74 我在用,就是解不开呢,别的插件P3D可以解,就是有些不能解。为何?好的,后面有时间还要研究直升机的。感谢JINJ8401大老,提借借见文件。
您需要登录后才可以回帖 登录 | 加入VME

本版积分规则

小黑屋|中国虚拟军事网

GMT+8, 2024-3-29 15:48

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表