SSM- Faster MIA1/T72

Ask questions, discuss ideas, get answers
Post Reply
tekk
Posts: 171
Joined: Fri Dec 11, 2009 6:12 pm

SSM- Faster MIA1/T72

Post 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 ?
Nodbrother- "getting whiped every single game by some over-active 9 year old kid with too much spare time and a reaction time that is a third of yours."
User avatar
Marshall_Nord
Posts: 33
Joined: Wed Feb 10, 2010 10:13 pm
Contact:

Re: SSM- Faster MIA1/T72

Post 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
tekk
Posts: 171
Joined: Fri Dec 11, 2009 6:12 pm

Re: SSM- Faster MIA1/T72

Post 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?
Nodbrother- "getting whiped every single game by some over-active 9 year old kid with too much spare time and a reaction time that is a third of yours."
freddy
Posts: 1267
Joined: Sun Oct 18, 2009 4:58 pm

Re: SSM- Faster MIA1/T72

Post 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
tekk
Posts: 171
Joined: Fri Dec 11, 2009 6:12 pm

Re: SSM- Faster MIA1/T72

Post 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!
Nodbrother- "getting whiped every single game by some over-active 9 year old kid with too much spare time and a reaction time that is a third of yours."
Post Reply