1395{
1397
1399
1401
1403
1409
1410
1411
1417
1423
1425
1429
1430
1432 {
1434
1435
1436 RegisterNetSyncVariableInt( "m_SyncParts01" );
1437 RegisterNetSyncVariableInt( "m_SyncParts02" );
1438 RegisterNetSyncVariableInt( "m_SyncParts03" );
1439 RegisterNetSyncVariableInt( "m_InteractedPartId" );
1440 RegisterNetSyncVariableInt( "m_PerformedActionId" );
1441 RegisterNetSyncVariableBool( "m_HasBase" );
1442
1443
1445
1446 if (ConfigIsExisting("hybridAttachments"))
1447 {
1450 }
1451 if (ConfigIsExisting("mountables"))
1452 {
1455 }
1456
1458 }
1459
1461 {
1462 super.EEDelete(parent);
1463
1465 {
1466 areaDamage.Destroy();
1467 }
1468
1469 }
1470
1472 {
1473 return "disableBaseDamage";
1474 }
1475
1477 {
1478 return true;
1479 }
1480
1482 {
1483 return EInventoryIconVisibility.HIDE_VICINITY;
1484 }
1485
1487 {
1488 super.InitItemSounds();
1489
1493
1498 }
1499
1501 {
1502 return "putDown_FenceKit_SoundSet";
1503 }
1504
1506 {
1507 return "Shelter_Site_Build_Loop_SoundSet";
1508 }
1509
1510
1512 {
1514 {
1515 SetSynchDirty();
1516 }
1517 }
1518
1520 {
1522 super.OnVariablesSynchronized();
1523
1525 }
1526
1528 {
1529
1531
1532
1534
1535
1537 }
1538
1539
1541 {
1542
1543 int offset;
1544 int mask;
1545
1546 if ( part_id >= 1 && part_id <= 31 )
1547 {
1548 offset = part_id - 1;
1549 mask = 1 << offset;
1550
1552 }
1553 else if ( part_id >= 32 && part_id <= 62 )
1554 {
1555 offset = ( part_id % 32 );
1556 mask = 1 << offset;
1557
1559 }
1560 else if ( part_id >= 63 && part_id <= 93 )
1561 {
1562 offset = ( part_id % 63 );
1563 mask = 1 << offset;
1564
1566 }
1567 }
1568
1570 {
1571
1572 int offset;
1573 int mask;
1574
1575 if ( part_id >= 1 && part_id <= 31 )
1576 {
1577 offset = part_id - 1;
1578 mask = 1 << offset;
1579
1581 }
1582 else if ( part_id >= 32 && part_id <= 62 )
1583 {
1584 offset = ( part_id % 32 );
1585 mask = 1 << offset;
1586
1588 }
1589 else if ( part_id >= 63 && part_id <= 93 )
1590 {
1591 offset = ( part_id % 63 );
1592 mask = 1 << offset;
1593
1595 }
1596 }
1597
1599 {
1600
1601 int offset;
1602 int mask;
1603
1604 if ( part_id >= 1 && part_id <= 31 )
1605 {
1606 offset = part_id - 1;
1607 mask = 1 << offset;
1608
1610 {
1611 return true;
1612 }
1613 }
1614 else if ( part_id >= 32 && part_id <= 62 )
1615 {
1616 offset = ( part_id % 32 );
1617 mask = 1 << offset;
1618
1620 {
1621 return true;
1622 }
1623 }
1624 else if ( part_id >= 63 && part_id <= 93 )
1625 {
1626 offset = ( part_id % 63 );
1627 mask = 1 << offset;
1628
1630 {
1631 return true;
1632 }
1633 }
1634
1635 return false;
1636 }
1637
1639 {
1642 }
1643
1645 {
1646
1649 }
1650
1652 {
1654 {
1657
1658 switch( build_action_id )
1659 {
1663 }
1664 }
1665 }
1666
1667
1669 {
1671 bool is_base = part.
IsBase();
1674 if ( is_part_built_sync )
1675 {
1677 {
1681
1682 if (is_base)
1683 {
1686 }
1687 }
1688 }
1689 else
1690 {
1692 {
1696
1697 if (is_base)
1698 {
1701 }
1702 }
1703 }
1704
1705
1707 }
1708
1709
1711 {
1714
1715 for ( int i = 0; i < construction_parts.Count(); ++i )
1716 {
1717 string key = construction_parts.GetKey( i );
1720 }
1721
1722
1724 }
1725
1727 {
1730
1731 for ( int i = 0; i < construction_parts.Count(); ++i )
1732 {
1733 string key = construction_parts.GetKey( i );
1735
1736 if ( value.
GetId() ==
id )
1737 {
1738 return value;
1739 }
1740 }
1741
1742 return NULL;
1743 }
1744
1745
1746
1748 {
1750 }
1751
1753 {
1755 }
1756
1758 {
1759 return true;
1760 }
1761
1763 {
1764 return false;
1765 }
1766
1767
1769 {
1772 {
1774 }
1775
1776 return construction_kit;
1777 }
1778
1780 {
1783 {
1785 }
1786 }
1787
1789 {
1791 }
1792
1794 {
1795 return "";
1796 }
1797
1799 {
1802 }
1803
1804
1806 {
1809 }
1810
1811
1813 {
1814 super.OnStoreSave( ctx );
1815
1816
1820
1822 }
1823
1825 {
1826 if ( !super.OnStoreLoad( ctx, version ) )
1827 return false;
1828
1829
1830
1832 {
1834 return false;
1835 }
1837 {
1839 return false;
1840 }
1842 {
1844 return false;
1845 }
1846
1847
1849 {
1851 return false;
1852 }
1853
1854
1855 return true;
1856 }
1857
1859 {
1860 super.AfterStoreLoad();
1861
1863 {
1865 }
1866 }
1867
1869 {
1870
1872
1873
1876
1877
1879 }
1880
1882 {
1883 super.OnCreatePhysics();
1886 }
1887
1889 {
1891 return;
1892
1893 super.EEHealthLevelChanged(oldLevel,newLevel,zone);
1894
1896 return;
1897
1899 string part_name = zone;
1901
1903 {
1904 ConstructionPart construction_part = construction.GetConstructionPart( part_name );
1905
1906 if ( construction_part && construction.IsPartConstructed( part_name ) )
1907 {
1909 construction.DestroyConnectedParts(part_name);
1910 }
1911
1912
1913 if ( part_name.
Contains(
"barbed") )
1914 {
1915 BarbedWire barbed_wire = BarbedWire.Cast( FindAttachmentBySlotName( zone ) );
1916 if (barbed_wire)
1917 barbed_wire.SetMountedState( false );
1918 }
1919 }
1920 }
1921
1923 {
1925 {
1927 }
1928
1929 super.EEOnAfterLoad();
1930 }
1931
1933 {
1934 super.EEInit();
1935
1936
1938
1939
1940 #ifdef DEVELOPER
1942 #endif
1943 }
1944
1946 {
1947 super.EEItemAttached( item, slot_name );
1948
1952 }
1953
1955 {
1956 super.EEItemDetached( item, slot_name );
1957
1960 }
1961
1962 protected void OnSetSlotLock(
int slotId,
bool locked,
bool was_locked )
1963 {
1966
1969 }
1970
1971
1973 {
1974 return true;
1975 }
1976
1977
1978
1980 {
1982
1983
1984 if (construtionPart.
IsBase())
1985 {
1987
1988
1990 }
1991
1992
1994
1995
1997
1998
2000
2002
2004
2005
2007
2008
2010 }
2011
2013 {
2014
2016 }
2017
2018
2020 {
2023
2024
2026
2027
2029
2030
2032
2033
2035
2037
2038
2040
2041
2043
2044
2045 if (construtionPart.
IsBase())
2046 {
2047
2049 }
2050 }
2051
2053 {
2054
2056 }
2057
2058
2059 void OnPartDestroyedServer(Man player,
string part_name,
int action_id,
bool destroyed_by_connected_part =
false)
2060 {
2063
2064
2066
2067
2069
2070
2072
2073
2075
2077
2078
2080
2081
2083
2084
2085 if (construtionPart.
IsBase())
2086 {
2087
2089 }
2090 }
2091
2093 {
2094
2096 }
2097
2100 {
2101 bool process = false;
2102
2103
2107
2108 if (process)
2109 {
2110 if (!MemoryPointExists(part.
m_PartName +
"_min") || !MemoryPointExists(part.
m_PartName +
"_max"))
2111 {
2113 return;
2114 }
2115
2117 mins = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_min"));
2118 maxs = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_max"));
2119
2120
2122 minTmp[0] =
Math.
Min(mins[0],maxs[0]);
2123 maxTmp[0] =
Math.
Max(mins[0],maxs[0]);
2124 minTmp[1] =
Math.
Min(mins[1],maxs[1]);
2125 maxTmp[1] =
Math.
Max(mins[1],maxs[1]);
2126 minTmp[2] =
Math.
Min(mins[2],maxs[2]);
2127 maxTmp[2] =
Math.
Max(mins[2],maxs[2]);
2128 mins = minTmp;
2129 maxs = maxTmp;
2130
2131 maxs[1] = maxs[1] + 0.35;
2132
2134 }
2135 }
2136
2139 {
2142
2143
2145 foreach (
EntityAI entity : foundEntities)
2146 {
2149 }
2150 }
2151
2152
2154 {
2156
2160 }
2161
2163 {
2165
2167 {
2169 }
2170 else
2171 {
2173 }
2174
2176 }
2177
2179 {
2181
2183 foreach (
string slotName : attachmentSlots)
2184 {
2186 }
2187
2188
2191 else
2193
2195 }
2196
2198 {
2199 string slotNameMounted = slot_name + "_Mounted";
2200 EntityAI attachment = FindAttachmentBySlotName(slot_name);
2201
2202 if (attachment)
2203 {
2204 BarbedWire barbedWire = BarbedWire.Cast(attachment);
2205 if (barbedWire && barbedWire.IsMounted())
2207 else
2209
2210 if (is_locked)
2211 {
2212 SetAnimationPhase(slotNameMounted, 0);
2213 SetAnimationPhase(slot_name, 1);
2214 }
2215 else
2216 {
2217 SetAnimationPhase(slotNameMounted, 1);
2218 SetAnimationPhase(slot_name, 0);
2219 }
2220 }
2221 else
2222 {
2223 SetAnimationPhase(slotNameMounted, 1);
2224 SetAnimationPhase(slot_name, 1);
2225
2227 }
2228 }
2229
2230
2232 {
2235
2238
2241
2242 foreach (
string slotName : attachmentSlots)
2243 {
2245 }
2246
2247
2249 {
2252
2254 }
2255 else
2256 {
2259
2261 }
2262
2265 }
2266
2268 {
2269
2271 return;
2272
2273 string slot_name_mounted = slot_name + "_Mounted";
2274 EntityAI attachment = FindAttachmentBySlotName( slot_name );
2275
2276
2278 RemoveProxyPhysics( slot_name_mounted );
2279 RemoveProxyPhysics( slot_name );
2280
2281 if ( attachment )
2282 {
2284 if ( is_locked )
2285 {
2287 AddProxyPhysics( slot_name_mounted );
2288 }
2289 else
2290 {
2292 AddProxyPhysics( slot_name );
2293 }
2294 }
2295 }
2296
2298 {
2299 SetAffectPathgraph( true, false );
2301 }
2302
2304 {
2305 return true;
2306 }
2307
2309 {
2310 return true;
2311 }
2312
2314 {
2315 if ( attachment )
2316 {
2318 attachment.GetInventory().GetCurrentInventoryLocation( inventory_location );
2319
2320 return GetInventory().GetSlotLock( inventory_location.
GetSlot() );
2321 }
2322
2323 return false;
2324 }
2325
2327 {
2329 }
2330
2331
2333 {
2334 string config_path = "CfgVehicles" + " " + entity.GetType() + " " + "attachments";
2335 if (
GetGame().ConfigIsExisting( config_path ) )
2336 {
2338 }
2339 }
2340
2342 {
2343 return true;
2344 }
2345
2347 {
2348 return true;
2349 }
2350
2352 {
2353 return true;
2354 }
2355
2356
2358 {
2360 {
2362 }
2363
2365 }
2366
2368 {
2370 }
2371
2372
2373
2375 {
2376 return super.CanReceiveAttachment(attachment, slotId);
2377 }
2378
2380 {
2381 int attachment_count = GetInventory().AttachmentCount();
2382 if ( attachment_count > 0 )
2383 {
2384 if (
HasBase() && attachment_count == 1 )
2385 {
2386 return false;
2387 }
2388
2389 return true;
2390 }
2391
2392 return false;
2393 }
2394
2396 {
2397 return true;
2398 }
2399
2401 {
2402 return false;
2403 }
2404
2405
2407 {
2408 return false;
2409 }
2410
2412 {
2413 return false;
2414 }
2415
2416
2418 {
2419 return false;
2420 }
2421
2422
2423
2425 {
2426 return true;
2427 }
2428
2430 {
2431 return true;
2432 }
2433
2436 {
2437 return false;
2438 }
2439
2440
2442 {
2443 return true;
2444 }
2445
2446
2448 {
2449 return false;
2450 }
2451
2452
2454 {
2455 return true;
2456 }
2457
2458
2460 {
2461 if (
HasBase() || GetInventory().AttachmentCount() > 0 )
2462 {
2463 return false;
2464 }
2465
2466 return true;
2467 }
2468
2470 {
2473
2474 return item;
2475 }
2476
2477
2479 {
2481 {
2482
2484
2485
2488
2490 if ( MemoryPointExists( slot_name + "_min" ) )
2491 {
2492 min_max[0] = GetMemoryPointPos( slot_name + "_min" );
2493 }
2494 if ( MemoryPointExists( slot_name + "_max" ) )
2495 {
2496 min_max[1] = GetMemoryPointPos( slot_name + "_max" );
2497 }
2498
2499
2502
2503
2506 center = ModelToWorld( center );
2507
2508
2511
2512 areaDamage.SetExtents( extents[0], extents[1] );
2513 areaDamage.SetAreaPosition( center );
2514 areaDamage.SetAreaOrientation( orientation );
2517 areaDamage.SetHitZones( { "Torso","LeftHand","LeftLeg","LeftFoot","RightHand","RightLeg","RightFoot" } );
2518 areaDamage.SetAmmoName( "BarbedWireHit" );
2519 areaDamage.Spawn();
2520
2522 }
2523 }
2524
2526 {
2527 if ( angle_deg != 0 )
2528 {
2529
2530 orientation[0] = orientation[0] - angle_deg;
2531
2532
2534 if ( MemoryPointExists( "rotate_axis" ) )
2535 {
2536 rotate_axis = ModelToWorld( GetMemoryPointPos( "rotate_axis" ) );
2537 }
2538 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];
2539 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];
2540 center[0] = r_center_x;
2541 center[2] = r_center_z;
2542 }
2543 }
2544
2546 {
2548 {
2551 {
2552 if (areaDamage)
2553 {
2554 areaDamage.Destroy();
2555 }
2556
2558 }
2559 }
2560 }
2561
2563 {
2564 return true;
2565 }
2566
2567
2568
2569
2571 {
2573 }
2574
2576 {
2578 }
2579
2581 {
2583 }
2584
2586 {
2588
2589 switch ( material_type )
2590 {
2596 }
2597
2598 return "";
2599 }
2600
2602 {
2604
2605 switch ( material_type )
2606 {
2612 }
2613
2614 return "";
2615 }
2616
2617
2619 {
2621 {
2622
2624 {
2625 SetHealth(slot_name,"Health",item.GetHealth());
2626 }
2627 }
2628 }
2629
2631 {
2632 return 111;
2633 }
2634
2636 {
2637 super.SetActions();
2638
2642 }
2643
2644
2645
2646
2648 {
2649 }
2650
2653 {
2654 return null;
2655 }
2656
2658 {
2660 }
2661
2663 {
2666
2667 Man p;
2668
2669 #ifdef SERVER
2672 if (players.Count())
2673 p = players[0];
2674 #else
2676 #endif
2677
2679 {
2680 bool excluded = false;
2682 if (excludes)
2683 {
2684 foreach (string exclude : excludes)
2685 {
2687 {
2688 excluded = true;
2689 break;
2690 }
2691 }
2692 }
2693
2694 if (!excluded)
2695 {
2697 }
2698 }
2699
2701 }
2702}
2703
2705{
2706#ifdef BSB_DEBUG
2708#else
2709
2710#endif
2711}
2713{
2714#ifdef BSB_DEBUG_SPAM
2716#else
2717
2718#endif
2719}
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.