1430{
1432
1434
1436
1438
1444
1445
1446
1452
1458
1460
1464
1465
1467 {
1469
1470
1471 RegisterNetSyncVariableInt( "m_SyncParts01" );
1472 RegisterNetSyncVariableInt( "m_SyncParts02" );
1473 RegisterNetSyncVariableInt( "m_SyncParts03" );
1474 RegisterNetSyncVariableInt( "m_InteractedPartId" );
1475 RegisterNetSyncVariableInt( "m_PerformedActionId" );
1476 RegisterNetSyncVariableBool( "m_HasBase" );
1477
1478
1480
1481 if (ConfigIsExisting("hybridAttachments"))
1482 {
1485 }
1486 if (ConfigIsExisting("mountables"))
1487 {
1490 }
1491
1493 }
1494
1496 {
1497 super.EEDelete(parent);
1498
1500 {
1501 areaDamage.Destroy();
1502 }
1503
1504 }
1505
1507 {
1508 return "disableBaseDamage";
1509 }
1510
1512 {
1513 return true;
1514 }
1515
1517 {
1518 return EInventoryIconVisibility.HIDE_VICINITY;
1519 }
1520
1522 {
1523 super.InitItemSounds();
1524
1528
1533 }
1534
1536 {
1537 return "putDown_FenceKit_SoundSet";
1538 }
1539
1541 {
1542 return "Shelter_Site_Build_Loop_SoundSet";
1543 }
1544
1545
1547 {
1549 {
1550 SetSynchDirty();
1551 }
1552 }
1553
1555 {
1557 super.OnVariablesSynchronized();
1558
1560 }
1561
1563 {
1564
1566
1567
1569
1570
1572 }
1573
1574
1576 {
1577
1578 int offset;
1579 int mask;
1580
1581 if ( part_id >= 1 && part_id <= 31 )
1582 {
1583 offset = part_id - 1;
1584 mask = 1 << offset;
1585
1587 }
1588 else if ( part_id >= 32 && part_id <= 62 )
1589 {
1590 offset = ( part_id % 32 );
1591 mask = 1 << offset;
1592
1594 }
1595 else if ( part_id >= 63 && part_id <= 93 )
1596 {
1597 offset = ( part_id % 63 );
1598 mask = 1 << offset;
1599
1601 }
1602 }
1603
1605 {
1606
1607 int offset;
1608 int mask;
1609
1610 if ( part_id >= 1 && part_id <= 31 )
1611 {
1612 offset = part_id - 1;
1613 mask = 1 << offset;
1614
1616 }
1617 else if ( part_id >= 32 && part_id <= 62 )
1618 {
1619 offset = ( part_id % 32 );
1620 mask = 1 << offset;
1621
1623 }
1624 else if ( part_id >= 63 && part_id <= 93 )
1625 {
1626 offset = ( part_id % 63 );
1627 mask = 1 << offset;
1628
1630 }
1631 }
1632
1634 {
1635
1636 int offset;
1637 int mask;
1638
1639 if ( part_id >= 1 && part_id <= 31 )
1640 {
1641 offset = part_id - 1;
1642 mask = 1 << offset;
1643
1645 {
1646 return true;
1647 }
1648 }
1649 else if ( part_id >= 32 && part_id <= 62 )
1650 {
1651 offset = ( part_id % 32 );
1652 mask = 1 << offset;
1653
1655 {
1656 return true;
1657 }
1658 }
1659 else if ( part_id >= 63 && part_id <= 93 )
1660 {
1661 offset = ( part_id % 63 );
1662 mask = 1 << offset;
1663
1665 {
1666 return true;
1667 }
1668 }
1669
1670 return false;
1671 }
1672
1674 {
1677 }
1678
1680 {
1681
1684 }
1685
1687 {
1689 {
1692
1693 switch( build_action_id )
1694 {
1698 }
1699 }
1700 }
1701
1702
1704 {
1706 bool is_base = part.
IsBase();
1709 if ( is_part_built_sync )
1710 {
1712 {
1716
1717 if (is_base)
1718 {
1721 }
1722 }
1723 }
1724 else
1725 {
1727 {
1731
1732 if (is_base)
1733 {
1736 }
1737 }
1738 }
1739
1740
1742 }
1743
1744
1746 {
1749
1750 for ( int i = 0; i < construction_parts.Count(); ++i )
1751 {
1752 string key = construction_parts.GetKey( i );
1755 }
1756
1757
1759 }
1760
1762 {
1765
1766 for ( int i = 0; i < construction_parts.Count(); ++i )
1767 {
1768 string key = construction_parts.GetKey( i );
1770
1771 if ( value.
GetId() ==
id )
1772 {
1773 return value;
1774 }
1775 }
1776
1777 return NULL;
1778 }
1779
1780
1781
1783 {
1785 }
1786
1788 {
1790 }
1791
1793 {
1794 return true;
1795 }
1796
1798 {
1799 return false;
1800 }
1801
1802
1804 {
1807 {
1809 }
1810
1811 return construction_kit;
1812 }
1813
1815 {
1818 {
1820 }
1821 }
1822
1824 {
1826 }
1827
1829 {
1830 return "";
1831 }
1832
1834 {
1837 }
1838
1839
1841 {
1844 }
1845
1846
1848 {
1849 super.OnStoreSave( ctx );
1850
1851
1855
1857 }
1858
1860 {
1861 if ( !super.OnStoreLoad( ctx, version ) )
1862 return false;
1863
1864
1865
1867 {
1869 return false;
1870 }
1872 {
1874 return false;
1875 }
1877 {
1879 return false;
1880 }
1881
1882
1884 {
1886 return false;
1887 }
1888
1889
1890 return true;
1891 }
1892
1894 {
1895 super.AfterStoreLoad();
1896
1898 {
1900 }
1901 }
1902
1904 {
1905
1907
1908
1911
1912
1914 }
1915
1917 {
1918 super.OnCreatePhysics();
1921 }
1922
1924 {
1926 return;
1927
1928 super.EEHealthLevelChanged(oldLevel,newLevel,zone);
1929
1931 return;
1932
1934 string part_name = zone;
1936
1938 {
1939 ConstructionPart construction_part = construction.GetConstructionPart( part_name );
1940
1941 if ( construction_part && construction.IsPartConstructed( part_name ) )
1942 {
1944 construction.DestroyConnectedParts(part_name);
1945 }
1946
1947
1948 if ( part_name.
Contains(
"barbed") )
1949 {
1950 BarbedWire barbed_wire = BarbedWire.Cast( FindAttachmentBySlotName( zone ) );
1951 if (barbed_wire)
1952 barbed_wire.SetMountedState( false );
1953 }
1954 }
1955 }
1956
1958 {
1960 {
1962 }
1963
1964 super.EEOnAfterLoad();
1965 }
1966
1968 {
1969 super.EEInit();
1970
1971
1973
1974
1975 #ifdef DEVELOPER
1977 #endif
1978 }
1979
1981 {
1982 super.EEItemAttached( item, slot_name );
1983
1987 }
1988
1990 {
1991 super.EEItemDetached( item, slot_name );
1992
1995 }
1996
1997 protected void OnSetSlotLock(
int slotId,
bool locked,
bool was_locked )
1998 {
2001
2004 }
2005
2006
2008 {
2009 return true;
2010 }
2011
2012
2013
2015 {
2017
2018
2019 if (construtionPart.
IsBase())
2020 {
2022
2023
2025 }
2026
2027
2029
2030
2032
2033
2035
2037
2039
2040
2042
2043
2045 }
2046
2048 {
2049
2051 }
2052
2053
2055 {
2058
2059
2061
2062
2064
2065
2067
2068
2070
2072
2073
2075
2076
2078
2079
2080 if (construtionPart.
IsBase())
2081 {
2082
2084 }
2085 }
2086
2088 {
2089
2091 }
2092
2093
2094 void OnPartDestroyedServer(Man player,
string part_name,
int action_id,
bool destroyed_by_connected_part =
false)
2095 {
2098
2099
2101
2102
2104
2105
2107
2108
2110
2112
2113
2115
2116
2118
2119
2120 if (construtionPart.
IsBase())
2121 {
2122
2124 }
2125 }
2126
2128 {
2129
2131 }
2132
2135 {
2136 bool process = false;
2137
2138
2142
2143 if (process)
2144 {
2145 if (!MemoryPointExists(part.
m_PartName +
"_min") || !MemoryPointExists(part.
m_PartName +
"_max"))
2146 {
2148 return;
2149 }
2150
2152 mins = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_min"));
2153 maxs = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_max"));
2154
2155
2157 minTmp[0] =
Math.
Min(mins[0],maxs[0]);
2158 maxTmp[0] =
Math.
Max(mins[0],maxs[0]);
2159 minTmp[1] =
Math.
Min(mins[1],maxs[1]);
2160 maxTmp[1] =
Math.
Max(mins[1],maxs[1]);
2161 minTmp[2] =
Math.
Min(mins[2],maxs[2]);
2162 maxTmp[2] =
Math.
Max(mins[2],maxs[2]);
2163 mins = minTmp;
2164 maxs = maxTmp;
2165
2166 maxs[1] = maxs[1] + 0.35;
2167
2169 }
2170 }
2171
2174 {
2177
2178
2180 foreach (
EntityAI entity : foundEntities)
2181 {
2184 }
2185 }
2186
2187
2189 {
2191
2195 }
2196
2198 {
2200
2202 {
2204 }
2205 else
2206 {
2208 }
2209
2211 }
2212
2214 {
2216
2218 foreach (
string slotName : attachmentSlots)
2219 {
2221 }
2222
2223
2226 else
2228
2230 }
2231
2233 {
2234 string slotNameMounted = slot_name + "_Mounted";
2235 EntityAI attachment = FindAttachmentBySlotName(slot_name);
2236
2237 if (attachment)
2238 {
2239 BarbedWire barbedWire = BarbedWire.Cast(attachment);
2240 if (barbedWire && barbedWire.IsMounted())
2242 else
2244
2245 if (is_locked)
2246 {
2247 SetAnimationPhase(slotNameMounted, 0);
2248 SetAnimationPhase(slot_name, 1);
2249 }
2250 else
2251 {
2252 SetAnimationPhase(slotNameMounted, 1);
2253 SetAnimationPhase(slot_name, 0);
2254 }
2255 }
2256 else
2257 {
2258 SetAnimationPhase(slotNameMounted, 1);
2259 SetAnimationPhase(slot_name, 1);
2260
2262 }
2263 }
2264
2265
2267 {
2270
2273
2276
2277 foreach (
string slotName : attachmentSlots)
2278 {
2280 }
2281
2282
2284 {
2287
2289 }
2290 else
2291 {
2294
2296 }
2297
2300 }
2301
2303 {
2304
2306 return;
2307
2308 string slot_name_mounted = slot_name + "_Mounted";
2309 EntityAI attachment = FindAttachmentBySlotName( slot_name );
2310
2311
2313 RemoveProxyPhysics( slot_name_mounted );
2314 RemoveProxyPhysics( slot_name );
2315
2316 if ( attachment )
2317 {
2319 if ( is_locked )
2320 {
2322 AddProxyPhysics( slot_name_mounted );
2323 }
2324 else
2325 {
2327 AddProxyPhysics( slot_name );
2328 }
2329 }
2330 }
2331
2333 {
2334 SetAffectPathgraph( true, false );
2336 }
2337
2339 {
2340 return true;
2341 }
2342
2344 {
2345 return true;
2346 }
2347
2349 {
2350 if ( attachment )
2351 {
2353 attachment.GetInventory().GetCurrentInventoryLocation( inventory_location );
2354
2355 return GetInventory().GetSlotLock( inventory_location.
GetSlot() );
2356 }
2357
2358 return false;
2359 }
2360
2362 {
2364 }
2365
2366
2368 {
2369 string config_path = "CfgVehicles" + " " + entity.GetType() + " " + "attachments";
2370 if (
GetGame().ConfigIsExisting( config_path ) )
2371 {
2373 }
2374 }
2375
2377 {
2378 return true;
2379 }
2380
2382 {
2383 return true;
2384 }
2385
2387 {
2388 return true;
2389 }
2390
2391
2393 {
2395 {
2397 }
2398
2400 }
2401
2403 {
2405 }
2406
2407
2408
2410 {
2411 return super.CanReceiveAttachment(attachment, slotId);
2412 }
2413
2415 {
2416 int attachment_count = GetInventory().AttachmentCount();
2417 if ( attachment_count > 0 )
2418 {
2419 if (
HasBase() && attachment_count == 1 )
2420 {
2421 return false;
2422 }
2423
2424 return true;
2425 }
2426
2427 return false;
2428 }
2429
2431 {
2432 return true;
2433 }
2434
2436 {
2437 return false;
2438 }
2439
2440
2442 {
2443 return false;
2444 }
2445
2447 {
2448 return false;
2449 }
2450
2451
2453 {
2454 return false;
2455 }
2456
2457
2458
2460 {
2461 return true;
2462 }
2463
2465 {
2466 return true;
2467 }
2468
2471 {
2472 return false;
2473 }
2474
2475
2477 {
2478 return true;
2479 }
2480
2481
2483 {
2484 return false;
2485 }
2486
2487
2489 {
2490 return true;
2491 }
2492
2493
2495 {
2496 if (
HasBase() || GetInventory().AttachmentCount() > 0 )
2497 {
2498 return false;
2499 }
2500
2501 return true;
2502 }
2503
2505 {
2508
2509 return item;
2510 }
2511
2512
2514 {
2516 {
2517
2519
2520
2523
2525 if ( MemoryPointExists( slot_name + "_min" ) )
2526 {
2527 min_max[0] = GetMemoryPointPos( slot_name + "_min" );
2528 }
2529 if ( MemoryPointExists( slot_name + "_max" ) )
2530 {
2531 min_max[1] = GetMemoryPointPos( slot_name + "_max" );
2532 }
2533
2534
2537
2538
2541 center = ModelToWorld( center );
2542
2543
2546
2547 areaDamage.SetExtents( extents[0], extents[1] );
2548 areaDamage.SetAreaPosition( center );
2549 areaDamage.SetAreaOrientation( orientation );
2552 areaDamage.SetHitZones( { "Torso","LeftHand","LeftLeg","LeftFoot","RightHand","RightLeg","RightFoot" } );
2553 areaDamage.SetAmmoName( "BarbedWireHit" );
2554 areaDamage.Spawn();
2555
2557 }
2558 }
2559
2561 {
2562 if ( angle_deg != 0 )
2563 {
2564
2565 orientation[0] = orientation[0] - angle_deg;
2566
2567
2569 if ( MemoryPointExists( "rotate_axis" ) )
2570 {
2571 rotate_axis = ModelToWorld( GetMemoryPointPos( "rotate_axis" ) );
2572 }
2573 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];
2574 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];
2575 center[0] = r_center_x;
2576 center[2] = r_center_z;
2577 }
2578 }
2579
2581 {
2583 {
2586 {
2587 if (areaDamage)
2588 {
2589 areaDamage.Destroy();
2590 }
2591
2593 }
2594 }
2595 }
2596
2598 {
2599 return true;
2600 }
2601
2602
2603
2604
2606 {
2608 }
2609
2611 {
2613 }
2614
2616 {
2618 }
2619
2621 {
2623
2624 switch ( material_type )
2625 {
2631 }
2632
2633 return "";
2634 }
2635
2637 {
2639
2640 switch ( material_type )
2641 {
2647 }
2648
2649 return "";
2650 }
2651
2652
2654 {
2656 {
2657
2659 {
2660 SetHealth(slot_name,"Health",item.GetHealth());
2661 }
2662 }
2663 }
2664
2666 {
2667 return 111;
2668 }
2669
2671 {
2672 super.SetActions();
2673
2677 }
2678
2679
2680
2681
2683 {
2684 }
2685
2688 {
2689 return null;
2690 }
2691
2693 {
2695 }
2696
2698 {
2701
2702 Man p;
2703
2704 #ifdef SERVER
2707 if (players.Count())
2708 p = players[0];
2709 #else
2711 #endif
2712
2714 {
2715 bool excluded = false;
2717 if (excludes)
2718 {
2719 foreach (string exclude : excludes)
2720 {
2722 {
2723 excluded = true;
2724 break;
2725 }
2726 }
2727 }
2728
2729 if (!excluded)
2730 {
2732 }
2733 }
2734
2736 }
2737}
2738
2740{
2741#ifdef BSB_DEBUG
2743#else
2744
2745#endif
2746}
2748{
2749#ifdef BSB_DEBUG_SPAM
2751#else
2752
2753#endif
2754}
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.