1517{
1519
1521
1523
1525
1531
1532
1533
1539
1545
1547
1551
1552
1554 {
1556
1557
1558 RegisterNetSyncVariableInt( "m_SyncParts01" );
1559 RegisterNetSyncVariableInt( "m_SyncParts02" );
1560 RegisterNetSyncVariableInt( "m_SyncParts03" );
1561 RegisterNetSyncVariableInt( "m_InteractedPartId" );
1562 RegisterNetSyncVariableInt( "m_PerformedActionId" );
1563 RegisterNetSyncVariableBool( "m_HasBase" );
1564
1565
1567
1568 if (ConfigIsExisting("hybridAttachments"))
1569 {
1572 }
1573 if (ConfigIsExisting("mountables"))
1574 {
1577 }
1578
1580 }
1581
1583 {
1584 super.EEDelete(parent);
1585
1587 {
1588 areaDamage.Destroy();
1589 }
1590
1591 }
1592
1594 {
1595 return "disableBaseDamage";
1596 }
1597
1599 {
1600 return true;
1601 }
1602
1604 {
1605 return EInventoryIconVisibility.HIDE_VICINITY;
1606 }
1607
1609 {
1610 super.InitItemSounds();
1611
1615
1620 }
1621
1623 {
1624 return "putDown_FenceKit_SoundSet";
1625 }
1626
1628 {
1629 return "Shelter_Site_Build_Loop_SoundSet";
1630 }
1631
1632
1634 {
1636 {
1637 SetSynchDirty();
1638 }
1639 }
1640
1642 {
1644 super.OnVariablesSynchronized();
1645
1647 }
1648
1650 {
1651
1653
1654
1656
1657
1659 }
1660
1661
1663 {
1664
1665 int offset;
1666 int mask;
1667
1668 if ( part_id >= 1 && part_id <= 31 )
1669 {
1670 offset = part_id - 1;
1671 mask = 1 << offset;
1672
1674 }
1675 else if ( part_id >= 32 && part_id <= 62 )
1676 {
1677 offset = ( part_id % 32 );
1678 mask = 1 << offset;
1679
1681 }
1682 else if ( part_id >= 63 && part_id <= 93 )
1683 {
1684 offset = ( part_id % 63 );
1685 mask = 1 << offset;
1686
1688 }
1689 }
1690
1692 {
1693
1694 int offset;
1695 int mask;
1696
1697 if ( part_id >= 1 && part_id <= 31 )
1698 {
1699 offset = part_id - 1;
1700 mask = 1 << offset;
1701
1703 }
1704 else if ( part_id >= 32 && part_id <= 62 )
1705 {
1706 offset = ( part_id % 32 );
1707 mask = 1 << offset;
1708
1710 }
1711 else if ( part_id >= 63 && part_id <= 93 )
1712 {
1713 offset = ( part_id % 63 );
1714 mask = 1 << offset;
1715
1717 }
1718 }
1719
1721 {
1722
1723 int offset;
1724 int mask;
1725
1726 if ( part_id >= 1 && part_id <= 31 )
1727 {
1728 offset = part_id - 1;
1729 mask = 1 << offset;
1730
1732 {
1733 return true;
1734 }
1735 }
1736 else if ( part_id >= 32 && part_id <= 62 )
1737 {
1738 offset = ( part_id % 32 );
1739 mask = 1 << offset;
1740
1742 {
1743 return true;
1744 }
1745 }
1746 else if ( part_id >= 63 && part_id <= 93 )
1747 {
1748 offset = ( part_id % 63 );
1749 mask = 1 << offset;
1750
1752 {
1753 return true;
1754 }
1755 }
1756
1757 return false;
1758 }
1759
1761 {
1764 }
1765
1767 {
1768
1771 }
1772
1774 {
1776 {
1779
1780 switch( build_action_id )
1781 {
1785 }
1786 }
1787 }
1788
1789
1791 {
1793 bool is_base = part.
IsBase();
1796 if ( is_part_built_sync )
1797 {
1799 {
1803
1804 if (is_base)
1805 {
1808 }
1809 }
1810 }
1811 else
1812 {
1814 {
1818
1819 if (is_base)
1820 {
1823 }
1824 }
1825 }
1826
1827
1829 }
1830
1831
1833 {
1836
1837 for ( int i = 0; i < construction_parts.Count(); ++i )
1838 {
1839 string key = construction_parts.GetKey( i );
1842 }
1843
1844
1846 }
1847
1849 {
1852
1853 for ( int i = 0; i < construction_parts.Count(); ++i )
1854 {
1855 string key = construction_parts.GetKey( i );
1857
1858 if ( value.
GetId() ==
id )
1859 {
1860 return value;
1861 }
1862 }
1863
1864 return NULL;
1865 }
1866
1867
1868
1870 {
1872 }
1873
1875 {
1877 }
1878
1880 {
1881 return true;
1882 }
1883
1885 {
1886 return false;
1887 }
1888
1889
1891 {
1894 {
1896 }
1897
1898 return construction_kit;
1899 }
1900
1902 {
1905 {
1907 }
1908 }
1909
1911 {
1913 }
1914
1916 {
1917 return "";
1918 }
1919
1921 {
1924 }
1925
1926
1928 {
1931 }
1932
1933
1935 {
1936 super.OnStoreSave( ctx );
1937
1938
1942
1944 }
1945
1947 {
1948 if ( !super.OnStoreLoad( ctx, version ) )
1949 return false;
1950
1951
1952
1954 {
1956 return false;
1957 }
1959 {
1961 return false;
1962 }
1964 {
1966 return false;
1967 }
1968
1969
1971 {
1973 return false;
1974 }
1975
1976
1977 return true;
1978 }
1979
1981 {
1982 super.AfterStoreLoad();
1983
1985 {
1987 }
1988 }
1989
1991 {
1992
1994
1995
1998
1999
2001 }
2002
2004 {
2005 super.OnCreatePhysics();
2008 }
2009
2011 {
2013 return;
2014
2015 super.EEHealthLevelChanged(oldLevel,newLevel,zone);
2016
2018 return;
2019
2021 string part_name = zone;
2023
2025 {
2026 ConstructionPart construction_part = construction.GetConstructionPart( part_name );
2027
2028 if ( construction_part && construction.IsPartConstructed( part_name ) )
2029 {
2031 construction.DestroyConnectedParts(part_name);
2032 }
2033
2034
2035 if ( part_name.
Contains(
"barbed") )
2036 {
2037 BarbedWire barbed_wire = BarbedWire.Cast( FindAttachmentBySlotName( zone ) );
2038 if (barbed_wire)
2039 barbed_wire.SetMountedState( false );
2040 }
2041 }
2042 }
2043
2045 {
2047 {
2049 }
2050
2051 super.EEOnAfterLoad();
2052 }
2053
2055 {
2056 super.EEInit();
2057
2058
2060
2061
2062 #ifdef DEVELOPER
2064 #endif
2065 }
2066
2068 {
2069 super.EEItemAttached( item, slot_name );
2070
2074 }
2075
2077 {
2078 super.EEItemDetached( item, slot_name );
2079
2082 }
2083
2084 protected void OnSetSlotLock(
int slotId,
bool locked,
bool was_locked )
2085 {
2088
2091 }
2092
2093
2095 {
2096 return true;
2097 }
2098
2099
2100
2102 {
2104
2105
2106 if (construtionPart.
IsBase())
2107 {
2109
2110
2112 }
2113
2114
2116
2117
2119
2120
2122
2124
2126
2127
2129
2130
2132 }
2133
2135 {
2136
2138 }
2139
2140
2142 {
2145
2146
2148
2149
2151
2152
2154
2155
2157
2159
2160
2162
2163
2165
2166
2167 if (construtionPart.
IsBase())
2168 {
2169
2171 }
2172 }
2173
2175 {
2176
2178 }
2179
2180
2181 void OnPartDestroyedServer(Man player,
string part_name,
int action_id,
bool destroyed_by_connected_part =
false)
2182 {
2185
2186
2188
2189
2191
2192
2194
2195
2197
2199
2200
2202
2203
2205
2206
2207 if (construtionPart.
IsBase())
2208 {
2209
2211 }
2212 }
2213
2215 {
2216
2218 }
2219
2222 {
2223 bool process = false;
2224
2225
2229
2230 if (process)
2231 {
2232 if (!MemoryPointExists(part.
m_PartName +
"_min") || !MemoryPointExists(part.
m_PartName +
"_max"))
2233 {
2235 return;
2236 }
2237
2239 mins = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_min"));
2240 maxs = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_max"));
2241
2242
2244 minTmp[0] =
Math.
Min(mins[0],maxs[0]);
2245 maxTmp[0] =
Math.
Max(mins[0],maxs[0]);
2246 minTmp[1] =
Math.
Min(mins[1],maxs[1]);
2247 maxTmp[1] =
Math.
Max(mins[1],maxs[1]);
2248 minTmp[2] =
Math.
Min(mins[2],maxs[2]);
2249 maxTmp[2] =
Math.
Max(mins[2],maxs[2]);
2250 mins = minTmp;
2251 maxs = maxTmp;
2252
2253 maxs[1] = maxs[1] + 0.35;
2254
2256 }
2257 }
2258
2261 {
2264
2265
2267 foreach (
EntityAI entity : foundEntities)
2268 {
2271 }
2272 }
2273
2274
2276 {
2278
2282 }
2283
2285 {
2287
2289 {
2291 }
2292 else
2293 {
2295 }
2296
2298 }
2299
2301 {
2303
2305 foreach (
string slotName : attachmentSlots)
2306 {
2308 }
2309
2310
2313 else
2315
2317 }
2318
2320 {
2321 string slotNameMounted = slot_name + "_Mounted";
2322 EntityAI attachment = FindAttachmentBySlotName(slot_name);
2323
2324 if (attachment)
2325 {
2326 BarbedWire barbedWire = BarbedWire.Cast(attachment);
2327 if (barbedWire && barbedWire.IsMounted())
2329 else
2331
2332 if (is_locked)
2333 {
2334 SetAnimationPhase(slotNameMounted, 0);
2335 SetAnimationPhase(slot_name, 1);
2336 }
2337 else
2338 {
2339 SetAnimationPhase(slotNameMounted, 1);
2340 SetAnimationPhase(slot_name, 0);
2341 }
2342 }
2343 else
2344 {
2345 SetAnimationPhase(slotNameMounted, 1);
2346 SetAnimationPhase(slot_name, 1);
2347
2349 }
2350 }
2351
2352
2354 {
2357
2360
2363
2364 foreach (
string slotName : attachmentSlots)
2365 {
2367 }
2368
2369
2371 {
2374
2376 }
2377 else
2378 {
2381
2383 }
2384
2387 }
2388
2390 {
2391
2393 return;
2394
2395 string slot_name_mounted = slot_name + "_Mounted";
2396 EntityAI attachment = FindAttachmentBySlotName( slot_name );
2397
2398
2400 RemoveProxyPhysics( slot_name_mounted );
2401 RemoveProxyPhysics( slot_name );
2402
2403 if ( attachment )
2404 {
2406 if ( is_locked )
2407 {
2409 AddProxyPhysics( slot_name_mounted );
2410 }
2411 else
2412 {
2414 AddProxyPhysics( slot_name );
2415 }
2416 }
2417 }
2418
2420 {
2421 SetAffectPathgraph( true, false );
2423 }
2424
2426 {
2427 return true;
2428 }
2429
2431 {
2432 return true;
2433 }
2434
2436 {
2437 if ( attachment )
2438 {
2440 attachment.GetInventory().GetCurrentInventoryLocation( inventory_location );
2441
2442 return GetInventory().GetSlotLock( inventory_location.
GetSlot() );
2443 }
2444
2445 return false;
2446 }
2447
2449 {
2451 }
2452
2453
2455 {
2456 string config_path = "CfgVehicles" + " " + entity.GetType() + " " + "attachments";
2457 if (
GetGame().ConfigIsExisting( config_path ) )
2458 {
2460 }
2461 }
2462
2464 {
2465 return true;
2466 }
2467
2469 {
2470 return true;
2471 }
2472
2474 {
2475 return true;
2476 }
2477
2478
2480 {
2482 {
2484 }
2485
2487 }
2488
2490 {
2492 }
2493
2494
2495
2497 {
2498 return super.CanReceiveAttachment(attachment, slotId);
2499 }
2500
2502 {
2503 int attachment_count = GetInventory().AttachmentCount();
2504 if ( attachment_count > 0 )
2505 {
2506 if (
HasBase() && attachment_count == 1 )
2507 {
2508 return false;
2509 }
2510
2511 return true;
2512 }
2513
2514 return false;
2515 }
2516
2518 {
2519 return true;
2520 }
2521
2523 {
2524 return false;
2525 }
2526
2527
2529 {
2530 return false;
2531 }
2532
2534 {
2535 return false;
2536 }
2537
2538
2540 {
2541 return false;
2542 }
2543
2544
2545
2547 {
2548 return true;
2549 }
2550
2552 {
2553 return true;
2554 }
2555
2558 {
2559 return false;
2560 }
2561
2562
2564 {
2565 return true;
2566 }
2567
2568
2570 {
2571 return false;
2572 }
2573
2574
2576 {
2577 return true;
2578 }
2579
2580
2582 {
2583 if (
HasBase() || GetInventory().AttachmentCount() > 0 )
2584 {
2585 return false;
2586 }
2587
2588 return true;
2589 }
2590
2592 {
2595
2596 return item;
2597 }
2598
2599
2601 {
2603 {
2604
2606
2607
2610
2612 if ( MemoryPointExists( slot_name + "_min" ) )
2613 {
2614 min_max[0] = GetMemoryPointPos( slot_name + "_min" );
2615 }
2616 if ( MemoryPointExists( slot_name + "_max" ) )
2617 {
2618 min_max[1] = GetMemoryPointPos( slot_name + "_max" );
2619 }
2620
2621
2624
2625
2628 center = ModelToWorld( center );
2629
2630
2633
2634 areaDamage.SetExtents( extents[0], extents[1] );
2635 areaDamage.SetAreaPosition( center );
2636 areaDamage.SetAreaOrientation( orientation );
2639 areaDamage.SetHitZones( { "Torso","LeftHand","LeftLeg","LeftFoot","RightHand","RightLeg","RightFoot" } );
2640 areaDamage.SetAmmoName( "BarbedWireHit" );
2641 areaDamage.Spawn();
2642
2644 }
2645 }
2646
2648 {
2649 if ( angle_deg != 0 )
2650 {
2651
2652 orientation[0] = orientation[0] - angle_deg;
2653
2654
2656 if ( MemoryPointExists( "rotate_axis" ) )
2657 {
2658 rotate_axis = ModelToWorld( GetMemoryPointPos( "rotate_axis" ) );
2659 }
2660 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];
2661 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];
2662 center[0] = r_center_x;
2663 center[2] = r_center_z;
2664 }
2665 }
2666
2668 {
2670 {
2673 {
2674 if (areaDamage)
2675 {
2676 areaDamage.Destroy();
2677 }
2678
2680 }
2681 }
2682 }
2683
2685 {
2686 return true;
2687 }
2688
2689
2690
2691
2693 {
2695 }
2696
2698 {
2700 }
2701
2703 {
2705 }
2706
2708 {
2710
2711 switch ( material_type )
2712 {
2718 }
2719
2720 return "";
2721 }
2722
2724 {
2726
2727 switch ( material_type )
2728 {
2734 }
2735
2736 return "";
2737 }
2738
2739
2741 {
2743 {
2744
2746 {
2747 SetHealth(slot_name,"Health",item.GetHealth());
2748 }
2749 }
2750 }
2751
2753 {
2754 return 111;
2755 }
2756
2758 {
2759 super.SetActions();
2760
2764 }
2765
2766
2767
2768
2770 {
2771 }
2772
2775 {
2776 return null;
2777 }
2778
2780 {
2782 }
2783
2785 {
2788
2789 Man p;
2790
2791 #ifdef SERVER
2794 if (players.Count())
2795 p = players[0];
2796 #else
2798 #endif
2799
2801 {
2802 bool excluded = false;
2804 if (excludes)
2805 {
2806 foreach (string exclude : excludes)
2807 {
2809 {
2810 excluded = true;
2811 break;
2812 }
2813 }
2814 }
2815
2816 if (!excluded)
2817 {
2819 }
2820 }
2821
2823 }
2824}
2825
2827{
2828#ifdef BSB_DEBUG
2830#else
2831
2832#endif
2833}
2835{
2836#ifdef BSB_DEBUG_SPAM
2838#else
2839
2840#endif
2841}
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.