How to make a rotating cannon on a tank?

How to create models in XSI and other 3D applications and make them work in Battlefront 1 & 2. Post models, tips for application usage and share anything XSI, 3DMax, SketchUp, etc.

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 make a rotating cannon on a tank?

Post by Redline »

Hello everybody.
I have forgotten how i make a rotating cannon on a tank . :?
Can someone of you help me ?
I hope all of you have understood my question.
So pls help me.
Thank you in advance. :runaway:
FragMe!
Gametoast Staff
Gametoast Staff
Posts: 2244
Joined: Sat May 13, 2006 12:34 am
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set
Location: Origin name GT_FragMe
Contact:

Re: How to make a rotating cannon on a tank?

Post by FragMe! »

Have a look at my post in this topic see if it helps (assuming you mean a manned turret)

http://www.gametoast.com/forums/viewtop ... 36&t=14335
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 make a rotating cannon on a tank?

Post by Redline »

No manned turret
Ok let's have a look on my model.
And now you see what i mean.
I hope you can help me now.

Image

EDIT
Can really nobody help me ? :(
MercuryNoodles
Jedi
Jedi
Posts: 1003
Joined: Sun Mar 12, 2006 7:16 pm
Projects :: Space - Boarding Action
xbox live or psn: No gamertag set

Re: How to make a rotating cannon on a tank?

Post by MercuryNoodles »

That is a turret on that tank, and they're typically manned. :P So, go look a that thread, since it has info relevant to the question.
Taivyx
2008 Best Games Related Avatar
Posts: 1706
Joined: Thu Jun 07, 2007 3:34 pm
Projects :: Terra Strife - discontinued
Games I'm Playing :: none
xbox live or psn: No gamertag set
Contact:

Re: How to make a rotating cannon on a tank?

Post by Taivyx »

Dunno if that's possible on this game engine, considering that usually when you turn the mouse, the whole vehicle turns in this engine.
The easiest way is just to make the main cannon controlled by a gunner, and primary position of the vehicle is a driver.
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 make a rotating cannon on a tank?

Post by Redline »

Yes, but first must I know how i get the cannon ready.
All the other thread's don't help me.
I think it has to do with nodes, because i found in the odf of the cis tank this:
( This is the Main gun of the AAT)

FLYERSECTION = "TURRET1"
VehiclePosition = "common.vehiclepositions.gunner"
//FirstPerson = "cis\cissccam;cis_1st_cockpit_securitycam"
TurretNodeName = "Gun_Body" <-- Here to exsample and...
PitchLimits = "-40.0 20.0"
YawLimits = "-180.0 180.0"
PitchTurnFactor = "0"
PCPitchRate = "15"
TurnRate = "1.8"
TurnFilter = "10"
PitchRate = "0.5"
PitchFilter = "10"
PitchDamp = "10"
BarrelNodeName = "recoil_3" <-- and here
BarrelRecoil = "0.75"
FirePointName = "hp_cannon_1"
EyePointOffset = "0.0 2.0 -1.75"
TrackCenter = "0.0 1.0 -2.0"
TrackOffset = "0.0 0.0 3.0"
TiltValue = "10"

Have this two nodes a significance for my cannon?
And how must i place it in xsi, so that it will work in sw-bf 2 ?
hmmm... I think that I am on the right way.
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 make a rotating cannon on a tank?

Post by Blade »

I don't know a whole lot about modeling, but as for it being impossible, look at the AT-ST's head. It can turn on its own. However, the body does eventually catch up with the head, so... I know that partial turns are possible (no idea how :oops:), but I don't think a completely independent turret (controlled by the driver) is conceivable/possible.
Grev
Hoth Battle Chief
Hoth Battle Chief
Posts: 3132
Joined: Sun Dec 09, 2007 11:45 pm
Projects :: No Mod project currently.
Games I'm Playing :: Minecraft
Location: A Certain Box Canyon

Re: How to make a rotating cannon on a tank?

Post by Grev »

I woulk look into the odf of the ATT, since it has a turret on top that rotates 360.
Caleb1117
2008 Most Original Avatar
Posts: 3096
Joined: Sun Aug 20, 2006 5:55 pm
Projects :: No Mod project currently.
xbox live or psn: No gamertag set
Location: X-Fire: caleb1117 ಠ_ಠ

Re: How to make a rotating cannon on a tank?

Post by Caleb1117 »

I honestly have no real idea, but I theorize, that if one placed a null, at the point where the wanted the turret to turn at, and made it the child of the turret? Or maybe the other way around...

They could then define the null in the ODF

TurretNodeName = "Gun_Body" <-- Here to exsample and...
PitchLimits = "-40.0 20.0"
YawLimits = "-180.0 180.0"

And since if the null was a parent to the turret, it should control it, and ... I don't know, just a theory.
FragMe!
Gametoast Staff
Gametoast Staff
Posts: 2244
Joined: Sat May 13, 2006 12:34 am
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set
Location: Origin name GT_FragMe
Contact:

Re: How to make a rotating cannon on a tank?

Post by FragMe! »

That is correct, a null at the pivot point for turning the turret with the actual turret model a child of the null
So tree in XSI explorer would look something like this

Code: Select all

dummyroot
         mainmodelbits
               gun_body         (this is the null)
                   turret
                      barrel_body  (this is another null to tilt the barrel up and down goes at the start of the barrel where it meet the turret)
                          barrel 
                              hp_fire (this is another null that goes at the business end of the barrel)



The barrel_body null can also be used for recoil. Of couse since it will move all the collisions for the turret and barrel need to collison primitives and they would have to go at the same location in the tree as thier respective parts.
And as I mentioned earlier you will also have to make a .option file or the msh or the turret won't move.
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 make a rotating cannon on a tank?

Post by Redline »

Ok thx for the help all, but now I have another problem.
The problem is that I must know how I make the control for the cannon and the tank.
The cannon must let move with the mouse and the tank with the buttons W,A,S and D
I have tried many ways to make it real, but I am failed.
So can someone help me with my problem?
At the best I post the Script of my Tank. :runaway:
Hidden/Spoiler:
[code] [GameObjectClass]
ClassLabel = "hover"
GeometryName = "bat_hover_tank.msh"


[Properties]

//***********************************************
//*********** VEHICLE VALUES AND INFO *********
//***********************************************


FLYERSECTION = "BODY"
VehicleType = "light"
AISizeType = "MEDIUM"
NoCombatInterrupt = "1"
ReserveOneForPlayer = "0"
CockpitTension = 20
//ForceMode = "2"

Label = "hover"
MapTexture = "HUD_rep_fightertank_icon"
MapScale = "1.6"

ExplosionName = "imp_walk_atat_exp"
ExplosionOffset = "0.0 12.46 0.0"


GeometryName = "bat_hover_tank"

\\DeathAnimationExplosion = "small_explosion"
DeathAnimationExplosion = "imp_sfx_atat_explosion"
DeathAnimationExplosionTime = "1.5"

FinalExplosion = "imp_walk_atat_finalexp"
FinalExplosionOffset = "1.97 0.0 11.43"

FirstPerson = "IMP\impATAT;imp_1st_cockpit_atat"
FirstPersonFOV = "53"

MaxHealth = "30000.0"

// dont know if these are working for vehicles but it would be cool
ScanningRange = "30.0"
TransmitRange = "30.0"



//***********************************************
//*********** MOVEMENT VALUES *****************
//***********************************************

Acceleraton = "1.0"
MaxSpeed = "1.0"
MaxStrafeSpeed = "0.0"
MaxTurnSpeed = "0.4"

PCMaxYawSpeed = 1.0
PCMaxTurnSpeed = 1.0
PCPitchRate = .6

PitchRate = 0
PitchFilter = 0
TurnRate = 0
TurnFilter = 0

StoppedTurnSpeed = "0.05"
ForwardTurnSpeed = "0.03"
TurnThreshold = "0.35"

//***********************************************
//*********** CAMERA VALUES *******************
//***********************************************

EyePointOffset = "0.0 2.0 0.0"
TrackCenter = "0.0 2.0 -5.0" //needs to be chenged back to 0.0 1.0 -5.0 when artists move center point
TrackOffset = "0.0 0.5 6"
TiltValue = "7.0"

AimerNodeName = "Gun_canon"

PitchLimits = "-35 15"
YawLimits = "-35 35"
PitchTurnFactor = "0.5"
YawTurnFactor = "0.5"


//***********************************************
//*********** MAIN WEAPON VALUES **************
//***********************************************


WEAPONSECTION = 1

WeaponName = "imp_weap_walk_atat_cannon_head"
WeaponAmmo = "35"

FLYERSECTION = "TURRET1"
VehiclePosition = "common.vehiclepositions.gunner"
//FirstPerson = "cis\cissccam;cis_1st_cockpit_securitycam"
TurretNodeName = "Gun_canon"
PitchLimits = "-40.0 20.0"
YawLimits = "-180.0 180.0"
PitchTurnFactor = "0"
PCPitchRate = "15"
TurnRate = "1.8"
TurnFilter = "10"
PitchRate = "0.5"
PitchFilter = "10"
PitchDamp = "10"
BarrelNodeName = "Gun"
BarrelRecoil = "0.75"
FirePointName = "hp_cannon_1"
EyePointOffset = "0.0 2.0 -1.75"
TrackCenter = "0.0 1.0 -2.0"
TrackOffset = "0.0 0.0 3.0"
TiltValue = "10"

Acceleraton = "1.0"
MaxSpeed = "1.0"
MaxStrafeSpeed = "0.0"
MaxTurnSpeed = "0.4"

PCMaxYawSpeed = 1.0
PCMaxTurnSpeed = 1.0
PCPitchRate = .6

PitchRate = 0
PitchFilter = 0
TurnRate = 0
TurnFilter = 0

StoppedTurnSpeed = "0.05"
ForwardTurnSpeed = "0.03"
TurnThreshold = "0.35"

//***********************************************
//*********** CO-PILOT WEAPON VELUES **************
//***********************************************

FLYERSECTION = "TURRET1"

WeaponName = "imp_weap_walk_atat_cannon_head"
WeaponAmmo = "0"

FLYERSECTION = "TURRET2"
VehiclePosition = "common.vehiclepositions.gunner"
FirstPerson = "all\allsccam;all_1st_cockpit_securitycam"
CockpitTension = 40
EyePointOffset = "0.0 2.0 4.0"
TrackCenter = "0.0 2.0 -1.0"
TrackOffset = "0.0 -1.0 1.0"
TiltValue = "5.0"

ForceMode = 1

TurretNodeName ="minigun1"
AimerNodeName = "minigun"
AimerPitchLimits = "-40.0 20.0"
AimerYawLimits = "-180.0 180.0"

FirePointName = "hp_minigun"

VehiclePosition = "common.vehiclepositions.gunner"


//***********************************************
//*********** VISUAL EFFECTS ******************
//***********************************************


DeathShakeDelay = "3.5"
DeathShakeForce = "1.0"
DeathShakeDuration = "1.0"
DeathShakeRadius = "30.0"


//***********************************************
//*********** COLLISION VALUES ****************
//***********************************************
TerrainCollision = "p_front_left"
TerrainCollision = "p_back_right"
TerrainCollision = "p_front_right"
TerrainCollision = "p_back_left"

BuildingCollision = "p_front_left"
BuildingCollision = "p_front_right"
BuildingCollision = "p_back_left"
BuildingCollision = "p_back_right"
BuildingCollision = "p_main_building"
BuildingCollision = "p_head_building"

TargetableCollision = "p_front_left_thigh"
TargetableCollision = "p_front_left_shin"
TargetableCollision = "p_front_right_thigh"
TargetableCollision = "p_front_right_shin"
TargetableCollision = "p_back_left_thigh"
TargetableCollision = "p_back_left_shin"
TargetableCollision = "p_back_right_thigh"
TargetableCollision = "p_back_right_shin"

TowCableCollision = "p_front_left_thigh 0.36 0.0 1.06"
SmashParkedFlyers = "1"
TowCableCollision = "p_front_left_shin 0.36 0.0 1.06"
TowCableCollision = "p_front_left 0.5 0.0 1.1"

TowCableCollision = "p_front_right_thigh -0.36 0.0 1.06"
TowCableCollision = "p_front_right_shin -0.36 0.0 1.06"
TowCableCollision = "p_front_right -0.5 0.0 1.1"

TowCableCollision = "p_back_right_thigh -0.36 0.0 -1.06"
TowCableCollision = "p_back_right_shin -0.36 0.0 -1.06"
TowCableCollision = "p_back_right -0.5 0.0 -1.1"

TowCableCollision = "p_back_left_thigh 0.36 0.0 -1.06"
TowCableCollision = "p_back_left_shin 0.36 0.0 -1.06"
TowCableCollision = "p_back_left 0.5 0.0 -1.1"

VehicleCollision ="p_front_left_vehicle"
VehicleCollision ="p_front_right_vehicle"
VehicleCollision ="p_back_left_vehicle"
VehicleCollision ="p_back_right_vehicle"
VehicleCollision ="p_main_vehicle"
VehicleCollision ="p_head_vehicle"

OrdnanceCollision = "p_main_soldier1"
OrdnanceCollision = "p_main_soldier2"
OrdnanceCollision = "p_main_soldier3"
OrdnanceCollision = "p_main_soldier4"
OrdnanceCollision = "p_main_soldier5"
OrdnanceCollision = "p_neck_soldier"
OrdnanceCollision = "p_head_soldier"
OrdnanceCollision = "p_front_left_thigh"
OrdnanceCollision = "p_front_left_shin"
OrdnanceCollision = "p_front_left"
OrdnanceCollision = "p_front_right_thigh"
OrdnanceCollision = "p_front_right_shin"
OrdnanceCollision = "p_front_right"
OrdnanceCollision = "p_back_left_thigh"
OrdnanceCollision = "p_back_left_shin"
OrdnanceCollision = "p_back_left"
OrdnanceCollision = "p_back_right_thigh"
OrdnanceCollision = "p_back_right_shin"
OrdnanceCollision = "p_back_right"

SoldierCollision = "p_main_soldier1"
SoldierCollision = "p_main_soldier2"
SoldierCollision = "p_main_soldier3"
SoldierCollision = "p_main_soldier4"
SoldierCollision = "p_main_soldier5"
SoldierCollision = "p_neck_soldier"
SoldierCollision = "p_head_soldier"
SoldierCollision = "p_front_left_thigh"
SoldierCollision = "p_front_left_shin"
SoldierCollision = "p_front_left"
SoldierCollision = "p_front_right_thigh"
SoldierCollision = "p_front_right_shin"
SoldierCollision = "p_front_right"
SoldierCollision = "p_back_left_thigh"
SoldierCollision = "p_back_left_shin"
SoldierCollision = "p_back_left"
SoldierCollision = "p_back_right_thigh"
SoldierCollision = "p_back_right_shin"
SoldierCollision = "p_back_right"

//***********************************************
//*********** DAMAGE VALUES ****************
//***********************************************

DamageStartPercent = 60.0
DamageStopPercent = 20.0
DamageEffect = "com_sfx_vehiclespark"
DamageAttachPoint = "bone_fl_thigh"

DamageStartPercent = 60.0
DamageStopPercent = 20.0
DamageEffect = "com_sfx_vehiclespark"
DamageAttachPoint = "bone_fr_thigh"

DamageStartPercent = 60.0
DamageStopPercent = 20.0
DamageEffect = "com_sfx_vehiclespark"
DamageAttachPoint = "bone_bl_thigh"

DamageStartPercent = 60.0
DamageStopPercent = 20.0
DamageEffect = "com_sfx_vehiclespark"
DamageAttachPoint = "bone_br_thigh"

DamageStartPercent = 45.0
DamageStopPercent = 20.0
DamageEffect = "com_sfx_vehiclespark"
DamageAttachPoint = "bone_fl_calf"

DamageStartPercent = 45.0
DamageStopPercent = 20.0
DamageEffect = "com_sfx_vehiclespark"
DamageAttachPoint = "bone_fr_calf"

DamageStartPercent = 45.0
DamageStopPercent = 20.0
DamageEffect = "com_sfx_vehiclespark"
DamageAttachPoint = "bone_bl_calf"

DamageStartPercent = 45.0
DamageStopPercent = 20.0
DamageEffect = "com_sfx_vehiclespark"
DamageAttachPoint = "bone_br_calf"

//DamageStartPercent = 30.0
//DamageStopPercent = 20.0
//DamageEffect = "com_sfx_vehiclesmoke"
//DamageEffectScale = 3.0
//DamageInheritVelocity = 0.0
//DamageAttachPoint = "hp_damage_1"

//DamageStartPercent = 15.0
//DamageStopPercent = 0.0
//DamageEffect = "com_sfx_vehicleflame"
//DamageEffectScale = 3.0
//DamageInheritVelocity = 0.0
//DamageAttachPoint = "hp_damage_1"

//***********************************************
//*********** DEATH EXPLOSION VALUES **********
//***********************************************

CHUNKSECTION = "CHUNK1"
ChunkGeometryName = "imp_walk_atat_chunk1"
ChunkNodeName = ""
ChunkTerrainCollisions = "0"
ChunkTerrainEffect = "dirtspray"
ChunkPhysics = "FULL"
ChunkOmega = "0.1 0.1 0.5"
ChunkBounciness = 0.05
ChunkStickiness = 0.05
ChunkSpeed = "0.0"
ChunkTrailEffect = "com_sfx_chunktrail_sm"

ChunkSmokeEffect = "com_sfx_smokeplume"
ChunkSmokeNodeName = "hp_smoke_1"


CHUNKSECTION = "CHUNK2"
ChunkGeometryName = "imp_walk_atat_chunk2"
ChunkNodeName = ""
ChunkTerrainCollisions = "1"
ChunkTerrainEffect = "com_sfx_explosion_lg"
ChunkPhysics = "FULL"
ChunkOmega = "0.5 0.5 0.3"
ChunkBounciness = 0.45
ChunkStickiness = 0.25
ChunkSpeed = "8.0"
ChunkUpFactor = "16.00"
ChunkTrailEffect = "com_sfx_chunktrail_sm"


CHUNKSECTION = "CHUNK3"
ChunkGeometryName = "imp_walk_atat_chunk3"
ChunkNodeName = ""
ChunkTerrainCollisions = "1"
ChunkTerrainEffect = "com_sfx_explosion_lg"
ChunkTrailEffect = "com_sfx_chunktrail_sm"
ChunkPhysics = "FULL"
ChunkOmega = "2.0 2.0 2.0"
ChunkSpeed = "4.0"
ChunkUpFactor = "8.00"


CHUNKSECTION = "CHUNK4"
ChunkGeometryName = "imp_walk_atat_chunk4"
ChunkNodeName = ""
ChunkTerrainCollisions = "3"
ChunkTerrainEffect = "dirtspray"
ChunkPhysics = "FULL"
ChunkOmega = "0.4 0.2 1.0"
ChunkBounciness = 0.55
ChunkStickiness = 0.25
ChunkSpeed = "5.0"
ChunkUpFactor = "4.00"
ChunkTrailEffect = "com_sfx_chunktrail_sm"


CHUNKSECTION = "CHUNK5"
ChunkGeometryName = "imp_walk_atat_chunk5"
ChunkNodeName = ""
ChunkTerrainCollisions = "3"
ChunkTerrainEffect = "dirtspray"
ChunkPhysics = "FULL"
ChunkOmega = "2.0 0.5 2.0"
ChunkBounciness = 0.45
ChunkStickiness = 0.25
ChunkSpeed = "3.0"
ChunkUpFactor = "6.00"
ChunkTrailEffect = "com_sfx_chunktrail_sm"


CHUNKSECTION = "CHUNK6"
ChunkGeometryName = "imp_walk_atat_chunk6"
ChunkTerrainCollisions = "5"
ChunkTerrainEffect = "dirtspray"
ChunkPhysics = "FULL"
ChunkOmega = "1.5 1.0 1.25"
ChunkBounciness = 0.45
ChunkStickiness = 0.25
ChunkSpeed = "5.0"
ChunkUpFactor = "3.00"
ChunkTrailEffect = "com_sfx_chunktrail_sm"

//*******************************************
//*********** SOUND VALUES ****************
//*******************************************

VOUnitType = 50
StompDetectionType = "1"
//HydraulicLowerHeight = "0.5"
HurtSound = ""
DeathSound = "com_weap_obj_med_exp"
//AllMusic = "all_vehicle"
ImpMusic = "imp_vehicle"
MusicSpeed = "0.0"
MusicDelay = "5.0"
EngineSound = "atst_engine_parameterized"
TurnOnSound = ""
TurnOnTime = "1.0"
TurningOffSound = ""
TurnOffSound = ""
TurnOffTime = "1.0"
[/code]
User avatar
elfie
Field Commander
Field Commander
Posts: 931
Joined: Fri Jan 25, 2008 8:26 pm
Games I'm Playing :: no games
xbox live or psn: no live
Location: Coruscant, Jedi Temple
Contact:

Re: How to make a rotating cannon on a tank?

Post by elfie »

Not to bump but are you ever going to release that tank? It is a great model and I can really use it for one of the maps I am working on! :D
obiboba3po
2008 Most Technically Challenging Avatar
Posts: 2376
Joined: Tue Feb 12, 2008 7:46 pm
Projects :: No Mod project currently.
Games I'm Playing :: League of Legends
xbox live or psn: No gamertag set
Location: NJ, USA

Re: How to make a rotating cannon on a tank?

Post by obiboba3po »

LOL elfie! actually, id like to have it too please :D (and have you fixed the thing with the turret?)
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11079
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 make a rotating cannon on a tank?

Post by Teancum »

Redline wrote:Ok thx for the help all, but now I have another problem.
The problem is that I must know how I make the control for the cannon and the tank.
The cannon must let move with the mouse and the tank with the buttons W,A,S and D
I have tried many ways to make it real, but I am failed.
So can someone help me with my problem?
At the best I post the Script of my Tank. :runaway:
Hidden/Spoiler:
[code] [GameObjectClass]
ClassLabel = "hover"
GeometryName = "bat_hover_tank.msh"


[Properties]

//***********************************************
//*********** VEHICLE VALUES AND INFO *********
//***********************************************


FLYERSECTION = "BODY"
VehicleType = "light"
AISizeType = "MEDIUM"
NoCombatInterrupt = "1"
ReserveOneForPlayer = "0"
CockpitTension = 20
//ForceMode = "2"

Label = "hover"
MapTexture = "HUD_rep_fightertank_icon"
MapScale = "1.6"

ExplosionName = "imp_walk_atat_exp"
ExplosionOffset = "0.0 12.46 0.0"


GeometryName = "bat_hover_tank"

\\DeathAnimationExplosion = "small_explosion"
DeathAnimationExplosion = "imp_sfx_atat_explosion"
DeathAnimationExplosionTime = "1.5"

FinalExplosion = "imp_walk_atat_finalexp"
FinalExplosionOffset = "1.97 0.0 11.43"

FirstPerson = "IMP\impATAT;imp_1st_cockpit_atat"
FirstPersonFOV = "53"

MaxHealth = "30000.0"

// dont know if these are working for vehicles but it would be cool
ScanningRange = "30.0"
TransmitRange = "30.0"



//***********************************************
//*********** MOVEMENT VALUES *****************
//***********************************************

Acceleraton = "1.0"
MaxSpeed = "1.0"
MaxStrafeSpeed = "0.0"
MaxTurnSpeed = "0.4"

PCMaxYawSpeed = 1.0
PCMaxTurnSpeed = 1.0
PCPitchRate = .6

PitchRate = 0
PitchFilter = 0
TurnRate = 0
TurnFilter = 0

StoppedTurnSpeed = "0.05"
ForwardTurnSpeed = "0.03"
TurnThreshold = "0.35"

//***********************************************
//*********** CAMERA VALUES *******************
//***********************************************

EyePointOffset = "0.0 2.0 0.0"
TrackCenter = "0.0 2.0 -5.0" //needs to be chenged back to 0.0 1.0 -5.0 when artists move center point
TrackOffset = "0.0 0.5 6"
TiltValue = "7.0"

AimerNodeName = "Gun_canon"

PitchLimits = "-35 15"
YawLimits = "-35 35"
PitchTurnFactor = "0.5"
YawTurnFactor = "0.5"


//***********************************************
//*********** MAIN WEAPON VALUES **************
//***********************************************


WEAPONSECTION = 1

WeaponName = "imp_weap_walk_atat_cannon_head"
WeaponAmmo = "35"

FLYERSECTION = "TURRET1"
VehiclePosition = "common.vehiclepositions.gunner"
//FirstPerson = "cis\cissccam;cis_1st_cockpit_securitycam"
TurretNodeName = "Gun_canon"
PitchLimits = "-40.0 20.0"
YawLimits = "-180.0 180.0"
PitchTurnFactor = "0"
PCPitchRate = "15"
TurnRate = "1.8"
TurnFilter = "10"
PitchRate = "0.5"
PitchFilter = "10"
PitchDamp = "10"
BarrelNodeName = "Gun"
BarrelRecoil = "0.75"
FirePointName = "hp_cannon_1"
EyePointOffset = "0.0 2.0 -1.75"
TrackCenter = "0.0 1.0 -2.0"
TrackOffset = "0.0 0.0 3.0"
TiltValue = "10"

Acceleraton = "1.0"
MaxSpeed = "1.0"
MaxStrafeSpeed = "0.0"
MaxTurnSpeed = "0.4"

PCMaxYawSpeed = 1.0
PCMaxTurnSpeed = 1.0
PCPitchRate = .6

PitchRate = 0
PitchFilter = 0
TurnRate = 0
TurnFilter = 0

StoppedTurnSpeed = "0.05"
ForwardTurnSpeed = "0.03"
TurnThreshold = "0.35"

//***********************************************
//*********** CO-PILOT WEAPON VELUES **************
//***********************************************

FLYERSECTION = "TURRET1"

WeaponName = "imp_weap_walk_atat_cannon_head"
WeaponAmmo = "0"

FLYERSECTION = "TURRET2"
VehiclePosition = "common.vehiclepositions.gunner"
FirstPerson = "all\allsccam;all_1st_cockpit_securitycam"
CockpitTension = 40
EyePointOffset = "0.0 2.0 4.0"
TrackCenter = "0.0 2.0 -1.0"
TrackOffset = "0.0 -1.0 1.0"
TiltValue = "5.0"

ForceMode = 1

TurretNodeName ="minigun1"
AimerNodeName = "minigun"
AimerPitchLimits = "-40.0 20.0"
AimerYawLimits = "-180.0 180.0"

FirePointName = "hp_minigun"

VehiclePosition = "common.vehiclepositions.gunner"


//***********************************************
//*********** VISUAL EFFECTS ******************
//***********************************************


DeathShakeDelay = "3.5"
DeathShakeForce = "1.0"
DeathShakeDuration = "1.0"
DeathShakeRadius = "30.0"


//***********************************************
//*********** COLLISION VALUES ****************
//***********************************************
TerrainCollision = "p_front_left"
TerrainCollision = "p_back_right"
TerrainCollision = "p_front_right"
TerrainCollision = "p_back_left"

BuildingCollision = "p_front_left"
BuildingCollision = "p_front_right"
BuildingCollision = "p_back_left"
BuildingCollision = "p_back_right"
BuildingCollision = "p_main_building"
BuildingCollision = "p_head_building"

TargetableCollision = "p_front_left_thigh"
TargetableCollision = "p_front_left_shin"
TargetableCollision = "p_front_right_thigh"
TargetableCollision = "p_front_right_shin"
TargetableCollision = "p_back_left_thigh"
TargetableCollision = "p_back_left_shin"
TargetableCollision = "p_back_right_thigh"
TargetableCollision = "p_back_right_shin"

TowCableCollision = "p_front_left_thigh 0.36 0.0 1.06"
SmashParkedFlyers = "1"
TowCableCollision = "p_front_left_shin 0.36 0.0 1.06"
TowCableCollision = "p_front_left 0.5 0.0 1.1"

TowCableCollision = "p_front_right_thigh -0.36 0.0 1.06"
TowCableCollision = "p_front_right_shin -0.36 0.0 1.06"
TowCableCollision = "p_front_right -0.5 0.0 1.1"

TowCableCollision = "p_back_right_thigh -0.36 0.0 -1.06"
TowCableCollision = "p_back_right_shin -0.36 0.0 -1.06"
TowCableCollision = "p_back_right -0.5 0.0 -1.1"

TowCableCollision = "p_back_left_thigh 0.36 0.0 -1.06"
TowCableCollision = "p_back_left_shin 0.36 0.0 -1.06"
TowCableCollision = "p_back_left 0.5 0.0 -1.1"

VehicleCollision ="p_front_left_vehicle"
VehicleCollision ="p_front_right_vehicle"
VehicleCollision ="p_back_left_vehicle"
VehicleCollision ="p_back_right_vehicle"
VehicleCollision ="p_main_vehicle"
VehicleCollision ="p_head_vehicle"

OrdnanceCollision = "p_main_soldier1"
OrdnanceCollision = "p_main_soldier2"
OrdnanceCollision = "p_main_soldier3"
OrdnanceCollision = "p_main_soldier4"
OrdnanceCollision = "p_main_soldier5"
OrdnanceCollision = "p_neck_soldier"
OrdnanceCollision = "p_head_soldier"
OrdnanceCollision = "p_front_left_thigh"
OrdnanceCollision = "p_front_left_shin"
OrdnanceCollision = "p_front_left"
OrdnanceCollision = "p_front_right_thigh"
OrdnanceCollision = "p_front_right_shin"
OrdnanceCollision = "p_front_right"
OrdnanceCollision = "p_back_left_thigh"
OrdnanceCollision = "p_back_left_shin"
OrdnanceCollision = "p_back_left"
OrdnanceCollision = "p_back_right_thigh"
OrdnanceCollision = "p_back_right_shin"
OrdnanceCollision = "p_back_right"

SoldierCollision = "p_main_soldier1"
SoldierCollision = "p_main_soldier2"
SoldierCollision = "p_main_soldier3"
SoldierCollision = "p_main_soldier4"
SoldierCollision = "p_main_soldier5"
SoldierCollision = "p_neck_soldier"
SoldierCollision = "p_head_soldier"
SoldierCollision = "p_front_left_thigh"
SoldierCollision = "p_front_left_shin"
SoldierCollision = "p_front_left"
SoldierCollision = "p_front_right_thigh"
SoldierCollision = "p_front_right_shin"
SoldierCollision = "p_front_right"
SoldierCollision = "p_back_left_thigh"
SoldierCollision = "p_back_left_shin"
SoldierCollision = "p_back_left"
SoldierCollision = "p_back_right_thigh"
SoldierCollision = "p_back_right_shin"
SoldierCollision = "p_back_right"

//***********************************************
//*********** DAMAGE VALUES ****************
//***********************************************

DamageStartPercent = 60.0
DamageStopPercent = 20.0
DamageEffect = "com_sfx_vehiclespark"
DamageAttachPoint = "bone_fl_thigh"

DamageStartPercent = 60.0
DamageStopPercent = 20.0
DamageEffect = "com_sfx_vehiclespark"
DamageAttachPoint = "bone_fr_thigh"

DamageStartPercent = 60.0
DamageStopPercent = 20.0
DamageEffect = "com_sfx_vehiclespark"
DamageAttachPoint = "bone_bl_thigh"

DamageStartPercent = 60.0
DamageStopPercent = 20.0
DamageEffect = "com_sfx_vehiclespark"
DamageAttachPoint = "bone_br_thigh"

DamageStartPercent = 45.0
DamageStopPercent = 20.0
DamageEffect = "com_sfx_vehiclespark"
DamageAttachPoint = "bone_fl_calf"

DamageStartPercent = 45.0
DamageStopPercent = 20.0
DamageEffect = "com_sfx_vehiclespark"
DamageAttachPoint = "bone_fr_calf"

DamageStartPercent = 45.0
DamageStopPercent = 20.0
DamageEffect = "com_sfx_vehiclespark"
DamageAttachPoint = "bone_bl_calf"

DamageStartPercent = 45.0
DamageStopPercent = 20.0
DamageEffect = "com_sfx_vehiclespark"
DamageAttachPoint = "bone_br_calf"

//DamageStartPercent = 30.0
//DamageStopPercent = 20.0
//DamageEffect = "com_sfx_vehiclesmoke"
//DamageEffectScale = 3.0
//DamageInheritVelocity = 0.0
//DamageAttachPoint = "hp_damage_1"

//DamageStartPercent = 15.0
//DamageStopPercent = 0.0
//DamageEffect = "com_sfx_vehicleflame"
//DamageEffectScale = 3.0
//DamageInheritVelocity = 0.0
//DamageAttachPoint = "hp_damage_1"

//***********************************************
//*********** DEATH EXPLOSION VALUES **********
//***********************************************

CHUNKSECTION = "CHUNK1"
ChunkGeometryName = "imp_walk_atat_chunk1"
ChunkNodeName = ""
ChunkTerrainCollisions = "0"
ChunkTerrainEffect = "dirtspray"
ChunkPhysics = "FULL"
ChunkOmega = "0.1 0.1 0.5"
ChunkBounciness = 0.05
ChunkStickiness = 0.05
ChunkSpeed = "0.0"
ChunkTrailEffect = "com_sfx_chunktrail_sm"

ChunkSmokeEffect = "com_sfx_smokeplume"
ChunkSmokeNodeName = "hp_smoke_1"


CHUNKSECTION = "CHUNK2"
ChunkGeometryName = "imp_walk_atat_chunk2"
ChunkNodeName = ""
ChunkTerrainCollisions = "1"
ChunkTerrainEffect = "com_sfx_explosion_lg"
ChunkPhysics = "FULL"
ChunkOmega = "0.5 0.5 0.3"
ChunkBounciness = 0.45
ChunkStickiness = 0.25
ChunkSpeed = "8.0"
ChunkUpFactor = "16.00"
ChunkTrailEffect = "com_sfx_chunktrail_sm"


CHUNKSECTION = "CHUNK3"
ChunkGeometryName = "imp_walk_atat_chunk3"
ChunkNodeName = ""
ChunkTerrainCollisions = "1"
ChunkTerrainEffect = "com_sfx_explosion_lg"
ChunkTrailEffect = "com_sfx_chunktrail_sm"
ChunkPhysics = "FULL"
ChunkOmega = "2.0 2.0 2.0"
ChunkSpeed = "4.0"
ChunkUpFactor = "8.00"


CHUNKSECTION = "CHUNK4"
ChunkGeometryName = "imp_walk_atat_chunk4"
ChunkNodeName = ""
ChunkTerrainCollisions = "3"
ChunkTerrainEffect = "dirtspray"
ChunkPhysics = "FULL"
ChunkOmega = "0.4 0.2 1.0"
ChunkBounciness = 0.55
ChunkStickiness = 0.25
ChunkSpeed = "5.0"
ChunkUpFactor = "4.00"
ChunkTrailEffect = "com_sfx_chunktrail_sm"


CHUNKSECTION = "CHUNK5"
ChunkGeometryName = "imp_walk_atat_chunk5"
ChunkNodeName = ""
ChunkTerrainCollisions = "3"
ChunkTerrainEffect = "dirtspray"
ChunkPhysics = "FULL"
ChunkOmega = "2.0 0.5 2.0"
ChunkBounciness = 0.45
ChunkStickiness = 0.25
ChunkSpeed = "3.0"
ChunkUpFactor = "6.00"
ChunkTrailEffect = "com_sfx_chunktrail_sm"


CHUNKSECTION = "CHUNK6"
ChunkGeometryName = "imp_walk_atat_chunk6"
ChunkTerrainCollisions = "5"
ChunkTerrainEffect = "dirtspray"
ChunkPhysics = "FULL"
ChunkOmega = "1.5 1.0 1.25"
ChunkBounciness = 0.45
ChunkStickiness = 0.25
ChunkSpeed = "5.0"
ChunkUpFactor = "3.00"
ChunkTrailEffect = "com_sfx_chunktrail_sm"

//*******************************************
//*********** SOUND VALUES ****************
//*******************************************

VOUnitType = 50
StompDetectionType = "1"
//HydraulicLowerHeight = "0.5"
HurtSound = ""
DeathSound = "com_weap_obj_med_exp"
//AllMusic = "all_vehicle"
ImpMusic = "imp_vehicle"
MusicSpeed = "0.0"
MusicDelay = "5.0"
EngineSound = "atst_engine_parameterized"
TurnOnSound = ""
TurnOnTime = "1.0"
TurningOffSound = ""
TurnOffSound = ""
TurnOffTime = "1.0"
[/code]
In FragMe!'s post above, did you create the turret setup like he pointed out? What did you name each of the nulls and objects?
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 make a rotating cannon on a tank?

Post by Redline »

Yes, but the problem is the control of sw bf 2.
How can I change the control so that I can move the turret with the mouse.
And how can I change the control of the tank, so that it can move with the buttons A:( Left), D:( right) ,W:(forward) and S:(backward)?
In FragMe!'s post above, did you create the turret setup like he pointed out? What did you name each of the nulls and objects?
Yes and here are some names of my nulls and turrets:
First: NULL: gun_body ->Object: turret
Second:NULL: gun ->Object:barrel

PS:
My first sucess was that I could move the main turret with a gunner, but not with the pilot.
I am confused. :runaway:
Aman/Pinguin
Jedi
Jedi
Posts: 1104
Joined: Tue Jan 30, 2007 6:04 am
Projects :: Inactive
Location: Germany

Re: How to make a rotating cannon on a tank?

Post by Aman/Pinguin »

I think this already belongs into the SWBF2 Modding Forum. :wink:
Post Reply