1488{
1490
1492
1494
1496
1502
1503
1504
1510
1516
1518
1522
1523
1525 {
1527
1528
1529 RegisterNetSyncVariableInt( "m_SyncParts01" );
1530 RegisterNetSyncVariableInt( "m_SyncParts02" );
1531 RegisterNetSyncVariableInt( "m_SyncParts03" );
1532 RegisterNetSyncVariableInt( "m_InteractedPartId" );
1533 RegisterNetSyncVariableInt( "m_PerformedActionId" );
1534 RegisterNetSyncVariableBool( "m_HasBase" );
1535
1536
1538
1539 if (ConfigIsExisting("hybridAttachments"))
1540 {
1543 }
1544 if (ConfigIsExisting("mountables"))
1545 {
1548 }
1549
1551 }
1552
1554 {
1555 super.EEDelete(parent);
1556
1558 {
1559 areaDamage.Destroy();
1560 }
1561
1562 }
1563
1565 {
1566 return "disableBaseDamage";
1567 }
1568
1570 {
1571 return true;
1572 }
1573
1575 {
1576 return EInventoryIconVisibility.HIDE_VICINITY;
1577 }
1578
1580 {
1581 super.InitItemSounds();
1582
1586
1591 }
1592
1594 {
1595 return "putDown_FenceKit_SoundSet";
1596 }
1597
1599 {
1600 return "Shelter_Site_Build_Loop_SoundSet";
1601 }
1602
1603
1605 {
1607 {
1608 SetSynchDirty();
1609 }
1610 }
1611
1613 {
1615 super.OnVariablesSynchronized();
1616
1618 }
1619
1621 {
1622
1624
1625
1627
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 else if ( part_id >= 32 && part_id <= 62 )
1676 {
1677 offset = ( part_id % 32 );
1678 mask = 1 << offset;
1679
1681 }
1682 else if ( part_id >= 63 && part_id <= 93 )
1683 {
1684 offset = ( part_id % 63 );
1685 mask = 1 << offset;
1686
1688 }
1689 }
1690
1692 {
1693
1694 int offset;
1695 int mask;
1696
1697 if ( part_id >= 1 && part_id <= 31 )
1698 {
1699 offset = part_id - 1;
1700 mask = 1 << offset;
1701
1703 {
1704 return true;
1705 }
1706 }
1707 else if ( part_id >= 32 && part_id <= 62 )
1708 {
1709 offset = ( part_id % 32 );
1710 mask = 1 << offset;
1711
1713 {
1714 return true;
1715 }
1716 }
1717 else if ( part_id >= 63 && part_id <= 93 )
1718 {
1719 offset = ( part_id % 63 );
1720 mask = 1 << offset;
1721
1723 {
1724 return true;
1725 }
1726 }
1727
1728 return false;
1729 }
1730
1732 {
1735 }
1736
1738 {
1739
1742 }
1743
1745 {
1747 {
1750
1751 switch( build_action_id )
1752 {
1756 }
1757 }
1758 }
1759
1760
1762 {
1764 bool is_base = part.
IsBase();
1767 if ( is_part_built_sync )
1768 {
1770 {
1774
1775 if (is_base)
1776 {
1779 }
1780 }
1781 }
1782 else
1783 {
1785 {
1789
1790 if (is_base)
1791 {
1794 }
1795 }
1796 }
1797
1798
1800 }
1801
1802
1804 {
1807
1808 for ( int i = 0; i < construction_parts.Count(); ++i )
1809 {
1810 string key = construction_parts.GetKey( i );
1813 }
1814
1815
1817 }
1818
1820 {
1823
1824 for ( int i = 0; i < construction_parts.Count(); ++i )
1825 {
1826 string key = construction_parts.GetKey( i );
1828
1829 if ( value.
GetId() ==
id )
1830 {
1831 return value;
1832 }
1833 }
1834
1835 return NULL;
1836 }
1837
1838
1839
1841 {
1843 }
1844
1846 {
1848 }
1849
1851 {
1852 return true;
1853 }
1854
1856 {
1857 return false;
1858 }
1859
1860
1862 {
1865 {
1867 }
1868
1869 return construction_kit;
1870 }
1871
1873 {
1876 {
1878 }
1879 }
1880
1882 {
1884 }
1885
1887 {
1888 return "";
1889 }
1890
1892 {
1895 }
1896
1897
1899 {
1902 }
1903
1904
1906 {
1907 super.OnStoreSave( ctx );
1908
1909
1913
1915 }
1916
1918 {
1919 if ( !super.OnStoreLoad( ctx, version ) )
1920 return false;
1921
1922
1923
1925 {
1927 return false;
1928 }
1930 {
1932 return false;
1933 }
1935 {
1937 return false;
1938 }
1939
1940
1942 {
1944 return false;
1945 }
1946
1947
1948 return true;
1949 }
1950
1952 {
1953 super.AfterStoreLoad();
1954
1956 {
1958 }
1959 }
1960
1962 {
1963
1965
1966
1969
1970
1972 }
1973
1975 {
1976 super.OnCreatePhysics();
1979 }
1980
1982 {
1984 return;
1985
1986 super.EEHealthLevelChanged(oldLevel,newLevel,zone);
1987
1989 return;
1990
1992 string part_name = zone;
1994
1996 {
1997 ConstructionPart construction_part = construction.GetConstructionPart( part_name );
1998
1999 if ( construction_part && construction.IsPartConstructed( part_name ) )
2000 {
2002 construction.DestroyConnectedParts(part_name);
2003 }
2004
2005
2006 if ( part_name.
Contains(
"barbed") )
2007 {
2008 BarbedWire barbed_wire = BarbedWire.Cast( FindAttachmentBySlotName( zone ) );
2009 if (barbed_wire)
2010 barbed_wire.SetMountedState( false );
2011 }
2012 }
2013 }
2014
2016 {
2018 {
2020 }
2021
2022 super.EEOnAfterLoad();
2023 }
2024
2026 {
2027 super.EEInit();
2028
2029
2031
2032
2033 #ifdef DEVELOPER
2035 #endif
2036 }
2037
2039 {
2040 super.EEItemAttached( item, slot_name );
2041
2045 }
2046
2048 {
2049 super.EEItemDetached( item, slot_name );
2050
2053 }
2054
2055 protected void OnSetSlotLock(
int slotId,
bool locked,
bool was_locked )
2056 {
2059
2062 }
2063
2064
2066 {
2067 return true;
2068 }
2069
2070
2071
2073 {
2075
2076
2077 if (construtionPart.
IsBase())
2078 {
2080
2081
2083 }
2084
2085
2087
2088
2090
2091
2093
2095
2097
2098
2100
2101
2103 }
2104
2106 {
2107
2109 }
2110
2111
2113 {
2116
2117
2119
2120
2122
2123
2125
2126
2128
2130
2131
2133
2134
2136
2137
2138 if (construtionPart.
IsBase())
2139 {
2140
2142 }
2143 }
2144
2146 {
2147
2149 }
2150
2151
2152 void OnPartDestroyedServer(Man player,
string part_name,
int action_id,
bool destroyed_by_connected_part =
false)
2153 {
2156
2157
2159
2160
2162
2163
2165
2166
2168
2170
2171
2173
2174
2176
2177
2178 if (construtionPart.
IsBase())
2179 {
2180
2182 }
2183 }
2184
2186 {
2187
2189 }
2190
2193 {
2194 bool process = false;
2195
2196
2200
2201 if (process)
2202 {
2203 if (!MemoryPointExists(part.
m_PartName +
"_min") || !MemoryPointExists(part.
m_PartName +
"_max"))
2204 {
2206 return;
2207 }
2208
2210 mins = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_min"));
2211 maxs = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_max"));
2212
2213
2215 minTmp[0] =
Math.
Min(mins[0],maxs[0]);
2216 maxTmp[0] =
Math.
Max(mins[0],maxs[0]);
2217 minTmp[1] =
Math.
Min(mins[1],maxs[1]);
2218 maxTmp[1] =
Math.
Max(mins[1],maxs[1]);
2219 minTmp[2] =
Math.
Min(mins[2],maxs[2]);
2220 maxTmp[2] =
Math.
Max(mins[2],maxs[2]);
2221 mins = minTmp;
2222 maxs = maxTmp;
2223
2224 maxs[1] = maxs[1] + 0.35;
2225
2227 }
2228 }
2229
2232 {
2235
2236
2238 foreach (
EntityAI entity : foundEntities)
2239 {
2242 }
2243 }
2244
2245
2247 {
2249
2253 }
2254
2256 {
2258
2260 {
2262 }
2263 else
2264 {
2266 }
2267
2269 }
2270
2272 {
2274
2276 foreach (
string slotName : attachmentSlots)
2277 {
2279 }
2280
2281
2284 else
2286
2288 }
2289
2291 {
2292 string slotNameMounted = slot_name + "_Mounted";
2293 EntityAI attachment = FindAttachmentBySlotName(slot_name);
2294
2295 if (attachment)
2296 {
2297 BarbedWire barbedWire = BarbedWire.Cast(attachment);
2298 if (barbedWire && barbedWire.IsMounted())
2300 else
2302
2303 if (is_locked)
2304 {
2305 SetAnimationPhase(slotNameMounted, 0);
2306 SetAnimationPhase(slot_name, 1);
2307 }
2308 else
2309 {
2310 SetAnimationPhase(slotNameMounted, 1);
2311 SetAnimationPhase(slot_name, 0);
2312 }
2313 }
2314 else
2315 {
2316 SetAnimationPhase(slotNameMounted, 1);
2317 SetAnimationPhase(slot_name, 1);
2318
2320 }
2321 }
2322
2323
2325 {
2328
2331
2334
2335 foreach (
string slotName : attachmentSlots)
2336 {
2338 }
2339
2340
2342 {
2345
2347 }
2348 else
2349 {
2352
2354 }
2355
2358 }
2359
2361 {
2362
2364 return;
2365
2366 string slot_name_mounted = slot_name + "_Mounted";
2367 EntityAI attachment = FindAttachmentBySlotName( slot_name );
2368
2369
2371 RemoveProxyPhysics( slot_name_mounted );
2372 RemoveProxyPhysics( slot_name );
2373
2374 if ( attachment )
2375 {
2377 if ( is_locked )
2378 {
2380 AddProxyPhysics( slot_name_mounted );
2381 }
2382 else
2383 {
2385 AddProxyPhysics( slot_name );
2386 }
2387 }
2388 }
2389
2391 {
2392 SetAffectPathgraph( true, false );
2394 }
2395
2397 {
2398 return true;
2399 }
2400
2402 {
2403 return true;
2404 }
2405
2407 {
2408 if ( attachment )
2409 {
2411 attachment.GetInventory().GetCurrentInventoryLocation( inventory_location );
2412
2413 return GetInventory().GetSlotLock( inventory_location.
GetSlot() );
2414 }
2415
2416 return false;
2417 }
2418
2420 {
2422 }
2423
2424
2426 {
2427 string config_path = "CfgVehicles" + " " + entity.GetType() + " " + "attachments";
2428 if (
GetGame().ConfigIsExisting( config_path ) )
2429 {
2431 }
2432 }
2433
2435 {
2436 return true;
2437 }
2438
2440 {
2441 return true;
2442 }
2443
2445 {
2446 return true;
2447 }
2448
2449
2451 {
2453 {
2455 }
2456
2458 }
2459
2461 {
2463 }
2464
2465
2466
2468 {
2469 return super.CanReceiveAttachment(attachment, slotId);
2470 }
2471
2473 {
2474 int attachment_count = GetInventory().AttachmentCount();
2475 if ( attachment_count > 0 )
2476 {
2477 if (
HasBase() && attachment_count == 1 )
2478 {
2479 return false;
2480 }
2481
2482 return true;
2483 }
2484
2485 return false;
2486 }
2487
2489 {
2490 return true;
2491 }
2492
2494 {
2495 return false;
2496 }
2497
2498
2500 {
2501 return false;
2502 }
2503
2505 {
2506 return false;
2507 }
2508
2509
2511 {
2512 return false;
2513 }
2514
2515
2516
2518 {
2519 return true;
2520 }
2521
2523 {
2524 return true;
2525 }
2526
2529 {
2530 return false;
2531 }
2532
2533
2535 {
2536 return true;
2537 }
2538
2539
2541 {
2542 return false;
2543 }
2544
2545
2547 {
2548 return true;
2549 }
2550
2551
2553 {
2554 if (
HasBase() || GetInventory().AttachmentCount() > 0 )
2555 {
2556 return false;
2557 }
2558
2559 return true;
2560 }
2561
2563 {
2566
2567 return item;
2568 }
2569
2570
2572 {
2574 {
2575
2577
2578
2581
2583 if ( MemoryPointExists( slot_name + "_min" ) )
2584 {
2585 min_max[0] = GetMemoryPointPos( slot_name + "_min" );
2586 }
2587 if ( MemoryPointExists( slot_name + "_max" ) )
2588 {
2589 min_max[1] = GetMemoryPointPos( slot_name + "_max" );
2590 }
2591
2592
2595
2596
2599 center = ModelToWorld( center );
2600
2601
2604
2605 areaDamage.SetExtents( extents[0], extents[1] );
2606 areaDamage.SetAreaPosition( center );
2607 areaDamage.SetAreaOrientation( orientation );
2610 areaDamage.SetHitZones( { "Torso","LeftHand","LeftLeg","LeftFoot","RightHand","RightLeg","RightFoot" } );
2611 areaDamage.SetAmmoName( "BarbedWireHit" );
2612 areaDamage.Spawn();
2613
2615 }
2616 }
2617
2619 {
2620 if ( angle_deg != 0 )
2621 {
2622
2623 orientation[0] = orientation[0] - angle_deg;
2624
2625
2627 if ( MemoryPointExists( "rotate_axis" ) )
2628 {
2629 rotate_axis = ModelToWorld( GetMemoryPointPos( "rotate_axis" ) );
2630 }
2631 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];
2632 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];
2633 center[0] = r_center_x;
2634 center[2] = r_center_z;
2635 }
2636 }
2637
2639 {
2641 {
2644 {
2645 if (areaDamage)
2646 {
2647 areaDamage.Destroy();
2648 }
2649
2651 }
2652 }
2653 }
2654
2656 {
2657 return true;
2658 }
2659
2660
2661
2662
2664 {
2666 }
2667
2669 {
2671 }
2672
2674 {
2676 }
2677
2679 {
2681
2682 switch ( material_type )
2683 {
2689 }
2690
2691 return "";
2692 }
2693
2695 {
2697
2698 switch ( material_type )
2699 {
2705 }
2706
2707 return "";
2708 }
2709
2710
2712 {
2714 {
2715
2717 {
2718 SetHealth(slot_name,"Health",item.GetHealth());
2719 }
2720 }
2721 }
2722
2724 {
2725 return 111;
2726 }
2727
2729 {
2730 super.SetActions();
2731
2735 }
2736
2737
2738
2739
2741 {
2742 }
2743
2746 {
2747 return null;
2748 }
2749
2751 {
2753 }
2754
2756 {
2759
2760 Man p;
2761
2762 #ifdef SERVER
2765 if (players.Count())
2766 p = players[0];
2767 #else
2769 #endif
2770
2772 {
2773 bool excluded = false;
2775 if (excludes)
2776 {
2777 foreach (string exclude : excludes)
2778 {
2780 {
2781 excluded = true;
2782 break;
2783 }
2784 }
2785 }
2786
2787 if (!excluded)
2788 {
2790 }
2791 }
2792
2794 }
2795}
2796
2798{
2799#ifdef BSB_DEBUG
2801#else
2802
2803#endif
2804}
2806{
2807#ifdef BSB_DEBUG_SPAM
2809#else
2810
2811#endif
2812}
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.