Hey guys,
I'm realy new to this UDK stuff but i wan't to learn but I maganed to get to a dead end rather quickly. I followed this tutorial here (
http://forums.epicgames.com/threads/850845-Inside-the-Scorpion-Scripting-your-own-vehicles) and everything wen't well I can see MyCar under actor classes and drive it around. Now to the problem...
I can't change the maxspeed of it. Different torque settings and maxspeed set to 8500 like sugested on the tutorial site does not help. After I make the changes to the UTVehicle_MyCar.uc file I just save it run UDK and it says that it has to do something to the script, then I press yes and a DOS window pops up. It says that everything is ok but afterwards there have not been made any changes to the speed of the car when i drive it around.
Help would be appreciated...
tnx
Replies
defaultproperties
{
Health=300
StolenAnnouncementIndex=5
COMOffset=(x=-40.0,y=0.0,z=-36.0)
UprightLiftStrength=280.0
UprightTime=1.25
UprightTorqueStrength=500.0
bCanFlip=true
bSeparateTurretFocus=true
bHasHandbrake=true
bStickDeflectionThrottle=true
GroundSpeed=5000
AirSpeed=5000
RocketSpeed=2000
ObjectiveGetOutDist=1500.0
MaxDesireability=0.4
HeavySuspensionShiftPercent=0.75f;
bLookSteerOnNormalControls=true
bLookSteerOnSimpleControls=true
LookSteerSensitivity=2.2
LookSteerDamping=0.07
ConsoleSteerScale=1.1
DeflectionReverseThresh=-0.3
Begin Object Class=UDKVehicleSimCar Name=SimObject
WheelSuspensionStiffness=100.0
WheelSuspensionDamping=3.0
WheelSuspensionBias=0.1
ChassisTorqueScale=0.0
MaxBrakeTorque=5.0
StopThreshold=100
MaxSteerAngleCurve=(Points=((InVal=0,OutVal=45),(InVal=600.0,OutVal=15.0),(InVal=1100.0,OutVal=10.0),(InVal=1300.0,OutVal=6.0),(InVal=1600.0,OutVal=1.0)))
SteerSpeed=110
LSDFactor=0.0
TorqueVSpeedCurve=(Points=((InVal=-600.0,OutVal=0.0),(InVal=-300.0,OutVal=80.0),(InVal=0.0,OutVal=130.0),(InVal=2000.0,OutVal=130.0),(InVal=3000.0,OutVal=10.0),(InVal=4000.0,OutVal=0.0)))
EngineRPMCurve=(Points=((InVal=-500.0,OutVal=2500.0),(InVal=0.0,OutVal=500.0),(InVal=549.0,OutVal=3500.0),(InVal=550.0,OutVal=1000.0),(InVal=849.0,OutVal=4500.0),(InVal=850.0,OutVal=1500.0),(InVal=1100.0,OutVal=5000.0)))
EngineBrakeFactor=0.025
ThrottleSpeed=0.2
WheelInertia=0.2
NumWheelsForFullSteering=4
SteeringReductionFactor=0.0
SteeringReductionMinSpeed=1100.0
SteeringReductionSpeed=1400.0
bAutoHandbrake=true
bClampedFrictionModel=true
FrontalCollisionGripFactor=0.18
ConsoleHardTurnGripFactor=1.0
HardTurnMotorTorque=0.7
SpeedBasedTurnDamping=20.0
AirControlTurnTorque=40.0
InAirUprightMaxTorque=15.0
InAirUprightTorqueFactor=-30.0
// Longitudinal tire model based on 10% slip ratio peak
WheelLongExtremumSlip=0.1
WheelLongExtremumValue=1.0
WheelLongAsymptoteSlip=2.0
WheelLongAsymptoteValue=0.6
// Lateral tire model based on slip angle (radians)
WheelLatExtremumSlip=0.35 // 20 degrees
WheelLatExtremumValue=0.9
WheelLatAsymptoteSlip=1.4 // 80 degrees
WheelLatAsymptoteValue=0.9
bAutoDrive=false
AutoDriveSteer=0.3
End Object
SimObj=SimObject
Components.Add(SimObject)
BoostSteerFactors[0] = 10.0
BoostSteerFactors[1] = 4.0
BoostSteerFactors[2] = 1.2
Begin Object Class=UTVehicleScorpionWheel Name=RRWheel
BoneName="B_R_Tire"
BoneOffset=(X=0.0,Y=20.0,Z=0.0)
SkelControlName="B_R_Tire_Cont"
End Object
Wheels(0)=RRWheel
Begin Object Class=UTVehicleScorpionWheel Name=LRWheel
BoneName="B_L_Tire"
BoneOffset=(X=0.0,Y=-20.0,Z=0.0)
SkelControlName="B_L_Tire_Cont"
End Object
Wheels(1)=LRWheel
Begin Object Class=UTVehicleScorpionWheel Name=RFWheel
BoneName="F_R_Tire"
BoneOffset=(X=0.0,Y=20.0,Z=0.0)
SteerFactor=1.0
LongSlipFactor=2.0
LatSlipFactor=3.0
HandbrakeLongSlipFactor=0.8
HandbrakeLatSlipFactor=0.8
SkelControlName="F_R_Tire_Cont"
End Object
Wheels(2)=RFWheel
Begin Object Class=UTVehicleScorpionWheel Name=LFWheel
BoneName="F_L_Tire"
BoneOffset=(X=0.0,Y=-20.0,Z=0.0)
SteerFactor=1.0
LongSlipFactor=2.0
LatSlipFactor=3.0
HandbrakeLongSlipFactor=0.8
HandbrakeLatSlipFactor=0.8
SkelControlName="F_L_Tire_Cont"
End Object
Wheels(3)=LFWheel
lockSuspensionTravel=37;
lockSuspensionStiffness=62.5;
BoosterForceMagnitude=450.0
MaxBoostDuration=2.0
BoostChargeDuration=5.0
BoosterCheckRadius=150.0
BoostChargeTime=-10.0
BoostPowerSpeed=1800.0
BoosterFOVAngle=105.0
BoostUprightTorqueFactor=-45.0
BoostUprightMaxTorque=50.0
TeamBeaconOffset=(z=60.0)
SpawnRadius=125.0
BaseEyeheight=30
Eyeheight=30
DefaultFOV=80
CameraLag=0.07
bReducedFallingCollisionDamage=true
BladeBreakPoint=0.8
BoostReleaseDelay=0.15
SelfDestructSpeedSquared=810000.0
MomentumMult=0.5
NonPreferredVehiclePathMultiplier=1.5
HornIndex=0
MaxSpeed=6000
}
You'll really need to look into both the engine and torque curves if you want a higher top speed.
Your max torque (aka wheel power) is between 0 and 2000 RPM. It drops off sharply as you get faster. You're in effect, limiting how fast you go.
// 150+ Car
TorqueVSpeedCurve=(Points=((InVal=6500.0,OutVal=1000.0),(InVal=5500.0,OutVal=1003.0),(InVal=3500.0,OutVal=500.0),(InVal=5000.0,OutVal=350.0),(InVal=4800.0,OutVal=300.0),(InVal=3500.0,OutVal=200.0)))