1350{
1352
1354
1356
1358
1364
1365
1366
1372
1378
1380
1384
1385
1387 {
1389
1390
1391 RegisterNetSyncVariableInt( "m_SyncParts01" );
1392 RegisterNetSyncVariableInt( "m_SyncParts02" );
1393 RegisterNetSyncVariableInt( "m_SyncParts03" );
1394 RegisterNetSyncVariableInt( "m_InteractedPartId" );
1395 RegisterNetSyncVariableInt( "m_PerformedActionId" );
1396 RegisterNetSyncVariableBool( "m_HasBase" );
1397
1398
1400
1401 if (ConfigIsExisting("hybridAttachments"))
1402 {
1405 }
1406 if (ConfigIsExisting("mountables"))
1407 {
1410 }
1411
1413 }
1414
1416 {
1417 super.EEDelete(parent);
1418
1420 {
1421 areaDamage.Destroy();
1422 }
1423
1424 }
1425
1427 {
1428 return "disableBaseDamage";
1429 }
1430
1432 {
1433 return true;
1434 }
1435
1437 {
1438 return EInventoryIconVisibility.HIDE_VICINITY;
1439 }
1440
1442 {
1443 super.InitItemSounds();
1444
1448
1453 }
1454
1456 {
1457 return "putDown_FenceKit_SoundSet";
1458 }
1459
1461 {
1462 return "Shelter_Site_Build_Loop_SoundSet";
1463 }
1464
1465
1467 {
1469 {
1470 SetSynchDirty();
1471 }
1472 }
1473
1475 {
1477 super.OnVariablesSynchronized();
1478
1480 }
1481
1483 {
1484
1486
1487
1489
1490
1492 }
1493
1494
1496 {
1497
1498 int offset;
1499 int mask;
1500
1501 if ( part_id >= 1 && part_id <= 31 )
1502 {
1503 offset = part_id - 1;
1504 mask = 1 << offset;
1505
1507 }
1508 else if ( part_id >= 32 && part_id <= 62 )
1509 {
1510 offset = ( part_id % 32 );
1511 mask = 1 << offset;
1512
1514 }
1515 else if ( part_id >= 63 && part_id <= 93 )
1516 {
1517 offset = ( part_id % 63 );
1518 mask = 1 << offset;
1519
1521 }
1522 }
1523
1525 {
1526
1527 int offset;
1528 int mask;
1529
1530 if ( part_id >= 1 && part_id <= 31 )
1531 {
1532 offset = part_id - 1;
1533 mask = 1 << offset;
1534
1536 }
1537 else if ( part_id >= 32 && part_id <= 62 )
1538 {
1539 offset = ( part_id % 32 );
1540 mask = 1 << offset;
1541
1543 }
1544 else if ( part_id >= 63 && part_id <= 93 )
1545 {
1546 offset = ( part_id % 63 );
1547 mask = 1 << offset;
1548
1550 }
1551 }
1552
1554 {
1555
1556 int offset;
1557 int mask;
1558
1559 if ( part_id >= 1 && part_id <= 31 )
1560 {
1561 offset = part_id - 1;
1562 mask = 1 << offset;
1563
1565 {
1566 return true;
1567 }
1568 }
1569 else if ( part_id >= 32 && part_id <= 62 )
1570 {
1571 offset = ( part_id % 32 );
1572 mask = 1 << offset;
1573
1575 {
1576 return true;
1577 }
1578 }
1579 else if ( part_id >= 63 && part_id <= 93 )
1580 {
1581 offset = ( part_id % 63 );
1582 mask = 1 << offset;
1583
1585 {
1586 return true;
1587 }
1588 }
1589
1590 return false;
1591 }
1592
1594 {
1597 }
1598
1600 {
1601
1604 }
1605
1607 {
1609 {
1612
1613 switch( build_action_id )
1614 {
1618 }
1619 }
1620 }
1621
1622
1624 {
1626 bool is_base = part.
IsBase();
1629 if ( is_part_built_sync )
1630 {
1632 {
1636
1637 if (is_base)
1638 {
1641 }
1642 }
1643 }
1644 else
1645 {
1647 {
1651
1652 if (is_base)
1653 {
1656 }
1657 }
1658 }
1659
1660
1662 }
1663
1664
1666 {
1669
1670 for ( int i = 0; i < construction_parts.Count(); ++i )
1671 {
1672 string key = construction_parts.GetKey( i );
1675 }
1676
1677
1679 }
1680
1682 {
1685
1686 for ( int i = 0; i < construction_parts.Count(); ++i )
1687 {
1688 string key = construction_parts.GetKey( i );
1690
1691 if ( value.
GetId() ==
id )
1692 {
1693 return value;
1694 }
1695 }
1696
1697 return NULL;
1698 }
1699
1700
1701
1703 {
1705 }
1706
1708 {
1710 }
1711
1713 {
1714 return true;
1715 }
1716
1718 {
1719 return false;
1720 }
1721
1722
1724 {
1727 {
1729 }
1730
1731 return construction_kit;
1732 }
1733
1735 {
1738 {
1740 }
1741 }
1742
1744 {
1746 }
1747
1749 {
1750 return "";
1751 }
1752
1754 {
1757 }
1758
1759
1761 {
1764 }
1765
1766
1768 {
1769 super.OnStoreSave( ctx );
1770
1771
1775
1777 }
1778
1780 {
1781 if ( !super.OnStoreLoad( ctx, version ) )
1782 return false;
1783
1784
1785
1787 {
1789 return false;
1790 }
1792 {
1794 return false;
1795 }
1797 {
1799 return false;
1800 }
1801
1802
1804 {
1806 return false;
1807 }
1808
1809
1810 return true;
1811 }
1812
1814 {
1815 super.AfterStoreLoad();
1816
1818 {
1820 }
1821 }
1822
1824 {
1825
1827
1828
1831
1832
1834 }
1835
1837 {
1838 super.OnCreatePhysics();
1841 }
1842
1844 {
1846 return;
1847
1848 super.EEHealthLevelChanged(oldLevel,newLevel,zone);
1849
1851 return;
1852
1854 string part_name = zone;
1856
1858 {
1859 ConstructionPart construction_part = construction.GetConstructionPart( part_name );
1860
1861 if ( construction_part && construction.IsPartConstructed( part_name ) )
1862 {
1864 construction.DestroyConnectedParts(part_name);
1865 }
1866
1867
1868 if ( part_name.
Contains(
"barbed") )
1869 {
1870 BarbedWire barbed_wire = BarbedWire.Cast( FindAttachmentBySlotName( zone ) );
1871 if (barbed_wire)
1872 barbed_wire.SetMountedState( false );
1873 }
1874 }
1875 }
1876
1878 {
1880 {
1882 }
1883
1884 super.EEOnAfterLoad();
1885 }
1886
1888 {
1889 super.EEInit();
1890
1891
1893
1894
1895 #ifdef DEVELOPER
1897 #endif
1898 }
1899
1901 {
1902 super.EEItemAttached( item, slot_name );
1903
1907 }
1908
1910 {
1911 super.EEItemDetached( item, slot_name );
1912
1915 }
1916
1917 protected void OnSetSlotLock(
int slotId,
bool locked,
bool was_locked )
1918 {
1921
1924 }
1925
1926
1928 {
1929 return true;
1930 }
1931
1932
1933
1935 {
1937
1938
1939 if (construtionPart.
IsBase())
1940 {
1942
1943
1945 }
1946
1947
1949
1950
1952
1953
1955
1957
1959
1960
1962
1963
1965 }
1966
1968 {
1969
1971 }
1972
1973
1975 {
1978
1979
1981
1982
1984
1985
1987
1988
1990
1992
1993
1995
1996
1998
1999
2000 if (construtionPart.
IsBase())
2001 {
2002
2004 }
2005 }
2006
2008 {
2009
2011 }
2012
2013
2014 void OnPartDestroyedServer(Man player,
string part_name,
int action_id,
bool destroyed_by_connected_part =
false)
2015 {
2018
2019
2021
2022
2024
2025
2027
2028
2030
2032
2033
2035
2036
2038
2039
2040 if (construtionPart.
IsBase())
2041 {
2042
2044 }
2045 }
2046
2048 {
2049
2051 }
2052
2055 {
2056 bool process = false;
2057
2058
2062
2063 if (process)
2064 {
2065 if (!MemoryPointExists(part.
m_PartName +
"_min") || !MemoryPointExists(part.
m_PartName +
"_max"))
2066 {
2068 return;
2069 }
2070
2072 mins = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_min"));
2073 maxs = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_max"));
2074
2075
2077 minTmp[0] =
Math.
Min(mins[0],maxs[0]);
2078 maxTmp[0] =
Math.
Max(mins[0],maxs[0]);
2079 minTmp[1] =
Math.
Min(mins[1],maxs[1]);
2080 maxTmp[1] =
Math.
Max(mins[1],maxs[1]);
2081 minTmp[2] =
Math.
Min(mins[2],maxs[2]);
2082 maxTmp[2] =
Math.
Max(mins[2],maxs[2]);
2083 mins = minTmp;
2084 maxs = maxTmp;
2085
2086 maxs[1] = maxs[1] + 0.35;
2087
2089 }
2090 }
2091
2094 {
2097
2098
2100 foreach (
EntityAI entity : foundEntities)
2101 {
2104 }
2105 }
2106
2107
2109 {
2111
2115 }
2116
2118 {
2120
2122 {
2124 }
2125 else
2126 {
2128 }
2129
2131 }
2132
2134 {
2136
2138 foreach (
string slotName : attachmentSlots)
2139 {
2141 }
2142
2143
2146 else
2148
2150 }
2151
2153 {
2154 string slotNameMounted = slot_name + "_Mounted";
2155 EntityAI attachment = FindAttachmentBySlotName(slot_name);
2156
2157 if (attachment)
2158 {
2159 BarbedWire barbedWire = BarbedWire.Cast(attachment);
2160 if (barbedWire && barbedWire.IsMounted())
2162 else
2164
2165 if (is_locked)
2166 {
2167 SetAnimationPhase(slotNameMounted, 0);
2168 SetAnimationPhase(slot_name, 1);
2169 }
2170 else
2171 {
2172 SetAnimationPhase(slotNameMounted, 1);
2173 SetAnimationPhase(slot_name, 0);
2174 }
2175 }
2176 else
2177 {
2178 SetAnimationPhase(slotNameMounted, 1);
2179 SetAnimationPhase(slot_name, 1);
2180
2182 }
2183 }
2184
2185
2187 {
2190
2193
2196
2197 foreach (
string slotName : attachmentSlots)
2198 {
2200 }
2201
2202
2204 {
2207
2209 }
2210 else
2211 {
2214
2216 }
2217
2220 }
2221
2223 {
2224
2226 return;
2227
2228 string slot_name_mounted = slot_name + "_Mounted";
2229 EntityAI attachment = FindAttachmentBySlotName( slot_name );
2230
2231
2233 RemoveProxyPhysics( slot_name_mounted );
2234 RemoveProxyPhysics( slot_name );
2235
2236 if ( attachment )
2237 {
2239 if ( is_locked )
2240 {
2242 AddProxyPhysics( slot_name_mounted );
2243 }
2244 else
2245 {
2247 AddProxyPhysics( slot_name );
2248 }
2249 }
2250 }
2251
2253 {
2254 SetAffectPathgraph( true, false );
2256 }
2257
2259 {
2260 return true;
2261 }
2262
2264 {
2265 return true;
2266 }
2267
2269 {
2270 if ( attachment )
2271 {
2273 attachment.GetInventory().GetCurrentInventoryLocation( inventory_location );
2274
2275 return GetInventory().GetSlotLock( inventory_location.
GetSlot() );
2276 }
2277
2278 return false;
2279 }
2280
2282 {
2284 }
2285
2286
2288 {
2289 string config_path = "CfgVehicles" + " " + entity.GetType() + " " + "attachments";
2290 if (
GetGame().ConfigIsExisting( config_path ) )
2291 {
2293 }
2294 }
2295
2297 {
2298 return true;
2299 }
2300
2302 {
2303 return true;
2304 }
2305
2307 {
2308 return true;
2309 }
2310
2311
2313 {
2315 {
2317 }
2318
2320 }
2321
2323 {
2325 }
2326
2327
2328
2330 {
2331 return super.CanReceiveAttachment(attachment, slotId);
2332 }
2333
2335 {
2336 int attachment_count = GetInventory().AttachmentCount();
2337 if ( attachment_count > 0 )
2338 {
2339 if (
HasBase() && attachment_count == 1 )
2340 {
2341 return false;
2342 }
2343
2344 return true;
2345 }
2346
2347 return false;
2348 }
2349
2351 {
2352 return true;
2353 }
2354
2356 {
2357 return false;
2358 }
2359
2360
2362 {
2363 return false;
2364 }
2365
2367 {
2368 return false;
2369 }
2370
2371
2373 {
2374 return false;
2375 }
2376
2377
2378
2380 {
2381 return true;
2382 }
2383
2385 {
2386 return true;
2387 }
2388
2391 {
2392 return false;
2393 }
2394
2395
2397 {
2398 return true;
2399 }
2400
2401
2403 {
2404 return false;
2405 }
2406
2407
2409 {
2410 return true;
2411 }
2412
2413
2415 {
2416 if (
HasBase() || GetInventory().AttachmentCount() > 0 )
2417 {
2418 return false;
2419 }
2420
2421 return true;
2422 }
2423
2425 {
2428
2429 return item;
2430 }
2431
2432
2434 {
2436 {
2437
2439
2440
2443
2445 if ( MemoryPointExists( slot_name + "_min" ) )
2446 {
2447 min_max[0] = GetMemoryPointPos( slot_name + "_min" );
2448 }
2449 if ( MemoryPointExists( slot_name + "_max" ) )
2450 {
2451 min_max[1] = GetMemoryPointPos( slot_name + "_max" );
2452 }
2453
2454
2457
2458
2461 center = ModelToWorld( center );
2462
2463
2466
2467 areaDamage.SetExtents( extents[0], extents[1] );
2468 areaDamage.SetAreaPosition( center );
2469 areaDamage.SetAreaOrientation( orientation );
2472 areaDamage.SetHitZones( { "Torso","LeftHand","LeftLeg","LeftFoot","RightHand","RightLeg","RightFoot" } );
2473 areaDamage.SetAmmoName( "BarbedWireHit" );
2474 areaDamage.Spawn();
2475
2477 }
2478 }
2479
2481 {
2482 if ( angle_deg != 0 )
2483 {
2484
2485 orientation[0] = orientation[0] - angle_deg;
2486
2487
2489 if ( MemoryPointExists( "rotate_axis" ) )
2490 {
2491 rotate_axis = ModelToWorld( GetMemoryPointPos( "rotate_axis" ) );
2492 }
2493 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];
2494 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];
2495 center[0] = r_center_x;
2496 center[2] = r_center_z;
2497 }
2498 }
2499
2501 {
2503 {
2506 {
2507 if (areaDamage)
2508 {
2509 areaDamage.Destroy();
2510 }
2511
2513 }
2514 }
2515 }
2516
2518 {
2519 return true;
2520 }
2521
2522
2523
2524
2526 {
2528 }
2529
2531 {
2533 }
2534
2536 {
2538 }
2539
2541 {
2543
2544 switch ( material_type )
2545 {
2551 }
2552
2553 return "";
2554 }
2555
2557 {
2559
2560 switch ( material_type )
2561 {
2567 }
2568
2569 return "";
2570 }
2571
2572
2574 {
2576 {
2577
2579 {
2580 SetHealth(slot_name,"Health",item.GetHealth());
2581 }
2582 }
2583 }
2584
2586 {
2587 return 111;
2588 }
2589
2591 {
2592 super.SetActions();
2593
2597 }
2598
2599
2600
2601
2603 {
2604 }
2605
2608 {
2609 return null;
2610 }
2611
2613 {
2615 }
2616
2618 {
2621
2622 Man p;
2623
2624 #ifdef SERVER
2627 if (players.Count())
2628 p = players[0];
2629 #else
2631 #endif
2632
2634 {
2635 bool excluded = false;
2637 if (excludes)
2638 {
2639 foreach (string exclude : excludes)
2640 {
2642 {
2643 excluded = true;
2644 break;
2645 }
2646 }
2647 }
2648
2649 if (!excluded)
2650 {
2652 }
2653 }
2654
2656 }
2657}
2658
2660{
2661#ifdef BSB_DEBUG
2663#else
2664
2665#endif
2666}
2668{
2669#ifdef BSB_DEBUG_SPAM
2671#else
2672
2673#endif
2674}
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.