Problem with scaled up 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
Snork
Lieutenant General
Lieutenant General
Posts: 669
Joined: Thu Jun 07, 2007 3:34 pm
Games I'm Playing :: SWBF2 and Minecraft
xbox live or psn: No gamertag set
Contact:

Problem with scaled up units

Post by Snork »

I've made a unit 3x its usual size and it works fine, but when I try and shoot it I can only hit its feet (basically, the space that the regular sized one takes up)

How do I give it an accurate collision? I tried using collisionrootscale and collisionscale but that did nothing
Bob
Brigadier General
Brigadier General
Posts: 633
Joined: Thu May 27, 2010 4:28 am
Location: at home

Re: Problem with scaled up units

Post by Bob »

I believe that I read somewhere that units can only be scaled to 200% of their original size before things start going messy...
Hidden/Spoiler:
and btw if your overdoing it the collision is completly gone, I made an ackley 20X bigger than usual and he had no hitbox anymore (but he was able to do damage :cry: )
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: Problem with scaled up units

Post by Fiodis »

Bob wrote:I believe that I read somewhere that units can only be scaled to 200% of their original size before things start going messy...
Units can be scaled up huge without things "going messy" visually - the collision is the main problem. I know Dann_Boeing did some crazy things with Wampas and Han Solos.
User avatar
Snork
Lieutenant General
Lieutenant General
Posts: 669
Joined: Thu Jun 07, 2007 3:34 pm
Games I'm Playing :: SWBF2 and Minecraft
xbox live or psn: No gamertag set
Contact:

Re: Problem with scaled up units

Post by Snork »

Which map is that in again? I wanna look at it and see if I can figure anything out from it
User avatar
acryptozoo
Master Bounty Hunter
Master Bounty Hunter
Posts: 1642
Joined: Wed Jun 03, 2009 3:14 pm
Projects :: Yavin Mappack
Games I'm Playing :: Homeworld 2
xbox live or psn: acryptozoo
Location: in the jungles of Yavin IV
Contact:

Re: Problem with scaled up units

Post by acryptozoo »

Snork wrote:Which map is that in again? I wanna look at it and see if I can figure anything out from it
i think there was scaled up wampas in rhen var
User avatar
Snork
Lieutenant General
Lieutenant General
Posts: 669
Joined: Thu Jun 07, 2007 3:34 pm
Games I'm Playing :: SWBF2 and Minecraft
xbox live or psn: No gamertag set
Contact:

Re: Problem with scaled up units

Post by Snork »

it looks like he just made all the hunter's weapons track directly to the enemy therefore eliminating the need for an accurate hitbox :/
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: Problem with scaled up units

Post by Fiodis »

Indeed, which is why I said collision is the main problem.
User avatar
Snork
Lieutenant General
Lieutenant General
Posts: 669
Joined: Thu Jun 07, 2007 3:34 pm
Games I'm Playing :: SWBF2 and Minecraft
xbox live or psn: No gamertag set
Contact:

Re: Problem with scaled up units

Post by Snork »

is there anything that could possibly done besides scaling up the model in XSI manually?
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: Problem with scaled up units

Post by DarthD.U.C.K. »

i dont think so and i doubt that scaling up the skeleton in xi will help eithersince it seems like the hitbox is independend from that
User avatar
Snork
Lieutenant General
Lieutenant General
Posts: 669
Joined: Thu Jun 07, 2007 3:34 pm
Games I'm Playing :: SWBF2 and Minecraft
xbox live or psn: No gamertag set
Contact:

Re: Problem with scaled up units

Post by Snork »

I give up :/

I guess the Giant Gamorrean just isn't to be....

Image
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: Problem with scaled up units

Post by Fiodis »

DarthD.U.C.K. wrote:i dont think so and i doubt that scaling up the skeleton in xi will help eithersince it seems like the hitbox is independend from that
Acklays have custom hitboxes, don't they?
Bob
Brigadier General
Brigadier General
Posts: 633
Joined: Thu May 27, 2010 4:28 am
Location: at home

Re: Problem with scaled up units

Post by Bob »

every unit has a different hitbox, it depends on the model... butif it goes over 2x normal size the hitbox( = collision) becomes a square
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: Problem with scaled up units

Post by DarthD.U.C.K. »

yeah, but they are acklays, not normal units, just like the droidekas are :P
@bob: i doubt that, if it was like this collisionrootscale and offsetlines in the odf wouldnt be necessary, but they are.
User avatar
Snork
Lieutenant General
Lieutenant General
Posts: 669
Joined: Thu Jun 07, 2007 3:34 pm
Games I'm Playing :: SWBF2 and Minecraft
xbox live or psn: No gamertag set
Contact:

Re: Problem with scaled up units

Post by Snork »

Could I possibly make a collision for mr. gamorrean the same way vehicle collisions are made?
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: Problem with scaled up units

Post by DarthD.U.C.K. »

no, unitcollisions are mostly handled hardcoded, except for the few odflines for tweaking custom skeletons.
User avatar
Snork
Lieutenant General
Lieutenant General
Posts: 669
Joined: Thu Jun 07, 2007 3:34 pm
Games I'm Playing :: SWBF2 and Minecraft
xbox live or psn: No gamertag set
Contact:

Re: Problem with scaled up units

Post by Snork »

mreh :(
Post Reply