Implementing Custom First Person Animations Tutorial (FAQ)

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
Nedarb7
Lieutenant General
Lieutenant General
Posts: 676
Joined: Sat Sep 22, 2012 3:41 pm

Implementing Custom First Person Animations Tutorial (FAQ)

Post by Nedarb7 »

IMPLEMENTING CUSTOM FIRST PERSON ANIMATIONS


I didn't like the fact that custom first person animations were unsupported so I decided to try a workaround. So here it is, a FP animation tutorial. Here's a video of me trying a custom animation: CLICK HERE
How it is done:

STEP 1
Create an Animations folder in data_*** then copy the FirstPerson folder from:
assets\Animations\
and paste it in your newly create Animations folder.

STEP 2
Create your animations (I believe there is a tutorial in the XSI FAQ covers this, just import a fp animation basepose instead of using the soldier bones. Edit it how you wish)
Replace the existing fp animation mshs with your new ones, make sure the names are the same, for example:
If you make a shooting animation name it humanfp_rifle_shoot and replace the one that exists with it.

STEP 3
Edit the munge.bat in the animation set you are changing, in this case humanfp (the other being droidekafp which is only used by walkerdroids. Don't change these names). Make it look like this:

Code: Select all

@call ..\munge_animation.bat "/keepframe0 /dest humanfp.zaf" Sides\fpanimset
Save and then run the munge.bat, if you are using windows vista, 7, or 8 you might need to edit
the munge_animation.bat in data_***\Animations\FirstPerson\ Click here for the fix

STEP 4
Now go to data_***\Sides\fpanimset\ and create a req called fpanimset. Make it look like this:

Code: Select all

ucft
{
	REQN
	{
		"zafbin"
		"humanfp"
	}
	REQN
	{
		"zaabin"
		"humanfp"
	}

}
Save and exit.

STEP 5
Open your LUA and find ReadDataFile("ingame.lvl"), add this on top of it:

Code: Select all

ReadDataFile("dc:SIDE\\fpanimset.lvl")
STEP 6
Go to data_***\_BUILD\Sides\ and make a folder called fpanimset, then go to
data_***\_BUILD\Sides\REP and copy the munge.bat and clean.bat. Paste them in your new fpanimset folder.

After this munge with sides selected fpanimset and you are done! :D
Last edited by Nedarb7 on Mon Mar 10, 2014 6:26 pm, edited 3 times in total.
User avatar
TWINKEYRUNAWAY
Lieutenant General
Lieutenant General
Posts: 730
Joined: Fri Aug 17, 2012 3:13 pm
Projects :: Empire Rising
Games I'm Playing :: SWBF Doom FONV
xbox live or psn: No gamertag set
Location: 411Remnant
Contact:

Re: Implementing Custom First Person Animations Tutorial

Post by TWINKEYRUNAWAY »

:bowdown: Awesome job!
User avatar
Anakin
Master of the Force
Master of the Force
Posts: 4817
Joined: Sat Sep 19, 2009 11:37 am
Projects :: RC Side Mod - Remastered - SWBF3 Legacy
Location: Mos Espa (germany)

Re: Implementing Custom First Person Animations Tutorial

Post by Anakin »

Thank you for this tutorial. There are a few animation i could do for RC
LPMaster1996
Recruit Womprat Killer
Posts: 6
Joined: Wed Apr 27, 2022 1:11 am
Projects :: No Mod project currently.
xbox live or psn: No gamertag set

Re: Implementing Custom First Person Animations Tutorial (FAQ)

Post by LPMaster1996 »

Hello,
I followed the tutorial, but the animation doesn't change. What am I doing wrong? I would like to change the reload animation.
Post Reply