Files
braf/source/braf_soft/Braf_Kombi/kombi_base.hpp

708 lines
14 KiB
C++

class Braf_kombi_base: Car_F
{
author="Braf_Team";
DLC="BRAF";
mapSize=6.0300002;
_generalMacro="BRAF_kombi_base";
scope=0;
scopeCurator=0;
side=2;
displayName="BRAF_kombi_base";
model="braf\braf_soft\Braf_kombi\vw_kombi.p3d";
faction="BRAF_ARMY";
editorSubcategory="EdSubcat_Cars";
cost=50000;
driverLeftHandAnimName="drivewheel";
driverRightHandAnimName="";
driverLeftLegAnimName="pedal_brake";
driverRightLegAnimName="pedal_thrust";
memoryPointSupply="supply";
memoryPointTrackFLL="TrackFLL";
memoryPointTrackFLR="TrackFLR";
memoryPointTrackBLL="TrackBLL";
memoryPointTrackBLR="TrackBLR";
memoryPointTrackFRL="TrackFRL";
memoryPointTrackFRR="TrackFRR";
memoryPointTrackBRL="TrackBRL";
memoryPointTrackBRR="TrackBRR";
dustFrontLeftPos="dustFrontLeft";
dustFrontRightPos="dustFrontRight";
dustBackLeftPos="dustBackLeft";
dustBackRightPos="dustBackRight";
memoryPointTaskMarker="TaskMarker_1_pos";
selectionBackLights="back_lights";
selectionBrakeLights="brake_lights";
selectionDashboard="dashboard_lights";
selectionClan="clan";
slingLoadCargoMemoryPoints[]=
{
"SlingLoadCargo1",
"SlingLoadCargo2",
"SlingLoadCargo3",
"SlingLoadCargo4"
};
weapons[]=
{
"TruckHorn3"
};
magazines[]={};
damageResistance=0.0024300001;
accuracy=0.30000001;
steerAheadSimul=0.5;
steerAheadPlan=0.38;
transportSoldier=16;
transportAmmo=0;
transportRepair=0;
armor=100;
hiddenSelections[]=
{
"Camo_1",
"Camo_2",
"Glass"
};
class HitPoints: HitPoints
{
class HitLFWheel: HitLFWheel
{
radius=0.25;
armorComponent="wheel_1_1_hide";
armor=-100;
minimalHit=-0.0099999998;
explosionShielding=4;
passThrough=0;
name="HP_wheel_1_1";
};
class HitLF2Wheel: HitLF2Wheel
{
radius=0.25;
armorComponent="wheel_1_2_hide";
armor=-100;
minimalHit=-0.0099999998;
explosionShielding=4;
passThrough=0;
name="HP_wheel_1_2";
};
class HitRFWheel: HitRFWheel
{
radius=0.25;
armorComponent="wheel_2_1_hide";
armor=-100;
minimalHit=-0.0099999998;
explosionShielding=4;
passThrough=0;
name="HP_wheel_2_1";
};
class HitRF2Wheel: HitRF2Wheel
{
radius=0.25;
armorComponent="wheel_2_2_hide";
armor=-100;
minimalHit=-0.0099999998;
explosionShielding=4;
passThrough=0;
name="HP_wheel_2_2";
};
class HitFuel
{
armor=0.25;
passThrough=1;
minimalHit=0;
explosionShielding=1.5;
radius=0.25;
name="HP_Fuel";
armorComponent="Fuel_FG";
};
class HitEngine
{
armor=0.25;
passThrough=1;
minimalHit=0.0099999998;
explosionShielding=0.5;
radius=0.44999999;
name="HP_Engine";
armorComponent="Engine_FG";
};
class HitBody
{
armor=1;
explosionShielding=1.5;
material=-1;
passThrough=1;
minimalHit=0;
radius=0.33000001;
visual="zbytek";
name="HP_Body";
};
class HitGlass1
{
radius=0.25;
armor=0.125;
passThrough=0;
material=-1;
explosionShielding=3;
name="HP_Glass1";
};
};
wheelDamageThreshold=0.1;
wheelDamageRadiusCoef=0.69999999;
wheelDestroyRadiusCoef=0.5;
class Damage
{
tex[]={};
mat[]=
{
"braf\braf_soft\Braf_kombi\Data\camo1.rvmat",
"braf\braf_damage\data\braf_kombi\camo1_damage.rvmat",
"braf\braf_damage\data\braf_kombi\destruct.rvmat",
"braf\braf_soft\Braf_kombi\Data\camo2.rvmat",
"braf\braf_damage\data\braf_kombi\camo2_damage.rvmat",
"braf\braf_damage\data\braf_kombi\destruct.rvmat",
"braf\braf_soft\Braf_kombi\Data\glass.rvmat",
"braf\braf_damage\data\braf_kombi\glass_damage.rvmat",
"braf\braf_damage\data\braf_kombi\glass_damage.rvmat"
};
};
class Exhausts
{
class Exhaust1
{
position="exhaust_pos";
direction="exhaust_dir";
effect="ExhaustEffectHTruck";
};
};
initCargoAngleY=185;
simulation="CarX";
fuelCapacity=28;
brakeIdleSpeed=1;
maxSpeed=140;
thrustDelay=0.5;
turnCoef=3;
terrainCoef=2;
wheelCircumference=3.7;
accelAidForceCoef=2;
accelAidForceYOffset=-1;
accelAidForceSpd=2.2;
enginePower=206;
maxOmega=307;
minOmega=63;
idleRpm=600;
redRpm=2930;
maxFordingDepth=0.3;
peakTorque=1180;
torqueCurve[]=
{
{0.204778,0.754237},
{0.30716699,0.898305},
{0.42662099,1},
{0.460751,1},
{0.54607499,0.957627},
{0.64846402,0.911017},
{0.78498298,0.847458},
{1,0.762712}
};
engineMOI=3;
dampingRateFullThrottle=0.2;
dampingRateZeroThrottleClutchEngaged=4;
dampingRateZeroThrottleClutchDisengaged=0.15000001;
clutchStrength=25;
latency=1;
switchTime=0.60000002;
differentialType="all_limited";
frontRearSplit=0.40000001;
frontBias=1.3;
rearBias=1.1;
centreBias=1.1;
changeGearType="rpmratio";
changeGearOmegaRatios[]={1.00683,0.341297,0.23890799,0.17064799,0.99317402,0.204778,0.95563102,0.341297,0.88737202,0.44368601,0.88737202,0.51194501,1.00683,0.54607499};
class complexGearbox
{
GearboxRatios[]=
{
"R1",
-7.4000001,
"N",
0,
"D1",
7.8000002,
"D2",
4,
"D3",
2.5,
"D4",
1.5,
"D5",
1
};
TransmissionRatios[]=
{
"High",
6.5
};
gearBoxMode="auto";
moveOffGear=1;
driveString="D";
neutralString="N";
reverseString="R";
};
dampersBumpCoef=4;
antiRollbarForceCoef=6;
antiRollbarForceLimit=5;
antiRollbarSpeedMin=0;
antiRollbarSpeedMax=60;
class Wheels
{
class L1
{
side="left";
suspTravelDirection[]={-0.125,-1,0};
boneName="wheel_1_1_damper";
center="wheel_1_1_center";
boundary="wheel_1_1_bound";
suspForceAppPointOffset="wheel_1_1_center";
tireForceAppPointOffset="wheel_1_1_center";
steering=1;
width=0.35;
mass=200;
MOI=60;
dampingRate=0.1;
dampingRateDamaged=1;
dampingRateDestroyed=1000;
maxCompression=0.05;
maxDroop=0.1;
sprungMass=3425;
springStrength=85625;
springDamperRate=13700;
maxBrakeTorque=30000;
maxHandBrakeTorque=0;
longitudinalStiffnessPerUnitGravity=10000;
latStiffX=25;
latStiffY=180;
frictionVsSlipGraph[]=
{
{0,1},
{0.5,1},
{1,1}
};
};
class L2: L1
{
boneName="wheel_1_2_damper";
center="wheel_1_2_center";
boundary="wheel_1_2_bound";
suspForceAppPointOffset="wheel_1_2_center";
tireForceAppPointOffset="wheel_1_2_center";
steering=0;
width=0.7;
};
class R1: L1
{
side="right";
boneName="wheel_2_1_damper";
center="wheel_2_1_center";
boundary="wheel_2_1_bound";
suspForceAppPointOffset="wheel_2_1_center";
tireForceAppPointOffset="wheel_2_1_center";
};
class R2: R1
{
boneName="wheel_2_2_damper";
center="wheel_2_2_center";
boundary="wheel_2_2_bound";
suspForceAppPointOffset="wheel_2_2_center";
tireForceAppPointOffset="wheel_2_2_center";
steering=0;
width=0.7;
};
};
class RenderTargets
{
class mirrors_Center
{
renderTarget="rendertarget0";
class CameraView1
{
pointPosition="PIP0_pos";
pointDirection="PIP0_dir";
renderVisionMode=4;
renderQuality=2;
fov=0.7;
};
};
class mirrors_Left
{
renderTarget="rendertarget1";
class CameraView1
{
pointPosition="PIP1_pos";
pointDirection="PIP1_dir";
renderVisionMode=0;
renderQuality=2;
fov=0.7;
};
};
class mirrors_Right
{
renderTarget="rendertarget2";
class CameraView1
{
pointPosition="PIP2_pos";
pointDirection="PIP2_dir";
renderVisionMode=4;
renderQuality=2;
fov=0.7;
};
};
};
extCameraPosition[]={0,2.4,-12};
camShakeCoef=0.80000001;
typicalCargo[]=
{
};
hasGunner=0;
driverAction="driver_Truck_02";
cargoAction[]=
{
"passenger_apc_narrow_generic01_ns",
"passenger_apc_narrow_generic03still_ns",
"passenger_apc_narrow_generic03",
"passenger_apc_narrow_generic01",
"passenger_apc_generic01",
"passenger_apc_generic01",
"passenger_apc_generic03",
"passenger_apc_narrow_generic01",
"passenger_generic01_leanleft",
"passenger_apc_generic03",
"passenger_apc_narrow_generic01",
"passenger_apc_generic02",
"passenger_apc_generic01",
"passenger_generic01_foldhands",
"passenger_apc_generic04",
"passenger_generic01_leanleft"
};
getInAction="GetInMRAP_01";
getOutAction="GetOutLow";
cargoIsCoDriver[]={1,1,0};
cargoGetInAction[]=
{
"GetInMRAP_01",
"GetInMRAP_01",
"GetInHemttBack"
};
cargoGetOutAction[]=
{
"GetOutLow",
"GetOutLow",
"GetOutHighZamak"
};
hideWeaponsDriver=1;
hideWeaponsCargo=1;
driverCompartments="Compartment1";
cargoCompartments[]=
{
"Compartment1",
"Compartment1",
"Compartment2"
};
showNVGCargo[]={0,1};
soundAttenuationCargo[]={1,0};
class NVGMarkers
{
class NVGMarker01
{
name="nvg_marker";
color[]={0.03,0.003,0.003,1};
ambient[]={0.003,0.0003,0.0003,1};
brightness=0.001;
blinking=1;
};
};
class Reflectors
{
class Left
{
color[]={190,130,95};
ambient[]={5,5,5};
position="Light_1_pos";
direction="Light_1_dir";
hitpoint="HP_Light_1";
selection="Light_1";
size=1;
innerAngle=30;
outerAngle=179;
coneFadeCoef=10;
intensity=100;
useFlare=0;
dayLight=0;
flareSize=1;
class Attenuation
{
start=1;
constant=0;
linear=0;
quadratic=0.050000001;
hardLimitStart=50;
hardLimitEnd=80;
};
};
class Right: Left
{
position="Light_2_pos";
direction="Light_2_dir";
hitpoint="HP_Light_2";
selection="Light_2";
};
};
aggregateReflectors[]=
{
{
"Left",
"Right"
}
};
class ViewPilot: ViewPilot
{
initAngleX=-15;
};
class Turrets
{
};
class Library
{
libTextDesc="$STR_braf_soft_kombi_description";
};
class EventHandlers: EventHandlers
{
init="if (local (_this select 0)) then {[(_this select 0), """", [], false] call bis_fnc_initVehicle;};";
};
ace_cargo_hasCargo=1;
ace_refuel_fuelCapacity=295;
#include "Kombi_Sounds.hpp"
};
class BRAF_kombi: BRAF_kombi_base
{
author="BRAF_Team";
_generalMacro="BRAF_kombi";
scope=2;
scopeArsenal=2;
scopeCurator=2;
displayName="$STR_braf_soft_kombi_displayname";
model="braf\braf_soft\Braf_kombi\vw_kombi.p3d";
DLC="BRAF";
//icon="braf\braf_soft\BRAF_Truck\BRAF_Worker\Data\ui\worker_map_ca.paa";
//editorPreview="\braf\braf_soft\BRAF_Truck\BRAF_Worker\Data\ui\worker_picture_ca.paa";
//picture="braf\braf_soft\BRAF_Truck\BRAF_Worker\Data\ui\worker_ui_ca.paa";
editorSubcategory="EdSubcat_Cars";
faction="BRAF_ARMY";
crew="braf_army_rifleman_regular_2000";
maxFordingDepth=1.75;
castCargoShadow=1;
ace_cargo_space=5;
transportSoldier=12;
cargoProxyIndexes[]={1,2,3,4,5,6,7,8,9,10,11,12,13,14};
getInProxyOrder[]={1,2,3,4,5,6,7,8,9,10,11,12,13,14};
class TransportItems
{
class _xx_FirstAidKit
{
name = "FirstAidKit";
count = 8;
};
class _xx_ToolKit
{
name = "ToolKit";
count = 1;
};
};
class TransportBackpacks
{
class _xx_BRAF_Alice_bag
{
backpack = "BRAF_Alice_bag";
count = 2;
};
};
class TransportWeapons
{
};
class TransportMagazines
{
class _xx_BRAF_20Rnd_762x51
{
magazine = "BRAF_20Rnd_762x51";
count = 8;
};
class _xx_BRAF_100Rnd_762x51_Mix_red
{
magazine = "BRAF_100Rnd_762x51_Mix_red";
count = 8;
};
class _xx_BRAF_30Rnd_556x45
{
magazine = "BRAF_30Rnd_556x45";
count = 8;
};
class _xx_HandGrenade
{
magazine="HandGrenade";
count=4;
};
class _xx_SmokeShell
{
magazine="SmokeShell";
count=4;
};
};
class CargoTurret;
hiddenSelections[]=
{
"Camo_1",
"Camo_2",
"Glass"
};
hiddenSelectionsTextures[]=
{
"braf\braf_soft\Braf_Kombi\Data\camo1_co.paa",
"braf\braf_soft\Braf_Kombi\Data\camo2_co.paa",
"braf\braf_soft\Braf_Kombi\Data\Glass_ca.paa"
};
class Turrets: Turrets
{
//class CargoTurret_01: CargoTurret
//{
// gunnerAction="passenger_inside_3";
// memoryPointsGetInGunner="pos cargo LR";
// memoryPointsGetInGunnerDir="pos cargo LR dir";
// gunnerName="$STR_A3_TURRETS_CARGOTURRET_L";
// gunnerCompartments="Compartment2";
// proxyIndex=25;
// isPersonTurret=1;
// class TurnIn
// {
// limitsArrayTop[]=
// {
// {-5.9650998,-65.868103},
// {6.3442001,-42.642502},
// {4.0928998,-7.8701},
// {-2.3450999,2.5708001}
// };
// limitsArrayBottom[]=
// {
// {-44.4687,-70.9972},
// {-23.562599,5.0429001}
// };
// };
//};
//class CargoTurret_02: CargoTurret_01
//{
// gunnerName="$STR_A3_TURRETS_CARGOTURRET_R";
// memoryPointsGetInGunner="pos cargo RR";
// memoryPointsGetInGunnerDir="pos cargo RR dir";
// proxyIndex=26;
// class TurnIn
// {
// limitsArrayTop[]=
// {
// {-9.8149996,-4.5300999},
// {-1.5719,-1.2185},
// {4.5050001,16.3857},
// {2.0039999,46.8344},
// {-14.3588,76.119301},
// {-21.8244,80}
// };
// limitsArrayBottom[]=
// {
// {-22.8074,-7.2107},
// {-44.752102,10.6169},
// {-44.846699,80}
// };
// };
//};
};
class AnimationSources: AnimationSources
{
class cargo_door
{
source="user";
initPhase=0;
animPeriod=1;
};
class giroflex_hide
{
source="user";
initPhase=0;
animPeriod=1;
};
class bench_hide
{
source="user";
initPhase=0;
animPeriod=0;
mass=50;
};
};
animationList[]=
{
"Bench_Hide",0,
"giroflex_hide",1,
"Cargo_Door",0
};
class UserActions
{
class Cargo_door_open
{
displayname="$STR_braf_soft_useraction_opencargodoor";
position="VTV_exit_1";
showWindow=1;
radius=1;
priority=0;
onlyForPlayer=0;
condition="this animationphase 'Cargo_Door' < 0.1 AND this animationphase 'Supply_Hide' > 0.9 AND Alive(this)";
statement="this animate ['Cargo_Door',1]";
};
class Cargo_door_close: Cargo_door_open
{
displayname="$STR_braf_soft_useraction_closecargodoor";
condition="this animationphase 'Cargo_Door' > 0.9 AND Alive(this)";
statement="this animate ['Cargo_Door',0]";
};
};
slingLoadCargoMemoryPoints[]=
{
"SlingLoadCargo1",
"SlingLoadCargo2",
"SlingLoadCargo3",
"SlingLoadCargo4"
};
class VehicleTransport
{
class Cargo
{
canBeTransported=1;
dimensions[]=
{
"bbox_1_1_pos",
"bbox_1_2_pos"
};
};
};
//class TextureSources
//{
// class EB_01
// {
// displayName="Brazilian Army";
// author="BRAF Team";
// textures[]=
// {
// "braf\braf_soft\BRAF_Truck\BRAF_Worker\Data\camo1_co.paa",
// "braf\braf_soft\BRAF_Truck\BRAF_Worker\Data\camo2_co.paa",
// "braf\braf_soft\BRAF_Truck\BRAF_Worker\Data\camo3_co.paa",
// "braf\braf_soft\BRAF_Truck\BRAF_Worker\Data\Glass_ca.paa"
// };
// factions[]={"BRAF_ARMY"};
// };
//};
};