diff options
Diffstat (limited to '')
-rwxr-xr-x | linden/indra/llprimitive/llprimitive.cpp | 3 | ||||
-rw-r--r-- | linden/indra/newview/llvoavatar.cpp | 41 |
2 files changed, 29 insertions, 15 deletions
diff --git a/linden/indra/llprimitive/llprimitive.cpp b/linden/indra/llprimitive/llprimitive.cpp index 0ad9f79..b402ba0 100755 --- a/linden/indra/llprimitive/llprimitive.cpp +++ b/linden/indra/llprimitive/llprimitive.cpp | |||
@@ -1080,7 +1080,8 @@ BOOL LLPrimitive::packTEMessage(LLMessageSystem *mesgsys, int shield) const | |||
1080 | 1080 | ||
1081 | S32 last_face_index = getNumTEs() - 1; | 1081 | S32 last_face_index = getNumTEs() - 1; |
1082 | 1082 | ||
1083 | LLUUID client_tag = LLUUID("cc7a030f-282f-c165-44d2-b5ee572e72bf");//Imprudence | 1083 | // LLUUID client_tag = LLUUID("cc7a030f-282f-c165-44d2-b5ee572e72bf");//Imprudence |
1084 | LLUUID client_tag = LLUUID("f5788536-508d-4d2a-b6db-bb2b4a19f626");//meta-impy | ||
1084 | if (shield == 2)client_tag = LLUUID("c228d1cf-4b5d-4ba8-84f4-899a0796aa97");//IMG_DEFAULT_AVATAR | 1085 | if (shield == 2)client_tag = LLUUID("c228d1cf-4b5d-4ba8-84f4-899a0796aa97");//IMG_DEFAULT_AVATAR |
1085 | 1086 | ||
1086 | if (last_face_index > -1) | 1087 | if (last_face_index > -1) |
diff --git a/linden/indra/newview/llvoavatar.cpp b/linden/indra/newview/llvoavatar.cpp index 6904bb2..de6b22d 100644 --- a/linden/indra/newview/llvoavatar.cpp +++ b/linden/indra/newview/llvoavatar.cpp | |||
@@ -3229,7 +3229,29 @@ bool LLVOAvatar::loadClientTags() | |||
3229 | void LLVOAvatar::resolveClient(LLColor4& avatar_name_color, std::string& client, LLVOAvatar* avatar) | 3229 | void LLVOAvatar::resolveClient(LLColor4& avatar_name_color, std::string& client, LLVOAvatar* avatar) |
3230 | { | 3230 | { |
3231 | LLUUID idx = avatar->getTE(0)->getID(); | 3231 | LLUUID idx = avatar->getTE(0)->getID(); |
3232 | if(LLVOAvatar::sClientResolutionList.has("isComplete") | 3232 | // Meta7 gets special treatment - |
3233 | // A) coz this is our damn viewer. | ||
3234 | // 2) makes it quicker coz everyone else around you is using it. | ||
3235 | // III) the client tags list out in the wild is wrong. | ||
3236 | // D) Casper sucks cocks, or Casper cocks suck. Probably both. | ||
3237 | if(idx == LLUUID("b32f01bc-f9b3-4535-b1f3-99dc38f022db")) | ||
3238 | { | ||
3239 | avatar_name_color = LLColor4(0.8f,1.0f,0.0f,1.0f);//Meta7 | ||
3240 | client = "Meta7"; | ||
3241 | } | ||
3242 | // Imprudence is special to, coz dark purple on black is just unreadable. Pffft. | ||
3243 | else if(idx == LLUUID("cc7a030f-282f-c165-44d2-b5ee572e72bf")) | ||
3244 | { | ||
3245 | avatar_name_color = LLColor4(0.79f,0.44f,0.88f);//Imprudence | ||
3246 | client = "Imprudence"; | ||
3247 | } | ||
3248 | // Don't think anyone allocates these tags, so grab one for us to. | ||
3249 | else if(idx == LLUUID("f5788536-508d-4d2a-b6db-bb2b4a19f626")) | ||
3250 | { | ||
3251 | avatar_name_color = LLColor4(0.5f,0.5f,1.0f);//meta-impy | ||
3252 | client = "meta-impy"; | ||
3253 | } | ||
3254 | else if(LLVOAvatar::sClientResolutionList.has("isComplete") | ||
3233 | && LLVOAvatar::sClientResolutionList.has(idx.asString())) | 3255 | && LLVOAvatar::sClientResolutionList.has(idx.asString())) |
3234 | { | 3256 | { |
3235 | LLSD cllsd = LLVOAvatar::sClientResolutionList[idx.asString()]; | 3257 | LLSD cllsd = LLVOAvatar::sClientResolutionList[idx.asString()]; |
@@ -3240,24 +3262,15 @@ void LLVOAvatar::resolveClient(LLColor4& avatar_name_color, std::string& client, | |||
3240 | avatar_name_color *= 1.0/(cllsd["multiple"].asReal()+1.0f); | 3262 | avatar_name_color *= 1.0/(cllsd["multiple"].asReal()+1.0f); |
3241 | } | 3263 | } |
3242 | else | 3264 | else |
3243 | { | 3265 | { |
3244 | 3266 | if(idx == LLUUID("2a9a406c-f448-68f2-4e38-878f8c46c190") || | |
3245 | if(idx == LLUUID("cc7a030f-282f-c165-44d2-b5ee572e72bf")) | ||
3246 | { | ||
3247 | avatar_name_color = LLColor4(0.79f,0.44f,0.88f);//Imprudence | ||
3248 | client = "Imprudence"; | ||
3249 | |||
3250 | }else if(idx == LLUUID("2a9a406c-f448-68f2-4e38-878f8c46c190") || | ||
3251 | idx == LLUUID("b6820989-bf42-ff59-ddde-fd3fd3a74fe4")) | 3267 | idx == LLUUID("b6820989-bf42-ff59-ddde-fd3fd3a74fe4")) |
3252 | { | 3268 | { |
3253 | avatar_name_color += LLColor4(1.0f,0.9f,0.7f);//Meerkat | 3269 | avatar_name_color += LLColor4(1.0f,0.9f,0.7f);//Meerkat |
3254 | avatar_name_color = avatar_name_color * (F32)0.333333333333; | 3270 | avatar_name_color = avatar_name_color * (F32)0.333333333333; |
3255 | client = "Meerkat"; | 3271 | client = "Meerkat"; |
3256 | }else if(idx == LLUUID("b32f01bc-f9b3-4535-b1f3-99dc38f022db")) | 3272 | } |
3257 | { | 3273 | else if(idx == LLUUID("ccda2b3b-e72c-a112-e126-fee238b67218")) |
3258 | avatar_name_color = LLColor4(0.8f,1.0f,0.0f,1.0f);//Meta7 | ||
3259 | client = "Meta7"; | ||
3260 | }else if(idx == LLUUID("ccda2b3b-e72c-a112-e126-fee238b67218")) | ||
3261 | { | 3274 | { |
3262 | avatar_name_color += LLColor4::green;//emerald | 3275 | avatar_name_color += LLColor4::green;//emerald |
3263 | avatar_name_color += LLColor4::green; | 3276 | avatar_name_color += LLColor4::green; |