Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function color($mode)
- {
- global $color;
- if ($mode == "random")
- {
- $c1 = rand(1,200);
- $c2 = rand(-25,25); $c2 = $c1 + $c2; if ($c2 < 1) $c2 = 1;
- $c3 = rand(-25,25); $c3 = $c1 + $c3; if ($c3 < 1) $c3 = 1;
- }
- if ($mode == "shade")
- {
- $c1 = rand(100,255);
- $c2 = $c1;
- $c3 = $c1;
- }
- if ($mode == "brightshade")
- {
- $c1 = rand(230,255);
- $c2 = $c1;
- $c3 = $c1;
- }
- if ($mode == "darkshade")
- {
- $c1 = rand(5,50);
- $c2 = $c1;
- $c3 = $c1;
- }
- $color = "$c1,$c2,$c3";
- }
- function archetype($name,$mode,$Gender,$age,$health)
- {
- //$age = "child";
- // hazmat chest and suit jacket removed
- if ($health == "health") $health = rand(100,600);
- $armorPieces = 0;
- //if ($health > 150) $armorPieces++;
- //if ($health > 200) $armorPieces++;
- //if ($health > 250) $armorPieces++;
- if ($health > 300) { $armorPieces += 3; $armorSet["chest"] = 1; }
- if ($health > 599) $armorSet["head"] = 1;
- $armorPieceArray = array("legs","hands","feet");
- while ($armorPieces > 0)
- {
- shuffle($armorPieceArray);
- $piece = array_shift($armorPieceArray);
- $armorSet["$piece"] = 1;
- $armorPieces--;
- }
- global $color;
- global $composer;
- // misc. settings and values
- if (1 == 1) {
- if ($mode == 1) $name = "Test2";
- if ($Gender == "") {
- $gender[1] = "male";
- $gender[2] = "female";
- $Gender = rand(1,2);
- $Gender = $gender[$Gender];
- }
- $Dirt = "
- <texture name=\"unisex_face_dirt_overlay\" color=\"78,15,15,255\"/>";
- $FaceDirt = rand(1,10);
- if ($FaceDirt > 7) $Dirt = "";
- $skinColor[1] = "231,231,236";
- $skinColor[2] = "108,133,105";
- $skinColor[3] = "100,64,48";
- $skinColor[4] = "39,21,13";
- $skinColor[5] = "170,250,214";
- $skinNum = sizeof($skinColor);
- $skinNum = rand(1,$skinNum);
- $skin = $skinColor[$skinNum];
- $hairColor[1] = "22,24,26";
- $hairColor[2] = "81,70,70";
- $hairColor[3] = "30,10,10";
- $hairColor[4] = "249,130,2";
- $hairColor[5] = "30,25,23";
- $hairColor[6] = "127,119,115";
- $hairColor[7] = "230,200,160";
- $hairNum = sizeof($hairColor);
- $hairNum = rand(1,$hairNum);
- $hair = $hairColor[$hairNum];
- }
- // head
- if (1 == 1) {
- $headBaseMesh["male"][1] = "male_base_face";
- $headBaseMesh["male"][2] = "male_asian_face";
- $headBaseMesh["male"][3] = "male_armor_hazmat_head";
- $headBaseMesh["female"][1] = "female_base_face";
- $headBaseMesh["female"][2] = "female_asian_face";
- $headBaseMesh["female"][3] = "male_armor_hazmat_head";
- $HeadBaseMesh = rand(1,2);
- $HeadBaseMesh = $headBaseMesh[$Gender][$HeadBaseMesh];
- $head["male"][1] = "male_head";
- $head["male"][2] = "male_head_old";
- $head["male"][3] = "male_head_zombie";
- $head["female"][1] = "female_head";
- $head["female"][2] = "female_head_old";
- $head["female"][3] = "female_head_zombie";
- $head["female"][4] = "female_head_asian";
- $randMax = 3; if ($Gender == "female") $randMax = 4;
- $Head = rand(1,$randMax);
- $Head = $head[$Gender][$Head];
- $eyebrow["male"][1] = "male_eyebrow_angled";
- $eyebrow["male"][2] = "male_eyebrow_curve";
- $eyebrow["male"][3] = "male_eyebrow_flat";
- $eyebrow["male"][4] = "male_eyebrow_round";
- $eyebrow["female"][1] = "male_eyebrow_angled";
- $eyebrow["female"][2] = "female_eyebrow_curve";
- $eyebrow["female"][3] = "female_eyebrow_flat";
- $eyebrow["female"][4] = "female_eyebrow_round";
- $Eyebrow = rand(1,4);
- $Eyebrow = $eyebrow[$Gender][$Eyebrow];
- // hair
- //$hairMesh["male"][5] = "male_hair_sideshave_longtop";
- $hairOverlay["male"][1] = "male_base_hair";
- $hairOverlay["male"][2] = "male_shaggy_hair";
- $hairOverlay["female"][1] = "female_shaggy_hair";
- $hairOverlay["female"][2] = "female_shaggy_hair_highlights";
- $randMax = 2; if ($Gender == "female") $randMax = 1;
- $HairOverlay = rand(1,$randMax);
- $HairOverlay = $hairOverlay[$Gender][$HairOverlay];
- $hairMesh["male"][1] = "male_hair_bun";
- $hairMesh["male"][2] = "male_hair_long_pomp";
- $hairMesh["male"][3] = "male_hair_pomp";
- $hairMesh["male"][4] = "male_hair_short_shaggy";
- $hairMesh["male"][5] = "male_long_pomp_hair";
- $hairMesh["male"][6] = "male_mohawk";
- $hairMesh["male"][7] = "male_shaggy_hair";
- $hairMesh["male"][8] = "male_base_hair";
- $hairMesh["male"][9] = "unisex_hair_afro";
- $hairMesh["male"][10] = "unisex_hair_dreads";
- $hairMesh["male"][11] = "unisex_hair_raider";
- $hairMesh["female"][1] = "female_base_hair";
- $hairMesh["female"][2] = "female_hair_bun";
- $hairMesh["female"][3] = "female_hair_buns";
- $hairMesh["female"][4] = "female_hair_choppy";
- $hairMesh["female"][5] = "female_hair_edgy";
- $hairMesh["female"][6] = "female_hair_long";
- $hairMesh["female"][7] = "female_hair_ponytail03";
- $hairMesh["female"][8] = "female_hair_shaggy02";
- $hairMesh["female"][9] = "female_ponytail";
- $hairMesh["female"][10] = "female_mohawk";
- $hairMesh["female"][11] = "female_shaggy_hair02";
- $hairMesh["female"][12] = "female_shaggy_hair_ponytail";
- $hairMesh["female"][13] = "female_shaggy_hair";
- $hairMesh["female"][14] = "female_shaggy_ponytail";
- $hairMesh["female"][15] = "female_sideshave_hair";
- $hairMesh["female"][16] = "unisex_hair_afro";
- $hairMesh["female"][17] = "unisex_hair_dreads";
- $hairMesh["female"][18] = "unisex_hair_raider";
- $randMax = 11; if ($Gender == "female") $randMax = 18;
- $HairMesh = rand(1,$randMax);
- $HairMesh = $hairMesh[$Gender][$HairMesh];
- if ($HairMesh == "unisex_hair_afro") $HairOverlay = "unisex_hair_afro";
- if ($HairMesh == "unisex_hair_dreads") $HairOverlay = "unisex_hair_dreads";
- if ($HairMesh == "unisex_viking_braid") $HairOverlay = "unisex_viking_braid";
- $hairBase["male"][1] = "male_hair_overlay";
- $hairBase["male"][2] = "male_balding_overlay"; // disabled
- $hairBase["female"][1] = "female_hair_overlay";
- $randMax = 1; if ($Gender == "female") $randMax = 1;
- $HairBase = rand(1,$randMax);
- $HairBase = $hairBase[$Gender][$HairBase];
- $HeadHair = "
- <texture name=\"$HairBase\" color=\"hair\"/>
- <texture name=\"$Eyebrow\" color=\"0,0,0\"/>";
- $color = "hair";
- // gear_skullcap unisex_gear_ballcap unisex_gear_pressboy_cap/ballcap
- // helmets
- if (1 == 1) {
- $headArmor[1] = "unisex_armor_iron_helmet";
- $headArmor[2] = "female_armor_heavy_bandit_gasmask";
- $headArmor[3] = "unisex_gear_swat_helmet";
- $headArmor[4] = "unisex_gear_kevlar_helmet";
- $headArmor[5] = "unisex_armor_scrapmetal_helmet";
- $headArmor[6] = "unisex_gear_football_helmet";
- $headArmor[7] = "unisex_gear_mining_helmet";
- $armorHead = "";
- $helmet = rand(1,100);
- if ($helmet > 99 || $armorSet["head"] == 1)
- {
- $helmet = rand(1,7);
- $armorHead = $headArmor[$helmet];
- }
- if ($armorHead != "" && $armorHead != "female_armor_heavy_bandit_gasmask") $HeadHair = "";
- if ($armorHead == "unisex_armor_iron_helmet")
- {
- $HeadBaseMesh = "unisex_armor_iron_helmet";
- $Head = "unisex_armor_iron_helmet";
- }
- if ($armorHead == "female_armor_heavy_bandit_gasmask")
- {
- $HeadOuterMesh = "female_armor_heavy_bandit_gasmask";
- $HeadOuterOverlay = "unisex_bandit_armor";
- color("shade");
- $colorOuter = "$color,255";
- }
- if ($armorHead == "unisex_gear_football_helmet" ||
- $armorHead == "unisex_armor_scrapmetal_helmet" ||
- $armorHead == "unisex_gear_kevlar_helmet" ||
- $armorHead == "unisex_gear_mining_helmet" ||
- $armorHead == "unisex_gear_swat_helmet"
- )
- {
- $HairMesh = $armorHead;
- $HairOverlay = $armorHead;
- if ($armorHead == "unisex_gear_football_helmet") color("random");
- if ($armorHead != "unisex_gear_football_helmet") color("shade");
- }
- }
- // beards
- if (1 == 1) {
- // beard roll
- $HeadBeard = "
- <texture name=\"male_head_beard\" color=\"hair\"/>";
- if ($Gender == "male")
- {
- $beardRoll = rand(1,10);
- if ($beardRoll < 5 || $age == "child") $HeadBeard = "";
- if ($armorHead == "unisex_armor_iron_helmet") $HeadBeard = "";
- }
- if ($Gender == "female") $HeadBeard = "";
- }
- // male_torso_wound
- // female_head_wound
- // female_legs_wound
- // female_torso_wound
- $wound .= "
- <texture name=\"male_torso_wound\" color=\"111,11,11\"/>";
- $wound .= "
- <texture name=\"female_head_wound\" color=\"111,11,11\"/>";
- $woundX .= " <texture name=\"female_legs_wound\" color=\"188,11,11\"/>
- ";
- $headBase = " <part slot=\"head\" layer=\"base\" mesh=\"$HeadBaseMesh\">
- <texture name=\"$Head\" color=\"skin\"/>$Dirt$HeadHair$HeadBeard$wound
- </part>";
- $headInner = "
- <part slot=\"head\" layer=\"inner\" mesh=\"$HairMesh\">
- <texture name=\"$HairOverlay\" color=\"$color\"/>$Dirt
- </part>";
- $headOuter = "
- <part slot=\"head\" layer=\"outer\" mesh=\"$HeadOuterMesh\">
- <texture name=\"$HeadOuterOverlay\" color=\"$colorOuter\"/>$Dirt
- </part>";
- $headSet = $headBase;
- if ($armorHead != "unisex_armor_iron_helmet") $headSet .= $headInner;
- if ($armorHead == "female_armor_heavy_bandit_gasmask") $headSet .= $headOuter;
- }
- // face
- if (1 == 1) {
- $faceSet = "";
- if ($HeadBeard != "")
- {
- $beard[1] = "male_beard_walrus";
- $beard[2] = "male_beast_beard";
- $beard[3] = "male_shaggy_beard";
- $beard[4] = "male_beard_long_handlebar";
- $beard[5] = "male_mountain_man_beard";
- $beard[6] = "male_shaggy_goatee";
- $beard[7] = "male_regent_mustache";
- $beard[8] = "male_spaniard_goatee";
- $beard[9] = "male_wizard_beard";
- $beard[10] = "male_lawman_mustache";
- $beardRoll = sizeof($beard);
- $beardRoll = rand(1,$beardRoll);
- $Beard = $beard[$beardRoll];
- $faceSet = " <part slot=\"face\" layer=\"base\" mesh=\"$Beard\">
- <texture name=\"male_shaggy_hair\" color=\"hair\"/>
- </part>";
- }
- }
- // eyes
- if (1 == 1) {
- $baseEyes["male"][1] = "male_base_eyes";
- $baseEyes["male"][2] = "male_asian_eyes";
- $baseEyes["female"][1] = "female_base_eyes";
- $baseEyes["female"][2] = "female_base_eyes_pretty";
- $randMax = sizeof($baseEyes["male"]); if ($Gender == "female") $randMax = sizeof($baseEyes["female"]);
- $BaseEyes = rand(1,$randMax);
- $BaseEyes = $baseEyes[$Gender][$BaseEyes];
- $eyeRand = rand(1,100);
- if ($eyeRand > 50) $eyeColor = "255,255,255";
- if ($eyeRand <= 50) $eyeColor = "255,0,0";
- if ($eyeRand <= 20) $eyeColor = "255,55,55";
- $eyeBase = " <part slot=\"eyes\" layer=\"base\" mesh=\"$BaseEyes\">
- <texture name=\"unisex_eye_bloodshot\" color=\"$eyeColor\"/>
- </part>";
- $eyeSet = $eyeBase;
- // roll for glasses
- $gRoll = rand(1,10);
- if ($armorHead == "unisex_armor_scrapmetal_helmet" ||
- $armorHead == "female_armor_heavy_bandit_gasmask" ||
- $armorHead == "unisex_armor_iron_helmet") $gRoll = 0;
- if ($gRoll > 8)
- {
- // roll for type
- $max = 100;
- if ($age == "child") $max = 3;
- $gRoll = rand(1,$max);
- if ($gRoll < 11)
- {
- $InnerEyesMesh = "unisex_aviator_goggles";
- $InnerEyesOverlay = "unisex_aviator_goggles";
- }
- if ($gRoll > 10 && $gRoll < 71)
- {
- $InnerEyesMesh = "unisex_specs";
- $InnerEyesOverlay = "unisex_specs";
- }
- if ($gRoll > 70 && $gRoll < 81)
- {
- $InnerEyesMesh = "unisex_gear_goggles";
- $InnerEyesOverlay = "unisex_gear_goggles";
- }
- if ($gRoll > 80 && $gRoll < 96)
- {
- $InnerEyesMesh = "unisex_gear_shades";
- $InnerEyesOverlay = "unisex_gear_shades";
- }
- if ($gRoll > 95)
- {
- $InnerEyesMesh = "unisex_gear_nightvision_goggles";
- $InnerEyesOverlay = "unisex_gear_nightvision_goggles";
- }
- color("brightshade");
- $eyeInner = "
- <part slot=\"eyes\" layer=\"inner\" mesh=\"$InnerEyesMesh\">
- <texture name=\"$InnerEyesOverlay\" color=\"$color\"/>
- </part>";
- $eyeSet .= $eyeInner;
- }
- }
- // hands
- if (1 == 1) {
- $baseHands["male"][1] = "male_base_hands";
- $baseHands["male"][2] = "male_armor_cloth_hands";
- $baseHands["male"][3] = "male_plant_fiber_gloves";
- $baseHands["male"][4] = "male_armor_leather_gloves";
- $baseHands["male"][5] = "male_armor_hide_gloves";
- $baseHands["male"][6] = "male_armor_hazmat_hands";
- $baseHands["male"][7] = "male_armor_scrap_metal_hands";
- $baseHands["male"][8] = "male_armor_heavy_bandit_gloves";
- $baseHands["male"][9] = "male_armor_iron_gloves";
- $baseHands["male"][10] = "male_armor_kevlar_gloves";
- $baseHands["female"][1] = "female_base_hands";
- $baseHands["female"][2] = "female_armor_cloth_hands";
- $baseHands["female"][3] = "female_plant_fiber_gloves";
- $baseHands["female"][4] = "female_armor_leather_gloves";
- $baseHands["female"][5] = "female_armor_hide_gloves";
- $baseHands["female"][6] = "female_armor_hazmat_hands";
- $baseHands["female"][7] = "female_armor_scrap_metal_hands";
- $baseHands["female"][8] = "female_armor_heavy_bandit_gloves";
- $baseHands["female"][9] = "female_armor_iron_gloves";
- $baseHands["female"][10] = "female_armor_kevlar_gloves";
- $randStart = 1;
- $randMax = 1;
- $handRoll = rand(1,100);
- if ($handRoll > 95) $randMax = 6;
- if ($armorSet["hands"] == 1)
- {
- $randStart = 6;
- $randMax = sizeof($baseHands["male"]); if ($Gender == "female") $randMax = sizeof($baseHands["female"]);
- }
- $BaseHandsNum = rand($randStart,$randMax);
- $BaseHandsMesh = $baseHands[$Gender][$BaseHandsNum];
- $hands["male"][1][1] = "male_hands";
- $hands["male"][2][1] = "unisex_armor_cloth_hands";
- $hands["male"][3][1] = "unisex_fiberCloth_gloves";
- $hands["male"][4][1] = "male_armor_leather_gloves";
- $hands["male"][5][1] = "unisex_armor_hide_gloves";
- $hands["male"][6][1] = "male_armor_hazmat_gloves";
- $hands["male"][7][1] = "unisex_scrap_metal_armor";
- $hands["male"][8][1] = "unisex_bandit_armor";
- $hands["male"][9][1] = "male_armor_iron_gloves";
- $hands["male"][10][1] = "unisex_armor_kevlar_gloves";
- $hands["female"][1][1] = "female_hands";
- $hands["female"][2][1] = "unisex_armor_cloth_hands";
- $hands["female"][3][1] = "unisex_fiberCloth_gloves";
- $hands["female"][4][1] = "female_armor_leather_gloves";
- $hands["female"][5][1] = "unisex_armor_hide_gloves";
- $hands["female"][6][1] = "female_armor_hazmat_gloves";
- $hands["female"][7][1] = "unisex_scrap_metal_armor";
- $hands["female"][8][1] = "unisex_bandit_armor";
- $hands["female"][9][1] = "female_armor_iron_gloves";
- $hands["female"][10][1] = "unisex_armor_kevlar_gloves";
- $randMax = sizeof($hands[$Gender][$BaseLegsNum]);
- $baseHandsOverlay = rand(1,$randMax);
- $baseHandsOverlay = $hands[$Gender][$BaseHandsNum][$baseHandsOverlay];
- $color = "skin";
- if ($BaseHandsNum != 1) color("shade");
- $handSet = "";
- $handBase = " <part slot=\"hands\" layer=\"base\" mesh=\"$BaseHandsMesh\">
- <texture name=\"$baseHandsOverlay\" color=\"$color\"/>$Dirt
- </part>";
- $handSet = $handBase;
- if ($BaseHandsMesh == "male_armor_cloth_hands" ||
- $BaseHandsMesh == "female_armor_cloth_hands" ||
- $BaseHandsMesh == "male_plant_fiber_gloves" ||
- $BaseHandsMesh == "female_plant_fiber_gloves" ||
- $BaseHandsMesh == "male_armor_scrap_metal_hands" ||
- $BaseHandsMesh == "female_armor_scrap_metal_hands" ||
- $BaseHandsMesh == "male_armor_hide_gloves" ||
- $BaseHandsMesh == "female_armor_hide_gloves"
- )
- {
- $nakedHandsMesh = $baseHands["$Gender"][1];
- $nakedHandsOverlay = $hands["$Gender"][1][1];
- color("shade");
- $handBase = " <part slot=\"hands\" layer=\"base\" mesh=\"$nakedHandsMesh\">
- <texture name=\"$nakedHandsOverlay\" color=\"skin\"/>$Dirt
- </part>";
- $handInner = "
- <part slot=\"hands\" layer=\"inner\" mesh=\"$BaseHandsMesh\">
- <texture name=\"$baseHandsOverlay\" color=\"$color\"/>$Dirt
- </part>";
- $handSet = $handBase . $handInner;
- }
- }
- // chest
- if (1 == 1) {
- $baseChest["male"][1] = "male_base_chest";
- $baseChest["male"][2] = "male_shirt";
- $baseChest["male"][3] = "male_letter_jacket";
- $baseChest["male"][4] = "male_plaid_shirt";
- $baseChest["male"][5] = "male_clothes_army_shirt";
- $baseChest["male"][6] = "male_sweatshirt";
- $baseChestColor["male"][1] = "skin";
- $baseChestColor["male"][2] = "random";
- $baseChestColor["male"][3] = "random";
- $baseChestColor["male"][4] = "random";
- $baseChestColor["male"][5] = "random";
- $baseChestColor["male"][6] = "random";
- $baseChest["female"][1] = "female_base_chest";
- $baseChest["female"][2] = "female_shirt";
- $baseChest["female"][3] = "female_letter_jacket";
- $baseChest["female"][4] = "female_plaid_shirt";
- $baseChest["female"][5] = "female_clothes_army_shirt";
- $baseChest["female"][6] = "female_sweatshirt";
- $baseChestColor["female"][1] = "skin";
- $baseChestColor["female"][2] = "random";
- $baseChestColor["female"][3] = "random";
- $baseChestColor["female"][4] = "random";
- $baseChestColor["female"][5] = "random";
- $baseChestColor["female"][6] = "random";
- $randMax = sizeof($baseChest["male"]); if ($Gender == "female") $randMax = sizeof($baseChest["female"]);
- $BaseChestNum = rand(1,$randMax);
- $BaseChest = $baseChest[$Gender][$BaseChestNum];
- $torso["male"][1][1] = "male_torso";
- $torso["male"][2][1] = "unisex_shirt";
- $torso["male"][3][1] = "unisex_letter_jacket";
- $torso["male"][4][1] = "unisex_plaid_shirt";
- $torso["male"][5][1] = "unisex_clothes_army_shirt";
- $torso["male"][6][1] = "unisex_sweatshirt";
- $torso["female"][1][1] = "female_torso";
- $torso["female"][1][2] = "female_torso_nude";
- $torso["female"][2][1] = "unisex_shirt";
- $torso["female"][3][1] = "unisex_letter_jacket";
- $torso["female"][4][1] = "unisex_plaid_shirt";
- $torso["female"][5][1] = "unisex_clothes_army_shirt";
- $torso["female"][6][1] = "unisex_sweatshirt";
- $ChestBaseOverlay2 = "";
- // todo: suit jacket? -> no further chest wear
- // chance to add t-shirt or tanktop
- $tsChance = rand(1,10);
- if ($age == "child") $tsChance = rand(4,7);
- if ($tsChance > 3 && $BaseChestNum == 1)
- {
- color("random");
- $shirtType = "tshirt";
- if ($tsChance > 7) $shirtType = "tanktop";
- if ($Gender == "male") $ChestBaseOverlay2 = "
- <texture name=\"male_$shirtType\" color=\"$color,255\"/>";
- if ($Gender == "female") $ChestBaseOverlay2 = "
- <texture name=\"female_$shirtType\" color=\"$color,255\"/>";
- }
- $randMax = sizeof($torso[$Gender][$BaseChestNum]);
- $Torso = rand(1,$randMax);
- $Torso = $torso[$Gender][$BaseChestNum][$Torso];
- $color = $baseChestColor[$Gender][$BaseChestNum];
- if ($color == "random") color("random");
- $chestBase = " <part slot=\"chest\" layer=\"base\" mesh=\"$BaseChest\">
- <texture name=\"$Torso\" color=\"$color\"/>$ChestBaseOverlay2$Dirt
- </part>";
- // jacket
- //female_clothes_denim_jacket
- $innerChest["female"][1] = "female_jacket";
- $innerChest["female"][2] = "female_clothes_leather_duster";
- $innerChest["female"][3] = "female_coats_puffer_coat";
- $innerChest["female"][4] = "female_clothes_hide_poncho";
- $innerChest["male"][1] = "male_jacket";
- $innerChest["male"][2] = "male_clothes_leather_duster";
- $innerChest["male"][3] = "male_coats_puffer_coat";
- $innerChest["male"][4] = "male_clothes_hide_poncho";
- $innerChestColor[1] = "random";
- $innerChestColor[2] = "shade";
- $innerChestColor[3] = "random";
- $innerChestColor[4] = "shade";
- $randMax = sizeof($innerChest["male"]); if ($Gender == "female") $randMax = sizeof($innerChest["female"]);
- $InnerChestNum = rand(1,$randMax);
- $InnerChestMesh = $innerChest[$Gender][$InnerChestNum];
- $InnerChest[1] = "unisex_jacket";
- $InnerChest[2] = "unisex_clothes_leather_duster";
- $InnerChest[3] = "unisex_coat_puffer_coat";
- $InnerChest[4] = "unisex_clothes_hide_poncho";
- $InnerChestOverlay = $InnerChest[$InnerChestNum];
- color($innerChestColor[$InnerChestNum]);
- $chestInner = "
- <part slot=\"chest\" layer=\"inner\" mesh=\"$InnerChestMesh\">
- <texture name=\"$InnerChestOverlay\" color=\"$color\"/>$Dirt
- </part>";
- $chestSet = $chestBase;
- // outer chest
- $outerChest["male"][1] = "male_armor_cloth_chest";
- $outerChest["male"][2] = "male_armor_leather_chest";
- $outerChest["male"][3] = "male_armor_hide_chest";
- $outerChest["male"][4] = "male_armor_scrap_metal_chest";
- $outerChest["male"][5] = "male_armor_heavy_bandit_chest";
- $outerChest["male"][6] = "male_armor_iron_chest";
- $outerChest["male"][7] = "male_armor_kevlar_vest";
- $outerChest["female"][1] = "female_armor_cloth_chest";
- $outerChest["female"][2] = "female_armor_leather_chest";
- $outerChest["female"][3] = "female_armor_hide_chest";
- $outerChest["female"][4] = "female_armor_scrap_metal_chest";
- $outerChest["female"][5] = "female_armor_heavy_bandit_chest";
- $outerChest["female"][6] = "female_armor_iron_chest";
- $outerChest["female"][7] = "female_armor_kevlar_vest";
- $randMin = 1;
- $randMax = 3;
- if ($armorSet["chest"] == 1)
- {
- $randMin = 4;
- $randMax = sizeof($outerChest["male"]); if ($Gender == "female") $randMax = sizeof($outerChest["female"]);
- }
- $OuterChestNum = rand($randMin,$randMax);
- $OuterChestMesh = $outerChest[$Gender][$OuterChestNum];
- $outChest["male"][1][1] = "unisex_armor_cloth_chest";
- $outChest["male"][2][1] = "male_armor_leather_chest";
- $outChest["male"][3][1] = "male_armor_hide_chest";
- $outChest["male"][4][1] = "unisex_scrap_metal_armor";
- $outChest["male"][5][1] = "unisex_bandit_armor";
- $outChest["male"][6][1] = "male_armor_iron_chest";
- $outChest["male"][7][1] = "unisex_armor_kevlar_vest";
- $outChest["female"][1][1] = "unisex_armor_cloth_chest";
- $outChest["female"][2][1] = "female_armor_leather_chest";
- $outChest["female"][3][1] = "female_armor_hide_chest";
- $outChest["female"][4][1] = "unisex_scrap_metal_armor";
- $outChest["female"][5][1] = "unisex_bandit_armor";
- $outChest["female"][6][1] = "female_armor_iron_chest";
- $outChest["female"][7][1] = "unisex_armor_kevlar_vest";
- $OuterChestOverlay = $outChest[$Gender][$OuterChestNum][1];
- // roll for jacket
- $jacketRoll = rand(1,10);
- if ($BaseChestNum == 3) $jacketRoll = 1;
- $chestArmorRoll = rand(1,100);
- if ($armorSet["chest"] == 1)
- {
- $jacketRoll = 1;
- $chestArmorRoll = 100;
- }
- if ($jacketRoll > 5) $chestSet .= $chestInner;
- if ($jacketRoll < 6 && $chestArmorRoll > 99)
- {
- $chestOuter = "
- <part slot=\"chest\" layer=\"outer\" mesh=\"$OuterChestMesh\">
- <texture name=\"$OuterChestOverlay\" color=\"$color\"/>$Dirt
- </part>";
- $chestSet .= $chestOuter;
- }
- }
- // legs
- if (1 == 1) {
- $baseLegsMesh["male"][1] = "male_base_legs";
- $baseLegsMesh["male"][2] = "male_clothes_denim_pants";
- $baseLegsMesh["male"][3] = "male_clothes_army_pants";
- $baseLegsMesh["male"][4] = "male_clothes_goth_pants";
- $baseLegsMesh["male"][5] = "male_clothes_suit_pants";
- $baseLegsColor["male"][1] = "skin";
- $baseLegsColor["male"][2] = "random";
- $baseLegsColor["male"][3] = "random";
- $baseLegsColor["male"][4] = "random";
- $baseLegsColor["male"][5] = "darkshade";
- $baseLegsMesh["female"][1] = "female_base_legs";
- $baseLegsMesh["female"][2] = "female_clothes_denim_pants";
- $baseLegsMesh["female"][3] = "female_clothes_army_pants";
- $baseLegsMesh["female"][4] = "female_clothes_goth_pants";
- $baseLegsMesh["female"][5] = "female_clothes_suit_pants";
- $baseLegsColor["female"][1] = "skin";
- $baseLegsColor["female"][2] = "random";
- $baseLegsColor["female"][3] = "random";
- $baseLegsColor["female"][4] = "random";
- $baseLegsColor["female"][5] = "darkshade";
- $randMax = sizeof($baseLegsMesh["male"]); if ($Gender == "female") $randMax = sizeof($baseLegsMesh["female"]);
- $BaseLegsNum = rand(1,$randMax);
- if ($age == "child" && $BaseLegsNum == 1) $BaseLegsNum = rand(2,$randMax);
- $BaseLegsMesh = $baseLegsMesh[$Gender][$BaseLegsNum];
- $baseLegsOverlay["male"][1][1] = "male_legs";
- $baseLegsOverlay["male"][2][1] = "male_pants_01";
- $baseLegsOverlay["male"][3][1] = "unisex_clothes_army_pants";
- $baseLegsOverlay["male"][4][1] = "unisex_clothes_goth_pants";
- $baseLegsOverlay["male"][5][1] = "unisex_clothes_suit_pants";
- $baseLegsOverlay["female"][1][1] = "female_legs";
- $baseLegsOverlay["female"][1][2] = "female_legs_nude";
- $baseLegsOverlay["female"][2][1] = "female_pants_01";
- $baseLegsOverlay["female"][3][1] = "unisex_clothes_army_pants";
- $baseLegsOverlay["female"][4][1] = "unisex_clothes_goth_pants";
- $baseLegsOverlay["female"][5][1] = "unisex_clothes_suit_pants";
- $randMax = sizeof($baseLegsOverlay[$Gender][$BaseLegsNum]);
- $BaseLegsOverlay = rand(1,$randMax);
- $BaseLegsOverlay = $baseLegsOverlay[$Gender][$BaseLegsNum][$BaseLegsOverlay];
- $color = $baseLegsColor[$Gender][$BaseLegsNum];
- if ($color != "skin") color("$color");
- $legBase = " <part slot=\"legs\" layer=\"base\" mesh=\"$BaseLegsMesh\">
- <texture name=\"$BaseLegsOverlay\" color=\"$color\"/>$Dirt
- </part>";
- // roll for skirt
- $skirtRand = rand(1,10);
- if ($BaseLegsNum == 1 && $Gender == "female" && $skirtRand > 5)
- {
- $InnerLegsMesh = "female_skirt_short";
- $longSkirt = rand(1,2);
- if ($longSkirt == 2) $InnerLegsMesh = "female_skirt";
- $InnerLegsOverlay = "unisex_skirt";
- color("random");
- }
- $legInner = "
- <part slot=\"legs\" layer=\"inner\" mesh=\"$InnerLegsMesh\">
- <texture name=\"$InnerLegsOverlay\" color=\"$color\"/>$Dirt
- </part>";
- $legSet = $legBase;
- if ($InnerLegsMesh != "") $legSet .= $legInner;
- // inner legs
- if (1 == 2) {
- // move skirt here too + shorts
- $outerLegsMesh["male"][1] = "male_plant_fiber_pants";
- $outerLegsMesh["female"][1] = "female_plant_fiber_pants";
- $outerLegsOverlay["male"][1][1] = "unisex_fiberCloth_legs";
- $outerLegsOverlay["female"][1][1] = "unisex_fiberCloth_legs";
- $outerLegsMesh["female"][5] = "female_armor_hazmat_legs";
- $outerLegsMesh["male"][5] = "male_armor_hazmat_legs";
- $outerLegsOverlay["male"][5][1] = "male_armor_hazmat_pants";
- $outerLegsOverlay["female"][5][1] = "female_armor_hazmat_pants";
- }
- // outer legs
- if (1 == 1) {
- // outer legs / mesh
- $outerLegsMesh["male"][1] = "male_armor_cloth_legs";
- $outerLegsMesh["male"][2] = "male_armor_hide_legs";
- $outerLegsMesh["male"][3] = "male_armor_leather_pants";
- $outerLegsMesh["male"][4] = "male_armor_scrap_metal_legs";
- $outerLegsMesh["male"][5] = "male_armor_heavy_bandit_legarmor";
- $outerLegsMesh["male"][6] = "male_armor_iron_pants";
- $outerLegsMesh["male"][7] = "male_armor_kevlar_legarmor";
- $outerLegsMesh["female"][1] = "female_armor_cloth_legs";
- $outerLegsMesh["female"][2] = "female_armor_hide_legs";
- $outerLegsMesh["female"][3] = "female_armor_leather_pants";
- $outerLegsMesh["female"][4] = "female_armor_scrap_metal_legs";
- $outerLegsMesh["female"][5] = "female_armor_heavy_bandit_legarmor";
- $outerLegsMesh["female"][6] = "female_armor_iron_pants";
- $outerLegsMesh["female"][7] = "female_armor_kevlar_legarmor";
- // outer legs / overlay
- $outerLegsOverlay["male"][1][1] = "unisex_armor_cloth_legs";
- $outerLegsOverlay["male"][2][1] = "unisex_armor_hide_pants";
- $outerLegsOverlay["male"][3][1] = "male_armor_leather_pants";
- $outerLegsOverlay["male"][4][1] = "unisex_scrap_metal_armor";
- $outerLegsOverlay["male"][5][1] = "unisex_bandit_armor";
- $outerLegsOverlay["male"][6][1] = "male_armor_iron_pants";
- $outerLegsOverlay["male"][7][1] = "unisex_armor_kevlar_legarmor";
- $outerLegsOverlay["female"][1][1] = "unisex_armor_cloth_legs";
- $outerLegsOverlay["female"][2][1] = "unisex_armor_hide_pants";
- $outerLegsOverlay["female"][3][1] = "female_armor_leather_pants";
- $outerLegsOverlay["female"][4][1] = "unisex_scrap_metal_armor";
- $outerLegsOverlay["female"][5][1] = "unisex_bandit_armor";
- $outerLegsOverlay["female"][6][1] = "female_armor_iron_pants";
- $outerLegsOverlay["female"][7][1] = "unisex_armor_kevlar_legarmor";
- // todo -> hazmat to base / fiber pants to inner with naked legs on base
- // outer legs / selection
- $randMin = 1;
- $randMax = 3;
- if ($armorSet["legs"] == 1)
- {
- $randMin = 3;
- $randMax = sizeof($outerLegsMesh["male"]); if ($Gender == "female") $randMax = sizeof($outerLegsMesh["female"]);
- }
- $OuterLegsNum = rand($randMin,$randMax);
- $OuterLegsMesh = $outerLegsMesh[$Gender][$OuterLegsNum];
- $randMax = sizeof($outerLegsOverlay[$Gender][$OuterLegsNum]);
- $OuterLegsOverlay = rand(1,$randMax);
- $OuterLegsOverlay = $outerLegsOverlay[$Gender][$OuterLegsNum][$OuterLegsOverlay];
- // outer legs / construction
- color("brightshade");
- $legsOuter = "
- <part slot=\"legs\" layer=\"outer\" mesh=\"$OuterLegsMesh\">
- <texture name=\"$OuterLegsOverlay\" color=\"$color\"/>$Dirt
- </part>";
- // outer legs / addition
- $outerLegR = rand(1,100);
- if ($armorSet["legs"] == 1) $outerLegR = 100;
- if ($skirtRand > 5) $outerLegR = 1;
- if ($outerLegR > 95) $legSet .= $legsOuter;
- }
- }
- // feet
- if (1 == 1) {
- $baseFeetMesh["male"][1] = "male_base_feet";
- $baseFeetMesh["male"][2] = "male_worn_boots";
- $baseFeetMesh["male"][3] = "male_clothes_dress_shoes";
- $baseFeetMesh["male"][4] = "male_goth_boots";
- $baseFeetMesh["male"][5] = "male_boot02";
- $baseFeetMesh["male"][6] = "male_running_shoes";
- $baseFeetMesh["male"][7] = "male_armor_cloth_feet";
- $baseFeetMesh["male"][8] = "male_armor_hazmat_feet";
- $baseFeetMesh["male"][9] = "male_armor_leather_feet";
- $baseFeetMesh["male"][10] = "male_armor_scrap_metal_feet";
- $baseFeetMesh["male"][11] = "male_armor_heavy_bandit_feet";
- $baseFeetMesh["male"][12] = "male_armor_iron_boots";
- $baseFeetMesh["male"][13] = "male_armor_kevlar_boots";
- $baseFeetColor["male"][1] = "skin";
- $baseFeetColor["male"][2] = "random";
- $baseFeetColor["male"][3] = "random";
- $baseFeetColor["male"][4] = "random";
- $baseFeetColor["male"][5] = "random";
- $baseFeetColor["male"][6] = "random";
- $baseFeetColor["male"][7] = "shade";
- $baseFeetColor["male"][8] = "shade";
- $baseFeetColor["male"][9] = "shade";
- $baseFeetColor["male"][10] = "shade";
- $baseFeetColor["male"][11] = "shade";
- $baseFeetColor["male"][12] = "shade";
- $baseFeetColor["male"][13] = "shade";
- $baseFeetMesh["female"][1] = "female_base_feet";
- $baseFeetMesh["female"][2] = "female_worn_boots";
- $baseFeetMesh["female"][3] = "female_clothes_dress_shoes";
- $baseFeetMesh["female"][4] = "female_goth_boots";
- $baseFeetMesh["female"][5] = "female_boot02";
- $baseFeetMesh["female"][6] = "female_running_shoes";
- $baseFeetMesh["female"][7] = "female_armor_cloth_feet";
- $baseFeetMesh["female"][8] = "female_armor_hazmat_feet";
- $baseFeetMesh["female"][9] = "female_armor_leather_feet";
- $baseFeetMesh["female"][10] = "female_armor_scrap_metal_feet";
- $baseFeetMesh["female"][11] = "female_armor_heavy_bandit_feet";
- $baseFeetMesh["female"][12] = "female_armor_iron_boots";
- $baseFeetMesh["female"][13] = "female_armor_kevlar_boots";
- $baseFeetColor["female"][1] = "skin";
- $baseFeetColor["female"][2] = "shade";
- $baseFeetColor["female"][3] = "random";
- $baseFeetColor["female"][4] = "shade";
- $baseFeetColor["female"][5] = "shade";
- $baseFeetColor["female"][6] = "random";
- $baseFeetColor["female"][7] = "shade";
- $baseFeetColor["female"][8] = "shade";
- $baseFeetColor["female"][9] = "shade";
- $baseFeetColor["female"][10] = "shade";
- $baseFeetColor["female"][11] = "shade";
- $baseFeetColor["female"][12] = "shade";
- $baseFeetColor["female"][13] = "shade";
- $randMin = 1;
- $randMax = 6;
- $feetRoll = rand(1,100);
- if ($feetRoll > 90) $randMax = 9;
- if ($armorSet["feet"] == 1)
- {
- $randMin = 9;
- $randMax = sizeof($baseFeetMesh["male"]); if ($Gender == "female") $randMax = sizeof($baseFeetMesh["female"]);
- }
- $BaseFeetMeshNum = rand($randMin,$randMax);
- $BaseFeetMesh = $baseFeetMesh[$Gender][$BaseFeetMeshNum];
- $feet["male"][1][1] = "male_feet";
- $feet["male"][2][1] = "male_worn_boots";
- $feet["male"][3][1] = "unisex_clothes_dress_shoes";
- $feet["male"][4][1] = "unisex_goth_boots";
- $feet["male"][5][1] = "unisex_boot02";
- $feet["male"][6][1] = "unisex_running_shoes";
- $feet["male"][7][1] = "unisex_armor_cloth_feet";
- $feet["male"][8][1] = "male_armor_hazmat_boots";
- $feet["male"][9][1] = "male_armor_leather_boots";
- $feet["male"][10][1] = "unisex_armor_scrap_metal_feet";
- $feet["male"][11][1] = "unisex_bandit_armor";
- $feet["male"][12][1] = "male_armor_iron_boots";
- $feet["male"][13][1] = "unisex_armor_kevlar_boots";
- $feet["female"][1][1] = "female_feet";
- $feet["female"][2][1] = "female_worn_boots";
- $feet["female"][3][1] = "unisex_clothes_dress_shoes";
- $feet["female"][4][1] = "unisex_goth_boots";
- $feet["female"][5][1] = "unisex_boot02";
- $feet["female"][6][1] = "unisex_running_shoes";
- $feet["female"][7][1] = "female_armor_cloth_feet";
- $feet["female"][8][1] = "female_armor_hazmat_boots";
- $feet["female"][9][1] = "female_armor_leather_boots";
- $feet["female"][10][1] = "unisex_armor_scrap_metal_feet";
- $feet["female"][11][1] = "unisex_bandit_armor";
- $feet["female"][12][1] = "female_armor_iron_boots";
- $feet["female"][13][1] = "unisex_armor_kevlar_boots";
- if (1 == 2) {
- $baseFeetMesh["male"][10] = "male_armor_hide_boots";
- $baseFeetMesh["female"][10] = "female_armor_hide_boots";
- $feet["male"][10][1] = "unisex_armor_hide_boots";
- $feet["female"][10][1] = "unisex_armor_hide_boots";
- // unisex_fiberCloth_shoes
- }
- $randMax = sizeof($feet[$Gender][$BaseFeetMeshNum]);
- $Feet = rand(1,$randMax);
- $Feet = $feet[$Gender][$BaseFeetMeshNum][$Feet];
- $color = $baseFeetColor[$Gender][$BaseFeetMeshNum];
- if ($color != "skin")
- {
- color("$color");
- $color .= ",250";
- }
- $feetBase = " <part slot=\"feet\" layer=\"base\" mesh=\"$BaseFeetMesh\">
- <texture name=\"$Feet\" color=\"$color\"/>$Dirt
- </part>";
- $feetSet = $feetBase;
- }
- // back
- if (1 == 1) {
- color("random");
- $backSet = " <part slot=\"back\" layer=\"base\" mesh=\"unisex_gear_backpack01\">
- <texture name=\"unisex_gear_backpack01\" color=\"$color\"/>
- </part>";
- $bpRoll = rand(1,100);
- $max = 3;
- if ($age == "child") $max = 10;
- if ($bpRoll > $max) $backSet = "";
- }
- // dna
- if (1 == 1) {
- $height = rand(0,1000); $height = $height / 1000;
- if ($age == "child") { $height = rand(2000,2500); $height = ($height / 1000) * -1; }
- $headSize = rand(300,1000); $headSize = $headSize / 1000;
- if ($age == "child") { $headSize = rand(1800,2000); $headSize = $headSize / 1000; }
- $headWidth = rand(0,1000); $headWidth = $headWidth / 1000;
- $handsSize = rand(0,1000); $handsSize = $handsSize / 1000;
- $feetSize = rand(500,1000); $feetSize = $feetSize / 1000;
- $muscle = rand(0,1000); $muscle = $muscle / 1000;
- if ($age == "child") { $muscle = rand(1,500); $muscle = $muscle / 1000; }
- $weight = rand(0,1000); $weight = $weight / 1000;
- if ($age == "child") { $weight = rand(400,700); $weight = $weight / 1000; }
- $gluteusSize = rand(0,1000); $gluteusSize = $gluteusSize / 1000;
- $earsSize = rand(0,1000); $earsSize = $earsSize / 1000;
- $earsPosition = rand(0,1000); $earsPosition = $earsPosition / 1000;
- $earsRotation = rand(0,1000); $earsRotation = $earsRotation / 1000;
- $noseSize = rand(0,1000); $noseSize = $noseSize / 1000;
- $noseCurve = rand(0,1000); $noseCurve = $noseCurve / 1000;
- $noseWidth = rand(0,1000); $noseWidth = $noseWidth / 1000;
- $noseInclination = rand(0,1000); $noseInclination = $noseInclination / 1000;
- $nosePosition = rand(0,1000); $nosePosition = $nosePosition / 1000;
- $nosePronounced = rand(0,1000); $nosePronounced = $nosePronounced / 1000;
- $noseFlatten = rand(0,1000); $noseFlatten = $noseFlatten / 1000;
- $chinSize = rand(0,1000); $chinSize = $chinSize / 1000;
- $chinPronounced = rand(0,1000); $chinPronounced = $chinPronounced / 1000;
- $chinPosition = rand(0,1000); $chinPosition = $chinPosition / 1000;
- $mandibleSize = rand(0,1000); $mandibleSize = $mandibleSize / 1000;
- $jawsSize = rand(0,1000); $jawsSize = $jawsSize / 1000;
- $jawsPosition = rand(0,1000); $jawsPosition = $jawsPosition / 1000;
- $cheekSize = rand(0,1000); $cheekSize = $cheekSize / 1000;
- $cheekPosition = rand(0,1000); $cheekPosition = $cheekPosition / 1000;
- $lowCheekPronounced = rand(0,1000); $lowCheekPronounced = $lowCheekPronounced / 1000;
- $lowCheekPosition = rand(0,1000); $lowCheekPosition = $lowCheekPosition / 1000;
- $foreheadSize = rand(0,1000); $foreheadSize = $foreheadSize / 1000;
- $foreheadPosition = rand(0,1000); $foreheadPosition = $foreheadPosition / 1000;
- if ($age == "child") $foreheadPosition = 0;
- $lipsSize = rand(0,1000); $lipsSize = $lipsSize / 1000;
- $mouthSize = rand(0,1000); $mouthSize = $mouthSize / 1000;
- $eyeRotation = rand(0,1000); $eyeRotation = $eyeRotation / 1000;
- $eyeSize = rand(0,1000); $eyeSize = $eyeSize / 1000;
- $breastSize = rand(-400,1500); $breastSize = $breastSize / 1000;
- if ($age == "child") $breastSize = -10;
- }
- $MaleTrueFalse = "true";
- if ($Gender == "female") $MaleTrueFalse = "false";
- $composer = " <archetype name=\"$name\" male=\"$MaleTrueFalse\" hair_color=\"$hair\" eye_color=\"99,62,14\" skin_color=\"$skin\" type=\"Player\" stance=\"Like\" voice_set=\"trader\">
- <base_mesh_parts>
- $headSet
- $eyeSet
- $faceSet
- $handSet
- $chestSet
- $legSet
- $feetSet
- $backSet
- </base_mesh_parts>
- <preview_mesh_parts>
- </preview_mesh_parts>
- <expression blink=\"false\" blink_duration=\"0.15\" blink_min_delay=\"5\" blink_max_delay=\"15\" saccades=\"true\">
- <gene name=\"neckUp_Down\" value=\"0\"/>
- <gene name=\"neckLeft_Right\" value=\"0\"/>
- <gene name=\"neckTiltLeft_Right\" value=\"0\"/>
- <gene name=\"headUp_Down\" value=\"0\"/>
- <gene name=\"headLeft_Right\" value=\"0\"/>
- <gene name=\"headTiltLeft_Right\" value=\"0\"/>
- <gene name=\"jawOpen_Close\" value=\"0\"/>
- <gene name=\"jawForward_Back\" value=\"0\"/>
- <gene name=\"jawLeft_Right\" value=\"0\"/>
- <gene name=\"mouthLeft_Right\" value=\"0\"/>
- <gene name=\"mouthUp_Down\" value=\"0\"/>
- <gene name=\"mouthNarrow_Pucker\" value=\"0\"/>
- <gene name=\"tongueOut\" value=\"0\"/>
- <gene name=\"tongueCurl\" value=\"0\"/>
- <gene name=\"tongueUp_Down\" value=\"0\"/>
- <gene name=\"tongueLeft_Right\" value=\"0\"/>
- <gene name=\"tongueWide_Narrow\" value=\"0\"/>
- <gene name=\"leftMouthSmile_Frown\" value=\"0\"/>
- <gene name=\"rightMouthSmile_Frown\" value=\"0\"/>
- <gene name=\"leftLowerLipUp_Down\" value=\"0\"/>
- <gene name=\"rightLowerLipUp_Down\" value=\"0\"/>
- <gene name=\"leftUpperLipUp_Down\" value=\"0\"/>
- <gene name=\"rightUpperLipUp_Down\" value=\"0\"/>
- <gene name=\"leftCheekPuff_Squint\" value=\"0\"/>
- <gene name=\"rightCheekPuff_Squint\" value=\"0\"/>
- <gene name=\"noseSneer\" value=\"0\"/>
- <gene name=\"leftEyeOpen_Close\" value=\"0\"/>
- <gene name=\"rightEyeOpen_Close\" value=\"0\"/>
- <gene name=\"leftEyeUp_Down\" value=\"0\"/>
- <gene name=\"rightEyeUp_Down\" value=\"0\"/>
- <gene name=\"leftEyeIn_Out\" value=\"0\"/>
- <gene name=\"rightEyeIn_Out\" value=\"0\"/>
- <gene name=\"browsIn\" value=\"0\"/>
- <gene name=\"leftBrowUp_Down\" value=\"0\"/>
- <gene name=\"rightBrowUp_Down\" value=\"0\"/>
- <gene name=\"midBrowUp_Down\" value=\"0\"/>
- </expression>
- <dna>
- <gene name=\"height\" value=\"$height\"/>
- <gene name=\"headSize\" value=\"$headSize\"/>
- <gene name=\"headWidth\" value=\"$headWidth\"/>
- <gene name=\"handsSize\" value=\"$handsSize\"/>
- <gene name=\"feetSize\" value=\"$feetSize\"/>
- <gene name=\"muscle\" value=\"$muscle\"/>
- <gene name=\"weight\" value=\"$weight\"/>
- <gene name=\"gluteusSize\" value=\"$gluteusSize\"/>
- <gene name=\"earsSize\" value=\"$earsSize\"/>
- <gene name=\"earsPosition\" value=\"$earsPosition\"/>
- <gene name=\"earsRotation\" value=\"$earsRotation\"/>
- <gene name=\"noseSize\" value=\"$noseSize\"/>
- <gene name=\"noseCurve\" value=\"$noseCurve\"/>
- <gene name=\"noseWidth\" value=\"$noseWidth\"/>
- <gene name=\"noseInclination\" value=\"$noseInclination\"/>
- <gene name=\"nosePosition\" value=\"$nosePosition\"/>
- <gene name=\"nosePronounced\" value=\"$nosePronounced\"/>
- <gene name=\"noseFlatten\" value=\"$noseFlatten\"/>
- <gene name=\"chinSize\" value=\"$chinSize\"/>
- <gene name=\"chinPronounced\" value=\"$chinPronounced\"/>
- <gene name=\"chinPosition\" value=\"$chinPosition\"/>
- <gene name=\"mandibleSize\" value=\"$mandibleSize\"/>
- <gene name=\"jawsSize\" value=\"$jawsSize\"/>
- <gene name=\"jawsPosition\" value=\"$jawsPosition\"/>
- <gene name=\"cheekSize\" value=\"$cheekSize\"/>
- <gene name=\"cheekPosition\" value=\"$cheekPosition\"/>
- <gene name=\"lowCheekPronounced\" value=\"$lowCheekPronounced\"/>
- <gene name=\"lowCheekPosition\" value=\"$lowCheekPosition\"/>
- <gene name=\"foreheadSize\" value=\"$foreheadSize\"/>
- <gene name=\"foreheadPosition\" value=\"$foreheadPosition\"/>
- <gene name=\"lipsSize\" value=\"$lipsSize\"/>
- <gene name=\"mouthSize\" value=\"$mouthSize\"/>
- <gene name=\"eyeRotation\" value=\"$eyeRotation\"/>
- <gene name=\"eyeSize\" value=\"$eyeSize\"/>
- <gene name=\"breastSize\" value=\"$breastSize\"/>
- </dna>
- </archetype>
- ";
- if ($mode == 1)
- {
- $afile = "C:/Program Files (x86)/Steam/steamapps/common/7 Days To Die - Archetype/Data/Config/archetypes.xml";
- $af = file($afile); $af = implode($af);
- $afX = explode("<archetype name=\"Test2",$af);
- $afX = explode("</archetype>",$afX[1]);
- $afOld = "<archetype name=\"Test2" . $afX[0] . "</archetype>";
- $composer = trim($composer);
- $af = str_replace($afOld,$composer,$af);
- $fx = fopen ($afile,"w"); fwrite($fx,$af);
- echo "<textarea style=\"width:1200px; height:2000px;\">$composer</textarea>";
- }
- }
- archetype($atname,1,"","adult","health");
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement