Results 1 to 5 of 5
  1. #1
    MSgt. Shooter Person
    Join Date
    Dec 2004
    Posts
    74

    Default Staticmesh question

    in the default properties of this code(from XEffects.u)
    i notice the thing that says StaticMesh=StaticMesh'GibBotHead'
    what is it referencing to and how would i add something like that?

    when i open the xeffects.u with WOTgreal or UTPT i can see the GibBotHead in there but how did they add it on to the package and how would i do it while compiling?

    //================================================== ==============================
    // GibBotHead.
    //================================================== ==============================

    class GibBotHead extends GibHead;

    defaultproperties
    {
    GibGroupClass=Class'xBotGibGroup'

    TrailClass=Class'BotSparks'

    HitSounds(0)=ProceduralSound'WeaponSounds.PGrenFlo or1.P1GrenFloor1'

    HitSounds(1)=ProceduralSound'WeaponSounds.PGrenFlo or1.P1GrenFloor1'

    DrawType=8

    StaticMesh=StaticMesh'GibBotHead'

    DrawScale=0.60

    Skins=

    CollisionRadius=5.00

    CollisionHeight=2.50

    }

  2. #2
    MSgt. Shooter Person
    Join Date
    Jun 2002
    Posts
    43

    Default

    Look at the #exec calls in GibOrganic_rc.uc. That's how they embedded the meshes into the package.

  3. #3
    Redeemer
    Join Date
    Sep 2002
    Posts
    1,517

    Default

    Just be aware that you dont need a resource class to do this, you can import meshes, textures, sounds, or any other data type into a .u file. They just use the _rc idea from c++, most likely.

  4. #4
    Iron Guard
    Join Date
    Feb 2002
    Posts
    616

    Default

    When compiling the compiler loads default resources, xweapons.u, xeffects.u, etc etc.

    Since the packages are open and available to the compiler it can reference to a class without having the package name, eg: StaticMesh = StaticMesh'GibBotHead' ; Since GibBotHead is a static mesh in xEffects.u you don't need to reference the class. But if you did not have xEffects.u loaded when compiling, you would get an error, ' could not find "GibBotHead" '.

    If you have a package that is not loaded when you compile, you need to add the #exec directive, like:

    #exec OBJ LOAD File="xEffects.u" // Which isn't needed btw.

    then you could refference to xEffects.u as stated in the default properties.

    Or as stated above, import your static meshes to the .U file.

  5. #5
    MSgt. Shooter Person
    Join Date
    Dec 2004
    Posts
    74

    Default

    oh ok, thanks so if its loaded in the parent class it doesn't need to be loaded again


 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Copyright ©2009-2011 Epic Games, Inc. All Rights Reserved.
Digital Point modules: Sphinx-based search vBulletin skin by CompletevB.com.