Hex editing weapons onto a model?/animating vehicles

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
ThePanda
Private Second Class
Posts: 74
Joined: Sat Dec 20, 2008 4:22 pm

Hex editing weapons onto a model?/animating vehicles

Post by ThePanda »

I'm no professional at hex editing, but to the more experienced, is this possible?

It's only for aesthetical reasons, I'm trying to have an animated unit prop hold a weapon, but using addons with props isn't possible, so this is probably the only other hope besides having to actually model the weapon onto a model.

EDIT: Also, after doing research into how the campaign is able to animate flyer-class objects, I've come to the conclusion that it actually animates the vehicle spawn that the vehicle spawned from, and then uses the LUA function(?) 'EntityFlyerTakeOff', so the vehicle can fire its weapons, as well as prevent it from playing its takeoff animation. Can someone verify this?

Also, can somebody tell me what 'EntityFlyerInitAsLanded' does?
Last edited by ThePanda on Sat Jan 09, 2010 11:26 pm, edited 2 times in total.
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Hex editing weapons onto a model?

Post by Maveritchell »

You can hexedit a model chunk onto any bone in a model.
Deviss
Master of the Force
Master of the Force
Posts: 3772
Joined: Tue Aug 12, 2008 7:59 pm
Projects :: Clone Wars Extended
Games I'm Playing :: BF2

Re: Hex editing weapons onto a model?

Post by Deviss »

i hex edited left pistol to bone_l_hand into magnaguard XD also left westar on jango i same bone XD
User avatar
ThePanda
Private Second Class
Posts: 74
Joined: Sat Dec 20, 2008 4:22 pm

Re: Hex editing weapons onto a model?/animating vehicles

Post by ThePanda »

Easy for some people :P, I'm intimidated by hex-editing at the moment, so I'll analyse it when I have some time. Also, could someone verify my edit in the first post? I think I'm going somewhere with it.
Deviss
Master of the Force
Master of the Force
Posts: 3772
Joined: Tue Aug 12, 2008 7:59 pm
Projects :: Clone Wars Extended
Games I'm Playing :: BF2

Re: Hex editing weapons onto a model?/animating vehicles

Post by Deviss »

ThePanda wrote:Easy for some people :P, I'm intimidated by hex-editing at the moment, so I'll analyse it when I have some time. Also, could someone verify my edit in the first post? I think I'm going somewhere with it.
trust me follow repsharpshooter tutorial and then hex edit will be easy for you, if not i can help you with that
User avatar
ThePanda
Private Second Class
Posts: 74
Joined: Sat Dec 20, 2008 4:22 pm

Re: Hex editing weapons onto a model?/animating vehicles

Post by ThePanda »

I followed RepSharpShooters' tutorial a couple of times, but each time I tried to view the new caped model in the MSH Viewer it was invisible, so there's no doubt I've done something wrong. Also, I read that because some MODL chunks don't include texture names, you have to do extra editing to get them working, in which case I'll pass.
Deviss
Master of the Force
Master of the Force
Posts: 3772
Joined: Tue Aug 12, 2008 7:59 pm
Projects :: Clone Wars Extended
Games I'm Playing :: BF2

Re: Hex editing weapons onto a model?/animating vehicles

Post by Deviss »

ThePanda wrote:I followed RepSharpShooters' tutorial a couple of times, but each time I tried to view the new caped model in the MSH Viewer it was invisible, so there's no doubt I've done something wrong. Also, I read that because some MODL chunks don't include texture names, you have to do extra editing to get them working, in which case I'll pass.
yeah probably you selected wrong or whatever please allow me help you to hex edit :D
User avatar
ThePanda
Private Second Class
Posts: 74
Joined: Sat Dec 20, 2008 4:22 pm

Re: Hex editing weapons onto a model?/animating vehicles

Post by ThePanda »

If you're willing to help that's awesome :), send me a PM.

Also, I've managed to animate a gunship like the campaign without editing classlabels or anything. It's most likely been done before, but I'll write up a short tutorial for anyone who'd like to know how soon.
Deviss
Master of the Force
Master of the Force
Posts: 3772
Joined: Tue Aug 12, 2008 7:59 pm
Projects :: Clone Wars Extended
Games I'm Playing :: BF2

Re: Hex editing weapons onto a model?/animating vehicles

Post by Deviss »

ThePanda wrote:If you're willing to help that's awesome :), send me a PM.

Also, I've managed to animate a gunship like the campaign without editing classlabels or anything. It's most likely been done before, but I'll write up a short tutorial for anyone who'd like to know how soon.
sending PM :wink:
User avatar
ThePanda
Private Second Class
Posts: 74
Joined: Sat Dec 20, 2008 4:22 pm

Re: Hex editing weapons onto a model?/animating vehicles

Post by ThePanda »

Replied ;).

Like in the first post, I'm stumped as to what these do:
EntityFlyerInitAsLanded
EntityFlyerInitAsFlying
EntityFlyerLand
EntityFlyerTakeOff
Any idea/help?

EDIT: And yet another question :oops:, for some reason my gunships explode upon spawning on the first time, but when they respawn they're fine. I have no idea what's causing this whatsoever. Anybody know the problem?

Thanks.
RogueKnight
Space Ranger
Posts: 2512
Joined: Sat Nov 22, 2008 1:50 pm
Projects :: Life. Work.
Games I'm Playing :: League of Legends
xbox live or psn: No gamertag set
Location: Washington, US

Re: Hex editing weapons onto a model?/animating vehicles

Post by RogueKnight »

Just a quick FYI, capes only show up in XSI or ingame, not in the viewer, the viewer doesnt show cloth.
Post Reply