1687{
1689
1691
1693
1695
1701
1702
1703
1709
1715
1717
1721
1722
1724 {
1726
1727
1728 RegisterNetSyncVariableInt( "m_SyncParts01" );
1729 RegisterNetSyncVariableInt( "m_SyncParts02" );
1730 RegisterNetSyncVariableInt( "m_SyncParts03" );
1731 RegisterNetSyncVariableInt( "m_InteractedPartId" );
1732 RegisterNetSyncVariableInt( "m_PerformedActionId" );
1733 RegisterNetSyncVariableBool( "m_HasBase" );
1734
1735
1737
1738 if (ConfigIsExisting("hybridAttachments"))
1739 {
1742 }
1743 if (ConfigIsExisting("mountables"))
1744 {
1747 }
1748
1750 }
1751
1753 {
1754 super.EEDelete(parent);
1755
1757 {
1758 areaDamage.Destroy();
1759 }
1760
1761 }
1762
1764 {
1765 return "disableBaseDamage";
1766 }
1767
1769 {
1770 return true;
1771 }
1772
1774 {
1775 return EInventoryIconVisibility.HIDE_VICINITY;
1776 }
1777
1779 {
1780 super.InitItemSounds();
1781
1785
1790 }
1791
1793 {
1794 return "putDown_FenceKit_SoundSet";
1795 }
1796
1798 {
1799 return "Shelter_Site_Build_Loop_SoundSet";
1800 }
1801
1802
1804 {
1806 {
1807 SetSynchDirty();
1808 }
1809 }
1810
1812 {
1814 super.OnVariablesSynchronized();
1815
1817 }
1818
1820 {
1821
1823
1824
1826
1827
1829 }
1830
1831
1833 {
1834
1835 int offset;
1836 int mask;
1837
1838 if ( part_id >= 1 && part_id <= 31 )
1839 {
1840 offset = part_id - 1;
1841 mask = 1 << offset;
1842
1844 }
1845 else if ( part_id >= 32 && part_id <= 62 )
1846 {
1847 offset = ( part_id % 32 );
1848 mask = 1 << offset;
1849
1851 }
1852 else if ( part_id >= 63 && part_id <= 93 )
1853 {
1854 offset = ( part_id % 63 );
1855 mask = 1 << offset;
1856
1858 }
1859 }
1860
1862 {
1863
1864 int offset;
1865 int mask;
1866
1867 if ( part_id >= 1 && part_id <= 31 )
1868 {
1869 offset = part_id - 1;
1870 mask = 1 << offset;
1871
1873 }
1874 else if ( part_id >= 32 && part_id <= 62 )
1875 {
1876 offset = ( part_id % 32 );
1877 mask = 1 << offset;
1878
1880 }
1881 else if ( part_id >= 63 && part_id <= 93 )
1882 {
1883 offset = ( part_id % 63 );
1884 mask = 1 << offset;
1885
1887 }
1888 }
1889
1891 {
1892
1893 int offset;
1894 int mask;
1895
1896 if ( part_id >= 1 && part_id <= 31 )
1897 {
1898 offset = part_id - 1;
1899 mask = 1 << offset;
1900
1902 {
1903 return true;
1904 }
1905 }
1906 else if ( part_id >= 32 && part_id <= 62 )
1907 {
1908 offset = ( part_id % 32 );
1909 mask = 1 << offset;
1910
1912 {
1913 return true;
1914 }
1915 }
1916 else if ( part_id >= 63 && part_id <= 93 )
1917 {
1918 offset = ( part_id % 63 );
1919 mask = 1 << offset;
1920
1922 {
1923 return true;
1924 }
1925 }
1926
1927 return false;
1928 }
1929
1931 {
1934 }
1935
1937 {
1938
1941 }
1942
1944 {
1946 {
1949
1950 switch( build_action_id )
1951 {
1955 }
1956 }
1957 }
1958
1959
1961 {
1963 bool is_base = part.
IsBase();
1966 if ( is_part_built_sync )
1967 {
1969 {
1973
1974 if (is_base)
1975 {
1978 }
1979 }
1980 }
1981 else
1982 {
1984 {
1988
1989 if (is_base)
1990 {
1993 }
1994 }
1995 }
1996
1997
1999 }
2000
2001
2003 {
2006
2007 for ( int i = 0; i < construction_parts.Count(); ++i )
2008 {
2009 string key = construction_parts.GetKey( i );
2012 }
2013
2014
2016 }
2017
2019 {
2022
2023 for ( int i = 0; i < construction_parts.Count(); ++i )
2024 {
2025 string key = construction_parts.GetKey( i );
2027
2028 if ( value.
GetId() ==
id )
2029 {
2030 return value;
2031 }
2032 }
2033
2034 return NULL;
2035 }
2036
2037
2038
2040 {
2042 }
2043
2045 {
2047 }
2048
2050 {
2051 return true;
2052 }
2053
2055 {
2056 return false;
2057 }
2058
2059
2061 {
2064 {
2066 }
2067
2068 return construction_kit;
2069 }
2070
2072 {
2075 {
2077 }
2078 }
2079
2081 {
2083 }
2084
2086 {
2087 return "";
2088 }
2089
2091 {
2094 }
2095
2096
2098 {
2101 }
2102
2103
2105 {
2106 super.OnStoreSave( ctx );
2107
2108
2112
2114 }
2115
2117 {
2118 if ( !super.OnStoreLoad( ctx, version ) )
2119 return false;
2120
2121
2122
2124 {
2126 return false;
2127 }
2129 {
2131 return false;
2132 }
2134 {
2136 return false;
2137 }
2138
2139
2141 {
2143 return false;
2144 }
2145
2146
2147 return true;
2148 }
2149
2151 {
2152 super.AfterStoreLoad();
2153
2155 {
2157 }
2158 }
2159
2161 {
2162
2164
2165
2168
2169
2171 }
2172
2174 {
2175 super.OnCreatePhysics();
2178 }
2179
2181 {
2183 return;
2184
2185 super.EEHealthLevelChanged(oldLevel,newLevel,zone);
2186
2188 return;
2189
2191 string part_name = zone;
2193
2195 {
2196 ConstructionPart construction_part = construction.GetConstructionPart( part_name );
2197
2198 if ( construction_part && construction.IsPartConstructed( part_name ) )
2199 {
2201 construction.DestroyConnectedParts(part_name);
2202 }
2203
2204
2205 if ( part_name.
Contains(
"barbed") )
2206 {
2207 BarbedWire barbed_wire = BarbedWire.Cast( FindAttachmentBySlotName( zone ) );
2208 if (barbed_wire)
2209 barbed_wire.SetMountedState( false );
2210 }
2211 }
2212 }
2213
2215 {
2217 {
2219 }
2220
2221 super.EEOnAfterLoad();
2222 }
2223
2225 {
2226 super.EEInit();
2227
2228
2230
2231
2232 #ifdef DEVELOPER
2234 #endif
2235 }
2236
2238 {
2239 super.EEItemAttached( item, slot_name );
2240
2244 }
2245
2247 {
2248 super.EEItemDetached( item, slot_name );
2249
2252 }
2253
2254 protected void OnSetSlotLock(
int slotId,
bool locked,
bool was_locked )
2255 {
2258
2261 }
2262
2263
2265 {
2266 return true;
2267 }
2268
2269
2270
2272 {
2274
2275
2276 if (construtionPart.
IsBase())
2277 {
2279
2280
2282 }
2283
2284
2286
2287
2289
2290
2292
2294
2296
2297
2299
2300
2302 }
2303
2305 {
2306
2308 }
2309
2310
2312 {
2315
2316
2318
2319
2321
2322
2324
2325
2327
2329
2330
2332
2333
2335
2336
2337 if (construtionPart.
IsBase())
2338 {
2339
2341 }
2342 }
2343
2345 {
2346
2348 }
2349
2350
2351 void OnPartDestroyedServer(Man player,
string part_name,
int action_id,
bool destroyed_by_connected_part =
false)
2352 {
2355
2356
2358
2359
2361
2362
2364
2365
2367
2369
2370
2372
2373
2375
2376
2377 if (construtionPart.
IsBase())
2378 {
2379
2381 }
2382 }
2383
2385 {
2386
2388 }
2389
2392 {
2393 bool process = false;
2394
2395
2399
2400 if (process)
2401 {
2402 if (!MemoryPointExists(part.
m_PartName +
"_min") || !MemoryPointExists(part.
m_PartName +
"_max"))
2403 {
2405 return;
2406 }
2407
2409 mins = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_min"));
2410 maxs = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_max"));
2411
2412
2414 minTmp[0] =
Math.
Min(mins[0],maxs[0]);
2415 maxTmp[0] =
Math.
Max(mins[0],maxs[0]);
2416 minTmp[1] =
Math.
Min(mins[1],maxs[1]);
2417 maxTmp[1] =
Math.
Max(mins[1],maxs[1]);
2418 minTmp[2] =
Math.
Min(mins[2],maxs[2]);
2419 maxTmp[2] =
Math.
Max(mins[2],maxs[2]);
2420 mins = minTmp;
2421 maxs = maxTmp;
2422
2423 maxs[1] = maxs[1] + 0.35;
2424
2426 }
2427 }
2428
2431 {
2434
2435
2437 foreach (
EntityAI entity : foundEntities)
2438 {
2441 }
2442 }
2443
2444
2446 {
2448
2452 }
2453
2455 {
2457
2459 {
2461 }
2462 else
2463 {
2465 }
2466
2468 }
2469
2471 {
2473
2475 foreach (
string slotName : attachmentSlots)
2476 {
2478 }
2479
2480
2483 else
2485
2487 }
2488
2490 {
2491 string slotNameMounted = slot_name + "_Mounted";
2492 EntityAI attachment = FindAttachmentBySlotName(slot_name);
2493
2494 if (attachment)
2495 {
2496 BarbedWire barbedWire = BarbedWire.Cast(attachment);
2497 if (barbedWire && barbedWire.IsMounted())
2499 else
2501
2502 if (is_locked)
2503 {
2504 SetAnimationPhase(slotNameMounted, 0);
2505 SetAnimationPhase(slot_name, 1);
2506 }
2507 else
2508 {
2509 SetAnimationPhase(slotNameMounted, 1);
2510 SetAnimationPhase(slot_name, 0);
2511 }
2512 }
2513 else
2514 {
2515 SetAnimationPhase(slotNameMounted, 1);
2516 SetAnimationPhase(slot_name, 1);
2517
2519 }
2520 }
2521
2522
2524 {
2527
2530
2533
2534 foreach (
string slotName : attachmentSlots)
2535 {
2537 }
2538
2539
2541 {
2544
2546 }
2547 else
2548 {
2551
2553 }
2554
2557 }
2558
2560 {
2561
2563 return;
2564
2565 string slot_name_mounted = slot_name + "_Mounted";
2566 EntityAI attachment = FindAttachmentBySlotName( slot_name );
2567
2568
2570 RemoveProxyPhysics( slot_name_mounted );
2571 RemoveProxyPhysics( slot_name );
2572
2573 if ( attachment )
2574 {
2576 if ( is_locked )
2577 {
2579 AddProxyPhysics( slot_name_mounted );
2580 }
2581 else
2582 {
2584 AddProxyPhysics( slot_name );
2585 }
2586 }
2587 }
2588
2590 {
2591 SetAffectPathgraph( true, false );
2593 }
2594
2596 {
2597 return true;
2598 }
2599
2601 {
2602 return true;
2603 }
2604
2606 {
2607 if ( attachment )
2608 {
2610 attachment.GetInventory().GetCurrentInventoryLocation( inventory_location );
2611
2612 return GetInventory().GetSlotLock( inventory_location.
GetSlot() );
2613 }
2614
2615 return false;
2616 }
2617
2619 {
2621 }
2622
2623
2625 {
2626 string config_path = "CfgVehicles" + " " + entity.GetType() + " " + "attachments";
2627 if (
GetGame().ConfigIsExisting( config_path ) )
2628 {
2630 }
2631 }
2632
2634 {
2635 return true;
2636 }
2637
2639 {
2640 return true;
2641 }
2642
2644 {
2645 return true;
2646 }
2647
2648
2650 {
2652 {
2654 }
2655
2657 }
2658
2660 {
2662 }
2663
2664
2665
2667 {
2668 return super.CanReceiveAttachment(attachment, slotId);
2669 }
2670
2672 {
2673 int attachment_count = GetInventory().AttachmentCount();
2674 if ( attachment_count > 0 )
2675 {
2676 if (
HasBase() && attachment_count == 1 )
2677 {
2678 return false;
2679 }
2680
2681 return true;
2682 }
2683
2684 return false;
2685 }
2686
2688 {
2689 return true;
2690 }
2691
2693 {
2694 return false;
2695 }
2696
2697
2699 {
2700 return false;
2701 }
2702
2704 {
2705 return false;
2706 }
2707
2708
2710 {
2711 return false;
2712 }
2713
2714
2715
2717 {
2718 return true;
2719 }
2720
2722 {
2723 return true;
2724 }
2725
2728 {
2729 return false;
2730 }
2731
2732
2734 {
2735 return true;
2736 }
2737
2738
2740 {
2741 return false;
2742 }
2743
2744
2746 {
2747 return true;
2748 }
2749
2750
2752 {
2753 if (
HasBase() || GetInventory().AttachmentCount() > 0 )
2754 {
2755 return false;
2756 }
2757
2758 return true;
2759 }
2760
2762 {
2765
2766 return item;
2767 }
2768
2769
2771 {
2773 {
2774
2776
2777
2780
2782 if ( MemoryPointExists( slot_name + "_min" ) )
2783 {
2784 min_max[0] = GetMemoryPointPos( slot_name + "_min" );
2785 }
2786 if ( MemoryPointExists( slot_name + "_max" ) )
2787 {
2788 min_max[1] = GetMemoryPointPos( slot_name + "_max" );
2789 }
2790
2791
2794
2795
2798 center = ModelToWorld( center );
2799
2800
2803
2804 areaDamage.SetExtents( extents[0], extents[1] );
2805 areaDamage.SetAreaPosition( center );
2806 areaDamage.SetAreaOrientation( orientation );
2809 areaDamage.SetHitZones( { "Torso","LeftHand","LeftLeg","LeftFoot","RightHand","RightLeg","RightFoot" } );
2810 areaDamage.SetAmmoName( "BarbedWireHit" );
2811 areaDamage.Spawn();
2812
2814 }
2815 }
2816
2818 {
2819 if ( angle_deg != 0 )
2820 {
2821
2822 orientation[0] = orientation[0] - angle_deg;
2823
2824
2826 if ( MemoryPointExists( "rotate_axis" ) )
2827 {
2828 rotate_axis = ModelToWorld( GetMemoryPointPos( "rotate_axis" ) );
2829 }
2830 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];
2831 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];
2832 center[0] = r_center_x;
2833 center[2] = r_center_z;
2834 }
2835 }
2836
2838 {
2840 {
2843 {
2844 if (areaDamage)
2845 {
2846 areaDamage.Destroy();
2847 }
2848
2850 }
2851 }
2852 }
2853
2855 {
2856 return true;
2857 }
2858
2859
2860
2861
2863 {
2865 }
2866
2868 {
2870 }
2871
2873 {
2875 }
2876
2878 {
2880
2881 switch ( material_type )
2882 {
2888 }
2889
2890 return "";
2891 }
2892
2894 {
2896
2897 switch ( material_type )
2898 {
2904 }
2905
2906 return "";
2907 }
2908
2909
2911 {
2913 {
2914
2916 {
2917 SetHealth(slot_name,"Health",item.GetHealth());
2918 }
2919 }
2920 }
2921
2923 {
2924 return 111;
2925 }
2926
2928 {
2929 super.SetActions();
2930
2934 }
2935
2936
2937
2938
2940 {
2941 }
2942
2945 {
2946 return null;
2947 }
2948
2950 {
2952 }
2953
2955 {
2958
2959 Man p;
2960
2961 #ifdef SERVER
2964 if (players.Count())
2965 p = players[0];
2966 #else
2968 #endif
2969
2971 {
2972 bool excluded = false;
2974 if (excludes)
2975 {
2976 foreach (string exclude : excludes)
2977 {
2979 {
2980 excluded = true;
2981 break;
2982 }
2983 }
2984 }
2985
2986 if (!excluded)
2987 {
2989 }
2990 }
2991
2993 }
2994}
2995
2997{
2998#ifdef BSB_DEBUG
3000#else
3001
3002#endif
3003}
3005{
3006#ifdef BSB_DEBUG_SPAM
3008#else
3009
3010#endif
3011}
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.