Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // This modded Hologram class displays the white transparent items when building.
- modded class Hologram
- {
- override string ProjectionBasedOnParent()
- {
- ItemBase item_in_hands = ItemBase.Cast(m_Player.GetHumanInventory().GetEntityInHands());
- // Base Items.
- if (item_in_hands.IsInherited(WoodenCrateModded))
- return "WoodenCrateModded";
- if (item_in_hands.IsInherited(Locked_Safe))
- return "Locked_Safe";
- if (item_in_hands.IsInherited(WeaponRack))
- return "WeaponRack";
- if (item_in_hands.IsInherited(WoodenCrossKit))
- return "WoodenCrossFull";
- if (item_in_hands.IsInherited(Laptop))
- return "Laptop";
- if (item_in_hands.IsInherited(NormalLadder_Packed))
- return "NormalLadder";
- // Tents.
- if (item_in_hands.IsInherited(CivilianTentCamo))
- return "CivilianTentCamoDeployed";
- if (item_in_hands.IsInherited(CivilianTentWoodland))
- return "CivilianTentWoodlandCamoDeployed";
- if (item_in_hands.IsInherited(CivilianTentBlack))
- return "CivilianTentBlackDeployed";
- if (item_in_hands.IsInherited(CivilianTentBlue))
- return "CivilianTentBlueDeployed";
- if (item_in_hands.IsInherited(CivilianTentGrey))
- return "CivilianTentGreyDeployed";
- if (item_in_hands.IsInherited(CivilianTentRed))
- return "CivilianTentRedDeployed";
- // Sleeping bags.
- if (item_in_hands.IsInherited(SleepingBagPacked))
- return "SleepingBagDeployed";
- if (item_in_hands.IsInherited(SleepingBagPacked_Black))
- return "SleepingBagDeployed_Black";
- if (item_in_hands.IsInherited(SleepingBagPacked_Blue))
- return "SleepingBagDeployed_Blue";
- if (item_in_hands.IsInherited(SleepingBagPacked_Grey))
- return "SleepingBagDeployed_Grey";
- if (item_in_hands.IsInherited(SleepingBagPacked_Red))
- return "SleepingBagDeployed_Red";
- // Pallisade Gate.
- if (item_in_hands.IsInherited(PallisadeGateKit))
- return "PallisadeGateFull";
- return super.ProjectionBasedOnParent();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement