-
Автор темы
- #1
material:
Bones:
if (!::strcmp(ClassName, "BugMelee") && ::strstr(Name, "Bug_Melee")) return m_pSkeleton->GetJointIdByName("$bugs_range_hitpoint1");
if (!::strcmp(ClassName, "BugMelee") && ::strstr(Name, "Bug_Kamikaze")) return m_pSkeleton->GetJointIdByName("Sphere001");
if (!::strcmp(ClassName, "BugRanged") && ::strstr(Name, "Bug_Range")) return m_pSkeleton->GetJointIdByName("$physics_Bip01_Spine");
if (!::strcmp(ClassName, "TurretBug") && ::strstr(Name, "TurretFloor")) return m_pSkeleton->GetJointIdByName("$physicsproxy_03");
Material:
if (!::strcmp(ClassName, "BugMelee") && ::strstr(Name, "Bug_Melee")) return pGameRules->GetHitMaterialId("mat_head_arachnid");
if (!::strcmp(ClassName, "BugMelee") && ::strstr(Name, "Bug_Kamikaze")) return pGameRules->GetHitMaterialId("mat_head_arachnid");
if (!::strcmp(ClassName, "BugRanged") && ::strstr(Name, "Bug_Range")) return pGameRules->GetHitMaterialId("mat_head_arachnid");
if (!::strcmp(ClassName, "TurretBug") && ::strstr(Name, "TurretFloor")) return pGameRules->GetHitMaterialId("mat_head_arachnid");
Последнее редактирование: