Page 1 of 1

SSM- Faster MIA1/T72

Posted: Mon Feb 15, 2010 5:21 am
by tekk
I am trying to increase the speed of the M1A1/T72 (DCF) without the use of any other engines ( Traditional turbo jeep methods ). Seems I just cant get it working with different ways of manipulating the code.

This is the current code I tried with no luck

Code: Select all

rem ----------------------------------------- 
rem ---  Fast M1A1  ---
rem ----------------------------------------- 

ObjectTemplate.Active M1A1
ObjectTemplate.setMaxSpeed 50/0/50
ObjectTemplate.setAcceleration 50/0/50
ObjectTemplate.setInputToYaw c_PIYaw
ObjectTemplate.setInputToRoll c_PIThrottle
ObjectTemplate.setAutomaticReset 1
ObjectTemplate.setEngineType c_ETTank
ObjectTemplate.setTorque 20
ObjectTemplate.setDifferential 12
ObjectTemplate.setNumberOfGears 5
ObjectTemplate.setGearUp 0.95
ObjectTemplate.setGearDown 0.45
ObjectTemplate.setGearChangeTime 0.05

rem ----------------------------------------- 
rem ---  Fast T-72  ---
rem ----------------------------------------- 

ObjectTemplate.Active T72
ObjectTemplate.setMaxSpeed 50/0/50
ObjectTemplate.setAcceleration 50/0/50
ObjectTemplate.setInputToYaw c_PIYaw
ObjectTemplate.setInputToRoll c_PIThrottle
ObjectTemplate.setAutomaticReset 1
ObjectTemplate.setEngineType c_ETTank
ObjectTemplate.setTorque 20
ObjectTemplate.setDifferential 12
ObjectTemplate.setNumberOfGears 5
ObjectTemplate.setGearUp 0.95
ObjectTemplate.setGearDown 0.45
ObjectTemplate.setGearChangeTime 0.05
Any Ideas why this is not working SSM ?

Re: SSM- Faster MIA1/T72

Posted: Mon Feb 15, 2010 4:17 pm
by Marshall_Nord
Your first line of the code resets code lines for the main vehicle entry. The engine is a separate template added to the main PCO.

Try this:

ObjectTemplate.Active M1A1Engine

and

ObjectTemplate.Active T72Engine

Re: SSM- Faster MIA1/T72

Posted: Mon Feb 15, 2010 5:24 pm
by tekk
Yes I had tried that code already and it crashed both the server and my game as soon as I tried to join, Can the speed of a vehicle be changed server side without adding a turbo engine?

Re: SSM- Faster MIA1/T72

Posted: Mon Feb 15, 2010 5:56 pm
by freddy
all you need to use is this lines

Code: Select all

ObjectTemplate.Active M1A1Engine
ObjectTemplate.setTorque 20  <------------------  strength of engine
ObjectTemplate.setDifferential 12  <--------------------    speed output 
a bit simplified explanation but this works ok ssm

Re: SSM- Faster MIA1/T72

Posted: Mon Feb 15, 2010 7:36 pm
by tekk
freddy wrote:all you need to use is this lines

Code: Select all

ObjectTemplate.Active M1A1Engine
ObjectTemplate.setTorque 20  <------------------  strength of engine
ObjectTemplate.setDifferential 12  <--------------------    speed output 
a bit simplified explanation but this works ok ssm
Thanks, thats what I was trying to achieve..The problem I was having is I failed to add the Engine to the code , Thanks for the help!