SHARE
TWEET

holo.c

a guest Jun 17th, 2019 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // This modded Hologram class displays the white transparent items when building.
  2. modded class Hologram
  3. {
  4.    
  5.     override string ProjectionBasedOnParent()
  6.     {
  7.         ItemBase item_in_hands = ItemBase.Cast(m_Player.GetHumanInventory().GetEntityInHands());   
  8.        
  9.         // Base Items.
  10.         if (item_in_hands.IsInherited(WoodenCrateModded))
  11.             return "WoodenCrateModded";
  12.  
  13.         if (item_in_hands.IsInherited(Locked_Safe))
  14.             return "Locked_Safe";
  15.  
  16.         if (item_in_hands.IsInherited(WeaponRack))
  17.             return "WeaponRack";
  18.  
  19.         if (item_in_hands.IsInherited(WoodenCrossKit))
  20.             return "WoodenCrossFull";
  21.  
  22.         if (item_in_hands.IsInherited(Laptop))
  23.             return "Laptop";
  24.  
  25.         if (item_in_hands.IsInherited(NormalLadder_Packed))
  26.             return "NormalLadder";
  27.        
  28.         // Tents.
  29.         if (item_in_hands.IsInherited(CivilianTentCamo))
  30.             return "CivilianTentCamoDeployed";
  31.        
  32.         if (item_in_hands.IsInherited(CivilianTentWoodland))
  33.             return "CivilianTentWoodlandCamoDeployed";
  34.        
  35.         if (item_in_hands.IsInherited(CivilianTentBlack))
  36.             return "CivilianTentBlackDeployed";
  37.  
  38.         if (item_in_hands.IsInherited(CivilianTentBlue))
  39.             return "CivilianTentBlueDeployed";
  40.        
  41.         if (item_in_hands.IsInherited(CivilianTentGrey))
  42.             return "CivilianTentGreyDeployed";
  43.  
  44.         if (item_in_hands.IsInherited(CivilianTentRed))
  45.             return "CivilianTentRedDeployed";
  46.        
  47.         // Sleeping bags.
  48.         if (item_in_hands.IsInherited(SleepingBagPacked))
  49.             return "SleepingBagDeployed";
  50.    
  51.         if (item_in_hands.IsInherited(SleepingBagPacked_Black))
  52.             return "SleepingBagDeployed_Black";
  53.  
  54.         if (item_in_hands.IsInherited(SleepingBagPacked_Blue))
  55.             return "SleepingBagDeployed_Blue";
  56.    
  57.         if (item_in_hands.IsInherited(SleepingBagPacked_Grey))
  58.             return "SleepingBagDeployed_Grey";
  59.  
  60.         if (item_in_hands.IsInherited(SleepingBagPacked_Red))
  61.             return "SleepingBagDeployed_Red";
  62.  
  63.         // Pallisade Gate.
  64.         if (item_in_hands.IsInherited(PallisadeGateKit))
  65.             return "PallisadeGateFull";
  66.  
  67.  
  68.         return super.ProjectionBasedOnParent();
  69.     }
  70. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top