1681{
1683
1685
1687
1689
1695
1696
1697
1703
1709
1711
1715
1716
1718 {
1720
1721
1722 RegisterNetSyncVariableInt( "m_SyncParts01" );
1723 RegisterNetSyncVariableInt( "m_SyncParts02" );
1724 RegisterNetSyncVariableInt( "m_SyncParts03" );
1725 RegisterNetSyncVariableInt( "m_InteractedPartId" );
1726 RegisterNetSyncVariableInt( "m_PerformedActionId" );
1727 RegisterNetSyncVariableBool( "m_HasBase" );
1728
1729
1731
1732 if (ConfigIsExisting("hybridAttachments"))
1733 {
1736 }
1737 if (ConfigIsExisting("mountables"))
1738 {
1741 }
1742
1744 }
1745
1747 {
1748 super.EEDelete(parent);
1749
1751 {
1752 areaDamage.Destroy();
1753 }
1754
1755 }
1756
1758 {
1759 return "disableBaseDamage";
1760 }
1761
1763 {
1764 return true;
1765 }
1766
1768 {
1769 return EInventoryIconVisibility.HIDE_VICINITY;
1770 }
1771
1773 {
1774 super.InitItemSounds();
1775
1779
1784 }
1785
1787 {
1788 return "putDown_FenceKit_SoundSet";
1789 }
1790
1792 {
1793 return "Shelter_Site_Build_Loop_SoundSet";
1794 }
1795
1796
1798 {
1800 {
1801 SetSynchDirty();
1802 }
1803 }
1804
1806 {
1808 super.OnVariablesSynchronized();
1809
1811 }
1812
1814 {
1815
1817
1818
1820
1821
1823 }
1824
1825
1827 {
1828
1829 int offset;
1830 int mask;
1831
1832 if ( part_id >= 1 && part_id <= 31 )
1833 {
1834 offset = part_id - 1;
1835 mask = 1 << offset;
1836
1838 }
1839 else if ( part_id >= 32 && part_id <= 62 )
1840 {
1841 offset = ( part_id % 32 );
1842 mask = 1 << offset;
1843
1845 }
1846 else if ( part_id >= 63 && part_id <= 93 )
1847 {
1848 offset = ( part_id % 63 );
1849 mask = 1 << offset;
1850
1852 }
1853 }
1854
1856 {
1857
1858 int offset;
1859 int mask;
1860
1861 if ( part_id >= 1 && part_id <= 31 )
1862 {
1863 offset = part_id - 1;
1864 mask = 1 << offset;
1865
1867 }
1868 else if ( part_id >= 32 && part_id <= 62 )
1869 {
1870 offset = ( part_id % 32 );
1871 mask = 1 << offset;
1872
1874 }
1875 else if ( part_id >= 63 && part_id <= 93 )
1876 {
1877 offset = ( part_id % 63 );
1878 mask = 1 << offset;
1879
1881 }
1882 }
1883
1885 {
1886
1887 int offset;
1888 int mask;
1889
1890 if ( part_id >= 1 && part_id <= 31 )
1891 {
1892 offset = part_id - 1;
1893 mask = 1 << offset;
1894
1896 {
1897 return true;
1898 }
1899 }
1900 else if ( part_id >= 32 && part_id <= 62 )
1901 {
1902 offset = ( part_id % 32 );
1903 mask = 1 << offset;
1904
1906 {
1907 return true;
1908 }
1909 }
1910 else if ( part_id >= 63 && part_id <= 93 )
1911 {
1912 offset = ( part_id % 63 );
1913 mask = 1 << offset;
1914
1916 {
1917 return true;
1918 }
1919 }
1920
1921 return false;
1922 }
1923
1925 {
1928 }
1929
1931 {
1932
1935 }
1936
1938 {
1940 {
1943
1944 switch( build_action_id )
1945 {
1949 }
1950 }
1951 }
1952
1953
1955 {
1957 bool is_base = part.
IsBase();
1960 if ( is_part_built_sync )
1961 {
1963 {
1967
1968 if (is_base)
1969 {
1972 }
1973 }
1974 }
1975 else
1976 {
1978 {
1982
1983 if (is_base)
1984 {
1987 }
1988 }
1989 }
1990
1991
1993 }
1994
1995
1997 {
2000
2001 for ( int i = 0; i < construction_parts.Count(); ++i )
2002 {
2003 string key = construction_parts.GetKey( i );
2006 }
2007
2008
2010 }
2011
2013 {
2016
2017 for ( int i = 0; i < construction_parts.Count(); ++i )
2018 {
2019 string key = construction_parts.GetKey( i );
2021
2022 if ( value.
GetId() ==
id )
2023 {
2024 return value;
2025 }
2026 }
2027
2028 return NULL;
2029 }
2030
2031
2032
2034 {
2036 }
2037
2039 {
2041 }
2042
2044 {
2045 return true;
2046 }
2047
2049 {
2050 return false;
2051 }
2052
2053
2055 {
2058 {
2060 }
2061
2062 return construction_kit;
2063 }
2064
2066 {
2069 {
2071 }
2072 }
2073
2075 {
2077 }
2078
2080 {
2081 return "";
2082 }
2083
2085 {
2088 }
2089
2090
2092 {
2095 }
2096
2097
2099 {
2100 super.OnStoreSave( ctx );
2101
2102
2106
2108 }
2109
2111 {
2112 if ( !super.OnStoreLoad( ctx, version ) )
2113 return false;
2114
2115
2116
2118 {
2120 return false;
2121 }
2123 {
2125 return false;
2126 }
2128 {
2130 return false;
2131 }
2132
2133
2135 {
2137 return false;
2138 }
2139
2140
2141 return true;
2142 }
2143
2145 {
2146 super.AfterStoreLoad();
2147
2149 {
2151 }
2152 }
2153
2155 {
2156
2158
2159
2162
2163
2165 }
2166
2168 {
2169 super.OnCreatePhysics();
2172 }
2173
2175 {
2177 return;
2178
2179 super.EEHealthLevelChanged(oldLevel,newLevel,zone);
2180
2182 return;
2183
2185 string part_name = zone;
2187
2189 {
2190 ConstructionPart construction_part = construction.GetConstructionPart( part_name );
2191
2192 if ( construction_part && construction.IsPartConstructed( part_name ) )
2193 {
2195 construction.DestroyConnectedParts(part_name);
2196 }
2197
2198
2199 if ( part_name.
Contains(
"barbed") )
2200 {
2201 BarbedWire barbed_wire = BarbedWire.Cast( FindAttachmentBySlotName( zone ) );
2202 if (barbed_wire)
2203 barbed_wire.SetMountedState( false );
2204 }
2205 }
2206 }
2207
2209 {
2211 {
2213 }
2214
2215 super.EEOnAfterLoad();
2216 }
2217
2219 {
2220 super.EEInit();
2221
2222
2224
2225
2226 #ifdef DEVELOPER
2228 #endif
2229 }
2230
2232 {
2233 super.EEItemAttached( item, slot_name );
2234
2238 }
2239
2241 {
2242 super.EEItemDetached( item, slot_name );
2243
2246 }
2247
2248 protected void OnSetSlotLock(
int slotId,
bool locked,
bool was_locked )
2249 {
2252
2255 }
2256
2257
2259 {
2260 return true;
2261 }
2262
2263
2264
2266 {
2268
2269
2270 if (construtionPart.
IsBase())
2271 {
2273
2274
2276 }
2277
2278
2280
2281
2283
2284
2286
2288
2290
2291
2293
2294
2296 }
2297
2299 {
2300
2302 }
2303
2304
2306 {
2309
2310
2312
2313
2315
2316
2318
2319
2321
2323
2324
2326
2327
2329
2330
2331 if (construtionPart.
IsBase())
2332 {
2333
2335 }
2336 }
2337
2339 {
2340
2342 }
2343
2344
2345 void OnPartDestroyedServer(Man player,
string part_name,
int action_id,
bool destroyed_by_connected_part =
false)
2346 {
2349
2350
2352
2353
2355
2356
2358
2359
2361
2363
2364
2366
2367
2369
2370
2371 if (construtionPart.
IsBase())
2372 {
2373
2375 }
2376 }
2377
2379 {
2380
2382 }
2383
2386 {
2387 bool process = false;
2388
2389
2393
2394 if (process)
2395 {
2396 if (!MemoryPointExists(part.
m_PartName +
"_min") || !MemoryPointExists(part.
m_PartName +
"_max"))
2397 {
2399 return;
2400 }
2401
2403 mins = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_min"));
2404 maxs = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_max"));
2405
2406
2408 minTmp[0] =
Math.
Min(mins[0],maxs[0]);
2409 maxTmp[0] =
Math.
Max(mins[0],maxs[0]);
2410 minTmp[1] =
Math.
Min(mins[1],maxs[1]);
2411 maxTmp[1] =
Math.
Max(mins[1],maxs[1]);
2412 minTmp[2] =
Math.
Min(mins[2],maxs[2]);
2413 maxTmp[2] =
Math.
Max(mins[2],maxs[2]);
2414 mins = minTmp;
2415 maxs = maxTmp;
2416
2417 maxs[1] = maxs[1] + 0.35;
2418
2420 }
2421 }
2422
2425 {
2428
2429
2431 foreach (
EntityAI entity : foundEntities)
2432 {
2435 }
2436 }
2437
2438
2440 {
2442
2446 }
2447
2449 {
2451
2453 {
2455 }
2456 else
2457 {
2459 }
2460
2462 }
2463
2465 {
2467
2469 foreach (
string slotName : attachmentSlots)
2470 {
2472 }
2473
2474
2477 else
2479
2481 }
2482
2484 {
2485 string slotNameMounted = slot_name + "_Mounted";
2486 EntityAI attachment = FindAttachmentBySlotName(slot_name);
2487
2488 if (attachment)
2489 {
2490 BarbedWire barbedWire = BarbedWire.Cast(attachment);
2491 if (barbedWire && barbedWire.IsMounted())
2493 else
2495
2496 if (is_locked)
2497 {
2498 SetAnimationPhase(slotNameMounted, 0);
2499 SetAnimationPhase(slot_name, 1);
2500 }
2501 else
2502 {
2503 SetAnimationPhase(slotNameMounted, 1);
2504 SetAnimationPhase(slot_name, 0);
2505 }
2506 }
2507 else
2508 {
2509 SetAnimationPhase(slotNameMounted, 1);
2510 SetAnimationPhase(slot_name, 1);
2511
2513 }
2514 }
2515
2516
2518 {
2521
2524
2527
2528 foreach (
string slotName : attachmentSlots)
2529 {
2531 }
2532
2533
2535 {
2538
2540 }
2541 else
2542 {
2545
2547 }
2548
2551 }
2552
2554 {
2555
2557 return;
2558
2559 string slot_name_mounted = slot_name + "_Mounted";
2560 EntityAI attachment = FindAttachmentBySlotName( slot_name );
2561
2562
2564 RemoveProxyPhysics( slot_name_mounted );
2565 RemoveProxyPhysics( slot_name );
2566
2567 if ( attachment )
2568 {
2570 if ( is_locked )
2571 {
2573 AddProxyPhysics( slot_name_mounted );
2574 }
2575 else
2576 {
2578 AddProxyPhysics( slot_name );
2579 }
2580 }
2581 }
2582
2584 {
2585 SetAffectPathgraph( true, false );
2587 }
2588
2590 {
2591 return true;
2592 }
2593
2595 {
2596 return true;
2597 }
2598
2600 {
2601 if ( attachment )
2602 {
2604 attachment.GetInventory().GetCurrentInventoryLocation( inventory_location );
2605
2606 return GetInventory().GetSlotLock( inventory_location.
GetSlot() );
2607 }
2608
2609 return false;
2610 }
2611
2613 {
2615 }
2616
2617
2619 {
2620 string config_path = "CfgVehicles" + " " + entity.GetType() + " " + "attachments";
2621 if (
GetGame().ConfigIsExisting( config_path ) )
2622 {
2624 }
2625 }
2626
2628 {
2629 return true;
2630 }
2631
2633 {
2634 return true;
2635 }
2636
2638 {
2639 return true;
2640 }
2641
2642
2644 {
2646 {
2648 }
2649
2651 }
2652
2654 {
2656 }
2657
2658
2659
2661 {
2662 return super.CanReceiveAttachment(attachment, slotId);
2663 }
2664
2666 {
2667 int attachment_count = GetInventory().AttachmentCount();
2668 if ( attachment_count > 0 )
2669 {
2670 if (
HasBase() && attachment_count == 1 )
2671 {
2672 return false;
2673 }
2674
2675 return true;
2676 }
2677
2678 return false;
2679 }
2680
2682 {
2683 return true;
2684 }
2685
2687 {
2688 return false;
2689 }
2690
2691
2693 {
2694 return false;
2695 }
2696
2698 {
2699 return false;
2700 }
2701
2702
2704 {
2705 return false;
2706 }
2707
2708
2709
2711 {
2712 return true;
2713 }
2714
2716 {
2717 return true;
2718 }
2719
2722 {
2723 return false;
2724 }
2725
2726
2728 {
2729 return true;
2730 }
2731
2732
2734 {
2735 return false;
2736 }
2737
2738
2740 {
2741 return true;
2742 }
2743
2744
2746 {
2747 if (
HasBase() || GetInventory().AttachmentCount() > 0 )
2748 {
2749 return false;
2750 }
2751
2752 return true;
2753 }
2754
2756 {
2759
2760 return item;
2761 }
2762
2763
2765 {
2767 {
2768
2770
2771
2774
2776 if ( MemoryPointExists( slot_name + "_min" ) )
2777 {
2778 min_max[0] = GetMemoryPointPos( slot_name + "_min" );
2779 }
2780 if ( MemoryPointExists( slot_name + "_max" ) )
2781 {
2782 min_max[1] = GetMemoryPointPos( slot_name + "_max" );
2783 }
2784
2785
2788
2789
2792 center = ModelToWorld( center );
2793
2794
2797
2798 areaDamage.SetExtents( extents[0], extents[1] );
2799 areaDamage.SetAreaPosition( center );
2800 areaDamage.SetAreaOrientation( orientation );
2803 areaDamage.SetHitZones( { "Torso","LeftHand","LeftLeg","LeftFoot","RightHand","RightLeg","RightFoot" } );
2804 areaDamage.SetAmmoName( "BarbedWireHit" );
2805 areaDamage.Spawn();
2806
2808 }
2809 }
2810
2812 {
2813 if ( angle_deg != 0 )
2814 {
2815
2816 orientation[0] = orientation[0] - angle_deg;
2817
2818
2820 if ( MemoryPointExists( "rotate_axis" ) )
2821 {
2822 rotate_axis = ModelToWorld( GetMemoryPointPos( "rotate_axis" ) );
2823 }
2824 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];
2825 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];
2826 center[0] = r_center_x;
2827 center[2] = r_center_z;
2828 }
2829 }
2830
2832 {
2834 {
2837 {
2838 if (areaDamage)
2839 {
2840 areaDamage.Destroy();
2841 }
2842
2844 }
2845 }
2846 }
2847
2849 {
2850 return true;
2851 }
2852
2853
2854
2855
2857 {
2859 }
2860
2862 {
2864 }
2865
2867 {
2869 }
2870
2872 {
2874
2875 switch ( material_type )
2876 {
2882 }
2883
2884 return "";
2885 }
2886
2888 {
2890
2891 switch ( material_type )
2892 {
2898 }
2899
2900 return "";
2901 }
2902
2903
2905 {
2907 {
2908
2910 {
2911 SetHealth(slot_name,"Health",item.GetHealth());
2912 }
2913 }
2914 }
2915
2917 {
2918 return 111;
2919 }
2920
2922 {
2923 super.SetActions();
2924
2928 }
2929
2930
2931
2932
2934 {
2935 }
2936
2939 {
2940 return null;
2941 }
2942
2944 {
2946 }
2947
2949 {
2952
2953 Man p;
2954
2955 #ifdef SERVER
2958 if (players.Count())
2959 p = players[0];
2960 #else
2962 #endif
2963
2965 {
2966 bool excluded = false;
2968 if (excludes)
2969 {
2970 foreach (string exclude : excludes)
2971 {
2973 {
2974 excluded = true;
2975 break;
2976 }
2977 }
2978 }
2979
2980 if (!excluded)
2981 {
2983 }
2984 }
2985
2987 }
2988}
2989
2991{
2992#ifdef BSB_DEBUG
2994#else
2995
2996#endif
2997}
2999{
3000#ifdef BSB_DEBUG_SPAM
3002#else
3003
3004#endif
3005}
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.