1717{
1719
1721
1723
1725
1731
1732
1733
1739
1745
1747
1751
1752
1754 {
1756
1757
1758 RegisterNetSyncVariableInt( "m_SyncParts01" );
1759 RegisterNetSyncVariableInt( "m_SyncParts02" );
1760 RegisterNetSyncVariableInt( "m_SyncParts03" );
1761 RegisterNetSyncVariableInt( "m_InteractedPartId" );
1762 RegisterNetSyncVariableInt( "m_PerformedActionId" );
1763 RegisterNetSyncVariableBool( "m_HasBase" );
1764
1765
1767
1768 if (ConfigIsExisting("hybridAttachments"))
1769 {
1772 }
1773 if (ConfigIsExisting("mountables"))
1774 {
1777 }
1778
1780 }
1781
1783 {
1784 super.EEDelete(parent);
1785
1787 {
1788 areaDamage.Destroy();
1789 }
1790
1791 }
1792
1794 {
1795 return "disableBaseDamage";
1796 }
1797
1799 {
1800 return true;
1801 }
1802
1804 {
1805 return EInventoryIconVisibility.HIDE_VICINITY;
1806 }
1807
1809 {
1810 super.InitItemSounds();
1811
1815
1820 }
1821
1823 {
1824 return "putDown_FenceKit_SoundSet";
1825 }
1826
1828 {
1829 return "Shelter_Site_Build_Loop_SoundSet";
1830 }
1831
1832
1834 {
1836 {
1837 SetSynchDirty();
1838 }
1839 }
1840
1842 {
1844 super.OnVariablesSynchronized();
1845
1847 }
1848
1850 {
1851
1853
1854
1856
1857
1859 }
1860
1861
1863 {
1864
1865 int offset;
1866 int mask;
1867
1868 if ( part_id >= 1 && part_id <= 31 )
1869 {
1870 offset = part_id - 1;
1871 mask = 1 << offset;
1872
1874 }
1875 else if ( part_id >= 32 && part_id <= 62 )
1876 {
1877 offset = ( part_id % 32 );
1878 mask = 1 << offset;
1879
1881 }
1882 else if ( part_id >= 63 && part_id <= 93 )
1883 {
1884 offset = ( part_id % 63 );
1885 mask = 1 << offset;
1886
1888 }
1889 }
1890
1892 {
1893
1894 int offset;
1895 int mask;
1896
1897 if ( part_id >= 1 && part_id <= 31 )
1898 {
1899 offset = part_id - 1;
1900 mask = 1 << offset;
1901
1903 }
1904 else if ( part_id >= 32 && part_id <= 62 )
1905 {
1906 offset = ( part_id % 32 );
1907 mask = 1 << offset;
1908
1910 }
1911 else if ( part_id >= 63 && part_id <= 93 )
1912 {
1913 offset = ( part_id % 63 );
1914 mask = 1 << offset;
1915
1917 }
1918 }
1919
1921 {
1922
1923 int offset;
1924 int mask;
1925
1926 if ( part_id >= 1 && part_id <= 31 )
1927 {
1928 offset = part_id - 1;
1929 mask = 1 << offset;
1930
1932 {
1933 return true;
1934 }
1935 }
1936 else if ( part_id >= 32 && part_id <= 62 )
1937 {
1938 offset = ( part_id % 32 );
1939 mask = 1 << offset;
1940
1942 {
1943 return true;
1944 }
1945 }
1946 else if ( part_id >= 63 && part_id <= 93 )
1947 {
1948 offset = ( part_id % 63 );
1949 mask = 1 << offset;
1950
1952 {
1953 return true;
1954 }
1955 }
1956
1957 return false;
1958 }
1959
1961 {
1964 }
1965
1967 {
1968
1971 }
1972
1974 {
1976 {
1979
1980 switch( build_action_id )
1981 {
1985 }
1986 }
1987 }
1988
1989
1991 {
1993 bool is_base = part.
IsBase();
1996 if ( is_part_built_sync )
1997 {
1999 {
2003
2004 if (is_base)
2005 {
2008 }
2009 }
2010 }
2011 else
2012 {
2014 {
2018
2019 if (is_base)
2020 {
2023 }
2024 }
2025 }
2026
2027
2029 }
2030
2031
2033 {
2036
2037 for ( int i = 0; i < construction_parts.Count(); ++i )
2038 {
2039 string key = construction_parts.GetKey( i );
2042 }
2043
2044
2046 }
2047
2049 {
2052
2053 for ( int i = 0; i < construction_parts.Count(); ++i )
2054 {
2055 string key = construction_parts.GetKey( i );
2057
2058 if ( value.
GetId() ==
id )
2059 {
2060 return value;
2061 }
2062 }
2063
2064 return NULL;
2065 }
2066
2067
2068
2070 {
2072 }
2073
2075 {
2077 }
2078
2080 {
2081 return true;
2082 }
2083
2085 {
2086 return false;
2087 }
2088
2089
2091 {
2094 {
2096 }
2097
2098 return construction_kit;
2099 }
2100
2102 {
2105 {
2107 }
2108 }
2109
2111 {
2113 }
2114
2116 {
2117 return "";
2118 }
2119
2121 {
2124 }
2125
2126
2128 {
2131 }
2132
2133
2135 {
2136 super.OnStoreSave( ctx );
2137
2138
2142
2144 }
2145
2147 {
2148 if ( !super.OnStoreLoad( ctx, version ) )
2149 return false;
2150
2151
2152
2154 {
2156 return false;
2157 }
2159 {
2161 return false;
2162 }
2164 {
2166 return false;
2167 }
2168
2169
2171 {
2173 return false;
2174 }
2175
2176
2177 return true;
2178 }
2179
2181 {
2182 super.AfterStoreLoad();
2183
2185 {
2187 }
2188 }
2189
2191 {
2192
2194
2195
2198
2199
2201 }
2202
2204 {
2205 super.OnCreatePhysics();
2208 }
2209
2211 {
2213 return;
2214
2215 super.EEHealthLevelChanged(oldLevel,newLevel,zone);
2216
2218 return;
2219
2221 string part_name = zone;
2223
2225 {
2226 ConstructionPart construction_part = construction.GetConstructionPart( part_name );
2227
2228 if ( construction_part && construction.IsPartConstructed( part_name ) )
2229 {
2231 construction.DestroyConnectedParts(part_name);
2232 }
2233
2234
2235 if ( part_name.
Contains(
"barbed") )
2236 {
2237 BarbedWire barbed_wire = BarbedWire.Cast( FindAttachmentBySlotName( zone ) );
2238 if (barbed_wire)
2239 barbed_wire.SetMountedState( false );
2240 }
2241 }
2242 }
2243
2245 {
2247 {
2249 }
2250
2251 super.EEOnAfterLoad();
2252 }
2253
2255 {
2256 super.EEInit();
2257
2258
2260
2261
2262 #ifdef DEVELOPER
2264 #endif
2265 }
2266
2268 {
2269 super.EEItemAttached( item, slot_name );
2270
2274 }
2275
2277 {
2278 super.EEItemDetached( item, slot_name );
2279
2282 }
2283
2284 protected void OnSetSlotLock(
int slotId,
bool locked,
bool was_locked )
2285 {
2288
2291 }
2292
2293
2295 {
2296 return true;
2297 }
2298
2299
2300
2302 {
2304
2305
2306 if (construtionPart.
IsBase())
2307 {
2309
2310
2312 }
2313
2314
2316
2317
2319
2320
2322
2324
2326
2327
2329
2330
2332 }
2333
2335 {
2336
2338 }
2339
2340
2342 {
2345
2346
2348
2349
2351
2352
2354
2355
2357
2359
2360
2362
2363
2365
2366
2367 if (construtionPart.
IsBase())
2368 {
2369
2371 }
2372 }
2373
2375 {
2376
2378 }
2379
2380
2381 void OnPartDestroyedServer(Man player,
string part_name,
int action_id,
bool destroyed_by_connected_part =
false)
2382 {
2385
2386
2388
2389
2391
2392
2394
2395
2397
2399
2400
2402
2403
2405
2406
2407 if (construtionPart.
IsBase())
2408 {
2409
2411 }
2412 }
2413
2415 {
2416
2418 }
2419
2422 {
2423 bool process = false;
2424
2425
2429
2430 if (process)
2431 {
2432 if (!MemoryPointExists(part.
m_PartName +
"_min") || !MemoryPointExists(part.
m_PartName +
"_max"))
2433 {
2435 return;
2436 }
2437
2439 mins = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_min"));
2440 maxs = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_max"));
2441
2442
2444 minTmp[0] =
Math.
Min(mins[0],maxs[0]);
2445 maxTmp[0] =
Math.
Max(mins[0],maxs[0]);
2446 minTmp[1] =
Math.
Min(mins[1],maxs[1]);
2447 maxTmp[1] =
Math.
Max(mins[1],maxs[1]);
2448 minTmp[2] =
Math.
Min(mins[2],maxs[2]);
2449 maxTmp[2] =
Math.
Max(mins[2],maxs[2]);
2450 mins = minTmp;
2451 maxs = maxTmp;
2452
2453 maxs[1] = maxs[1] + 0.35;
2454
2456 }
2457 }
2458
2461 {
2464
2465
2467 foreach (
EntityAI entity : foundEntities)
2468 {
2471 }
2472 }
2473
2474
2476 {
2478
2482 }
2483
2485 {
2487
2489 {
2491 }
2492 else
2493 {
2495 }
2496
2498 }
2499
2501 {
2503
2505 foreach (
string slotName : attachmentSlots)
2506 {
2508 }
2509
2510
2513 else
2515
2517 }
2518
2520 {
2521 string slotNameMounted = slot_name + "_Mounted";
2522 EntityAI attachment = FindAttachmentBySlotName(slot_name);
2523
2524 if (attachment)
2525 {
2526 BarbedWire barbedWire = BarbedWire.Cast(attachment);
2527 if (barbedWire && barbedWire.IsMounted())
2529 else
2531
2532 if (is_locked)
2533 {
2534 SetAnimationPhase(slotNameMounted, 0);
2535 SetAnimationPhase(slot_name, 1);
2536 }
2537 else
2538 {
2539 SetAnimationPhase(slotNameMounted, 1);
2540 SetAnimationPhase(slot_name, 0);
2541 }
2542 }
2543 else
2544 {
2545 SetAnimationPhase(slotNameMounted, 1);
2546 SetAnimationPhase(slot_name, 1);
2547
2549 }
2550 }
2551
2552
2554 {
2557
2560
2563
2564 foreach (
string slotName : attachmentSlots)
2565 {
2567 }
2568
2569
2571 {
2574
2576 }
2577 else
2578 {
2581
2583 }
2584
2587 }
2588
2590 {
2591
2593 return;
2594
2595 string slot_name_mounted = slot_name + "_Mounted";
2596 EntityAI attachment = FindAttachmentBySlotName( slot_name );
2597
2598
2600 RemoveProxyPhysics( slot_name_mounted );
2601 RemoveProxyPhysics( slot_name );
2602
2603 if ( attachment )
2604 {
2606 if ( is_locked )
2607 {
2609 AddProxyPhysics( slot_name_mounted );
2610 }
2611 else
2612 {
2614 AddProxyPhysics( slot_name );
2615 }
2616 }
2617 }
2618
2620 {
2621 SetAffectPathgraph( true, false );
2623 }
2624
2626 {
2627 return true;
2628 }
2629
2631 {
2632 return true;
2633 }
2634
2636 {
2637 if ( attachment )
2638 {
2640 attachment.GetInventory().GetCurrentInventoryLocation( inventory_location );
2641
2642 return GetInventory().GetSlotLock( inventory_location.
GetSlot() );
2643 }
2644
2645 return false;
2646 }
2647
2649 {
2651 }
2652
2653
2655 {
2656 string config_path = "CfgVehicles" + " " + entity.GetType() + " " + "attachments";
2657 if (
GetGame().ConfigIsExisting( config_path ) )
2658 {
2660 }
2661 }
2662
2664 {
2665 return true;
2666 }
2667
2669 {
2670 return true;
2671 }
2672
2674 {
2675 return true;
2676 }
2677
2678
2680 {
2682 {
2684 }
2685
2687 }
2688
2690 {
2692 }
2693
2694
2695
2697 {
2698 return super.CanReceiveAttachment(attachment, slotId);
2699 }
2700
2702 {
2703 int attachment_count = GetInventory().AttachmentCount();
2704 if ( attachment_count > 0 )
2705 {
2706 if (
HasBase() && attachment_count == 1 )
2707 {
2708 return false;
2709 }
2710
2711 return true;
2712 }
2713
2714 return false;
2715 }
2716
2718 {
2719 return true;
2720 }
2721
2723 {
2724 return false;
2725 }
2726
2727
2729 {
2730 return false;
2731 }
2732
2734 {
2735 return false;
2736 }
2737
2738
2740 {
2741 return false;
2742 }
2743
2744
2745
2747 {
2748 return true;
2749 }
2750
2752 {
2753 return true;
2754 }
2755
2758 {
2759 return false;
2760 }
2761
2762
2764 {
2765 return true;
2766 }
2767
2768
2770 {
2771 return false;
2772 }
2773
2774
2776 {
2777 return true;
2778 }
2779
2780
2782 {
2783 if (
HasBase() || GetInventory().AttachmentCount() > 0 )
2784 {
2785 return false;
2786 }
2787
2788 return true;
2789 }
2790
2792 {
2795
2796 return item;
2797 }
2798
2799
2801 {
2803 {
2804
2806
2807
2810
2812 if ( MemoryPointExists( slot_name + "_min" ) )
2813 {
2814 min_max[0] = GetMemoryPointPos( slot_name + "_min" );
2815 }
2816 if ( MemoryPointExists( slot_name + "_max" ) )
2817 {
2818 min_max[1] = GetMemoryPointPos( slot_name + "_max" );
2819 }
2820
2821
2824
2825
2828 center = ModelToWorld( center );
2829
2830
2833
2834 areaDamage.SetExtents( extents[0], extents[1] );
2835 areaDamage.SetAreaPosition( center );
2836 areaDamage.SetAreaOrientation( orientation );
2839 areaDamage.SetHitZones( { "Torso","LeftHand","LeftLeg","LeftFoot","RightHand","RightLeg","RightFoot" } );
2840 areaDamage.SetAmmoName( "BarbedWireHit" );
2841 areaDamage.Spawn();
2842
2844 }
2845 }
2846
2848 {
2849 if ( angle_deg != 0 )
2850 {
2851
2852 orientation[0] = orientation[0] - angle_deg;
2853
2854
2856 if ( MemoryPointExists( "rotate_axis" ) )
2857 {
2858 rotate_axis = ModelToWorld( GetMemoryPointPos( "rotate_axis" ) );
2859 }
2860 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];
2861 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];
2862 center[0] = r_center_x;
2863 center[2] = r_center_z;
2864 }
2865 }
2866
2868 {
2870 {
2873 {
2874 if (areaDamage)
2875 {
2876 areaDamage.Destroy();
2877 }
2878
2880 }
2881 }
2882 }
2883
2885 {
2886 return true;
2887 }
2888
2889
2890
2891
2893 {
2895 }
2896
2898 {
2900 }
2901
2903 {
2905 }
2906
2908 {
2910
2911 switch ( material_type )
2912 {
2918 }
2919
2920 return "";
2921 }
2922
2924 {
2926
2927 switch ( material_type )
2928 {
2934 }
2935
2936 return "";
2937 }
2938
2939
2941 {
2943 {
2944
2946 {
2947 SetHealth(slot_name,"Health",item.GetHealth());
2948 }
2949 }
2950 }
2951
2953 {
2954 return 111;
2955 }
2956
2958 {
2959 super.SetActions();
2960
2964 }
2965
2966
2967
2968
2970 {
2971 }
2972
2975 {
2976 return null;
2977 }
2978
2980 {
2982 }
2983
2985 {
2988
2989 Man p;
2990
2991 #ifdef SERVER
2994 if (players.Count())
2995 p = players[0];
2996 #else
2998 #endif
2999
3001 {
3002 bool excluded = false;
3004 if (excludes)
3005 {
3006 foreach (string exclude : excludes)
3007 {
3009 {
3010 excluded = true;
3011 break;
3012 }
3013 }
3014 }
3015
3016 if (!excluded)
3017 {
3019 }
3020 }
3021
3023 }
3024}
3025
3027{
3028#ifdef BSB_DEBUG
3030#else
3031
3032#endif
3033}
3035{
3036#ifdef BSB_DEBUG_SPAM
3038#else
3039
3040#endif
3041}
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.