5 if( !super.CanPutInCargo(parent) ) {
return false;}
15 if(!super.CanPutAsAttachment(parent)) {
return false;}
29 override void SwitchItemSelectionTextureEx(EItemManipulationContext context,
Param par =
null)
31 super.SwitchItemSelectionTextureEx(context, par);
33 if (context == EItemManipulationContext.ATTACHING || context == EItemManipulationContext.UPDATE)
35 Param1<PlayerBase> data = Param1<PlayerBase>.Cast(par);
43 int selection_idx = -1;
50 if (player.FindAttachmentBySlotName(
"Body"))
52 show_selections.Insert(
"camoMale_big_a");
53 show_selections.Insert(
"camoMale_big_b");
54 show_selections.Insert(
"camoFemale_big_a");
55 show_selections.Insert(
"camoFemale_big_b");
57 hide_selections.Insert(
"camoMale_small_a");
58 hide_selections.Insert(
"camoMale_small_b");
59 hide_selections.Insert(
"camoFemale_small_a");
60 hide_selections.Insert(
"camoFemale_small_b");
65 hide_selections.Insert(
"camoMale_big_a");
66 hide_selections.Insert(
"camoMale_big_b");
67 hide_selections.Insert(
"camoFemale_big_a");
68 hide_selections.Insert(
"camoFemale_big_b");
70 show_selections.Insert(
"camoMale_small_a");
71 show_selections.Insert(
"camoMale_small_b");
72 show_selections.Insert(
"camoFemale_small_a");
73 show_selections.Insert(
"camoFemale_small_b");
77 for (i = 0; i < show_selections.Count(); i++)
79 selection_idx = GetHiddenSelectionIndex(show_selections[i]);
80 texture = GetHiddenSelectionsData().GetHiddenSelectionsTextures()[selection_idx];
81 SetObjectTexture( selection_idx, texture );
84 for (i = 0; i < hide_selections.Count(); i++)
86 selection_idx = GetHiddenSelectionIndex(hide_selections[i]);
87 SetObjectTexture( selection_idx,
"" );