Create model where a missile lands?

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
lucasfart
Sith
Sith
Posts: 1440
Joined: Tue Feb 24, 2009 5:32 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Australia

Create model where a missile lands?

Post by lucasfart »

Hey guys, just a quick question. In theory, would it be relatively easy to leave an object where your projectile hits? So basically, I thought it would be cool to make it so that crossbow bolts and arrows, when they hit an object, would just be left sticking out.

The Idea:
1. Projectile hits wall/ground/other object (and disappears)
2. Co-ordinates of that position are retrieved (is it possible to emulate the rotation as well?)
3. A crossbow bolt/arrow object is placed at that same position.

The theory isn't too complex but I thought I'd check out how feasible it is with you guys before I put a lot of effort into this. I still don't really have a grasp of all the commands, so any help would be appreciated. :)

Also, another question. It wouldn't work for players/dynamic objects, would it? Because they're always moving?
User avatar
Locutus
1st Lieutenant
1st Lieutenant
Posts: 420
Joined: Fri Jun 04, 2010 10:08 am
Projects :: Stargate Battlefront Pegasus
Location: Germany
Contact:

Re: Create model where a missile lands?

Post by Locutus »

Just a thought but maybe you could simply change the explosion of your ordnance to take longer, do no damage and change the model to your arrow/bolt.
User avatar
lucasfart
Sith
Sith
Posts: 1440
Joined: Tue Feb 24, 2009 5:32 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Australia

Re: Create model where a missile lands?

Post by lucasfart »

That's probably better! It would kinda be cool to just permanently have these models around, but I guess that would have a higher performance impact also. Would this method also mean that I could make them stick to dynamic objects like ai/players (kinda like the sticky 'nades?).
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Create model where a missile lands?

Post by Maveritchell »

The Ewok spear is an easy template for what you want - a grenade ordnance with no explosion and a reasonable lifespan.
User avatar
lucasfart
Sith
Sith
Posts: 1440
Joined: Tue Feb 24, 2009 5:32 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Australia

Re: Create model where a missile lands?

Post by lucasfart »

Cheers! That'll definitely make life easier...

Another question: Would I need to make a new skeleton/animation set or something if I wanted to use those ewok spear-throwing anims? Or can I just chuck the files in my munged folder and go for it?
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: Create model where a missile lands?

Post by CressAlbane »

Well, do you want to use the skeleton that the Ewok throwing animation is based on?
User avatar
lucasfart
Sith
Sith
Posts: 1440
Joined: Tue Feb 24, 2009 5:32 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Australia

Re: Create model where a missile lands?

Post by lucasfart »

Nah, I want to use the human skeleton. Although I just realised that they basically just use the grenade throw anim, so I might just use that. :D
THEWULFMAN
Space Ranger
Posts: 5557
Joined: Tue Aug 17, 2010 3:30 pm
Projects :: Evolved 2
Location: Columbus, Ohio
Contact:

Re: Create model where a missile lands?

Post by THEWULFMAN »

Any animation can be used with the ewok's skeleton and vice versa as long as it's set up with the same number of bones and naming of bones in the animation.

Unit models and animations both reference the skeleton but do not contain it in their own files.

What I'm saying is, the spear throwing animation could be used with the normal human basepose. Not that there's a point because like you found out it is literally just the grenade throw animation.
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: Create model where a missile lands?

Post by CressAlbane »

Well, that doesn't mean that it would look good with any skeleton with the name number of bones and naming convention, but I see your point.
Post Reply