1438{
1440
1442
1444
1446
1452
1453
1454
1460
1466
1468
1472
1473
1475 {
1477
1478
1479 RegisterNetSyncVariableInt( "m_SyncParts01" );
1480 RegisterNetSyncVariableInt( "m_SyncParts02" );
1481 RegisterNetSyncVariableInt( "m_SyncParts03" );
1482 RegisterNetSyncVariableInt( "m_InteractedPartId" );
1483 RegisterNetSyncVariableInt( "m_PerformedActionId" );
1484 RegisterNetSyncVariableBool( "m_HasBase" );
1485
1486
1488
1489 if (ConfigIsExisting("hybridAttachments"))
1490 {
1493 }
1494 if (ConfigIsExisting("mountables"))
1495 {
1498 }
1499
1501 }
1502
1504 {
1505 super.EEDelete(parent);
1506
1508 {
1509 areaDamage.Destroy();
1510 }
1511
1512 }
1513
1515 {
1516 return "disableBaseDamage";
1517 }
1518
1520 {
1521 return true;
1522 }
1523
1525 {
1526 return EInventoryIconVisibility.HIDE_VICINITY;
1527 }
1528
1530 {
1531 super.InitItemSounds();
1532
1536
1541 }
1542
1544 {
1545 return "putDown_FenceKit_SoundSet";
1546 }
1547
1549 {
1550 return "Shelter_Site_Build_Loop_SoundSet";
1551 }
1552
1553
1555 {
1557 {
1558 SetSynchDirty();
1559 }
1560 }
1561
1563 {
1565 super.OnVariablesSynchronized();
1566
1568 }
1569
1571 {
1572
1574
1575
1577
1578
1580 }
1581
1582
1584 {
1585
1586 int offset;
1587 int mask;
1588
1589 if ( part_id >= 1 && part_id <= 31 )
1590 {
1591 offset = part_id - 1;
1592 mask = 1 << offset;
1593
1595 }
1596 else if ( part_id >= 32 && part_id <= 62 )
1597 {
1598 offset = ( part_id % 32 );
1599 mask = 1 << offset;
1600
1602 }
1603 else if ( part_id >= 63 && part_id <= 93 )
1604 {
1605 offset = ( part_id % 63 );
1606 mask = 1 << offset;
1607
1609 }
1610 }
1611
1613 {
1614
1615 int offset;
1616 int mask;
1617
1618 if ( part_id >= 1 && part_id <= 31 )
1619 {
1620 offset = part_id - 1;
1621 mask = 1 << offset;
1622
1624 }
1625 else if ( part_id >= 32 && part_id <= 62 )
1626 {
1627 offset = ( part_id % 32 );
1628 mask = 1 << offset;
1629
1631 }
1632 else if ( part_id >= 63 && part_id <= 93 )
1633 {
1634 offset = ( part_id % 63 );
1635 mask = 1 << offset;
1636
1638 }
1639 }
1640
1642 {
1643
1644 int offset;
1645 int mask;
1646
1647 if ( part_id >= 1 && part_id <= 31 )
1648 {
1649 offset = part_id - 1;
1650 mask = 1 << offset;
1651
1653 {
1654 return true;
1655 }
1656 }
1657 else if ( part_id >= 32 && part_id <= 62 )
1658 {
1659 offset = ( part_id % 32 );
1660 mask = 1 << offset;
1661
1663 {
1664 return true;
1665 }
1666 }
1667 else if ( part_id >= 63 && part_id <= 93 )
1668 {
1669 offset = ( part_id % 63 );
1670 mask = 1 << offset;
1671
1673 {
1674 return true;
1675 }
1676 }
1677
1678 return false;
1679 }
1680
1682 {
1685 }
1686
1688 {
1689
1692 }
1693
1695 {
1697 {
1700
1701 switch( build_action_id )
1702 {
1706 }
1707 }
1708 }
1709
1710
1712 {
1714 bool is_base = part.
IsBase();
1717 if ( is_part_built_sync )
1718 {
1720 {
1724
1725 if (is_base)
1726 {
1729 }
1730 }
1731 }
1732 else
1733 {
1735 {
1739
1740 if (is_base)
1741 {
1744 }
1745 }
1746 }
1747
1748
1750 }
1751
1752
1754 {
1757
1758 for ( int i = 0; i < construction_parts.Count(); ++i )
1759 {
1760 string key = construction_parts.GetKey( i );
1763 }
1764
1765
1767 }
1768
1770 {
1773
1774 for ( int i = 0; i < construction_parts.Count(); ++i )
1775 {
1776 string key = construction_parts.GetKey( i );
1778
1779 if ( value.
GetId() ==
id )
1780 {
1781 return value;
1782 }
1783 }
1784
1785 return NULL;
1786 }
1787
1788
1789
1791 {
1793 }
1794
1796 {
1798 }
1799
1801 {
1802 return true;
1803 }
1804
1806 {
1807 return false;
1808 }
1809
1810
1812 {
1815 {
1817 }
1818
1819 return construction_kit;
1820 }
1821
1823 {
1826 {
1828 }
1829 }
1830
1832 {
1834 }
1835
1837 {
1838 return "";
1839 }
1840
1842 {
1845 }
1846
1847
1849 {
1852 }
1853
1854
1856 {
1857 super.OnStoreSave( ctx );
1858
1859
1863
1865 }
1866
1868 {
1869 if ( !super.OnStoreLoad( ctx, version ) )
1870 return false;
1871
1872
1873
1875 {
1877 return false;
1878 }
1880 {
1882 return false;
1883 }
1885 {
1887 return false;
1888 }
1889
1890
1892 {
1894 return false;
1895 }
1896
1897
1898 return true;
1899 }
1900
1902 {
1903 super.AfterStoreLoad();
1904
1906 {
1908 }
1909 }
1910
1912 {
1913
1915
1916
1919
1920
1922 }
1923
1925 {
1926 super.OnCreatePhysics();
1929 }
1930
1932 {
1934 return;
1935
1936 super.EEHealthLevelChanged(oldLevel,newLevel,zone);
1937
1939 return;
1940
1942 string part_name = zone;
1944
1946 {
1947 ConstructionPart construction_part = construction.GetConstructionPart( part_name );
1948
1949 if ( construction_part && construction.IsPartConstructed( part_name ) )
1950 {
1952 construction.DestroyConnectedParts(part_name);
1953 }
1954
1955
1956 if ( part_name.
Contains(
"barbed") )
1957 {
1958 BarbedWire barbed_wire = BarbedWire.Cast( FindAttachmentBySlotName( zone ) );
1959 if (barbed_wire)
1960 barbed_wire.SetMountedState( false );
1961 }
1962 }
1963 }
1964
1966 {
1968 {
1970 }
1971
1972 super.EEOnAfterLoad();
1973 }
1974
1976 {
1977 super.EEInit();
1978
1979
1981
1982
1983 #ifdef DEVELOPER
1985 #endif
1986 }
1987
1989 {
1990 super.EEItemAttached( item, slot_name );
1991
1995 }
1996
1998 {
1999 super.EEItemDetached( item, slot_name );
2000
2003 }
2004
2005 protected void OnSetSlotLock(
int slotId,
bool locked,
bool was_locked )
2006 {
2009
2012 }
2013
2014
2016 {
2017 return true;
2018 }
2019
2020
2021
2023 {
2025
2026
2027 if (construtionPart.
IsBase())
2028 {
2030
2031
2033 }
2034
2035
2037
2038
2040
2041
2043
2045
2047
2048
2050
2051
2053 }
2054
2056 {
2057
2059 }
2060
2061
2063 {
2066
2067
2069
2070
2072
2073
2075
2076
2078
2080
2081
2083
2084
2086
2087
2088 if (construtionPart.
IsBase())
2089 {
2090
2092 }
2093 }
2094
2096 {
2097
2099 }
2100
2101
2102 void OnPartDestroyedServer(Man player,
string part_name,
int action_id,
bool destroyed_by_connected_part =
false)
2103 {
2106
2107
2109
2110
2112
2113
2115
2116
2118
2120
2121
2123
2124
2126
2127
2128 if (construtionPart.
IsBase())
2129 {
2130
2132 }
2133 }
2134
2136 {
2137
2139 }
2140
2143 {
2144 bool process = false;
2145
2146
2150
2151 if (process)
2152 {
2153 if (!MemoryPointExists(part.
m_PartName +
"_min") || !MemoryPointExists(part.
m_PartName +
"_max"))
2154 {
2156 return;
2157 }
2158
2160 mins = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_min"));
2161 maxs = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_max"));
2162
2163
2165 minTmp[0] =
Math.
Min(mins[0],maxs[0]);
2166 maxTmp[0] =
Math.
Max(mins[0],maxs[0]);
2167 minTmp[1] =
Math.
Min(mins[1],maxs[1]);
2168 maxTmp[1] =
Math.
Max(mins[1],maxs[1]);
2169 minTmp[2] =
Math.
Min(mins[2],maxs[2]);
2170 maxTmp[2] =
Math.
Max(mins[2],maxs[2]);
2171 mins = minTmp;
2172 maxs = maxTmp;
2173
2174 maxs[1] = maxs[1] + 0.35;
2175
2177 }
2178 }
2179
2182 {
2185
2186
2188 foreach (
EntityAI entity : foundEntities)
2189 {
2192 }
2193 }
2194
2195
2197 {
2199
2203 }
2204
2206 {
2208
2210 {
2212 }
2213 else
2214 {
2216 }
2217
2219 }
2220
2222 {
2224
2226 foreach (
string slotName : attachmentSlots)
2227 {
2229 }
2230
2231
2234 else
2236
2238 }
2239
2241 {
2242 string slotNameMounted = slot_name + "_Mounted";
2243 EntityAI attachment = FindAttachmentBySlotName(slot_name);
2244
2245 if (attachment)
2246 {
2247 BarbedWire barbedWire = BarbedWire.Cast(attachment);
2248 if (barbedWire && barbedWire.IsMounted())
2250 else
2252
2253 if (is_locked)
2254 {
2255 SetAnimationPhase(slotNameMounted, 0);
2256 SetAnimationPhase(slot_name, 1);
2257 }
2258 else
2259 {
2260 SetAnimationPhase(slotNameMounted, 1);
2261 SetAnimationPhase(slot_name, 0);
2262 }
2263 }
2264 else
2265 {
2266 SetAnimationPhase(slotNameMounted, 1);
2267 SetAnimationPhase(slot_name, 1);
2268
2270 }
2271 }
2272
2273
2275 {
2278
2281
2284
2285 foreach (
string slotName : attachmentSlots)
2286 {
2288 }
2289
2290
2292 {
2295
2297 }
2298 else
2299 {
2302
2304 }
2305
2308 }
2309
2311 {
2312
2314 return;
2315
2316 string slot_name_mounted = slot_name + "_Mounted";
2317 EntityAI attachment = FindAttachmentBySlotName( slot_name );
2318
2319
2321 RemoveProxyPhysics( slot_name_mounted );
2322 RemoveProxyPhysics( slot_name );
2323
2324 if ( attachment )
2325 {
2327 if ( is_locked )
2328 {
2330 AddProxyPhysics( slot_name_mounted );
2331 }
2332 else
2333 {
2335 AddProxyPhysics( slot_name );
2336 }
2337 }
2338 }
2339
2341 {
2342 SetAffectPathgraph( true, false );
2344 }
2345
2347 {
2348 return true;
2349 }
2350
2352 {
2353 return true;
2354 }
2355
2357 {
2358 if ( attachment )
2359 {
2361 attachment.GetInventory().GetCurrentInventoryLocation( inventory_location );
2362
2363 return GetInventory().GetSlotLock( inventory_location.
GetSlot() );
2364 }
2365
2366 return false;
2367 }
2368
2370 {
2372 }
2373
2374
2376 {
2377 string config_path = "CfgVehicles" + " " + entity.GetType() + " " + "attachments";
2378 if (
GetGame().ConfigIsExisting( config_path ) )
2379 {
2381 }
2382 }
2383
2385 {
2386 return true;
2387 }
2388
2390 {
2391 return true;
2392 }
2393
2395 {
2396 return true;
2397 }
2398
2399
2401 {
2403 {
2405 }
2406
2408 }
2409
2411 {
2413 }
2414
2415
2416
2418 {
2419 return super.CanReceiveAttachment(attachment, slotId);
2420 }
2421
2423 {
2424 int attachment_count = GetInventory().AttachmentCount();
2425 if ( attachment_count > 0 )
2426 {
2427 if (
HasBase() && attachment_count == 1 )
2428 {
2429 return false;
2430 }
2431
2432 return true;
2433 }
2434
2435 return false;
2436 }
2437
2439 {
2440 return true;
2441 }
2442
2444 {
2445 return false;
2446 }
2447
2448
2450 {
2451 return false;
2452 }
2453
2455 {
2456 return false;
2457 }
2458
2459
2461 {
2462 return false;
2463 }
2464
2465
2466
2468 {
2469 return true;
2470 }
2471
2473 {
2474 return true;
2475 }
2476
2479 {
2480 return false;
2481 }
2482
2483
2485 {
2486 return true;
2487 }
2488
2489
2491 {
2492 return false;
2493 }
2494
2495
2497 {
2498 return true;
2499 }
2500
2501
2503 {
2504 if (
HasBase() || GetInventory().AttachmentCount() > 0 )
2505 {
2506 return false;
2507 }
2508
2509 return true;
2510 }
2511
2513 {
2516
2517 return item;
2518 }
2519
2520
2522 {
2524 {
2525
2527
2528
2531
2533 if ( MemoryPointExists( slot_name + "_min" ) )
2534 {
2535 min_max[0] = GetMemoryPointPos( slot_name + "_min" );
2536 }
2537 if ( MemoryPointExists( slot_name + "_max" ) )
2538 {
2539 min_max[1] = GetMemoryPointPos( slot_name + "_max" );
2540 }
2541
2542
2545
2546
2549 center = ModelToWorld( center );
2550
2551
2554
2555 areaDamage.SetExtents( extents[0], extents[1] );
2556 areaDamage.SetAreaPosition( center );
2557 areaDamage.SetAreaOrientation( orientation );
2560 areaDamage.SetHitZones( { "Torso","LeftHand","LeftLeg","LeftFoot","RightHand","RightLeg","RightFoot" } );
2561 areaDamage.SetAmmoName( "BarbedWireHit" );
2562 areaDamage.Spawn();
2563
2565 }
2566 }
2567
2569 {
2570 if ( angle_deg != 0 )
2571 {
2572
2573 orientation[0] = orientation[0] - angle_deg;
2574
2575
2577 if ( MemoryPointExists( "rotate_axis" ) )
2578 {
2579 rotate_axis = ModelToWorld( GetMemoryPointPos( "rotate_axis" ) );
2580 }
2581 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];
2582 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];
2583 center[0] = r_center_x;
2584 center[2] = r_center_z;
2585 }
2586 }
2587
2589 {
2591 {
2594 {
2595 if (areaDamage)
2596 {
2597 areaDamage.Destroy();
2598 }
2599
2601 }
2602 }
2603 }
2604
2606 {
2607 return true;
2608 }
2609
2610
2611
2612
2614 {
2616 }
2617
2619 {
2621 }
2622
2624 {
2626 }
2627
2629 {
2631
2632 switch ( material_type )
2633 {
2639 }
2640
2641 return "";
2642 }
2643
2645 {
2647
2648 switch ( material_type )
2649 {
2655 }
2656
2657 return "";
2658 }
2659
2660
2662 {
2664 {
2665
2667 {
2668 SetHealth(slot_name,"Health",item.GetHealth());
2669 }
2670 }
2671 }
2672
2674 {
2675 return 111;
2676 }
2677
2679 {
2680 super.SetActions();
2681
2685 }
2686
2687
2688
2689
2691 {
2692 }
2693
2696 {
2697 return null;
2698 }
2699
2701 {
2703 }
2704
2706 {
2709
2710 Man p;
2711
2712 #ifdef SERVER
2715 if (players.Count())
2716 p = players[0];
2717 #else
2719 #endif
2720
2722 {
2723 bool excluded = false;
2725 if (excludes)
2726 {
2727 foreach (string exclude : excludes)
2728 {
2730 {
2731 excluded = true;
2732 break;
2733 }
2734 }
2735 }
2736
2737 if (!excluded)
2738 {
2740 }
2741 }
2742
2744 }
2745}
2746
2748{
2749#ifdef BSB_DEBUG
2751#else
2752
2753#endif
2754}
2756{
2757#ifdef BSB_DEBUG_SPAM
2759#else
2760
2761#endif
2762}
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.