1459{
1461
1463
1465
1467
1473
1474
1475
1481
1487
1489
1493
1494
1496 {
1498
1499
1500 RegisterNetSyncVariableInt( "m_SyncParts01" );
1501 RegisterNetSyncVariableInt( "m_SyncParts02" );
1502 RegisterNetSyncVariableInt( "m_SyncParts03" );
1503 RegisterNetSyncVariableInt( "m_InteractedPartId" );
1504 RegisterNetSyncVariableInt( "m_PerformedActionId" );
1505 RegisterNetSyncVariableBool( "m_HasBase" );
1506
1507
1509
1510 if (ConfigIsExisting("hybridAttachments"))
1511 {
1514 }
1515 if (ConfigIsExisting("mountables"))
1516 {
1519 }
1520
1522 }
1523
1525 {
1526 super.EEDelete(parent);
1527
1529 {
1530 areaDamage.Destroy();
1531 }
1532
1533 }
1534
1536 {
1537 return "disableBaseDamage";
1538 }
1539
1541 {
1542 return true;
1543 }
1544
1546 {
1547 return EInventoryIconVisibility.HIDE_VICINITY;
1548 }
1549
1551 {
1552 super.InitItemSounds();
1553
1557
1562 }
1563
1565 {
1566 return "putDown_FenceKit_SoundSet";
1567 }
1568
1570 {
1571 return "Shelter_Site_Build_Loop_SoundSet";
1572 }
1573
1574
1576 {
1578 {
1579 SetSynchDirty();
1580 }
1581 }
1582
1584 {
1586 super.OnVariablesSynchronized();
1587
1589 }
1590
1592 {
1593
1595
1596
1598
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 else if ( part_id >= 32 && part_id <= 62 )
1647 {
1648 offset = ( part_id % 32 );
1649 mask = 1 << offset;
1650
1652 }
1653 else if ( part_id >= 63 && part_id <= 93 )
1654 {
1655 offset = ( part_id % 63 );
1656 mask = 1 << offset;
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 return true;
1676 }
1677 }
1678 else if ( part_id >= 32 && part_id <= 62 )
1679 {
1680 offset = ( part_id % 32 );
1681 mask = 1 << offset;
1682
1684 {
1685 return true;
1686 }
1687 }
1688 else if ( part_id >= 63 && part_id <= 93 )
1689 {
1690 offset = ( part_id % 63 );
1691 mask = 1 << offset;
1692
1694 {
1695 return true;
1696 }
1697 }
1698
1699 return false;
1700 }
1701
1703 {
1706 }
1707
1709 {
1710
1713 }
1714
1716 {
1718 {
1721
1722 switch( build_action_id )
1723 {
1727 }
1728 }
1729 }
1730
1731
1733 {
1735 bool is_base = part.
IsBase();
1738 if ( is_part_built_sync )
1739 {
1741 {
1745
1746 if (is_base)
1747 {
1750 }
1751 }
1752 }
1753 else
1754 {
1756 {
1760
1761 if (is_base)
1762 {
1765 }
1766 }
1767 }
1768
1769
1771 }
1772
1773
1775 {
1778
1779 for ( int i = 0; i < construction_parts.Count(); ++i )
1780 {
1781 string key = construction_parts.GetKey( i );
1784 }
1785
1786
1788 }
1789
1791 {
1794
1795 for ( int i = 0; i < construction_parts.Count(); ++i )
1796 {
1797 string key = construction_parts.GetKey( i );
1799
1800 if ( value.
GetId() ==
id )
1801 {
1802 return value;
1803 }
1804 }
1805
1806 return NULL;
1807 }
1808
1809
1810
1812 {
1814 }
1815
1817 {
1819 }
1820
1822 {
1823 return true;
1824 }
1825
1827 {
1828 return false;
1829 }
1830
1831
1833 {
1836 {
1838 }
1839
1840 return construction_kit;
1841 }
1842
1844 {
1847 {
1849 }
1850 }
1851
1853 {
1855 }
1856
1858 {
1859 return "";
1860 }
1861
1863 {
1866 }
1867
1868
1870 {
1873 }
1874
1875
1877 {
1878 super.OnStoreSave( ctx );
1879
1880
1884
1886 }
1887
1889 {
1890 if ( !super.OnStoreLoad( ctx, version ) )
1891 return false;
1892
1893
1894
1896 {
1898 return false;
1899 }
1901 {
1903 return false;
1904 }
1906 {
1908 return false;
1909 }
1910
1911
1913 {
1915 return false;
1916 }
1917
1918
1919 return true;
1920 }
1921
1923 {
1924 super.AfterStoreLoad();
1925
1927 {
1929 }
1930 }
1931
1933 {
1934
1936
1937
1940
1941
1943 }
1944
1946 {
1947 super.OnCreatePhysics();
1950 }
1951
1953 {
1955 return;
1956
1957 super.EEHealthLevelChanged(oldLevel,newLevel,zone);
1958
1960 return;
1961
1963 string part_name = zone;
1965
1967 {
1968 ConstructionPart construction_part = construction.GetConstructionPart( part_name );
1969
1970 if ( construction_part && construction.IsPartConstructed( part_name ) )
1971 {
1973 construction.DestroyConnectedParts(part_name);
1974 }
1975
1976
1977 if ( part_name.
Contains(
"barbed") )
1978 {
1979 BarbedWire barbed_wire = BarbedWire.Cast( FindAttachmentBySlotName( zone ) );
1980 if (barbed_wire)
1981 barbed_wire.SetMountedState( false );
1982 }
1983 }
1984 }
1985
1987 {
1989 {
1991 }
1992
1993 super.EEOnAfterLoad();
1994 }
1995
1997 {
1998 super.EEInit();
1999
2000
2002
2003
2004 #ifdef DEVELOPER
2006 #endif
2007 }
2008
2010 {
2011 super.EEItemAttached( item, slot_name );
2012
2016 }
2017
2019 {
2020 super.EEItemDetached( item, slot_name );
2021
2024 }
2025
2026 protected void OnSetSlotLock(
int slotId,
bool locked,
bool was_locked )
2027 {
2030
2033 }
2034
2035
2037 {
2038 return true;
2039 }
2040
2041
2042
2044 {
2046
2047
2048 if (construtionPart.
IsBase())
2049 {
2051
2052
2054 }
2055
2056
2058
2059
2061
2062
2064
2066
2068
2069
2071
2072
2074 }
2075
2077 {
2078
2080 }
2081
2082
2084 {
2087
2088
2090
2091
2093
2094
2096
2097
2099
2101
2102
2104
2105
2107
2108
2109 if (construtionPart.
IsBase())
2110 {
2111
2113 }
2114 }
2115
2117 {
2118
2120 }
2121
2122
2123 void OnPartDestroyedServer(Man player,
string part_name,
int action_id,
bool destroyed_by_connected_part =
false)
2124 {
2127
2128
2130
2131
2133
2134
2136
2137
2139
2141
2142
2144
2145
2147
2148
2149 if (construtionPart.
IsBase())
2150 {
2151
2153 }
2154 }
2155
2157 {
2158
2160 }
2161
2164 {
2165 bool process = false;
2166
2167
2171
2172 if (process)
2173 {
2174 if (!MemoryPointExists(part.
m_PartName +
"_min") || !MemoryPointExists(part.
m_PartName +
"_max"))
2175 {
2177 return;
2178 }
2179
2181 mins = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_min"));
2182 maxs = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_max"));
2183
2184
2186 minTmp[0] =
Math.
Min(mins[0],maxs[0]);
2187 maxTmp[0] =
Math.
Max(mins[0],maxs[0]);
2188 minTmp[1] =
Math.
Min(mins[1],maxs[1]);
2189 maxTmp[1] =
Math.
Max(mins[1],maxs[1]);
2190 minTmp[2] =
Math.
Min(mins[2],maxs[2]);
2191 maxTmp[2] =
Math.
Max(mins[2],maxs[2]);
2192 mins = minTmp;
2193 maxs = maxTmp;
2194
2195 maxs[1] = maxs[1] + 0.35;
2196
2198 }
2199 }
2200
2203 {
2206
2207
2209 foreach (
EntityAI entity : foundEntities)
2210 {
2213 }
2214 }
2215
2216
2218 {
2220
2224 }
2225
2227 {
2229
2231 {
2233 }
2234 else
2235 {
2237 }
2238
2240 }
2241
2243 {
2245
2247 foreach (
string slotName : attachmentSlots)
2248 {
2250 }
2251
2252
2255 else
2257
2259 }
2260
2262 {
2263 string slotNameMounted = slot_name + "_Mounted";
2264 EntityAI attachment = FindAttachmentBySlotName(slot_name);
2265
2266 if (attachment)
2267 {
2268 BarbedWire barbedWire = BarbedWire.Cast(attachment);
2269 if (barbedWire && barbedWire.IsMounted())
2271 else
2273
2274 if (is_locked)
2275 {
2276 SetAnimationPhase(slotNameMounted, 0);
2277 SetAnimationPhase(slot_name, 1);
2278 }
2279 else
2280 {
2281 SetAnimationPhase(slotNameMounted, 1);
2282 SetAnimationPhase(slot_name, 0);
2283 }
2284 }
2285 else
2286 {
2287 SetAnimationPhase(slotNameMounted, 1);
2288 SetAnimationPhase(slot_name, 1);
2289
2291 }
2292 }
2293
2294
2296 {
2299
2302
2305
2306 foreach (
string slotName : attachmentSlots)
2307 {
2309 }
2310
2311
2313 {
2316
2318 }
2319 else
2320 {
2323
2325 }
2326
2329 }
2330
2332 {
2333
2335 return;
2336
2337 string slot_name_mounted = slot_name + "_Mounted";
2338 EntityAI attachment = FindAttachmentBySlotName( slot_name );
2339
2340
2342 RemoveProxyPhysics( slot_name_mounted );
2343 RemoveProxyPhysics( slot_name );
2344
2345 if ( attachment )
2346 {
2348 if ( is_locked )
2349 {
2351 AddProxyPhysics( slot_name_mounted );
2352 }
2353 else
2354 {
2356 AddProxyPhysics( slot_name );
2357 }
2358 }
2359 }
2360
2362 {
2363 SetAffectPathgraph( true, false );
2365 }
2366
2368 {
2369 return true;
2370 }
2371
2373 {
2374 return true;
2375 }
2376
2378 {
2379 if ( attachment )
2380 {
2382 attachment.GetInventory().GetCurrentInventoryLocation( inventory_location );
2383
2384 return GetInventory().GetSlotLock( inventory_location.
GetSlot() );
2385 }
2386
2387 return false;
2388 }
2389
2391 {
2393 }
2394
2395
2397 {
2398 string config_path = "CfgVehicles" + " " + entity.GetType() + " " + "attachments";
2399 if (
GetGame().ConfigIsExisting( config_path ) )
2400 {
2402 }
2403 }
2404
2406 {
2407 return true;
2408 }
2409
2411 {
2412 return true;
2413 }
2414
2416 {
2417 return true;
2418 }
2419
2420
2422 {
2424 {
2426 }
2427
2429 }
2430
2432 {
2434 }
2435
2436
2437
2439 {
2440 return super.CanReceiveAttachment(attachment, slotId);
2441 }
2442
2444 {
2445 int attachment_count = GetInventory().AttachmentCount();
2446 if ( attachment_count > 0 )
2447 {
2448 if (
HasBase() && attachment_count == 1 )
2449 {
2450 return false;
2451 }
2452
2453 return true;
2454 }
2455
2456 return false;
2457 }
2458
2460 {
2461 return true;
2462 }
2463
2465 {
2466 return false;
2467 }
2468
2469
2471 {
2472 return false;
2473 }
2474
2476 {
2477 return false;
2478 }
2479
2480
2482 {
2483 return false;
2484 }
2485
2486
2487
2489 {
2490 return true;
2491 }
2492
2494 {
2495 return true;
2496 }
2497
2500 {
2501 return false;
2502 }
2503
2504
2506 {
2507 return true;
2508 }
2509
2510
2512 {
2513 return false;
2514 }
2515
2516
2518 {
2519 return true;
2520 }
2521
2522
2524 {
2525 if (
HasBase() || GetInventory().AttachmentCount() > 0 )
2526 {
2527 return false;
2528 }
2529
2530 return true;
2531 }
2532
2534 {
2537
2538 return item;
2539 }
2540
2541
2543 {
2545 {
2546
2548
2549
2552
2554 if ( MemoryPointExists( slot_name + "_min" ) )
2555 {
2556 min_max[0] = GetMemoryPointPos( slot_name + "_min" );
2557 }
2558 if ( MemoryPointExists( slot_name + "_max" ) )
2559 {
2560 min_max[1] = GetMemoryPointPos( slot_name + "_max" );
2561 }
2562
2563
2566
2567
2570 center = ModelToWorld( center );
2571
2572
2575
2576 areaDamage.SetExtents( extents[0], extents[1] );
2577 areaDamage.SetAreaPosition( center );
2578 areaDamage.SetAreaOrientation( orientation );
2581 areaDamage.SetHitZones( { "Torso","LeftHand","LeftLeg","LeftFoot","RightHand","RightLeg","RightFoot" } );
2582 areaDamage.SetAmmoName( "BarbedWireHit" );
2583 areaDamage.Spawn();
2584
2586 }
2587 }
2588
2590 {
2591 if ( angle_deg != 0 )
2592 {
2593
2594 orientation[0] = orientation[0] - angle_deg;
2595
2596
2598 if ( MemoryPointExists( "rotate_axis" ) )
2599 {
2600 rotate_axis = ModelToWorld( GetMemoryPointPos( "rotate_axis" ) );
2601 }
2602 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];
2603 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];
2604 center[0] = r_center_x;
2605 center[2] = r_center_z;
2606 }
2607 }
2608
2610 {
2612 {
2615 {
2616 if (areaDamage)
2617 {
2618 areaDamage.Destroy();
2619 }
2620
2622 }
2623 }
2624 }
2625
2627 {
2628 return true;
2629 }
2630
2631
2632
2633
2635 {
2637 }
2638
2640 {
2642 }
2643
2645 {
2647 }
2648
2650 {
2652
2653 switch ( material_type )
2654 {
2660 }
2661
2662 return "";
2663 }
2664
2666 {
2668
2669 switch ( material_type )
2670 {
2676 }
2677
2678 return "";
2679 }
2680
2681
2683 {
2685 {
2686
2688 {
2689 SetHealth(slot_name,"Health",item.GetHealth());
2690 }
2691 }
2692 }
2693
2695 {
2696 return 111;
2697 }
2698
2700 {
2701 super.SetActions();
2702
2706 }
2707
2708
2709
2710
2712 {
2713 }
2714
2717 {
2718 return null;
2719 }
2720
2722 {
2724 }
2725
2727 {
2730
2731 Man p;
2732
2733 #ifdef SERVER
2736 if (players.Count())
2737 p = players[0];
2738 #else
2740 #endif
2741
2743 {
2744 bool excluded = false;
2746 if (excludes)
2747 {
2748 foreach (string exclude : excludes)
2749 {
2751 {
2752 excluded = true;
2753 break;
2754 }
2755 }
2756 }
2757
2758 if (!excluded)
2759 {
2761 }
2762 }
2763
2765 }
2766}
2767
2769{
2770#ifdef BSB_DEBUG
2772#else
2773
2774#endif
2775}
2777{
2778#ifdef BSB_DEBUG_SPAM
2780#else
2781
2782#endif
2783}
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.