Creating Gore Limbs assets and script

From Tripwire Interactive Wiki
Revision as of 23:31, 24 September 2013 by Davidhensley (talk | contribs) (Created page with "===Creating the gore limbs=== 1. Download the gore limb example 3ds max scene here 2. Cut the limbs of your character model and attach the gore chunk to each of your limbs fo...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Creating the gore limbs

1. Download the gore limb example 3ds max scene here

2. Cut the limbs of your character model and attach the gore chunk to each of your limbs following the 3ds max example

3. Set material ID 0 to be your character texture

4. Set material ID 1 to be the gore texture (the same gore texture is used for all playable characters)

5. Make sure your new gore limbs match the orientation and location of the example gore limbs.

6. Make sure your pivots are at 0,0,0

7. Export each gore limb by exporting selected and exporting and .ase file

8. Import the .ase file into a killing floor static mesh package and name it <your character name>_Gore.usx

9. These are the settings Tripwire uses when exporting static mesh gore limbs

10. Static mesh packages are located here \KillingFloor\StaticMeshes

Gore Limb Scripts

You need a script file for each gore limb.

The script code is simple for the gore limbs. All you do is name your script and define the asset reference where your gore limb static mesh is in the KF editor. The filename should be the same thing you have in class "your file name" extends section. That must match exactly to your file name. You cannot use spaces in a class name.

the two files below are

  • SeveredArmChav.uc
  • SeveredLegChav.uc
class SeveredArmChav extends SeveredArm;

defaultproperties
{
    StaticMesh=StaticMesh'kf_gore_trip_sm.limbs.chav_arm'
}
class SeveredLegChav extends SeveredLeg;

defaultproperties
{
    StaticMesh=StaticMesh'kf_gore_trip_sm.limbs.chav_leg'
}