I have a Few questions...

Ask questions, discuss ideas, get answers
Post Reply
User avatar
BotHunter
Posts: 480
Joined: Thu Jan 10, 2013 11:22 pm
Contact:

I have a Few questions...

Post by BotHunter »

Hey Guys! I had a few questions! (4 to be exact) that I was wondering if any of you guys could enlighten me on.

1) How would I make airplanes have more power??

2) How would I give tanks more armor??

3) How would I make a car amphibious??

4) How do you position the dot on the Vehicle Icon?? (http://www.mediafire.com/view/?n9camdwvcjo9woj) <-- Pic

I very sorry for your time :oops:

Thanks!
Walk quietly and carry a sniper rifle
User avatar
Senshi
Posts: 697
Joined: Sun Oct 18, 2009 1:14 pm
Location: Germany
Contact:

Re: I have a Few questions...

Post by Senshi »

You are asking a lot of fairly basic questions. I do not want to deter you, it's nice that you want to learn modding and all. But I found it the best way to learn BF42 is by trial and error. Only when I was really really stumped I'd see if somebody else could help along. A lot of questions can be answered by looking at the MDT or looking at vanilla objects and material and seeing how things were done there.

1) Increase the power of the engine. Look at the MDT description of the engine parameters to figure out how the individual settings interact with each other. Sadly, there's no real straightfoward way to edit engine values, they all depend on each other. setTorque and setDifferential are the most important ones for raw power.

2) Increase the amount of hitpoints, that's the best way to manipulate individual vehicles. If you want it to take less/no damage from specific projectiles or collisions with specific objects/vehicles, you'd need to alter the materials or redefine the material damage code. Editing that would mean that all parts of ANY vehicle that use this material ID will have changed settings and usually should be refrained from doing, as this has serious balancing impacts.

3) Set up floaters that make sure it floats above/on the water surface. Look at whatever ship you want, floaters always work the same. Even easier: look at already existing amphibious vehicles like the ones in Secret Weapons. Again, the MDT has a nice description of what the floater params do.

4)

Code: Select all

ObjectTemplate.setVehicleIcon "Vehicle/Icon_ChiHa.tga"
ObjectTemplate.setVehicleIconPos 55/105
This one would have been the easiest one to figure out by looking a couple of minutes on any vehicle's objects.con

Hope this helps!
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: I have a Few questions...

Post by Swaffy »

I think I put more work into learning about this game then anything else in my life.

Trial and error, trial and error, a thousand curse words, trial and error, lack of sleep, trial and...

Trust me. You learn most when you're screwing around with the parameters instead of asking us.
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
Post Reply