Results 1 to 3 of 3

Thread: Character Generator (CGen)

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Super Moderator BoneCrafter's Avatar
    Join Date
    Mar 2012
    Posts
    30

    Character Generator (CGen)

    Open the files game/modkit/tutorial/tutorialDatablocks.cs and game/dataBlocks/characterGenData/characterGen_SpecialGirls.cs with your code editor. You may use the SpecialGirls.cs and SpecialGuys.cs for reference.

    The CGen defines all of the assets used to make complete characters or sets of characters that we can spawn in the world.

    The accessory datablocks define accessories that characters can wear
    Code:
    datablock AccessoryData(some_data)
    Often we use variables to define lists of accessories or other character features
    Code:
    $CharacterGen::pigmyChickHairSet = "bald_data;Afra_data;shagChicks2_data";
    The game will pick randomly from these lists

    Character gen datablocks define a character's skin, body type, accessories, power moves, etc.
    Code:
    datablock CharacterGenData(someChick)
    The character class datablocks define what character gens are included in a character class. Character classes are used to spawn characters from wait nodes.
    Code:
    datablock CharacterClassData(someClass)
    Texture and HSL variable sets are used to define a HSL (Hue, Saturation, Lightness) range a texture can have
    format is: "texture;HSL low,HSL high"
    Code:
    $CharacterGen::chickPantiesPurpleHSL = "chicks/accessories/pants/textures/PantiesHSL;0.25 -0.5 -0.5,0.35 0.2 0.1";
    The game will pick randomly within the range

    Morph weight variables are used to define body types.
    Guys: Buff, fat, tall, short
    Girls: Hot, fatty, athletic, petite
    Code:
    morphWeightsLow0 = "0.0 0.6 0.0 0.0";
    morphWeightsHigh0 = "0.4 1 0.0 0.0";
    The game will pick randomly within the range
    *Note: Accessories may not morph correctly depending on the number of *.dtm files used to create the accessory.

    We use inheritence often to define variations of other character gen datablocks.
    Code:
    datablock CharacterGenData(someChick : somePurpleFatChick)
    Last edited by BoneCrafter; 05-25-2012 at 10:05 AM.

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
  •  
****Custom Design Skin By BoneMaster****