1666{
1668
1670
1672
1674
1680
1681
1682
1688
1694
1696
1700
1701
1703 {
1705
1706
1707 RegisterNetSyncVariableInt( "m_SyncParts01" );
1708 RegisterNetSyncVariableInt( "m_SyncParts02" );
1709 RegisterNetSyncVariableInt( "m_SyncParts03" );
1710 RegisterNetSyncVariableInt( "m_InteractedPartId" );
1711 RegisterNetSyncVariableInt( "m_PerformedActionId" );
1712 RegisterNetSyncVariableBool( "m_HasBase" );
1713
1714
1716
1717 if (ConfigIsExisting("hybridAttachments"))
1718 {
1721 }
1722 if (ConfigIsExisting("mountables"))
1723 {
1726 }
1727
1729 }
1730
1732 {
1733 super.EEDelete(parent);
1734
1736 {
1737 areaDamage.Destroy();
1738 }
1739
1740 }
1741
1743 {
1744 return "disableBaseDamage";
1745 }
1746
1748 {
1749 return true;
1750 }
1751
1753 {
1754 return EInventoryIconVisibility.HIDE_VICINITY;
1755 }
1756
1758 {
1759 super.InitItemSounds();
1760
1764
1769 }
1770
1772 {
1773 return "putDown_FenceKit_SoundSet";
1774 }
1775
1777 {
1778 return "Shelter_Site_Build_Loop_SoundSet";
1779 }
1780
1781
1783 {
1785 {
1786 SetSynchDirty();
1787 }
1788 }
1789
1791 {
1793 super.OnVariablesSynchronized();
1794
1796 }
1797
1799 {
1800
1802
1803
1805
1806
1808 }
1809
1810
1812 {
1813
1814 int offset;
1815 int mask;
1816
1817 if ( part_id >= 1 && part_id <= 31 )
1818 {
1819 offset = part_id - 1;
1820 mask = 1 << offset;
1821
1823 }
1824 else if ( part_id >= 32 && part_id <= 62 )
1825 {
1826 offset = ( part_id % 32 );
1827 mask = 1 << offset;
1828
1830 }
1831 else if ( part_id >= 63 && part_id <= 93 )
1832 {
1833 offset = ( part_id % 63 );
1834 mask = 1 << offset;
1835
1837 }
1838 }
1839
1841 {
1842
1843 int offset;
1844 int mask;
1845
1846 if ( part_id >= 1 && part_id <= 31 )
1847 {
1848 offset = part_id - 1;
1849 mask = 1 << offset;
1850
1852 }
1853 else if ( part_id >= 32 && part_id <= 62 )
1854 {
1855 offset = ( part_id % 32 );
1856 mask = 1 << offset;
1857
1859 }
1860 else if ( part_id >= 63 && part_id <= 93 )
1861 {
1862 offset = ( part_id % 63 );
1863 mask = 1 << offset;
1864
1866 }
1867 }
1868
1870 {
1871
1872 int offset;
1873 int mask;
1874
1875 if ( part_id >= 1 && part_id <= 31 )
1876 {
1877 offset = part_id - 1;
1878 mask = 1 << offset;
1879
1881 {
1882 return true;
1883 }
1884 }
1885 else if ( part_id >= 32 && part_id <= 62 )
1886 {
1887 offset = ( part_id % 32 );
1888 mask = 1 << offset;
1889
1891 {
1892 return true;
1893 }
1894 }
1895 else if ( part_id >= 63 && part_id <= 93 )
1896 {
1897 offset = ( part_id % 63 );
1898 mask = 1 << offset;
1899
1901 {
1902 return true;
1903 }
1904 }
1905
1906 return false;
1907 }
1908
1910 {
1913 }
1914
1916 {
1917
1920 }
1921
1923 {
1925 {
1928
1929 switch( build_action_id )
1930 {
1934 }
1935 }
1936 }
1937
1938
1940 {
1942 bool is_base = part.
IsBase();
1945 if ( is_part_built_sync )
1946 {
1948 {
1952
1953 if (is_base)
1954 {
1957 }
1958 }
1959 }
1960 else
1961 {
1963 {
1967
1968 if (is_base)
1969 {
1972 }
1973 }
1974 }
1975
1976
1978 }
1979
1980
1982 {
1985
1986 for ( int i = 0; i < construction_parts.Count(); ++i )
1987 {
1988 string key = construction_parts.GetKey( i );
1991 }
1992
1993
1995 }
1996
1998 {
2001
2002 for ( int i = 0; i < construction_parts.Count(); ++i )
2003 {
2004 string key = construction_parts.GetKey( i );
2006
2007 if ( value.
GetId() ==
id )
2008 {
2009 return value;
2010 }
2011 }
2012
2013 return NULL;
2014 }
2015
2016
2017
2019 {
2021 }
2022
2024 {
2026 }
2027
2029 {
2030 return true;
2031 }
2032
2034 {
2035 return false;
2036 }
2037
2038
2040 {
2043 {
2045 }
2046
2047 return construction_kit;
2048 }
2049
2051 {
2054 {
2056 }
2057 }
2058
2060 {
2062 }
2063
2065 {
2066 return "";
2067 }
2068
2070 {
2073 }
2074
2075
2077 {
2080 }
2081
2082
2084 {
2085 super.OnStoreSave( ctx );
2086
2087
2091
2093 }
2094
2096 {
2097 if ( !super.OnStoreLoad( ctx, version ) )
2098 return false;
2099
2100
2101
2103 {
2105 return false;
2106 }
2108 {
2110 return false;
2111 }
2113 {
2115 return false;
2116 }
2117
2118
2120 {
2122 return false;
2123 }
2124
2125
2126 return true;
2127 }
2128
2130 {
2131 super.AfterStoreLoad();
2132
2134 {
2136 }
2137 }
2138
2140 {
2141
2143
2144
2147
2148
2150 }
2151
2153 {
2154 super.OnCreatePhysics();
2157 }
2158
2160 {
2162 return;
2163
2164 super.EEHealthLevelChanged(oldLevel,newLevel,zone);
2165
2167 return;
2168
2170 string part_name = zone;
2172
2174 {
2175 ConstructionPart construction_part = construction.GetConstructionPart( part_name );
2176
2177 if ( construction_part && construction.IsPartConstructed( part_name ) )
2178 {
2180 construction.DestroyConnectedParts(part_name);
2181 }
2182
2183
2184 if ( part_name.
Contains(
"barbed") )
2185 {
2186 BarbedWire barbed_wire = BarbedWire.Cast( FindAttachmentBySlotName( zone ) );
2187 if (barbed_wire)
2188 barbed_wire.SetMountedState( false );
2189 }
2190 }
2191 }
2192
2194 {
2196 {
2198 }
2199
2200 super.EEOnAfterLoad();
2201 }
2202
2204 {
2205 super.EEInit();
2206
2207
2209
2210
2211 #ifdef DEVELOPER
2213 #endif
2214 }
2215
2217 {
2218 super.EEItemAttached( item, slot_name );
2219
2223 }
2224
2226 {
2227 super.EEItemDetached( item, slot_name );
2228
2231 }
2232
2233 protected void OnSetSlotLock(
int slotId,
bool locked,
bool was_locked )
2234 {
2237
2240 }
2241
2242
2244 {
2245 return true;
2246 }
2247
2248
2249
2251 {
2253
2254
2255 if (construtionPart.
IsBase())
2256 {
2258
2259
2261 }
2262
2263
2265
2266
2268
2269
2271
2273
2275
2276
2278
2279
2281 }
2282
2284 {
2285
2287 }
2288
2289
2291 {
2294
2295
2297
2298
2300
2301
2303
2304
2306
2308
2309
2311
2312
2314
2315
2316 if (construtionPart.
IsBase())
2317 {
2318
2320 }
2321 }
2322
2324 {
2325
2327 }
2328
2329
2330 void OnPartDestroyedServer(Man player,
string part_name,
int action_id,
bool destroyed_by_connected_part =
false)
2331 {
2334
2335
2337
2338
2340
2341
2343
2344
2346
2348
2349
2351
2352
2354
2355
2356 if (construtionPart.
IsBase())
2357 {
2358
2360 }
2361 }
2362
2364 {
2365
2367 }
2368
2371 {
2372 bool process = false;
2373
2374
2378
2379 if (process)
2380 {
2381 if (!MemoryPointExists(part.
m_PartName +
"_min") || !MemoryPointExists(part.
m_PartName +
"_max"))
2382 {
2384 return;
2385 }
2386
2388 mins = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_min"));
2389 maxs = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_max"));
2390
2391
2393 minTmp[0] =
Math.
Min(mins[0],maxs[0]);
2394 maxTmp[0] =
Math.
Max(mins[0],maxs[0]);
2395 minTmp[1] =
Math.
Min(mins[1],maxs[1]);
2396 maxTmp[1] =
Math.
Max(mins[1],maxs[1]);
2397 minTmp[2] =
Math.
Min(mins[2],maxs[2]);
2398 maxTmp[2] =
Math.
Max(mins[2],maxs[2]);
2399 mins = minTmp;
2400 maxs = maxTmp;
2401
2402 maxs[1] = maxs[1] + 0.35;
2403
2405 }
2406 }
2407
2410 {
2413
2414
2416 foreach (
EntityAI entity : foundEntities)
2417 {
2420 }
2421 }
2422
2423
2425 {
2427
2431 }
2432
2434 {
2436
2438 {
2440 }
2441 else
2442 {
2444 }
2445
2447 }
2448
2450 {
2452
2454 foreach (
string slotName : attachmentSlots)
2455 {
2457 }
2458
2459
2462 else
2464
2466 }
2467
2469 {
2470 string slotNameMounted = slot_name + "_Mounted";
2471 EntityAI attachment = FindAttachmentBySlotName(slot_name);
2472
2473 if (attachment)
2474 {
2475 BarbedWire barbedWire = BarbedWire.Cast(attachment);
2476 if (barbedWire && barbedWire.IsMounted())
2478 else
2480
2481 if (is_locked)
2482 {
2483 SetAnimationPhase(slotNameMounted, 0);
2484 SetAnimationPhase(slot_name, 1);
2485 }
2486 else
2487 {
2488 SetAnimationPhase(slotNameMounted, 1);
2489 SetAnimationPhase(slot_name, 0);
2490 }
2491 }
2492 else
2493 {
2494 SetAnimationPhase(slotNameMounted, 1);
2495 SetAnimationPhase(slot_name, 1);
2496
2498 }
2499 }
2500
2501
2503 {
2506
2509
2512
2513 foreach (
string slotName : attachmentSlots)
2514 {
2516 }
2517
2518
2520 {
2523
2525 }
2526 else
2527 {
2530
2532 }
2533
2536 }
2537
2539 {
2540
2542 return;
2543
2544 string slot_name_mounted = slot_name + "_Mounted";
2545 EntityAI attachment = FindAttachmentBySlotName( slot_name );
2546
2547
2549 RemoveProxyPhysics( slot_name_mounted );
2550 RemoveProxyPhysics( slot_name );
2551
2552 if ( attachment )
2553 {
2555 if ( is_locked )
2556 {
2558 AddProxyPhysics( slot_name_mounted );
2559 }
2560 else
2561 {
2563 AddProxyPhysics( slot_name );
2564 }
2565 }
2566 }
2567
2569 {
2570 SetAffectPathgraph( true, false );
2572 }
2573
2575 {
2576 return true;
2577 }
2578
2580 {
2581 return true;
2582 }
2583
2585 {
2586 if ( attachment )
2587 {
2589 attachment.GetInventory().GetCurrentInventoryLocation( inventory_location );
2590
2591 return GetInventory().GetSlotLock( inventory_location.
GetSlot() );
2592 }
2593
2594 return false;
2595 }
2596
2598 {
2600 }
2601
2602
2604 {
2605 string config_path = "CfgVehicles" + " " + entity.GetType() + " " + "attachments";
2606 if (
GetGame().ConfigIsExisting( config_path ) )
2607 {
2609 }
2610 }
2611
2613 {
2614 return true;
2615 }
2616
2618 {
2619 return true;
2620 }
2621
2623 {
2624 return true;
2625 }
2626
2627
2629 {
2631 {
2633 }
2634
2636 }
2637
2639 {
2641 }
2642
2643
2644
2646 {
2647 return super.CanReceiveAttachment(attachment, slotId);
2648 }
2649
2651 {
2652 int attachment_count = GetInventory().AttachmentCount();
2653 if ( attachment_count > 0 )
2654 {
2655 if (
HasBase() && attachment_count == 1 )
2656 {
2657 return false;
2658 }
2659
2660 return true;
2661 }
2662
2663 return false;
2664 }
2665
2667 {
2668 return true;
2669 }
2670
2672 {
2673 return false;
2674 }
2675
2676
2678 {
2679 return false;
2680 }
2681
2683 {
2684 return false;
2685 }
2686
2687
2689 {
2690 return false;
2691 }
2692
2693
2694
2696 {
2697 return true;
2698 }
2699
2701 {
2702 return true;
2703 }
2704
2707 {
2708 return false;
2709 }
2710
2711
2713 {
2714 return true;
2715 }
2716
2717
2719 {
2720 return false;
2721 }
2722
2723
2725 {
2726 return true;
2727 }
2728
2729
2731 {
2732 if (
HasBase() || GetInventory().AttachmentCount() > 0 )
2733 {
2734 return false;
2735 }
2736
2737 return true;
2738 }
2739
2741 {
2744
2745 return item;
2746 }
2747
2748
2750 {
2752 {
2753
2755
2756
2759
2761 if ( MemoryPointExists( slot_name + "_min" ) )
2762 {
2763 min_max[0] = GetMemoryPointPos( slot_name + "_min" );
2764 }
2765 if ( MemoryPointExists( slot_name + "_max" ) )
2766 {
2767 min_max[1] = GetMemoryPointPos( slot_name + "_max" );
2768 }
2769
2770
2773
2774
2777 center = ModelToWorld( center );
2778
2779
2782
2783 areaDamage.SetExtents( extents[0], extents[1] );
2784 areaDamage.SetAreaPosition( center );
2785 areaDamage.SetAreaOrientation( orientation );
2788 areaDamage.SetHitZones( { "Torso","LeftHand","LeftLeg","LeftFoot","RightHand","RightLeg","RightFoot" } );
2789 areaDamage.SetAmmoName( "BarbedWireHit" );
2790 areaDamage.Spawn();
2791
2793 }
2794 }
2795
2797 {
2798 if ( angle_deg != 0 )
2799 {
2800
2801 orientation[0] = orientation[0] - angle_deg;
2802
2803
2805 if ( MemoryPointExists( "rotate_axis" ) )
2806 {
2807 rotate_axis = ModelToWorld( GetMemoryPointPos( "rotate_axis" ) );
2808 }
2809 float r_center_x = (
Math.
Cos( angle_deg *
Math.
DEG2RAD ) * ( center[0] - rotate_axis[0] ) ) - (
Math.
Sin( angle_deg *
Math.
DEG2RAD ) * ( center[2] - rotate_axis[2] ) ) + rotate_axis[0];
2810 float r_center_z = (
Math.
Sin( angle_deg *
Math.
DEG2RAD ) * ( center[0] - rotate_axis[0] ) ) + (
Math.
Cos( angle_deg *
Math.
DEG2RAD ) * ( center[2] - rotate_axis[2] ) ) + rotate_axis[2];
2811 center[0] = r_center_x;
2812 center[2] = r_center_z;
2813 }
2814 }
2815
2817 {
2819 {
2822 {
2823 if (areaDamage)
2824 {
2825 areaDamage.Destroy();
2826 }
2827
2829 }
2830 }
2831 }
2832
2834 {
2835 return true;
2836 }
2837
2838
2839
2840
2842 {
2844 }
2845
2847 {
2849 }
2850
2852 {
2854 }
2855
2857 {
2859
2860 switch ( material_type )
2861 {
2867 }
2868
2869 return "";
2870 }
2871
2873 {
2875
2876 switch ( material_type )
2877 {
2883 }
2884
2885 return "";
2886 }
2887
2888
2890 {
2892 {
2893
2895 {
2896 SetHealth(slot_name,"Health",item.GetHealth());
2897 }
2898 }
2899 }
2900
2902 {
2903 return 111;
2904 }
2905
2907 {
2908 super.SetActions();
2909
2913 }
2914
2915
2916
2917
2919 {
2920 }
2921
2924 {
2925 return null;
2926 }
2927
2929 {
2931 }
2932
2934 {
2937
2938 Man p;
2939
2940 #ifdef SERVER
2943 if (players.Count())
2944 p = players[0];
2945 #else
2947 #endif
2948
2950 {
2951 bool excluded = false;
2953 if (excludes)
2954 {
2955 foreach (string exclude : excludes)
2956 {
2958 {
2959 excluded = true;
2960 break;
2961 }
2962 }
2963 }
2964
2965 if (!excluded)
2966 {
2968 }
2969 }
2970
2972 }
2973}
2974
2976{
2977#ifdef BSB_DEBUG
2979#else
2980
2981#endif
2982}
2984{
2985#ifdef BSB_DEBUG_SPAM
2987#else
2988
2989#endif
2990}
const int AT_DISMANTLE_PART
const int AT_DESTROY_PART
void AddAction(typename actionName)
void RemoveAction(typename actionName)
void AreaDamageManager(EntityAI parent)
void OnPartDismantledClient(string part_name, int action_id)
const string ANIMATION_DEPLOYED
override int GetHideIconMask()
override void OnStoreSave(ParamsWriteContext ctx)
void SetActionFromSyncData()
bool CheckMemoryPointVerticalDistance(float max_dist, string selection, PlayerBase player)
override void OnDebugSpawn()
array< string > OnDebugSpawnBuildExcludes()
Excludes certain parts from being built by OnDebugSpawn, uses Contains to compare.
void SoundDestroyStart(string part_name)
const string SOUND_BUILD_WOOD_LOG
void SoundBuildStart(string part_name)
void UpdateAttachmentVisuals(string slot_name, bool is_locked)
void CalcDamageAreaRotation(float angle_deg, out vector center, out vector orientation)
override bool CanObstruct()
bool HasAttachmentsBesidesBase()
override void InitItemSounds()
void RegisterPartForSync(int part_id)
const string SOUND_DISMANTLE_METAL
override bool CanReceiveAttachment(EntityAI attachment, int slotId)
void SetPartsAfterStoreLoad()
void DestroyConstruction()
ref array< string > m_HybridAttachments
override string GetFoldSoundset()
string GetDismantleSoundByMaterial(string part_name)
bool IsAttachmentSlotLocked(EntityAI attachment)
override bool IsFacingPlayer(PlayerBase player, string selection)
void OnPartBuiltClient(string part_name, int action_id)
bool HasProperDistance(string selection, PlayerBase player)
override void OnCreatePhysics()
void OnPartBuiltServer(notnull Man player, string part_name, int action_id)
void RegisterActionForSync(int part_id, int action_id)
const string SOUND_BUILD_WOOD_PLANK
void SetPartsFromSyncData()
ref array< string > m_Mountables
const string SOUND_BUILD_WIRE
void ResetActionSyncData()
override string GetInvulnerabilityTypeString()
void OnPartDismantledServer(notnull Man player, string part_name, int action_id)
void CheckForHybridAttachments(EntityAI item, string slot_name)
override void EEOnAfterLoad()
override void EEItemDetached(EntityAI item, string slot_name)
vector GetKitSpawnPosition()
ref Construction m_Construction
bool IsFacingCamera(string selection)
bool CheckSlotVerticalDistance(int slot_id, PlayerBase player)
void GetAttachmentSlots(EntityAI entity, out array< string > attachment_slots)
override bool IsDeployable()
void OnPartDestroyedClient(string part_name, int action_id)
void UnregisterPartForSync(int part_id)
void bsbDebugSpam(string s)
override void OnVariablesSynchronized()
bool PerformRoofCheckForBase(string partName, PlayerBase player, out bool result)
Construction GetConstruction()
void SoundDismantleStart(string part_name)
ConstructionPart GetConstructionPartById(int id)
string GetConstructionKitType()
bool CheckLevelVerticalDistance(float max_dist, string selection, PlayerBase player)
void OnPartDestroyedServer(Man player, string part_name, int action_id, bool destroyed_by_connected_part=false)
bool CanFoldBaseBuildingObject()
override int GetDamageSystemVersionChange()
const string SOUND_DISMANTLE_WOOD_PLANK
override void EEItemAttached(EntityAI item, string slot_name)
const string SOUND_DISMANTLE_WOOD_LOG
class BaseBuildingBase extends ItemBase bsbDebugPrint(string s)
const string SOUND_BUILD_WOOD_STAIRS
ItemBase FoldBaseBuildingObject()
override bool CanPutInCargo(EntityAI parent)
override bool CanUseConstruction()
override void AfterStoreLoad()
void SetPartFromSyncData(ConstructionPart part)
override void EEHealthLevelChanged(int oldLevel, int newLevel, string zone)
override bool IgnoreOutOfReachCondition()
override bool OnStoreLoad(ParamsReadContext ctx, int version)
override bool ShowZonesHealth()
void UpdateAttachmentPhysics(string slot_name, bool is_locked)
override bool IsPlayerInside(PlayerBase player, string selection)
string GetBuildSoundByMaterial(string part_name)
ItemBase CreateConstructionKit()
const string SOUND_DISMANTLE_WIRE
bool MustBeBuiltFromOutside()
Some buildings can only be built from outside.
override bool IsTakeable()
float m_ConstructionKitHealth
override void EEDelete(EntityAI parent)
override void SetActions()
void HandleItemFalling(ConstructionPart part)
Disconnected temporarily.
void DestroyConstructionKit(ItemBase construction_kit)
void CreateConstructionKitInHands(notnull PlayerBase player)
void ItemFall(vector min, vector max)
Disconnected temporarily.
override bool CanUseConstructionBuild()
void OnSynchronizedClient()
void SynchronizeBaseState()
override bool IsIgnoredByConstruction()
ref map< string, ref AreaDamageManager > m_DamageTriggers
void SetBaseState(bool has_base)
const string SOUND_BUILD_METAL
override string GetLoopFoldSoundset()
void OnSetSlotLock(int slotId, bool locked, bool was_locked)
override bool CanPutIntoHands(EntityAI parent)
bool IsPartBuildInSyncData(int part_id)
override bool CanRemoveFromCargo(EntityAI parent)
const string SOUND_DISMANTLE_WOOD_STAIRS
const int ECE_PLACE_ON_SURFACE
PlayerSpawnPreset slotName
void Construction(BaseBuildingBase parent)
void DayZPlayerUtils()
cannot be instantiated
string GetLoopFoldSoundset()
ItemSoundHandler GetItemSoundHandler()
bool m_FixDamageSystemInit
void ItemSoundHandler(ItemBase parent)
override void SetLoopInterval(float time)
A particular version of the deferred loop used to not damage players inside vehicles.
override void SetDeferDuration(float time)
proto native World GetWorld()
override ScriptCallQueue GetCallQueue(int call_category)
proto native void ConfigGetTextArray(string path, out TStringArray values)
Get array of strings from config on path.
proto native DayZPlayer GetPlayer()
proto native void ObjectDelete(Object obj)
Super root of all classes in Enforce script.
static void Log(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Prints debug message with normal prio.
Wrapper class for managing sound through SEffectManager.
proto native int GetSlot()
returns slot id if current type is Attachment
static proto native int GetSlotIdFromString(string slot_name)
converts string to slot_id
static proto native owned string GetSlotName(int id)
converts slot_id to string
provides access to slot configuration
override bool CanUseConstruction()
static bool IsBaseBuildingLogEnable()
proto void CallLater(func fn, int delay=0, bool repeat=false, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL)
adds call into the queue with given parameters and arguments (arguments are held in memory until the ...
proto bool Write(void value_out)
proto bool Read(void value_in)
proto native void GetPlayerList(out array< Man > players)
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
override string GetDebugName()
Serializer ParamsReadContext
proto native CGame GetGame()
Serializer ParamsWriteContext
proto void PrintToRPT(void var)
Prints content of variable to RPT file (performance warning - each write means fflush!...
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.
static proto float Max(float x, float y)
Returns bigger of two given values.
static proto float Min(float x, float y)
Returns smaller of two given values.
static proto float Cos(float angle)
Returns cosinus of angle in radians.
static proto float Sin(float angle)
Returns sinus of angle in radians.
static const float DEG2RAD
class JsonUndergroundAreaTriggerData GetPosition
bool Contains(string sample)
Returns true if sample is substring of string.
proto int ToLower()
Changes string to lowercase. Returns length.