How to change the control of a tank?

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
Redline
2nd Lieutenant
2nd Lieutenant
Posts: 396
Joined: Tue Jan 16, 2007 4:22 pm
Projects :: Space to Ground [reworking]
Games I'm Playing :: Different Games
xbox live or psn: No gamertag set
Location: The left side of the moon
Contact:

How to change the control of a tank?

Post by Redline »

Hello everybody,
My question is how can I change the control of a tank?
I want to have the control like that ->
W: Forward , A Left (turn) D: Right (turn) S: Backward
My cannon should rotate about 360° (with the mouse)
And now I ask you how I get the control like that.

I hope that any of you can help me.
Thx in advance

PS:Help me and I will release this tank for all of you with real tank sounds.

Here a Picture:
(Enjoy it! , because without help I can't finish it.)
Hidden/Spoiler:
Image
:mrgreen:

I have needed 3 days for this model.
:wink:
woner11
Sith
Sith
Posts: 1361
Joined: Tue Sep 18, 2007 10:17 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: The lost world of pickels
Contact:

Re: How to change the control of a tank?

Post by woner11 »

in order to use W, S, A,D for the controls, you simply set it to that in the game under options and then change the controls.
User avatar
Blade
Captain
Captain
Posts: 496
Joined: Fri Apr 04, 2008 11:02 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Re: How to change the control of a tank?

Post by Blade »

@woner: I think he means set it so that the mouse and the control keys do separate things. Aka: have the mouse control how the turret on top moves, and have the arrow keys control how the actual tank moves. Sort've like in the Battlefield games, if you've played them.
Redline
2nd Lieutenant
2nd Lieutenant
Posts: 396
Joined: Tue Jan 16, 2007 4:22 pm
Projects :: Space to Ground [reworking]
Games I'm Playing :: Different Games
xbox live or psn: No gamertag set
Location: The left side of the moon
Contact:

Re: How to change the control of a tank?

Post by Redline »

Sure ? Is there no other way to change the control?

PS: Right blade! That's it what I mean.
Ok, Balde what's your solution for my problem? :)
Thx in advance.
woner11
Sith
Sith
Posts: 1361
Joined: Tue Sep 18, 2007 10:17 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: The lost world of pickels
Contact:

Re: How to change the control of a tank?

Post by woner11 »

I believe then there is no way to make the top part move just by the mouse without making it a seperate position like the AAT, or whatever the cis tank is. You can to my knowledge however, have the tank's move ments be soley controlled by the arrow keys or W, S, A, D, and that is by making A and D control the X axis of the vehicle, which is under the options menu.
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Re: How to change the control of a tank?

Post by Teancum »

Yep, the turret has to be a separate position to work. Unfortunately you can't just have a pilot and let him move the turret too. You need two guys.
User avatar
Blade
Captain
Captain
Posts: 496
Joined: Fri Apr 04, 2008 11:02 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Re: How to change the control of a tank?

Post by Blade »

I know that this isn't exactly what he's thinking, but how do things like the head of the AT-ST work? They can at least begin turning before the main body follows it. I think that's about all you could (potentially) do :?.
Redline
2nd Lieutenant
2nd Lieutenant
Posts: 396
Joined: Tue Jan 16, 2007 4:22 pm
Projects :: Space to Ground [reworking]
Games I'm Playing :: Different Games
xbox live or psn: No gamertag set
Location: The left side of the moon
Contact:

Re: How to change the control of a tank?

Post by Redline »

Right! I am working on it.

This idea must work
Hidden/Spoiler:
[code]
WEAPONSECTION = 2

WeaponName = "imp_weap_walk_atst_cannon_chin"
WeaponAmmo = "0"

HierarchyLevel = "1"
AimerNodeName = "cube5" <-- the head of the At-st
AimerYawLimits = "-90 90" <-- 90° for left and right , before the legs follow the head.
AimerPitchLimits = "-5 20" / My idea is to set it on -360 360 so the cannon can
rotate on the tank.

NextAimer = "-"

AimerNodeName = "aimer_mouthpivot" <-- here is the command where the head moves
AimerYawLimits = "0 0"
AimerPitchLimits = "-30 20"

BarrelNodeName = "barrel_lgun" <-- this is for the barrel gun ( up /down)
FirePointName = "hp_cannon_1"
BarrelRecoil = "0.3"

NextBarrel = "-"

BarrelNodeName = "barrel_rgun"
FirePointName = "hp_cannon_2"
BarrelRecoil = "0.3"

WaterDamageInterval = "1.0"
WaterDamageAmount = "10.0"
[/code]
:thumbs: I swear that I will find a solution
User avatar
Blade
Captain
Captain
Posts: 496
Joined: Fri Apr 04, 2008 11:02 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Re: How to change the control of a tank?

Post by Blade »

Hooray, I'm part of a solution finally, and not part of the problem :lol:. Anyway, I think that will (mostly) work.
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Re: How to change the control of a tank?

Post by Teancum »

Blade wrote:I know that this isn't exactly what he's thinking, but how do things like the head of the AT-ST work? They can at least begin turning before the main body follows it. I think that's about all you could (potentially) do :?.
I stand corrected :P
User avatar
Blade
Captain
Captain
Posts: 496
Joined: Fri Apr 04, 2008 11:02 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Re: How to change the control of a tank?

Post by Blade »

Teancum wrote:
Blade wrote:I know that this isn't exactly what he's thinking, but how do things like the head of the AT-ST work? They can at least begin turning before the main body follows it. I think that's about all you could (potentially) do :?.
I stand corrected :P
Yay, I win! Finally... :yes:
Redline
2nd Lieutenant
2nd Lieutenant
Posts: 396
Joined: Tue Jan 16, 2007 4:22 pm
Projects :: Space to Ground [reworking]
Games I'm Playing :: Different Games
xbox live or psn: No gamertag set
Location: The left side of the moon
Contact:

Re: How to change the control of a tank?

Post by Redline »

Success! It works! :wink:
Post Reply