1676{
1678
1680
1682
1684
1690
1691
1692
1698
1704
1706
1710
1711
1713 {
1715
1716
1717 RegisterNetSyncVariableInt( "m_SyncParts01" );
1718 RegisterNetSyncVariableInt( "m_SyncParts02" );
1719 RegisterNetSyncVariableInt( "m_SyncParts03" );
1720 RegisterNetSyncVariableInt( "m_InteractedPartId" );
1721 RegisterNetSyncVariableInt( "m_PerformedActionId" );
1722 RegisterNetSyncVariableBool( "m_HasBase" );
1723
1724
1726
1727 if (ConfigIsExisting("hybridAttachments"))
1728 {
1731 }
1732 if (ConfigIsExisting("mountables"))
1733 {
1736 }
1737
1739 }
1740
1742 {
1743 super.EEDelete(parent);
1744
1746 {
1747 areaDamage.Destroy();
1748 }
1749
1750 }
1751
1753 {
1754 return "disableBaseDamage";
1755 }
1756
1758 {
1759 return true;
1760 }
1761
1763 {
1764 return EInventoryIconVisibility.HIDE_VICINITY;
1765 }
1766
1768 {
1769 super.InitItemSounds();
1770
1774
1779 }
1780
1782 {
1783 return "putDown_FenceKit_SoundSet";
1784 }
1785
1787 {
1788 return "Shelter_Site_Build_Loop_SoundSet";
1789 }
1790
1791
1793 {
1795 {
1796 SetSynchDirty();
1797 }
1798 }
1799
1801 {
1803 super.OnVariablesSynchronized();
1804
1806 }
1807
1809 {
1810
1812
1813
1815
1816
1818 }
1819
1820
1822 {
1823
1824 int offset;
1825 int mask;
1826
1827 if ( part_id >= 1 && part_id <= 31 )
1828 {
1829 offset = part_id - 1;
1830 mask = 1 << offset;
1831
1833 }
1834 else if ( part_id >= 32 && part_id <= 62 )
1835 {
1836 offset = ( part_id % 32 );
1837 mask = 1 << offset;
1838
1840 }
1841 else if ( part_id >= 63 && part_id <= 93 )
1842 {
1843 offset = ( part_id % 63 );
1844 mask = 1 << offset;
1845
1847 }
1848 }
1849
1851 {
1852
1853 int offset;
1854 int mask;
1855
1856 if ( part_id >= 1 && part_id <= 31 )
1857 {
1858 offset = part_id - 1;
1859 mask = 1 << offset;
1860
1862 }
1863 else if ( part_id >= 32 && part_id <= 62 )
1864 {
1865 offset = ( part_id % 32 );
1866 mask = 1 << offset;
1867
1869 }
1870 else if ( part_id >= 63 && part_id <= 93 )
1871 {
1872 offset = ( part_id % 63 );
1873 mask = 1 << offset;
1874
1876 }
1877 }
1878
1880 {
1881
1882 int offset;
1883 int mask;
1884
1885 if ( part_id >= 1 && part_id <= 31 )
1886 {
1887 offset = part_id - 1;
1888 mask = 1 << offset;
1889
1891 {
1892 return true;
1893 }
1894 }
1895 else if ( part_id >= 32 && part_id <= 62 )
1896 {
1897 offset = ( part_id % 32 );
1898 mask = 1 << offset;
1899
1901 {
1902 return true;
1903 }
1904 }
1905 else if ( part_id >= 63 && part_id <= 93 )
1906 {
1907 offset = ( part_id % 63 );
1908 mask = 1 << offset;
1909
1911 {
1912 return true;
1913 }
1914 }
1915
1916 return false;
1917 }
1918
1920 {
1923 }
1924
1926 {
1927
1930 }
1931
1933 {
1935 {
1938
1939 switch( build_action_id )
1940 {
1944 }
1945 }
1946 }
1947
1948
1950 {
1952 bool is_base = part.
IsBase();
1955 if ( is_part_built_sync )
1956 {
1958 {
1962
1963 if (is_base)
1964 {
1967 }
1968 }
1969 }
1970 else
1971 {
1973 {
1977
1978 if (is_base)
1979 {
1982 }
1983 }
1984 }
1985
1986
1988 }
1989
1990
1992 {
1995
1996 for ( int i = 0; i < construction_parts.Count(); ++i )
1997 {
1998 string key = construction_parts.GetKey( i );
2001 }
2002
2003
2005 }
2006
2008 {
2011
2012 for ( int i = 0; i < construction_parts.Count(); ++i )
2013 {
2014 string key = construction_parts.GetKey( i );
2016
2017 if ( value.
GetId() ==
id )
2018 {
2019 return value;
2020 }
2021 }
2022
2023 return NULL;
2024 }
2025
2026
2027
2029 {
2031 }
2032
2034 {
2036 }
2037
2039 {
2040 return true;
2041 }
2042
2044 {
2045 return false;
2046 }
2047
2048
2050 {
2053 {
2055 }
2056
2057 return construction_kit;
2058 }
2059
2061 {
2064 {
2066 }
2067 }
2068
2070 {
2072 }
2073
2075 {
2076 return "";
2077 }
2078
2080 {
2083 }
2084
2085
2087 {
2090 }
2091
2092
2094 {
2095 super.OnStoreSave( ctx );
2096
2097
2101
2103 }
2104
2106 {
2107 if ( !super.OnStoreLoad( ctx, version ) )
2108 return false;
2109
2110
2111
2113 {
2115 return false;
2116 }
2118 {
2120 return false;
2121 }
2123 {
2125 return false;
2126 }
2127
2128
2130 {
2132 return false;
2133 }
2134
2135
2136 return true;
2137 }
2138
2140 {
2141 super.AfterStoreLoad();
2142
2144 {
2146 }
2147 }
2148
2150 {
2151
2153
2154
2157
2158
2160 }
2161
2163 {
2164 super.OnCreatePhysics();
2167 }
2168
2170 {
2172 return;
2173
2174 super.EEHealthLevelChanged(oldLevel,newLevel,zone);
2175
2177 return;
2178
2180 string part_name = zone;
2182
2184 {
2185 ConstructionPart construction_part = construction.GetConstructionPart( part_name );
2186
2187 if ( construction_part && construction.IsPartConstructed( part_name ) )
2188 {
2190 construction.DestroyConnectedParts(part_name);
2191 }
2192
2193
2194 if ( part_name.
Contains(
"barbed") )
2195 {
2196 BarbedWire barbed_wire = BarbedWire.Cast( FindAttachmentBySlotName( zone ) );
2197 if (barbed_wire)
2198 barbed_wire.SetMountedState( false );
2199 }
2200 }
2201 }
2202
2204 {
2206 {
2208 }
2209
2210 super.EEOnAfterLoad();
2211 }
2212
2214 {
2215 super.EEInit();
2216
2217
2219
2220
2221 #ifdef DEVELOPER
2223 #endif
2224 }
2225
2227 {
2228 super.EEItemAttached( item, slot_name );
2229
2233 }
2234
2236 {
2237 super.EEItemDetached( item, slot_name );
2238
2241 }
2242
2243 protected void OnSetSlotLock(
int slotId,
bool locked,
bool was_locked )
2244 {
2247
2250 }
2251
2252
2254 {
2255 return true;
2256 }
2257
2258
2259
2261 {
2263
2264
2265 if (construtionPart.
IsBase())
2266 {
2268
2269
2271 }
2272
2273
2275
2276
2278
2279
2281
2283
2285
2286
2288
2289
2291 }
2292
2294 {
2295
2297 }
2298
2299
2301 {
2304
2305
2307
2308
2310
2311
2313
2314
2316
2318
2319
2321
2322
2324
2325
2326 if (construtionPart.
IsBase())
2327 {
2328
2330 }
2331 }
2332
2334 {
2335
2337 }
2338
2339
2340 void OnPartDestroyedServer(Man player,
string part_name,
int action_id,
bool destroyed_by_connected_part =
false)
2341 {
2344
2345
2347
2348
2350
2351
2353
2354
2356
2358
2359
2361
2362
2364
2365
2366 if (construtionPart.
IsBase())
2367 {
2368
2370 }
2371 }
2372
2374 {
2375
2377 }
2378
2381 {
2382 bool process = false;
2383
2384
2388
2389 if (process)
2390 {
2391 if (!MemoryPointExists(part.
m_PartName +
"_min") || !MemoryPointExists(part.
m_PartName +
"_max"))
2392 {
2394 return;
2395 }
2396
2398 mins = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_min"));
2399 maxs = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_max"));
2400
2401
2403 minTmp[0] =
Math.
Min(mins[0],maxs[0]);
2404 maxTmp[0] =
Math.
Max(mins[0],maxs[0]);
2405 minTmp[1] =
Math.
Min(mins[1],maxs[1]);
2406 maxTmp[1] =
Math.
Max(mins[1],maxs[1]);
2407 minTmp[2] =
Math.
Min(mins[2],maxs[2]);
2408 maxTmp[2] =
Math.
Max(mins[2],maxs[2]);
2409 mins = minTmp;
2410 maxs = maxTmp;
2411
2412 maxs[1] = maxs[1] + 0.35;
2413
2415 }
2416 }
2417
2420 {
2423
2424
2426 foreach (
EntityAI entity : foundEntities)
2427 {
2430 }
2431 }
2432
2433
2435 {
2437
2441 }
2442
2444 {
2446
2448 {
2450 }
2451 else
2452 {
2454 }
2455
2457 }
2458
2460 {
2462
2464 foreach (
string slotName : attachmentSlots)
2465 {
2467 }
2468
2469
2472 else
2474
2476 }
2477
2479 {
2480 string slotNameMounted = slot_name + "_Mounted";
2481 EntityAI attachment = FindAttachmentBySlotName(slot_name);
2482
2483 if (attachment)
2484 {
2485 BarbedWire barbedWire = BarbedWire.Cast(attachment);
2486 if (barbedWire && barbedWire.IsMounted())
2488 else
2490
2491 if (is_locked)
2492 {
2493 SetAnimationPhase(slotNameMounted, 0);
2494 SetAnimationPhase(slot_name, 1);
2495 }
2496 else
2497 {
2498 SetAnimationPhase(slotNameMounted, 1);
2499 SetAnimationPhase(slot_name, 0);
2500 }
2501 }
2502 else
2503 {
2504 SetAnimationPhase(slotNameMounted, 1);
2505 SetAnimationPhase(slot_name, 1);
2506
2508 }
2509 }
2510
2511
2513 {
2516
2519
2522
2523 foreach (
string slotName : attachmentSlots)
2524 {
2526 }
2527
2528
2530 {
2533
2535 }
2536 else
2537 {
2540
2542 }
2543
2546 }
2547
2549 {
2550
2552 return;
2553
2554 string slot_name_mounted = slot_name + "_Mounted";
2555 EntityAI attachment = FindAttachmentBySlotName( slot_name );
2556
2557
2559 RemoveProxyPhysics( slot_name_mounted );
2560 RemoveProxyPhysics( slot_name );
2561
2562 if ( attachment )
2563 {
2565 if ( is_locked )
2566 {
2568 AddProxyPhysics( slot_name_mounted );
2569 }
2570 else
2571 {
2573 AddProxyPhysics( slot_name );
2574 }
2575 }
2576 }
2577
2579 {
2580 SetAffectPathgraph( true, false );
2582 }
2583
2585 {
2586 return true;
2587 }
2588
2590 {
2591 return true;
2592 }
2593
2595 {
2596 if ( attachment )
2597 {
2599 attachment.GetInventory().GetCurrentInventoryLocation( inventory_location );
2600
2601 return GetInventory().GetSlotLock( inventory_location.
GetSlot() );
2602 }
2603
2604 return false;
2605 }
2606
2608 {
2610 }
2611
2612
2614 {
2615 string config_path = "CfgVehicles" + " " + entity.GetType() + " " + "attachments";
2616 if (
GetGame().ConfigIsExisting( config_path ) )
2617 {
2619 }
2620 }
2621
2623 {
2624 return true;
2625 }
2626
2628 {
2629 return true;
2630 }
2631
2633 {
2634 return true;
2635 }
2636
2637
2639 {
2641 {
2643 }
2644
2646 }
2647
2649 {
2651 }
2652
2653
2654
2656 {
2657 return super.CanReceiveAttachment(attachment, slotId);
2658 }
2659
2661 {
2662 int attachment_count = GetInventory().AttachmentCount();
2663 if ( attachment_count > 0 )
2664 {
2665 if (
HasBase() && attachment_count == 1 )
2666 {
2667 return false;
2668 }
2669
2670 return true;
2671 }
2672
2673 return false;
2674 }
2675
2677 {
2678 return true;
2679 }
2680
2682 {
2683 return false;
2684 }
2685
2686
2688 {
2689 return false;
2690 }
2691
2693 {
2694 return false;
2695 }
2696
2697
2699 {
2700 return false;
2701 }
2702
2703
2704
2706 {
2707 return true;
2708 }
2709
2711 {
2712 return true;
2713 }
2714
2717 {
2718 return false;
2719 }
2720
2721
2723 {
2724 return true;
2725 }
2726
2727
2729 {
2730 return false;
2731 }
2732
2733
2735 {
2736 return true;
2737 }
2738
2739
2741 {
2742 if (
HasBase() || GetInventory().AttachmentCount() > 0 )
2743 {
2744 return false;
2745 }
2746
2747 return true;
2748 }
2749
2751 {
2754
2755 return item;
2756 }
2757
2758
2760 {
2762 {
2763
2765
2766
2769
2771 if ( MemoryPointExists( slot_name + "_min" ) )
2772 {
2773 min_max[0] = GetMemoryPointPos( slot_name + "_min" );
2774 }
2775 if ( MemoryPointExists( slot_name + "_max" ) )
2776 {
2777 min_max[1] = GetMemoryPointPos( slot_name + "_max" );
2778 }
2779
2780
2783
2784
2787 center = ModelToWorld( center );
2788
2789
2792
2793 areaDamage.SetExtents( extents[0], extents[1] );
2794 areaDamage.SetAreaPosition( center );
2795 areaDamage.SetAreaOrientation( orientation );
2798 areaDamage.SetHitZones( { "Torso","LeftHand","LeftLeg","LeftFoot","RightHand","RightLeg","RightFoot" } );
2799 areaDamage.SetAmmoName( "BarbedWireHit" );
2800 areaDamage.Spawn();
2801
2803 }
2804 }
2805
2807 {
2808 if ( angle_deg != 0 )
2809 {
2810
2811 orientation[0] = orientation[0] - angle_deg;
2812
2813
2815 if ( MemoryPointExists( "rotate_axis" ) )
2816 {
2817 rotate_axis = ModelToWorld( GetMemoryPointPos( "rotate_axis" ) );
2818 }
2819 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];
2820 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];
2821 center[0] = r_center_x;
2822 center[2] = r_center_z;
2823 }
2824 }
2825
2827 {
2829 {
2832 {
2833 if (areaDamage)
2834 {
2835 areaDamage.Destroy();
2836 }
2837
2839 }
2840 }
2841 }
2842
2844 {
2845 return true;
2846 }
2847
2848
2849
2850
2852 {
2854 }
2855
2857 {
2859 }
2860
2862 {
2864 }
2865
2867 {
2869
2870 switch ( material_type )
2871 {
2877 }
2878
2879 return "";
2880 }
2881
2883 {
2885
2886 switch ( material_type )
2887 {
2893 }
2894
2895 return "";
2896 }
2897
2898
2900 {
2902 {
2903
2905 {
2906 SetHealth(slot_name,"Health",item.GetHealth());
2907 }
2908 }
2909 }
2910
2912 {
2913 return 111;
2914 }
2915
2917 {
2918 super.SetActions();
2919
2923 }
2924
2925
2926
2927
2929 {
2930 }
2931
2934 {
2935 return null;
2936 }
2937
2939 {
2941 }
2942
2944 {
2947
2948 Man p;
2949
2950 #ifdef SERVER
2953 if (players.Count())
2954 p = players[0];
2955 #else
2957 #endif
2958
2960 {
2961 bool excluded = false;
2963 if (excludes)
2964 {
2965 foreach (string exclude : excludes)
2966 {
2968 {
2969 excluded = true;
2970 break;
2971 }
2972 }
2973 }
2974
2975 if (!excluded)
2976 {
2978 }
2979 }
2980
2982 }
2983}
2984
2986{
2987#ifdef BSB_DEBUG
2989#else
2990
2991#endif
2992}
2994{
2995#ifdef BSB_DEBUG_SPAM
2997#else
2998
2999#endif
3000}
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.