assetRendererConst.py (18980B)
1 #Embedded file name: C:\BuildAgent\work\20d73f1b24eed06e\eve\release\V24.01\eve\client\script\ui\login\charcreation\assetRendererConst.py 2 import charactercreator.const as ccConst 3 from math import pi 4 pi05 = pi * 0.5 5 DRESSCODE = {ccConst.eyes: (ccConst.eyebrows,), 6 ccConst.eyeshadow: (ccConst.eyebrows,), 7 ccConst.eyelashes: (ccConst.eyebrows,), 8 ccConst.eyeliner: (ccConst.eyebrows,), 9 ccConst.lipstick: (ccConst.eyebrows,), 10 ccConst.blush: (ccConst.eyebrows,), 11 ccConst.hair: (ccConst.topmiddle, ccConst.eyebrows), 12 ccConst.eyebrows: (ccConst.hair,), 13 ccConst.bottomouter: (ccConst.topmiddle, ccConst.feet), 14 ccConst.topmiddle: (ccConst.bottomouter, ccConst.eyebrows, ccConst.hair), 15 ccConst.topouter: (ccConst.bottomouter, 16 ccConst.topmiddle, 17 ccConst.eyebrows, 18 ccConst.hair), 19 ccConst.outer: (ccConst.bottomouter, 20 ccConst.topmiddle, 21 ccConst.eyebrows, 22 ccConst.hair), 23 ccConst.glasses: (ccConst.topmiddle, ccConst.eyebrows, ccConst.hair), 24 ccConst.mask: (ccConst.topmiddle, ccConst.eyebrows, ccConst.hair), 25 ccConst.beard: (ccConst.hair, ccConst.eyebrows, ccConst.topmiddle), 26 ccConst.feet: (ccConst.bottomouter,), 27 ccConst.p_earslow: (ccConst.eyebrows, ccConst.hair), 28 ccConst.p_earshigh: (ccConst.eyebrows, ccConst.hair), 29 ccConst.p_nose: (ccConst.eyebrows, ccConst.hair), 30 ccConst.p_nostril: (ccConst.eyebrows, ccConst.hair), 31 ccConst.p_brow: (ccConst.eyebrows, ccConst.hair), 32 ccConst.p_lips: (ccConst.eyebrows,), 33 ccConst.t_head: (ccConst.eyebrows, ccConst.hair), 34 ccConst.s_head: (ccConst.eyebrows, ccConst.hair), 35 ccConst.t_armleft: (ccConst.eyebrows, 36 ccConst.hair, 37 ccConst.topmiddle, 38 ccConst.bottomouter), 39 ccConst.t_armright: (ccConst.eyebrows, 40 ccConst.hair, 41 ccConst.topmiddle, 42 ccConst.bottomouter), 43 ccConst.augm_body: (ccConst.bottomouter, ccConst.eyebrows, ccConst.hair)} 44 SETUP = {ccConst.eyes: ('fj_eyeballRight', (0.15, 45 0, 46 0, 47 pi05 + 0.15, 48 pi05 - 0.07), None), 49 ccConst.lipstick: ('fj_lip_lower_center', (0.2, 50 0, 51 0, 52 pi05 + 0.4, 53 pi05 + 0.05), None), 54 ccConst.eyeshadow: ('fj_eyeballRight', (0.2, 55 0, 56 0, 57 pi05 + 0.3, 58 pi05 + 0.05), None), 59 ccConst.eyelashes: ('fj_eyeballRight', (0.15, 60 0, 61 0, 62 pi05 + 0.3, 63 pi05 + 0.05), None), 64 ccConst.eyeliner: ('fj_eyeballRight', (0.15, 65 0, 66 0, 67 pi05 + 0.3, 68 pi05 + 0.05), None), 69 ccConst.eyebrows: ('fj_eyeballRight', (0.2, 70 0, 71 0, 72 pi05 + 0.3, 73 pi05 + 0.05), None), 74 ccConst.hair: ('Head_End', (1.1, 75 -0.14, 76 0, 77 pi05 - 0.3, 78 pi05 + 0.3), None), 79 ccConst.beard: ('fj_lip_lower_center', (0.4, 80 0, 81 -0.015, 82 pi05 + 0.1, 83 pi05 + 0.3), None), 84 ccConst.blush: ('Head', (0.6, 85 0, 86 0, 87 pi05 - 0.3, 88 pi05 + 0.3), 'SoftCenterRimSides'), 89 ccConst.glasses: ('Head', (0.65, 90 0, 91 -0.02, 92 pi05 - 0.2, 93 pi05 + 0.3), None), 94 ccConst.augm_face: ('Head', (0.72, 95 0.046, 96 0.01, 97 pi05 + 0.5, 98 pi05), None), 99 ccConst.mask: ('Head', (0.72, 100 0.046, 101 0.01, 102 pi05 + 0.5, 103 pi05), None), 104 ccConst.topmiddle: ('Spine3', (3.0, 105 0, 106 0, 107 pi05 - 0.3, 108 pi05 + 0.3), None), 109 ccConst.topouter: ('Spine3', (3.0, 110 0, 111 0, 112 pi05 - 0.3, 113 pi05 + 0.3), None), 114 ccConst.outer: ('Spine1', (3.5, 115 0, 116 0, 117 pi05 - 0.3, 118 pi05 + 0.3), None), 119 ccConst.augm_body: ('Spine1', (3.5, 120 0, 121 0, 122 pi05 - 0.3, 123 pi05 + 0.3), None), 124 ccConst.bottomouter: ('LeftLeg', (3.5, 125 0, 126 0, 127 pi05 + 0.5, 128 pi05 + 0.3), None), 129 ccConst.bottommiddle: ('LeftLeg', (3.5, 130 0, 131 0, 132 pi05 + 0.5, 133 pi05 + 0.3), None), 134 ccConst.feet: ('LeftFoot', (1.5, 135 0, 136 0, 137 pi05 + 0.5, 138 pi05 + 0.3), 'shoes'), 139 ccConst.p_earslow: ('fj_ear_wiggle', (0.4, 140 -0.025, 141 0, 142 pi + 0.1, 143 pi05), None), 144 ccConst.p_earshigh: ('fj_ear_wiggle', (0.27, 145 -0.005, 146 0, 147 pi + 0.2, 148 pi05), None), 149 ccConst.p_nose: ('fj_nose_left', (0.25, 150 0.02, 151 -0.01, 152 pi05 - 0.2, 153 pi05 + 0.3), None), 154 ccConst.p_nostril: ('fj_nose_left', (0.2, 155 -0.01, 156 -0.01, 157 pi05 + 0.35, 158 pi05 + 0.2), None), 159 ccConst.p_brow: ('fj_eyeballRight', (0.18, 160 0.005, 161 -0.005, 162 pi05 + 0.15, 163 pi05 - 0.07), None), 164 ccConst.p_lips: ('fj_lip_lower_center', (0.2, 165 0, 166 0, 167 pi05 + 0.4, 168 pi05 + 0.05), None), 169 ccConst.p_chin: ('fj_lip_lower_center', (0.2, 170 0, 171 0, 172 pi05 + 0.4, 173 pi05 + 0.05), None), 174 ccConst.t_head: ('Head_End', (0.8, 175 -0.14, 176 0, 177 pi05 - 0.1, 178 pi05), None), 179 ccConst.s_head: ('Head_End', (0.65, 180 -0.14, 181 0, 182 pi05 - 0.05, 183 pi05), None), 184 ccConst.t_armright: ('Head', (1.4, 185 -0.35, 186 -0.15, 187 pi * 4.5 / 6 + 0.5, 188 pi05), None), 189 ccConst.t_armleft: ('Head', (1.4, 190 -0.35, 191 0.15, 192 pi * 1 / 6 + 0.5, 193 pi05), None), 194 ccConst.pr_armright: ('Head', (1.8, 195 -0.32, 196 -0.05, 197 pi * 4.55 / 6 + 0.5, 198 pi05), None), 199 ccConst.pr_armleft: ('Head', (1.8, 200 -0.32, 201 0.05, 202 pi * 1 / 6 + 0.5, 203 pi05), None), 204 (ccConst.t_armright, ccConst.GENDERID_MALE): ('Head', (1.4, 205 -0.3, 206 -0.1, 207 pi * 4.5 / 6, 208 pi / 2), None), 209 (ccConst.t_armleft, ccConst.GENDERID_MALE): ('Head', (1.4, 210 -0.3, 211 0.15, 212 pi * 1 / 6, 213 pi / 2), None), 214 (ccConst.pr_armright, ccConst.GENDERID_MALE): ('Head', (1.4, 215 -0.3, 216 -0.1, 217 pi * 4.5 / 6, 218 pi / 2), None), 219 (ccConst.pr_armleft, ccConst.GENDERID_MALE): ('Head', (1.4, 220 -0.3, 221 0.15, 222 pi * 1 / 6, 223 pi / 2), None), 224 (ccConst.t_armright, ccConst.GENDERID_FEMALE): ('Head', (1.4, 225 -0.35, 226 -0.15, 227 pi * 4.5 / 6 + 0.5, 228 pi05), None), 229 (ccConst.t_armleft, ccConst.GENDERID_FEMALE): ('Head', (1.8, 230 -0.32, 231 0.05, 232 pi * 1 / 6 + 0.5, 233 pi05), None), 234 (ccConst.pr_armright, ccConst.GENDERID_FEMALE): ('Head', (1.4, 235 -0.35, 236 -0.15, 237 pi * 4.5 / 6 + 0.5, 238 pi05), None), 239 (ccConst.pr_armleft, ccConst.GENDERID_FEMALE): ('Head', (1.8, 240 -0.32, 241 0.05, 242 pi * 1 / 6 + 0.5, 243 pi05), None)} 244 DOLL_MODIFIERS = [ccConst.t_head, 245 ccConst.t_armleft, 246 ccConst.t_armright, 247 ccConst.augm_face, 248 ccConst.eyeshadow, 249 ccConst.eyeliner, 250 ccConst.lipstick, 251 ccConst.s_head, 252 ccConst.augm_body] 253 FEMALE_EYEBROWS_ID = 172 254 MALE_EYEBROWS_ID = 107 255 FEMALE_TOPMIDDLE_ID = 3540 256 MALE_TOPMIDDLE_ID = 3594 257 FEMALE_TOPMIDDLE_TANK_ID = 3482 258 MALE_TOPMIDDLE_TANK_ID = 3590 259 FEMALE_BOTTOMOUTER_ID = 14894 260 MALE_BOTTOMOUTER_ID = 14970 261 FEMALE_HAIR_ID = 421 262 MALE_HAIR_ID = 296 263 FEMALE_BOOTS_ID = 8651 264 MALE_BOOTS_ID = 1068 265 DRESSCODE_CATEGORIES = (ccConst.eyebrows, 266 ccConst.topmiddle, 267 ccConst.feet, 268 ccConst.bottomouter, 269 ccConst.hair) 270 DRESSCODE_FEMALE_DEFAULT = (FEMALE_EYEBROWS_ID, 271 FEMALE_TOPMIDDLE_ID, 272 FEMALE_BOTTOMOUTER_ID, 273 FEMALE_HAIR_ID, 274 FEMALE_BOOTS_ID) 275 DRESSCODE_MALE_DEFAULT = (MALE_EYEBROWS_ID, 276 MALE_TOPMIDDLE_ID, 277 MALE_BOTTOMOUTER_ID, 278 MALE_HAIR_ID, 279 MALE_BOOTS_ID) 280 DRESSCODE_FEMALE_TTANK = (FEMALE_EYEBROWS_ID, 281 FEMALE_TOPMIDDLE_TANK_ID, 282 FEMALE_BOTTOMOUTER_ID, 283 FEMALE_HAIR_ID, 284 FEMALE_BOOTS_ID) 285 DRESSCODE_MALE_TTANK = (MALE_EYEBROWS_ID, 286 MALE_TOPMIDDLE_TANK_ID, 287 MALE_BOTTOMOUTER_ID, 288 MALE_HAIR_ID, 289 MALE_BOOTS_ID) 290 DRESSCODE_FEMALE_NOTOP = (FEMALE_EYEBROWS_ID, 291 FEMALE_BOTTOMOUTER_ID, 292 FEMALE_HAIR_ID, 293 FEMALE_BOOTS_ID) 294 DRESSCODE_MALE_NOTOP = (MALE_EYEBROWS_ID, 295 MALE_BOTTOMOUTER_ID, 296 MALE_HAIR_ID, 297 MALE_BOOTS_ID) 298 DRESSCODE_CUSTOM_BY_CATEGORY = {ccConst.t_armleft: (DRESSCODE_FEMALE_TTANK, DRESSCODE_MALE_TTANK), 299 ccConst.t_armright: (DRESSCODE_FEMALE_TTANK, DRESSCODE_MALE_TTANK), 300 ccConst.augm_body: (DRESSCODE_FEMALE_NOTOP, DRESSCODE_MALE_NOTOP)} 301 DRESSCODEINDEX = {ccConst.hair: 'shortcut'} 302 TUCKINDEX = {ccConst.bottomouter: 1} 303 EXAGGERATE = [(ccConst.blush, ccConst.GENDERID_MALE), (ccConst.eyeliner, ccConst.GENDERID_MALE), (ccConst.lipstick, ccConst.GENDERID_MALE)] 304 SCARGROUPS = {('scars/head/heroscar01', 'v0', ''): 'r_eye', 305 ('scars/head/heroscar09', '', ''): 'r_eye', 306 ('scars/head/heroscar01', 'v1', ''): 'l_eye', 307 ('scars/head/heroscar09', 'v1', ''): 'l_eye', 308 ('scars/head/heroscar02', '', ''): 'mouth', 309 ('scars/head/heroscar02', 'v1', ''): 'mouth', 310 ('scars/head/heroscar05', '', ''): 'forhead', 311 ('scars/head/heroscar05', 'v1', ''): 'forhead', 312 ('scars/head/heroscar18', '', ''): 'forhead', 313 ('scars/head/heroscar11', '', ''): 'forhead', 314 ('scars/head/heroscar11', 'v1', ''): 'forhead', 315 ('scars/head/heroscar18', 'v1', ''): 'forhead', 316 ('scars/head/heroscar08', '', ''): 'chin', 317 ('scars/head/heroscar08', 'v1', ''): 'chin', 318 ('scars/head/heroscar10', '', ''): 'nose', 319 ('scars/head/heroscar10', 'v1', ''): 'nose', 320 ('scars/head/heroscar12', '', ''): 'nose', 321 ('scars/head/heroscar12', 'v1', ''): 'nose', 322 ('scars/head/heroscar06', 'v1', ''): 'r_side', 323 ('scars/head/heroscar13', '', ''): 'r_side', 324 ('scars/head/heroscar14', '', ''): 'r_side', 325 ('scars/head/heroscar15', 'v1', ''): 'r_side', 326 ('scars/head/heroscar16', '', ''): 'r_side', 327 ('scars/head/heroscar17', '', ''): 'r_side', 328 ('scars/head/heroscar03', '', ''): 'r_side', 329 ('scars/head/heroscar04', 'v1', ''): 'r_side', 330 ('scars/head/heroscar07', 'v1', ''): 'r_side', 331 ('scars/head/heroscar03', 'v1', ''): 'l_side', 332 ('scars/head/heroscar04', '', ''): 'l_side', 333 ('scars/head/heroscar07', '', ''): 'l_side', 334 ('scars/head/heroscar06', '', ''): 'l_side', 335 ('scars/head/heroscar13', 'v1', ''): 'l_side', 336 ('scars/head/heroscar14', 'v1', ''): 'l_side', 337 ('scars/head/heroscar15', '', ''): 'l_side', 338 ('scars/head/heroscar16', 'v1', ''): 'l_side', 339 ('scars/head/heroscar17', 'v1', ''): 'l_side'} 340 SCARCAMERASETINGS = {'l_eye': ('fj_eyeballLeft', (0.25, 341 0, 342 0, 343 pi05 + 0.15, 344 pi05 - 0.07), 'SoftCenterRimSides'), 345 'r_eye': ('fj_eyeballRight', (0.25, 346 0, 347 0, 348 pi05 + 0.15, 349 pi05 - 0.07), 'SoftCenterRimSides'), 350 'mouth': ('fj_lip_lower_center', (0.2, 351 0, 352 0, 353 pi05 + 0.4, 354 pi05 + 0.05), 'SoftCenterRimSides'), 355 'l_cheek': ('Head', (0.6, 356 0, 357 0, 358 pi05 - 0.6, 359 pi05 + 0.3), 'softLeft'), 360 'r_cheek': ('Head', (0.6, 361 0, 362 0, 363 pi05 + 0.5, 364 pi05 + 0.3), 'softRight'), 365 'l_side': ('Head', (0.65, 366 0.025, 367 -0.05, 368 pi05 - 0.9, 369 pi05 + 0.3), 'softLeft'), 370 'r_side': ('Head', (0.65, 371 0.025, 372 0.05, 373 pi05 + 1.0, 374 pi05 + 0.3), 'softRight'), 375 'nose': ('fj_nose_left', (0.25, 376 0.015, 377 -0.01, 378 pi05 - 0.2, 379 pi05 + 0.3), 'SoftCenterRimSides'), 380 'chin': ('fj_lip_lower_center', (0.25, 381 0, 382 0, 383 pi05 + 0.4, 384 pi05 + 0.05), 'SoftCenterRimSides'), 385 'forhead': ('fj_foreheadLower_centerLeft', (0.35, 386 0, 387 -0.018, 388 pi05 - 0.05, 389 pi05), 'SoftCenterRimSides')} 390 MALE_MANNEQUIN = 'res:/Graphics/Character/DNAFiles/Mannequin/MaleMannequin.prs' 391 FEMALE_MANNEQUIN = 'res:/Graphics/Character/DNAFiles/Mannequin/FemaleMannequin.prs' 392 LIGHTLOCATION = 'res:/Graphics/Character/Global/PaperdollSettings/LightSettings/assetRenderer/' 393 NORMAL_LIGHT_SETTINGS = 'res:/Graphics/Character/Global/PaperdollSettings/LightSettings/assetRenderer/Normal.red' 394 NORMAL_LIGHT_COLOR = 'res:/Graphics/Character/Global/PaperdollSettings/LightSettings/Normal.red' 395 PIERCINGCATEGORIES = (ccConst.p_lips, 396 ccConst.p_brow, 397 ccConst.p_nostril, 398 ccConst.p_nose, 399 ccConst.p_earshigh, 400 ccConst.p_earslow, 401 ccConst.p_chin) 402 PIERCINGRIGHTGROUPS = {ccConst.p_earslow: ('fj_ear_wiggle', (0.3, 403 -0.01, 404 0, 405 pi + 0.1, 406 pi05), 'softRight'), 407 ccConst.p_earshigh: ('fj_ear_wiggle', (0.27, 408 0, 409 0, 410 pi + 0.2, 411 pi05), 'softRight'), 412 ccConst.p_nose: ('fj_nose_left', (0.25, 413 0.02, 414 -0.01, 415 pi05 - 0.2, 416 pi05 + 0.3), 'SoftCenterRimSides'), 417 ccConst.p_nostril: ('fj_nose_left', (0.2, 418 -0.01, 419 -0.01, 420 pi05 + 0.35, 421 pi05 + 0.2), 'SoftCenterRimSides'), 422 ccConst.p_brow: ('fj_eyeballRight', (0.18, 423 0.005, 424 -0.005, 425 pi05 + 0.15, 426 pi05 - 0.07), 'SoftCenterRimSides'), 427 ccConst.p_lips: ('fj_lip_lower_center', (0.2, 428 0, 429 0, 430 pi05 + 0.4, 431 pi05 + 0.05), 'SoftCenterRimSides'), 432 ccConst.p_chin: ('fj_lip_lower_center', (0.2, 433 0, 434 0, 435 pi05 + 0.4, 436 pi05 + 0.05), 'SoftCenterRimSides')} 437 PIERCINGLEFTGROUPS = {ccConst.p_earslow: ('fj_ear_wiggle', (0.3, 438 -0.01, 439 0, 440 -0.06, 441 pi05), 'softLeft'), 442 ccConst.p_earshigh: ('fj_ear_wiggle', (0.27, 443 0, 444 0, 445 -0.08, 446 pi05), 'softLeft'), 447 ccConst.p_nose: ('fj_nose_left', (0.25, 448 0.02, 449 -0.01, 450 pi05 - 0.2, 451 pi05 + 0.3), 'SoftCenterRimSides'), 452 ccConst.p_nostril: ('fj_nose_left', (0.2, 453 -0.01, 454 -0.01, 455 pi05 + 0.35, 456 pi05 + 0.2), 'SoftCenterRimSides'), 457 ccConst.p_brow: ('fj_eyeballLeft', (0.18, 458 0.005, 459 +0.005, 460 pi05 + 0.15, 461 pi05 - 0.07), 'SoftCenterRimSides'), 462 ccConst.p_lips: ('fj_lip_lower_center', (0.2, 463 0, 464 0, 465 pi05 + 0.4, 466 pi05 + 0.05), 'SoftCenterRimSides'), 467 ccConst.p_chin: ('fj_lip_lower_center', (0.2, 468 0, 469 0, 470 pi05 + 0.4, 471 pi05 + 0.05), 'SoftCenterRimSides')} 472 PIERCINGPAIRGROUPS = {ccConst.p_earslow: ('Head_End', (0.65, 473 -0.14, 474 0, 475 pi05 - 0.05, 476 pi05), 'SoftCenterRimSides'), 477 ccConst.p_earshigh: ('Head_End', (0.65, 478 -0.14, 479 0, 480 pi05 - 0.05, 481 pi05), 'SoftCenterRimSides'), 482 ccConst.p_nose: ('fj_nose_left', (0.25, 483 0.02, 484 -0.01, 485 pi05 - 0.2, 486 pi05 + 0.3), 'SoftCenterRimSides'), 487 ccConst.p_nostril: ('fj_nose_left', (0.2, 488 -0.01, 489 -0.01, 490 pi05 + 0.35, 491 pi05 + 0.2), 'SoftCenterRimSides'), 492 ccConst.p_brow: ('Head_End', (0.65, 493 -0.14, 494 0, 495 pi05 - 0.05, 496 pi05), 'SoftCenterRimSides'), 497 ccConst.p_lips: ('fj_lip_lower_center', (0.2, 498 0, 499 0, 500 pi05 + 0.4, 501 pi05 + 0.05), 'SoftCenterRimSides'), 502 ccConst.p_chin: ('fj_lip_lower_center', (0.2, 503 0, 504 0, 505 pi05 + 0.4, 506 pi05 + 0.05), 'SoftCenterRimSides')}