1563{
1565
1567
1569
1571
1577
1578
1579
1585
1591
1593
1597
1598
1600 {
1602
1603
1604 RegisterNetSyncVariableInt( "m_SyncParts01" );
1605 RegisterNetSyncVariableInt( "m_SyncParts02" );
1606 RegisterNetSyncVariableInt( "m_SyncParts03" );
1607 RegisterNetSyncVariableInt( "m_InteractedPartId" );
1608 RegisterNetSyncVariableInt( "m_PerformedActionId" );
1609 RegisterNetSyncVariableBool( "m_HasBase" );
1610
1611
1613
1614 if (ConfigIsExisting("hybridAttachments"))
1615 {
1618 }
1619 if (ConfigIsExisting("mountables"))
1620 {
1623 }
1624
1626 }
1627
1629 {
1630 super.EEDelete(parent);
1631
1633 {
1634 areaDamage.Destroy();
1635 }
1636
1637 }
1638
1640 {
1641 return "disableBaseDamage";
1642 }
1643
1645 {
1646 return true;
1647 }
1648
1650 {
1651 return EInventoryIconVisibility.HIDE_VICINITY;
1652 }
1653
1655 {
1656 super.InitItemSounds();
1657
1661
1666 }
1667
1669 {
1670 return "putDown_FenceKit_SoundSet";
1671 }
1672
1674 {
1675 return "Shelter_Site_Build_Loop_SoundSet";
1676 }
1677
1678
1680 {
1682 {
1683 SetSynchDirty();
1684 }
1685 }
1686
1688 {
1690 super.OnVariablesSynchronized();
1691
1693 }
1694
1696 {
1697
1699
1700
1702
1703
1705 }
1706
1707
1709 {
1710
1711 int offset;
1712 int mask;
1713
1714 if ( part_id >= 1 && part_id <= 31 )
1715 {
1716 offset = part_id - 1;
1717 mask = 1 << offset;
1718
1720 }
1721 else if ( part_id >= 32 && part_id <= 62 )
1722 {
1723 offset = ( part_id % 32 );
1724 mask = 1 << offset;
1725
1727 }
1728 else if ( part_id >= 63 && part_id <= 93 )
1729 {
1730 offset = ( part_id % 63 );
1731 mask = 1 << offset;
1732
1734 }
1735 }
1736
1738 {
1739
1740 int offset;
1741 int mask;
1742
1743 if ( part_id >= 1 && part_id <= 31 )
1744 {
1745 offset = part_id - 1;
1746 mask = 1 << offset;
1747
1749 }
1750 else if ( part_id >= 32 && part_id <= 62 )
1751 {
1752 offset = ( part_id % 32 );
1753 mask = 1 << offset;
1754
1756 }
1757 else if ( part_id >= 63 && part_id <= 93 )
1758 {
1759 offset = ( part_id % 63 );
1760 mask = 1 << offset;
1761
1763 }
1764 }
1765
1767 {
1768
1769 int offset;
1770 int mask;
1771
1772 if ( part_id >= 1 && part_id <= 31 )
1773 {
1774 offset = part_id - 1;
1775 mask = 1 << offset;
1776
1778 {
1779 return true;
1780 }
1781 }
1782 else if ( part_id >= 32 && part_id <= 62 )
1783 {
1784 offset = ( part_id % 32 );
1785 mask = 1 << offset;
1786
1788 {
1789 return true;
1790 }
1791 }
1792 else if ( part_id >= 63 && part_id <= 93 )
1793 {
1794 offset = ( part_id % 63 );
1795 mask = 1 << offset;
1796
1798 {
1799 return true;
1800 }
1801 }
1802
1803 return false;
1804 }
1805
1807 {
1810 }
1811
1813 {
1814
1817 }
1818
1820 {
1822 {
1825
1826 switch( build_action_id )
1827 {
1831 }
1832 }
1833 }
1834
1835
1837 {
1839 bool is_base = part.
IsBase();
1842 if ( is_part_built_sync )
1843 {
1845 {
1849
1850 if (is_base)
1851 {
1854 }
1855 }
1856 }
1857 else
1858 {
1860 {
1864
1865 if (is_base)
1866 {
1869 }
1870 }
1871 }
1872
1873
1875 }
1876
1877
1879 {
1882
1883 for ( int i = 0; i < construction_parts.Count(); ++i )
1884 {
1885 string key = construction_parts.GetKey( i );
1888 }
1889
1890
1892 }
1893
1895 {
1898
1899 for ( int i = 0; i < construction_parts.Count(); ++i )
1900 {
1901 string key = construction_parts.GetKey( i );
1903
1904 if ( value.
GetId() ==
id )
1905 {
1906 return value;
1907 }
1908 }
1909
1910 return NULL;
1911 }
1912
1913
1914
1916 {
1918 }
1919
1921 {
1923 }
1924
1926 {
1927 return true;
1928 }
1929
1931 {
1932 return false;
1933 }
1934
1935
1937 {
1940 {
1942 }
1943
1944 return construction_kit;
1945 }
1946
1948 {
1951 {
1953 }
1954 }
1955
1957 {
1959 }
1960
1962 {
1963 return "";
1964 }
1965
1967 {
1970 }
1971
1972
1974 {
1977 }
1978
1979
1981 {
1982 super.OnStoreSave( ctx );
1983
1984
1988
1990 }
1991
1993 {
1994 if ( !super.OnStoreLoad( ctx, version ) )
1995 return false;
1996
1997
1998
2000 {
2002 return false;
2003 }
2005 {
2007 return false;
2008 }
2010 {
2012 return false;
2013 }
2014
2015
2017 {
2019 return false;
2020 }
2021
2022
2023 return true;
2024 }
2025
2027 {
2028 super.AfterStoreLoad();
2029
2031 {
2033 }
2034 }
2035
2037 {
2038
2040
2041
2044
2045
2047 }
2048
2050 {
2051 super.OnCreatePhysics();
2054 }
2055
2057 {
2059 return;
2060
2061 super.EEHealthLevelChanged(oldLevel,newLevel,zone);
2062
2064 return;
2065
2067 string part_name = zone;
2069
2071 {
2072 ConstructionPart construction_part = construction.GetConstructionPart( part_name );
2073
2074 if ( construction_part && construction.IsPartConstructed( part_name ) )
2075 {
2077 construction.DestroyConnectedParts(part_name);
2078 }
2079
2080
2081 if ( part_name.
Contains(
"barbed") )
2082 {
2083 BarbedWire barbed_wire = BarbedWire.Cast( FindAttachmentBySlotName( zone ) );
2084 if (barbed_wire)
2085 barbed_wire.SetMountedState( false );
2086 }
2087 }
2088 }
2089
2091 {
2093 {
2095 }
2096
2097 super.EEOnAfterLoad();
2098 }
2099
2101 {
2102 super.EEInit();
2103
2104
2106
2107
2108 #ifdef DEVELOPER
2110 #endif
2111 }
2112
2114 {
2115 super.EEItemAttached( item, slot_name );
2116
2120 }
2121
2123 {
2124 super.EEItemDetached( item, slot_name );
2125
2128 }
2129
2130 protected void OnSetSlotLock(
int slotId,
bool locked,
bool was_locked )
2131 {
2134
2137 }
2138
2139
2141 {
2142 return true;
2143 }
2144
2145
2146
2148 {
2150
2151
2152 if (construtionPart.
IsBase())
2153 {
2155
2156
2158 }
2159
2160
2162
2163
2165
2166
2168
2170
2172
2173
2175
2176
2178 }
2179
2181 {
2182
2184 }
2185
2186
2188 {
2191
2192
2194
2195
2197
2198
2200
2201
2203
2205
2206
2208
2209
2211
2212
2213 if (construtionPart.
IsBase())
2214 {
2215
2217 }
2218 }
2219
2221 {
2222
2224 }
2225
2226
2227 void OnPartDestroyedServer(Man player,
string part_name,
int action_id,
bool destroyed_by_connected_part =
false)
2228 {
2231
2232
2234
2235
2237
2238
2240
2241
2243
2245
2246
2248
2249
2251
2252
2253 if (construtionPart.
IsBase())
2254 {
2255
2257 }
2258 }
2259
2261 {
2262
2264 }
2265
2268 {
2269 bool process = false;
2270
2271
2275
2276 if (process)
2277 {
2278 if (!MemoryPointExists(part.
m_PartName +
"_min") || !MemoryPointExists(part.
m_PartName +
"_max"))
2279 {
2281 return;
2282 }
2283
2285 mins = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_min"));
2286 maxs = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_max"));
2287
2288
2290 minTmp[0] =
Math.
Min(mins[0],maxs[0]);
2291 maxTmp[0] =
Math.
Max(mins[0],maxs[0]);
2292 minTmp[1] =
Math.
Min(mins[1],maxs[1]);
2293 maxTmp[1] =
Math.
Max(mins[1],maxs[1]);
2294 minTmp[2] =
Math.
Min(mins[2],maxs[2]);
2295 maxTmp[2] =
Math.
Max(mins[2],maxs[2]);
2296 mins = minTmp;
2297 maxs = maxTmp;
2298
2299 maxs[1] = maxs[1] + 0.35;
2300
2302 }
2303 }
2304
2307 {
2310
2311
2313 foreach (
EntityAI entity : foundEntities)
2314 {
2317 }
2318 }
2319
2320
2322 {
2324
2328 }
2329
2331 {
2333
2335 {
2337 }
2338 else
2339 {
2341 }
2342
2344 }
2345
2347 {
2349
2351 foreach (
string slotName : attachmentSlots)
2352 {
2354 }
2355
2356
2359 else
2361
2363 }
2364
2366 {
2367 string slotNameMounted = slot_name + "_Mounted";
2368 EntityAI attachment = FindAttachmentBySlotName(slot_name);
2369
2370 if (attachment)
2371 {
2372 BarbedWire barbedWire = BarbedWire.Cast(attachment);
2373 if (barbedWire && barbedWire.IsMounted())
2375 else
2377
2378 if (is_locked)
2379 {
2380 SetAnimationPhase(slotNameMounted, 0);
2381 SetAnimationPhase(slot_name, 1);
2382 }
2383 else
2384 {
2385 SetAnimationPhase(slotNameMounted, 1);
2386 SetAnimationPhase(slot_name, 0);
2387 }
2388 }
2389 else
2390 {
2391 SetAnimationPhase(slotNameMounted, 1);
2392 SetAnimationPhase(slot_name, 1);
2393
2395 }
2396 }
2397
2398
2400 {
2403
2406
2409
2410 foreach (
string slotName : attachmentSlots)
2411 {
2413 }
2414
2415
2417 {
2420
2422 }
2423 else
2424 {
2427
2429 }
2430
2433 }
2434
2436 {
2437
2439 return;
2440
2441 string slot_name_mounted = slot_name + "_Mounted";
2442 EntityAI attachment = FindAttachmentBySlotName( slot_name );
2443
2444
2446 RemoveProxyPhysics( slot_name_mounted );
2447 RemoveProxyPhysics( slot_name );
2448
2449 if ( attachment )
2450 {
2452 if ( is_locked )
2453 {
2455 AddProxyPhysics( slot_name_mounted );
2456 }
2457 else
2458 {
2460 AddProxyPhysics( slot_name );
2461 }
2462 }
2463 }
2464
2466 {
2467 SetAffectPathgraph( true, false );
2469 }
2470
2472 {
2473 return true;
2474 }
2475
2477 {
2478 return true;
2479 }
2480
2482 {
2483 if ( attachment )
2484 {
2486 attachment.GetInventory().GetCurrentInventoryLocation( inventory_location );
2487
2488 return GetInventory().GetSlotLock( inventory_location.
GetSlot() );
2489 }
2490
2491 return false;
2492 }
2493
2495 {
2497 }
2498
2499
2501 {
2502 string config_path = "CfgVehicles" + " " + entity.GetType() + " " + "attachments";
2503 if (
GetGame().ConfigIsExisting( config_path ) )
2504 {
2506 }
2507 }
2508
2510 {
2511 return true;
2512 }
2513
2515 {
2516 return true;
2517 }
2518
2520 {
2521 return true;
2522 }
2523
2524
2526 {
2528 {
2530 }
2531
2533 }
2534
2536 {
2538 }
2539
2540
2541
2543 {
2544 return super.CanReceiveAttachment(attachment, slotId);
2545 }
2546
2548 {
2549 int attachment_count = GetInventory().AttachmentCount();
2550 if ( attachment_count > 0 )
2551 {
2552 if (
HasBase() && attachment_count == 1 )
2553 {
2554 return false;
2555 }
2556
2557 return true;
2558 }
2559
2560 return false;
2561 }
2562
2564 {
2565 return true;
2566 }
2567
2569 {
2570 return false;
2571 }
2572
2573
2575 {
2576 return false;
2577 }
2578
2580 {
2581 return false;
2582 }
2583
2584
2586 {
2587 return false;
2588 }
2589
2590
2591
2593 {
2594 return true;
2595 }
2596
2598 {
2599 return true;
2600 }
2601
2604 {
2605 return false;
2606 }
2607
2608
2610 {
2611 return true;
2612 }
2613
2614
2616 {
2617 return false;
2618 }
2619
2620
2622 {
2623 return true;
2624 }
2625
2626
2628 {
2629 if (
HasBase() || GetInventory().AttachmentCount() > 0 )
2630 {
2631 return false;
2632 }
2633
2634 return true;
2635 }
2636
2638 {
2641
2642 return item;
2643 }
2644
2645
2647 {
2649 {
2650
2652
2653
2656
2658 if ( MemoryPointExists( slot_name + "_min" ) )
2659 {
2660 min_max[0] = GetMemoryPointPos( slot_name + "_min" );
2661 }
2662 if ( MemoryPointExists( slot_name + "_max" ) )
2663 {
2664 min_max[1] = GetMemoryPointPos( slot_name + "_max" );
2665 }
2666
2667
2670
2671
2674 center = ModelToWorld( center );
2675
2676
2679
2680 areaDamage.SetExtents( extents[0], extents[1] );
2681 areaDamage.SetAreaPosition( center );
2682 areaDamage.SetAreaOrientation( orientation );
2685 areaDamage.SetHitZones( { "Torso","LeftHand","LeftLeg","LeftFoot","RightHand","RightLeg","RightFoot" } );
2686 areaDamage.SetAmmoName( "BarbedWireHit" );
2687 areaDamage.Spawn();
2688
2690 }
2691 }
2692
2694 {
2695 if ( angle_deg != 0 )
2696 {
2697
2698 orientation[0] = orientation[0] - angle_deg;
2699
2700
2702 if ( MemoryPointExists( "rotate_axis" ) )
2703 {
2704 rotate_axis = ModelToWorld( GetMemoryPointPos( "rotate_axis" ) );
2705 }
2706 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];
2707 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];
2708 center[0] = r_center_x;
2709 center[2] = r_center_z;
2710 }
2711 }
2712
2714 {
2716 {
2719 {
2720 if (areaDamage)
2721 {
2722 areaDamage.Destroy();
2723 }
2724
2726 }
2727 }
2728 }
2729
2731 {
2732 return true;
2733 }
2734
2735
2736
2737
2739 {
2741 }
2742
2744 {
2746 }
2747
2749 {
2751 }
2752
2754 {
2756
2757 switch ( material_type )
2758 {
2764 }
2765
2766 return "";
2767 }
2768
2770 {
2772
2773 switch ( material_type )
2774 {
2780 }
2781
2782 return "";
2783 }
2784
2785
2787 {
2789 {
2790
2792 {
2793 SetHealth(slot_name,"Health",item.GetHealth());
2794 }
2795 }
2796 }
2797
2799 {
2800 return 111;
2801 }
2802
2804 {
2805 super.SetActions();
2806
2810 }
2811
2812
2813
2814
2816 {
2817 }
2818
2821 {
2822 return null;
2823 }
2824
2826 {
2828 }
2829
2831 {
2834
2835 Man p;
2836
2837 #ifdef SERVER
2840 if (players.Count())
2841 p = players[0];
2842 #else
2844 #endif
2845
2847 {
2848 bool excluded = false;
2850 if (excludes)
2851 {
2852 foreach (string exclude : excludes)
2853 {
2855 {
2856 excluded = true;
2857 break;
2858 }
2859 }
2860 }
2861
2862 if (!excluded)
2863 {
2865 }
2866 }
2867
2869 }
2870}
2871
2873{
2874#ifdef BSB_DEBUG
2876#else
2877
2878#endif
2879}
2881{
2882#ifdef BSB_DEBUG_SPAM
2884#else
2885
2886#endif
2887}
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.