1698{
1700
1702
1704
1706
1712
1713
1714
1720
1726
1728
1732
1733
1735 {
1737
1738
1739 RegisterNetSyncVariableInt( "m_SyncParts01" );
1740 RegisterNetSyncVariableInt( "m_SyncParts02" );
1741 RegisterNetSyncVariableInt( "m_SyncParts03" );
1742 RegisterNetSyncVariableInt( "m_InteractedPartId" );
1743 RegisterNetSyncVariableInt( "m_PerformedActionId" );
1744 RegisterNetSyncVariableBool( "m_HasBase" );
1745
1746
1748
1749 if (ConfigIsExisting("hybridAttachments"))
1750 {
1753 }
1754 if (ConfigIsExisting("mountables"))
1755 {
1758 }
1759
1761 }
1762
1764 {
1765 super.EEDelete(parent);
1766
1768 {
1769 areaDamage.Destroy();
1770 }
1771
1772 }
1773
1775 {
1776 return "disableBaseDamage";
1777 }
1778
1780 {
1781 return true;
1782 }
1783
1785 {
1786 return EInventoryIconVisibility.HIDE_VICINITY;
1787 }
1788
1790 {
1791 super.InitItemSounds();
1792
1796
1801 }
1802
1804 {
1805 return "putDown_FenceKit_SoundSet";
1806 }
1807
1809 {
1810 return "Shelter_Site_Build_Loop_SoundSet";
1811 }
1812
1813
1815 {
1817 {
1818 SetSynchDirty();
1819 }
1820 }
1821
1823 {
1825 super.OnVariablesSynchronized();
1826
1828 }
1829
1831 {
1832
1834
1835
1837
1838
1840 }
1841
1842
1844 {
1845
1846 int offset;
1847 int mask;
1848
1849 if ( part_id >= 1 && part_id <= 31 )
1850 {
1851 offset = part_id - 1;
1852 mask = 1 << offset;
1853
1855 }
1856 else if ( part_id >= 32 && part_id <= 62 )
1857 {
1858 offset = ( part_id % 32 );
1859 mask = 1 << offset;
1860
1862 }
1863 else if ( part_id >= 63 && part_id <= 93 )
1864 {
1865 offset = ( part_id % 63 );
1866 mask = 1 << offset;
1867
1869 }
1870 }
1871
1873 {
1874
1875 int offset;
1876 int mask;
1877
1878 if ( part_id >= 1 && part_id <= 31 )
1879 {
1880 offset = part_id - 1;
1881 mask = 1 << offset;
1882
1884 }
1885 else if ( part_id >= 32 && part_id <= 62 )
1886 {
1887 offset = ( part_id % 32 );
1888 mask = 1 << offset;
1889
1891 }
1892 else if ( part_id >= 63 && part_id <= 93 )
1893 {
1894 offset = ( part_id % 63 );
1895 mask = 1 << offset;
1896
1898 }
1899 }
1900
1902 {
1903
1904 int offset;
1905 int mask;
1906
1907 if ( part_id >= 1 && part_id <= 31 )
1908 {
1909 offset = part_id - 1;
1910 mask = 1 << offset;
1911
1913 {
1914 return true;
1915 }
1916 }
1917 else if ( part_id >= 32 && part_id <= 62 )
1918 {
1919 offset = ( part_id % 32 );
1920 mask = 1 << offset;
1921
1923 {
1924 return true;
1925 }
1926 }
1927 else if ( part_id >= 63 && part_id <= 93 )
1928 {
1929 offset = ( part_id % 63 );
1930 mask = 1 << offset;
1931
1933 {
1934 return true;
1935 }
1936 }
1937
1938 return false;
1939 }
1940
1942 {
1945 }
1946
1948 {
1949
1952 }
1953
1955 {
1957 {
1960
1961 switch( build_action_id )
1962 {
1966 }
1967 }
1968 }
1969
1970
1972 {
1974 bool is_base = part.
IsBase();
1977 if ( is_part_built_sync )
1978 {
1980 {
1984
1985 if (is_base)
1986 {
1989 }
1990 }
1991 }
1992 else
1993 {
1995 {
1999
2000 if (is_base)
2001 {
2004 }
2005 }
2006 }
2007
2008
2010 }
2011
2012
2014 {
2017
2018 for ( int i = 0; i < construction_parts.Count(); ++i )
2019 {
2020 string key = construction_parts.GetKey( i );
2023 }
2024
2025
2027 }
2028
2030 {
2033
2034 for ( int i = 0; i < construction_parts.Count(); ++i )
2035 {
2036 string key = construction_parts.GetKey( i );
2038
2039 if ( value.
GetId() ==
id )
2040 {
2041 return value;
2042 }
2043 }
2044
2045 return NULL;
2046 }
2047
2048
2049
2051 {
2053 }
2054
2056 {
2058 }
2059
2061 {
2062 return true;
2063 }
2064
2066 {
2067 return false;
2068 }
2069
2070
2072 {
2075 {
2077 }
2078
2079 return construction_kit;
2080 }
2081
2083 {
2086 {
2088 }
2089 }
2090
2092 {
2094 }
2095
2097 {
2098 return "";
2099 }
2100
2102 {
2105 }
2106
2107
2109 {
2112 }
2113
2114
2116 {
2117 super.OnStoreSave( ctx );
2118
2119
2123
2125 }
2126
2128 {
2129 if ( !super.OnStoreLoad( ctx, version ) )
2130 return false;
2131
2132
2133
2135 {
2137 return false;
2138 }
2140 {
2142 return false;
2143 }
2145 {
2147 return false;
2148 }
2149
2150
2152 {
2154 return false;
2155 }
2156
2157
2158 return true;
2159 }
2160
2162 {
2163 super.AfterStoreLoad();
2164
2166 {
2168 }
2169 }
2170
2172 {
2173
2175
2176
2179
2180
2182 }
2183
2185 {
2186 super.OnCreatePhysics();
2189 }
2190
2192 {
2194 return;
2195
2196 super.EEHealthLevelChanged(oldLevel,newLevel,zone);
2197
2199 return;
2200
2202 string part_name = zone;
2204
2206 {
2207 ConstructionPart construction_part = construction.GetConstructionPart( part_name );
2208
2209 if ( construction_part && construction.IsPartConstructed( part_name ) )
2210 {
2212 construction.DestroyConnectedParts(part_name);
2213 }
2214
2215
2216 if ( part_name.
Contains(
"barbed") )
2217 {
2218 BarbedWire barbed_wire = BarbedWire.Cast( FindAttachmentBySlotName( zone ) );
2219 if (barbed_wire)
2220 barbed_wire.SetMountedState( false );
2221 }
2222 }
2223 }
2224
2226 {
2228 {
2230 }
2231
2232 super.EEOnAfterLoad();
2233 }
2234
2236 {
2237 super.EEInit();
2238
2239
2241
2242
2243 #ifdef DEVELOPER
2245 #endif
2246 }
2247
2249 {
2250 super.EEItemAttached( item, slot_name );
2251
2255 }
2256
2258 {
2259 super.EEItemDetached( item, slot_name );
2260
2263 }
2264
2265 protected void OnSetSlotLock(
int slotId,
bool locked,
bool was_locked )
2266 {
2269
2272 }
2273
2274
2276 {
2277 return true;
2278 }
2279
2280
2281
2283 {
2285
2286
2287 if (construtionPart.
IsBase())
2288 {
2290
2291
2293 }
2294
2295
2297
2298
2300
2301
2303
2305
2307
2308
2310
2311
2313 }
2314
2316 {
2317
2319 }
2320
2321
2323 {
2326
2327
2329
2330
2332
2333
2335
2336
2338
2340
2341
2343
2344
2346
2347
2348 if (construtionPart.
IsBase())
2349 {
2350
2352 }
2353 }
2354
2356 {
2357
2359 }
2360
2361
2362 void OnPartDestroyedServer(Man player,
string part_name,
int action_id,
bool destroyed_by_connected_part =
false)
2363 {
2366
2367
2369
2370
2372
2373
2375
2376
2378
2380
2381
2383
2384
2386
2387
2388 if (construtionPart.
IsBase())
2389 {
2390
2392 }
2393 }
2394
2396 {
2397
2399 }
2400
2403 {
2404 bool process = false;
2405
2406
2410
2411 if (process)
2412 {
2413 if (!MemoryPointExists(part.
m_PartName +
"_min") || !MemoryPointExists(part.
m_PartName +
"_max"))
2414 {
2416 return;
2417 }
2418
2420 mins = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_min"));
2421 maxs = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_max"));
2422
2423
2425 minTmp[0] =
Math.
Min(mins[0],maxs[0]);
2426 maxTmp[0] =
Math.
Max(mins[0],maxs[0]);
2427 minTmp[1] =
Math.
Min(mins[1],maxs[1]);
2428 maxTmp[1] =
Math.
Max(mins[1],maxs[1]);
2429 minTmp[2] =
Math.
Min(mins[2],maxs[2]);
2430 maxTmp[2] =
Math.
Max(mins[2],maxs[2]);
2431 mins = minTmp;
2432 maxs = maxTmp;
2433
2434 maxs[1] = maxs[1] + 0.35;
2435
2437 }
2438 }
2439
2442 {
2445
2446
2448 foreach (
EntityAI entity : foundEntities)
2449 {
2452 }
2453 }
2454
2455
2457 {
2459
2463 }
2464
2466 {
2468
2470 {
2472 }
2473 else
2474 {
2476 }
2477
2479 }
2480
2482 {
2484
2486 foreach (
string slotName : attachmentSlots)
2487 {
2489 }
2490
2491
2494 else
2496
2498 }
2499
2501 {
2502 string slotNameMounted = slot_name + "_Mounted";
2503 EntityAI attachment = FindAttachmentBySlotName(slot_name);
2504
2505 if (attachment)
2506 {
2507 BarbedWire barbedWire = BarbedWire.Cast(attachment);
2508 if (barbedWire && barbedWire.IsMounted())
2510 else
2512
2513 if (is_locked)
2514 {
2515 SetAnimationPhase(slotNameMounted, 0);
2516 SetAnimationPhase(slot_name, 1);
2517 }
2518 else
2519 {
2520 SetAnimationPhase(slotNameMounted, 1);
2521 SetAnimationPhase(slot_name, 0);
2522 }
2523 }
2524 else
2525 {
2526 SetAnimationPhase(slotNameMounted, 1);
2527 SetAnimationPhase(slot_name, 1);
2528
2530 }
2531 }
2532
2533
2535 {
2538
2541
2544
2545 foreach (
string slotName : attachmentSlots)
2546 {
2548 }
2549
2550
2552 {
2555
2557 }
2558 else
2559 {
2562
2564 }
2565
2568 }
2569
2571 {
2572
2574 return;
2575
2576 string slot_name_mounted = slot_name + "_Mounted";
2577 EntityAI attachment = FindAttachmentBySlotName( slot_name );
2578
2579
2581 RemoveProxyPhysics( slot_name_mounted );
2582 RemoveProxyPhysics( slot_name );
2583
2584 if ( attachment )
2585 {
2587 if ( is_locked )
2588 {
2590 AddProxyPhysics( slot_name_mounted );
2591 }
2592 else
2593 {
2595 AddProxyPhysics( slot_name );
2596 }
2597 }
2598 }
2599
2601 {
2602 SetAffectPathgraph( true, false );
2604 }
2605
2607 {
2608 return true;
2609 }
2610
2612 {
2613 return true;
2614 }
2615
2617 {
2618 if ( attachment )
2619 {
2621 attachment.GetInventory().GetCurrentInventoryLocation( inventory_location );
2622
2623 return GetInventory().GetSlotLock( inventory_location.
GetSlot() );
2624 }
2625
2626 return false;
2627 }
2628
2630 {
2632 }
2633
2634
2636 {
2637 string config_path = "CfgVehicles" + " " + entity.GetType() + " " + "attachments";
2638 if (
GetGame().ConfigIsExisting( config_path ) )
2639 {
2641 }
2642 }
2643
2645 {
2646 return true;
2647 }
2648
2650 {
2651 return true;
2652 }
2653
2655 {
2656 return true;
2657 }
2658
2659
2661 {
2663 {
2665 }
2666
2668 }
2669
2671 {
2673 }
2674
2675
2676
2678 {
2679 return super.CanReceiveAttachment(attachment, slotId);
2680 }
2681
2683 {
2684 int attachment_count = GetInventory().AttachmentCount();
2685 if ( attachment_count > 0 )
2686 {
2687 if (
HasBase() && attachment_count == 1 )
2688 {
2689 return false;
2690 }
2691
2692 return true;
2693 }
2694
2695 return false;
2696 }
2697
2699 {
2700 return true;
2701 }
2702
2704 {
2705 return false;
2706 }
2707
2708
2710 {
2711 return false;
2712 }
2713
2715 {
2716 return false;
2717 }
2718
2719
2721 {
2722 return false;
2723 }
2724
2725
2726
2728 {
2729 return true;
2730 }
2731
2733 {
2734 return true;
2735 }
2736
2739 {
2740 return false;
2741 }
2742
2743
2745 {
2746 return true;
2747 }
2748
2749
2751 {
2752 return false;
2753 }
2754
2755
2757 {
2758 return true;
2759 }
2760
2761
2763 {
2764 if (
HasBase() || GetInventory().AttachmentCount() > 0 )
2765 {
2766 return false;
2767 }
2768
2769 return true;
2770 }
2771
2773 {
2776
2777 return item;
2778 }
2779
2780
2782 {
2784 {
2785
2787
2788
2791
2793 if ( MemoryPointExists( slot_name + "_min" ) )
2794 {
2795 min_max[0] = GetMemoryPointPos( slot_name + "_min" );
2796 }
2797 if ( MemoryPointExists( slot_name + "_max" ) )
2798 {
2799 min_max[1] = GetMemoryPointPos( slot_name + "_max" );
2800 }
2801
2802
2805
2806
2809 center = ModelToWorld( center );
2810
2811
2814
2815 areaDamage.SetExtents( extents[0], extents[1] );
2816 areaDamage.SetAreaPosition( center );
2817 areaDamage.SetAreaOrientation( orientation );
2820 areaDamage.SetHitZones( { "Torso","LeftHand","LeftLeg","LeftFoot","RightHand","RightLeg","RightFoot" } );
2821 areaDamage.SetAmmoName( "BarbedWireHit" );
2822 areaDamage.Spawn();
2823
2825 }
2826 }
2827
2829 {
2830 if ( angle_deg != 0 )
2831 {
2832
2833 orientation[0] = orientation[0] - angle_deg;
2834
2835
2837 if ( MemoryPointExists( "rotate_axis" ) )
2838 {
2839 rotate_axis = ModelToWorld( GetMemoryPointPos( "rotate_axis" ) );
2840 }
2841 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];
2842 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];
2843 center[0] = r_center_x;
2844 center[2] = r_center_z;
2845 }
2846 }
2847
2849 {
2851 {
2854 {
2855 if (areaDamage)
2856 {
2857 areaDamage.Destroy();
2858 }
2859
2861 }
2862 }
2863 }
2864
2866 {
2867 return true;
2868 }
2869
2870
2871
2872
2874 {
2876 }
2877
2879 {
2881 }
2882
2884 {
2886 }
2887
2889 {
2891
2892 switch ( material_type )
2893 {
2899 }
2900
2901 return "";
2902 }
2903
2905 {
2907
2908 switch ( material_type )
2909 {
2915 }
2916
2917 return "";
2918 }
2919
2920
2922 {
2924 {
2925
2927 {
2928 SetHealth(slot_name,"Health",item.GetHealth());
2929 }
2930 }
2931 }
2932
2934 {
2935 return 111;
2936 }
2937
2939 {
2940 super.SetActions();
2941
2945 }
2946
2947
2948
2949
2951 {
2952 }
2953
2956 {
2957 return null;
2958 }
2959
2961 {
2963 }
2964
2966 {
2969
2970 Man p;
2971
2972 #ifdef SERVER
2975 if (players.Count())
2976 p = players[0];
2977 #else
2979 #endif
2980
2982 {
2983 bool excluded = false;
2985 if (excludes)
2986 {
2987 foreach (string exclude : excludes)
2988 {
2990 {
2991 excluded = true;
2992 break;
2993 }
2994 }
2995 }
2996
2997 if (!excluded)
2998 {
3000 }
3001 }
3002
3004 }
3005}
3006
3008{
3009#ifdef BSB_DEBUG
3011#else
3012
3013#endif
3014}
3016{
3017#ifdef BSB_DEBUG_SPAM
3019#else
3020
3021#endif
3022}
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.