How do I make vehicles better at ramming units?

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
User avatar
wishihadaname
Captain
Captain
Posts: 493
Joined: Fri Dec 28, 2007 2:10 pm
Projects :: The Corellian Resistance
Games I'm Playing :: Halo Reach and LOTRO
Location: Look to your left.... no, your other left....

How do I make vehicles better at ramming units?

Post by wishihadaname »

Its always a bit lackluster when this huge walker steps on you and nothing happens, is there a way to make it so that the ATST's legs have the same collision values as the speederbikes nose? I've looked up their odfs but I don't know which lines affect collision, has anyone done this before and if so how?

And another quick question, is there a way to make only the player immune to headshots? I've been testing out conquest mode and the biggest buzzkill is getting one shotted by corellian militia, its fun when you play as them, but sucks if your imperial. Their rifles aren't meant to be that good but I don't want to nerf their accuracy or damage. I know the droideka is immune to headshots, is there a way to have the lua apply that same property only to the player when he spawns?
THEWULFMAN
Space Ranger
Posts: 5557
Joined: Tue Aug 17, 2010 3:30 pm
Projects :: Evolved 2
Location: Columbus, Ohio
Contact:

Re: How do I make vehicles better at ramming units?

Post by THEWULFMAN »

@Walker quashing people:

It can't be done.

@Immune to headshots:

The model would need to have a new skeleton, without the bone_head. That, in theory, would allow there to be no headshots. You could have a different bone name, as long as it is not hone_head. This would require new animations.

Long story short: It's possible, but not worth the trouble.
Darth_Spiderpig
Sith Master
Sith Master
Posts: 2631
Joined: Fri Mar 27, 2009 10:23 am
Projects :: Something cool...
Games I'm Playing :: BF2 CoDBO BFBC2
xbox live or psn: Has no xbox....Yup
Location: Does whatever a Spiderpig does
Contact:

Re: How do I make vehicles better at ramming units?

Post by Darth_Spiderpig »

THEWULFMAN wrote:@Walker quashing people:

It can't be done.
Isn't the AT-AT able to kill units by "walking at them", or was that BF1?
THEWULFMAN
Space Ranger
Posts: 5557
Joined: Tue Aug 17, 2010 3:30 pm
Projects :: Evolved 2
Location: Columbus, Ohio
Contact:

Re: How do I make vehicles better at ramming units?

Post by THEWULFMAN »

Darth_Spiderpig wrote:
THEWULFMAN wrote:@Walker quashing people:

It can't be done.
Isn't the AT-AT able to kill units by "walking at them", or was that BF1?

Pretty sure it's BF1 only.
User avatar
Dakota
Field Commander
Field Commander
Posts: 991
Joined: Mon Dec 06, 2010 8:21 pm
Projects :: making random weapon assets
Games I'm Playing :: SWBF2 and more
xbox live or psn: PS3 beats xbox
Location: at a computer desk floating around in space

Re: How do I make vehicles better at ramming units?

Post by Dakota »

THEWULFMAN wrote:
Darth_Spiderpig wrote:
THEWULFMAN wrote:@Walker quashing people:

It can't be done.
Isn't the AT-AT able to kill units by "walking at them", or was that BF1?

Pretty sure it's BF1 only.
its swbf2 also i know from experience :cpu:
Darth_Spiderpig
Sith Master
Sith Master
Posts: 2631
Joined: Fri Mar 27, 2009 10:23 am
Projects :: Something cool...
Games I'm Playing :: BF2 CoDBO BFBC2
xbox live or psn: Has no xbox....Yup
Location: Does whatever a Spiderpig does
Contact:

Re: How do I make vehicles better at ramming units?

Post by Darth_Spiderpig »

:lol:

Well then, check the AT-AT odf out then.
User avatar
yuke5
Field Commander
Field Commander
Posts: 945
Joined: Wed Jun 29, 2011 10:42 pm
Games I'm Playing :: SWBF2 TF2 RC KOTOR
xbox live or psn: My steam is yuke5.
Location: Vermont

Re: How do I make vehicles better at ramming units?

Post by yuke5 »

Darth_Spiderpig wrote::lol:

Well then, check the AT-AT odf out then.
quoted for truth.
User avatar
Dakota
Field Commander
Field Commander
Posts: 991
Joined: Mon Dec 06, 2010 8:21 pm
Projects :: making random weapon assets
Games I'm Playing :: SWBF2 and more
xbox live or psn: PS3 beats xbox
Location: at a computer desk floating around in space

Re: How do I make vehicles better at ramming units?

Post by Dakota »

maybe changing the collision scale/threshold (i'm testing now).

also for pushing units i added in an extra seat on the republic hover tank that has an invisable emitterord fireing gun that fires from the turret but is invisable has a range of about 5 and is like force push (i added 50 damage to it) i set the angle to 180 so it hits all thats infront. the only problem is that the weapon is on auto fire and will knock you back when its not moving (i tried jumping in it... wow reminds me of that mean atat...)
Noobasaurus
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2006
Joined: Tue Aug 17, 2010 5:56 pm

Re: How do I make vehicles better at ramming units?

Post by Noobasaurus »

It also happens with the AT-AT.
User avatar
wishihadaname
Captain
Captain
Posts: 493
Joined: Fri Dec 28, 2007 2:10 pm
Projects :: The Corellian Resistance
Games I'm Playing :: Halo Reach and LOTRO
Location: Look to your left.... no, your other left....

Re: How do I make vehicles better at ramming units?

Post by wishihadaname »

The only line I could find in the ATAT odf that is different from other files is this
LegRayHitLength = "16"
Adding it to the ATST however did not seem to do anything. How did that collision threshold experiment go?
User avatar
Dakota
Field Commander
Field Commander
Posts: 991
Joined: Mon Dec 06, 2010 8:21 pm
Projects :: making random weapon assets
Games I'm Playing :: SWBF2 and more
xbox live or psn: PS3 beats xbox
Location: at a computer desk floating around in space

Re: How do I make vehicles better at ramming units?

Post by Dakota »

wishihadaname wrote:The only line I could find in the ATAT odf that is different from other files is this
LegRayHitLength = "16"
Adding it to the ATST however did not seem to do anything. How did that collision threshold experiment go?
with the collision scale and threshold on the rep hover tank on 0 it wouldn't push into things, just bounce off sometimes or do nothing. when i raised it then it would push other hover tanks some.

also try chaning the legrayhitlength length 16 it the leg length of the atat i think so find the leg length of the atst.
User avatar
sim-al2
2nd Lieutenant
2nd Lieutenant
Posts: 412
Joined: Mon Jul 06, 2009 10:26 pm
Projects :: Mapping on occasion
Games I'm Playing :: SWBFII + MW4 + SC4
Location: In the cockpit of some vehicle...

Re: How do I make vehicles better at ramming units?

Post by sim-al2 »

I've gotten killed several times by an AT-AT, but you would have to get stuck in-between the collisions proxies which seems to be random in occurrence (I see more friendlies killed from somewhere along the right side than even standing under the feet.) :shock: As to running people over, it seems that there are no properties to affect that, only speed and the shape of the collision box (the AAT is good, probably better than anything else in the stock game due to it possessing both of those characteristics.) Having a small jump, just enough to be coming down at a angle and sort of landing on top of them is the most effective you can get.
Dakota wrote:
with the collision scale and threshold on the rep hover tank on 0 it wouldn't push into things, just bounce off sometimes or do nothing. when i raised it then it would push other hover tanks some.
Collision scale and the collision numbers are solely for hitting stuff and not units as you've noticed. Off-topic a bit, but by reducing the scales to 0 and adding a powerful jump, you get a really fun tank to drive. :D
User avatar
Dakota
Field Commander
Field Commander
Posts: 991
Joined: Mon Dec 06, 2010 8:21 pm
Projects :: making random weapon assets
Games I'm Playing :: SWBF2 and more
xbox live or psn: PS3 beats xbox
Location: at a computer desk floating around in space

Re: How do I make vehicles better at ramming units?

Post by Dakota »

sim-al2 wrote:I've gotten killed several times by an AT-AT, but you would have to get stuck in-between the collisions proxies which seems to be random in occurrence (I see more friendlies killed from somewhere along the right side than even standing under the feet.) :shock: As to running people over, it seems that there are no properties to affect that, only speed and the shape of the collision box (the AAT is good, probably better than anything else in the stock game due to it possessing both of those characteristics.) Having a small jump, just enough to be coming down at a angle and sort of landing on top of them is the most effective you can get.
Dakota wrote:
with the collision scale and threshold on the rep hover tank on 0 it wouldn't push into things, just bounce off sometimes or do nothing. when i raised it then it would push other hover tanks some.
Collision scale and the collision numbers are solely for hitting stuff and not units as you've noticed. Off-topic a bit, but by reducing the scales to 0 and adding a powerful jump, you get a really fun tank to drive. :D
@the offtopic part: i set a tank to 0 gravity scale dispensed it at a strength of 10, got in it before it got away and then flew up and off the map a few miles then i started spinning like crazy.
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: How do I make vehicles better at ramming units?

Post by Fiodis »

sim-al2 wrote:(the AAT is good, probably better than anything else in the stock game due to it possessing both of those characteristics.)
I've found the Republic/Imperial hovertank very good for this if you catch them with the sharp edge between the two leading "spikes", for lack of a better term.
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: How do I make vehicles better at ramming units?

Post by DarthD.U.C.K. »

i think the "rammability" of vehicles is controlled mainly through the collision rather than odf-lines. i guess for walkers its the terraincollisoon of the feet and for hovers the pure collisionmodel.
CressAlbane
Master Bounty Hunter
Master Bounty Hunter
Posts: 1519
Joined: Fri Dec 18, 2009 8:02 am
Projects :: CTF Arenas
Games I'm Playing :: Steam- cressalbane2
Location: ¿uoıʇɐɔoן ʎɯ sıɥʇ sı

Re: How do I make vehicles better at ramming units?

Post by CressAlbane »

When the player spawns maybe you could use the collisionheadoffset found in the Super battle droid odf via setproperty? Just an idea.
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: How do I make vehicles better at ramming units?

Post by DarthD.U.C.K. »

?! collisionheadoffset determinates where the headcolision is for headshotdetection as far as i know.
CressAlbane
Master Bounty Hunter
Master Bounty Hunter
Posts: 1519
Joined: Fri Dec 18, 2009 8:02 am
Projects :: CTF Arenas
Games I'm Playing :: Steam- cressalbane2
Location: ¿uoıʇɐɔoן ʎɯ sıɥʇ sı

Re: How do I make vehicles better at ramming units?

Post by CressAlbane »

iwishihadaname wrote:And another quick question, is there a way to make only the player immune to headshots?
iwishihadaname wrote:I know the droideka is immune to headshots, is there a way to have the lua apply that same property only to the player when he spawns
EDIT: quote names
Last edited by CressAlbane on Thu Aug 25, 2011 2:59 pm, edited 2 times in total.
User avatar
Dakota
Field Commander
Field Commander
Posts: 991
Joined: Mon Dec 06, 2010 8:21 pm
Projects :: making random weapon assets
Games I'm Playing :: SWBF2 and more
xbox live or psn: PS3 beats xbox
Location: at a computer desk floating around in space

Re: How do I make vehicles better at ramming units?

Post by Dakota »

CressAlbane wrote:
And another quick question, is there a way to make only the player immune to headshots?
I know the droideka is immune to headshots, is there a way to have the lua apply that same property only to the player when he spawns
the driodeka is a cross of vehecal and unit, i think thats why you can't headshot it.

was that a question or just quotes?
User avatar
wishihadaname
Captain
Captain
Posts: 493
Joined: Fri Dec 28, 2007 2:10 pm
Projects :: The Corellian Resistance
Games I'm Playing :: Halo Reach and LOTRO
Location: Look to your left.... no, your other left....

Re: How do I make vehicles better at ramming units?

Post by wishihadaname »

nice one! Didn't even think about the sbd. I can set the headshot point to be in the middle of the model so that headshots are impossible. I know I would use class properties for this, but doesn't anyone know how to make a class property that only applies to the player?
Post Reply