1807{
1809
1811
1813
1815
1821
1822
1823
1829
1835
1837
1841
1842
1844 {
1846
1847
1848 RegisterNetSyncVariableInt( "m_SyncParts01" );
1849 RegisterNetSyncVariableInt( "m_SyncParts02" );
1850 RegisterNetSyncVariableInt( "m_SyncParts03" );
1851 RegisterNetSyncVariableInt( "m_InteractedPartId" );
1852 RegisterNetSyncVariableInt( "m_PerformedActionId" );
1853 RegisterNetSyncVariableBool( "m_HasBase" );
1854
1855
1857
1858 if (ConfigIsExisting("hybridAttachments"))
1859 {
1862 }
1863 if (ConfigIsExisting("mountables"))
1864 {
1867 }
1868
1870 }
1871
1873 {
1874 super.EEDelete(parent);
1875
1877 {
1878 areaDamage.Destroy();
1879 }
1880
1881 }
1882
1884 {
1885 return "disableBaseDamage";
1886 }
1887
1889 {
1890 return true;
1891 }
1892
1894 {
1895 return EInventoryIconVisibility.HIDE_VICINITY;
1896 }
1897
1899 {
1900 super.InitItemSounds();
1901
1905
1910 }
1911
1913 {
1914 return "putDown_FenceKit_SoundSet";
1915 }
1916
1918 {
1919 return "Shelter_Site_Build_Loop_SoundSet";
1920 }
1921
1922
1924 {
1926 {
1927 SetSynchDirty();
1928 }
1929 }
1930
1932 {
1934 super.OnVariablesSynchronized();
1935
1937 }
1938
1940 {
1941
1943
1944
1946
1947
1949 }
1950
1951
1953 {
1954
1955 int offset;
1956 int mask;
1957
1958 if ( part_id >= 1 && part_id <= 31 )
1959 {
1960 offset = part_id - 1;
1961 mask = 1 << offset;
1962
1964 }
1965 else if ( part_id >= 32 && part_id <= 62 )
1966 {
1967 offset = ( part_id % 32 );
1968 mask = 1 << offset;
1969
1971 }
1972 else if ( part_id >= 63 && part_id <= 93 )
1973 {
1974 offset = ( part_id % 63 );
1975 mask = 1 << offset;
1976
1978 }
1979 }
1980
1982 {
1983
1984 int offset;
1985 int mask;
1986
1987 if ( part_id >= 1 && part_id <= 31 )
1988 {
1989 offset = part_id - 1;
1990 mask = 1 << offset;
1991
1993 }
1994 else if ( part_id >= 32 && part_id <= 62 )
1995 {
1996 offset = ( part_id % 32 );
1997 mask = 1 << offset;
1998
2000 }
2001 else if ( part_id >= 63 && part_id <= 93 )
2002 {
2003 offset = ( part_id % 63 );
2004 mask = 1 << offset;
2005
2007 }
2008 }
2009
2011 {
2012
2013 int offset;
2014 int mask;
2015
2016 if ( part_id >= 1 && part_id <= 31 )
2017 {
2018 offset = part_id - 1;
2019 mask = 1 << offset;
2020
2022 {
2023 return true;
2024 }
2025 }
2026 else if ( part_id >= 32 && part_id <= 62 )
2027 {
2028 offset = ( part_id % 32 );
2029 mask = 1 << offset;
2030
2032 {
2033 return true;
2034 }
2035 }
2036 else if ( part_id >= 63 && part_id <= 93 )
2037 {
2038 offset = ( part_id % 63 );
2039 mask = 1 << offset;
2040
2042 {
2043 return true;
2044 }
2045 }
2046
2047 return false;
2048 }
2049
2051 {
2054 }
2055
2057 {
2058
2061 }
2062
2064 {
2066 {
2069
2070 switch( build_action_id )
2071 {
2075 }
2076 }
2077 }
2078
2079
2081 {
2083 bool is_base = part.
IsBase();
2086 if ( is_part_built_sync )
2087 {
2089 {
2093
2094 if (is_base)
2095 {
2098 }
2099 }
2100 }
2101 else
2102 {
2104 {
2108
2109 if (is_base)
2110 {
2113 }
2114 }
2115 }
2116
2117
2119 }
2120
2121
2123 {
2126
2127 for ( int i = 0; i < construction_parts.Count(); ++i )
2128 {
2129 string key = construction_parts.GetKey( i );
2132 }
2133
2134
2136 }
2137
2139 {
2142
2143 for ( int i = 0; i < construction_parts.Count(); ++i )
2144 {
2145 string key = construction_parts.GetKey( i );
2147
2148 if ( value.
GetId() ==
id )
2149 {
2150 return value;
2151 }
2152 }
2153
2154 return NULL;
2155 }
2156
2157
2158
2160 {
2162 }
2163
2165 {
2167 }
2168
2170 {
2171 return true;
2172 }
2173
2175 {
2176 return false;
2177 }
2178
2179
2181 {
2184 {
2186 }
2187
2188 return construction_kit;
2189 }
2190
2192 {
2195 {
2197 }
2198 }
2199
2201 {
2203 }
2204
2206 {
2207 return "";
2208 }
2209
2211 {
2214 }
2215
2216
2218 {
2221 }
2222
2223
2225 {
2226 super.OnStoreSave( ctx );
2227
2228
2232
2234 }
2235
2237 {
2238 if ( !super.OnStoreLoad( ctx, version ) )
2239 return false;
2240
2241
2242
2244 {
2246 return false;
2247 }
2249 {
2251 return false;
2252 }
2254 {
2256 return false;
2257 }
2258
2259
2261 {
2263 return false;
2264 }
2265
2266
2267 return true;
2268 }
2269
2271 {
2272 super.AfterStoreLoad();
2273
2275 {
2277 }
2278 }
2279
2281 {
2282
2284
2285
2288
2289
2291 }
2292
2294 {
2295 super.OnCreatePhysics();
2298 }
2299
2301 {
2303 return;
2304
2305 super.EEHealthLevelChanged(oldLevel,newLevel,zone);
2306
2308 return;
2309
2311 string part_name = zone;
2313
2315 {
2316 ConstructionPart construction_part = construction.GetConstructionPart( part_name );
2317
2318 if ( construction_part && construction.IsPartConstructed( part_name ) )
2319 {
2321 construction.DestroyConnectedParts(part_name);
2322 }
2323
2324
2325 if ( part_name.
Contains(
"barbed") )
2326 {
2327 BarbedWire barbed_wire = BarbedWire.Cast( FindAttachmentBySlotName( zone ) );
2328 if (barbed_wire)
2329 barbed_wire.SetMountedState( false );
2330 }
2331 }
2332 }
2333
2335 {
2337 {
2339 }
2340
2341 super.EEOnAfterLoad();
2342 }
2343
2345 {
2346 super.EEInit();
2347
2348
2350
2351
2352 #ifdef DEVELOPER
2354 #endif
2355 }
2356
2358 {
2359 super.EEItemAttached( item, slot_name );
2360
2364 }
2365
2367 {
2368 super.EEItemDetached( item, slot_name );
2369
2372 }
2373
2374 protected void OnSetSlotLock(
int slotId,
bool locked,
bool was_locked )
2375 {
2378
2381 }
2382
2383
2385 {
2386 return true;
2387 }
2388
2389
2390
2392 {
2394
2395
2396 if (construtionPart.
IsBase())
2397 {
2399
2400
2402 }
2403
2404
2406
2407
2409
2410
2412
2414
2416
2417
2419
2420
2422 }
2423
2425 {
2426
2428 }
2429
2430
2432 {
2435
2436
2438
2439
2441
2442
2444
2445
2447
2449
2450
2452
2453
2455
2456
2457 if (construtionPart.
IsBase())
2458 {
2459
2461 }
2462 }
2463
2465 {
2466
2468 }
2469
2470
2471 void OnPartDestroyedServer(Man player,
string part_name,
int action_id,
bool destroyed_by_connected_part =
false)
2472 {
2475
2476
2478
2479
2481
2482
2484
2485
2487
2489
2490
2492
2493
2495
2496
2497 if (construtionPart.
IsBase())
2498 {
2499
2501 }
2502 }
2503
2505 {
2506
2508 }
2509
2512 {
2513 bool process = false;
2514
2515
2519
2520 if (process)
2521 {
2522 if (!MemoryPointExists(part.
m_PartName +
"_min") || !MemoryPointExists(part.
m_PartName +
"_max"))
2523 {
2525 return;
2526 }
2527
2529 mins = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_min"));
2530 maxs = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_max"));
2531
2532
2534 minTmp[0] =
Math.
Min(mins[0],maxs[0]);
2535 maxTmp[0] =
Math.
Max(mins[0],maxs[0]);
2536 minTmp[1] =
Math.
Min(mins[1],maxs[1]);
2537 maxTmp[1] =
Math.
Max(mins[1],maxs[1]);
2538 minTmp[2] =
Math.
Min(mins[2],maxs[2]);
2539 maxTmp[2] =
Math.
Max(mins[2],maxs[2]);
2540 mins = minTmp;
2541 maxs = maxTmp;
2542
2543 maxs[1] = maxs[1] + 0.35;
2544
2546 }
2547 }
2548
2551 {
2554
2555
2557 foreach (
EntityAI entity : foundEntities)
2558 {
2561 }
2562 }
2563
2564
2566 {
2568
2572 }
2573
2575 {
2577
2579 {
2581 }
2582 else
2583 {
2585 }
2586
2588 }
2589
2591 {
2593
2595 foreach (
string slotName : attachmentSlots)
2596 {
2598 }
2599
2600
2603 else
2605
2607 }
2608
2610 {
2611 string slotNameMounted = slot_name + "_Mounted";
2612 EntityAI attachment = FindAttachmentBySlotName(slot_name);
2613
2614 if (attachment)
2615 {
2616 BarbedWire barbedWire = BarbedWire.Cast(attachment);
2617 if (barbedWire && barbedWire.IsMounted())
2619 else
2621
2622 if (is_locked)
2623 {
2624 SetAnimationPhase(slotNameMounted, 0);
2625 SetAnimationPhase(slot_name, 1);
2626 }
2627 else
2628 {
2629 SetAnimationPhase(slotNameMounted, 1);
2630 SetAnimationPhase(slot_name, 0);
2631 }
2632 }
2633 else
2634 {
2635 SetAnimationPhase(slotNameMounted, 1);
2636 SetAnimationPhase(slot_name, 1);
2637
2639 }
2640 }
2641
2642
2644 {
2647
2650
2653
2654 foreach (
string slotName : attachmentSlots)
2655 {
2657 }
2658
2659
2661 {
2664
2666 }
2667 else
2668 {
2671
2673 }
2674
2677 }
2678
2680 {
2681
2683 return;
2684
2685 string slot_name_mounted = slot_name + "_Mounted";
2686 EntityAI attachment = FindAttachmentBySlotName( slot_name );
2687
2688
2690 RemoveProxyPhysics( slot_name_mounted );
2691 RemoveProxyPhysics( slot_name );
2692
2693 if ( attachment )
2694 {
2696 if ( is_locked )
2697 {
2699 AddProxyPhysics( slot_name_mounted );
2700 }
2701 else
2702 {
2704 AddProxyPhysics( slot_name );
2705 }
2706 }
2707 }
2708
2710 {
2711 SetAffectPathgraph( true, false );
2713 }
2714
2716 {
2717 return true;
2718 }
2719
2721 {
2722 return true;
2723 }
2724
2726 {
2727 if ( attachment )
2728 {
2730 attachment.GetInventory().GetCurrentInventoryLocation( inventory_location );
2731
2732 return GetInventory().GetSlotLock( inventory_location.
GetSlot() );
2733 }
2734
2735 return false;
2736 }
2737
2739 {
2741 }
2742
2743
2745 {
2746 string config_path = "CfgVehicles" + " " + entity.GetType() + " " + "attachments";
2747 if (
GetGame().ConfigIsExisting( config_path ) )
2748 {
2750 }
2751 }
2752
2754 {
2755 return true;
2756 }
2757
2759 {
2760 return true;
2761 }
2762
2764 {
2765 return true;
2766 }
2767
2768
2770 {
2772 {
2774 }
2775
2777 }
2778
2780 {
2782 }
2783
2784
2785
2787 {
2788 return super.CanReceiveAttachment(attachment, slotId);
2789 }
2790
2792 {
2793 int attachment_count = GetInventory().AttachmentCount();
2794 if ( attachment_count > 0 )
2795 {
2796 if (
HasBase() && attachment_count == 1 )
2797 {
2798 return false;
2799 }
2800
2801 return true;
2802 }
2803
2804 return false;
2805 }
2806
2808 {
2809 return true;
2810 }
2811
2813 {
2814 return false;
2815 }
2816
2817
2819 {
2820 return false;
2821 }
2822
2824 {
2825 return false;
2826 }
2827
2828
2830 {
2831 return false;
2832 }
2833
2834
2835
2837 {
2838 return true;
2839 }
2840
2842 {
2843 return true;
2844 }
2845
2848 {
2849 return false;
2850 }
2851
2852
2854 {
2855 return true;
2856 }
2857
2858
2860 {
2861 return false;
2862 }
2863
2864
2866 {
2867 return true;
2868 }
2869
2870
2872 {
2873 if (
HasBase() || GetInventory().AttachmentCount() > 0 )
2874 {
2875 return false;
2876 }
2877
2878 return true;
2879 }
2880
2882 {
2885
2886 return item;
2887 }
2888
2889
2891 {
2893 {
2894
2896
2897
2900
2902 if ( MemoryPointExists( slot_name + "_min" ) )
2903 {
2904 min_max[0] = GetMemoryPointPos( slot_name + "_min" );
2905 }
2906 if ( MemoryPointExists( slot_name + "_max" ) )
2907 {
2908 min_max[1] = GetMemoryPointPos( slot_name + "_max" );
2909 }
2910
2911
2914
2915
2918 center = ModelToWorld( center );
2919
2920
2923
2924 areaDamage.SetExtents( extents[0], extents[1] );
2925 areaDamage.SetAreaPosition( center );
2926 areaDamage.SetAreaOrientation( orientation );
2929 areaDamage.SetHitZones( { "Torso","LeftHand","LeftLeg","LeftFoot","RightHand","RightLeg","RightFoot" } );
2930 areaDamage.SetAmmoName( "BarbedWireHit" );
2931 areaDamage.Spawn();
2932
2934 }
2935 }
2936
2938 {
2939 if ( angle_deg != 0 )
2940 {
2941
2942 orientation[0] = orientation[0] - angle_deg;
2943
2944
2946 if ( MemoryPointExists( "rotate_axis" ) )
2947 {
2948 rotate_axis = ModelToWorld( GetMemoryPointPos( "rotate_axis" ) );
2949 }
2950 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];
2951 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];
2952 center[0] = r_center_x;
2953 center[2] = r_center_z;
2954 }
2955 }
2956
2958 {
2960 {
2963 {
2964 if (areaDamage)
2965 {
2966 areaDamage.Destroy();
2967 }
2968
2970 }
2971 }
2972 }
2973
2975 {
2976 return true;
2977 }
2978
2979
2980
2981
2983 {
2985 }
2986
2988 {
2990 }
2991
2993 {
2995 }
2996
2998 {
3000
3001 switch ( material_type )
3002 {
3008 }
3009
3010 return "";
3011 }
3012
3014 {
3016
3017 switch ( material_type )
3018 {
3024 }
3025
3026 return "";
3027 }
3028
3029
3031 {
3033 {
3034
3036 {
3037 SetHealth(slot_name,"Health",item.GetHealth());
3038 }
3039 }
3040 }
3041
3043 {
3044 return 111;
3045 }
3046
3048 {
3049 super.SetActions();
3050
3054 }
3055
3056
3057
3058
3060 {
3061 }
3062
3065 {
3066 return null;
3067 }
3068
3070 {
3072 }
3073
3075 {
3078
3079 Man p;
3080
3081 #ifdef SERVER
3084 if (players.Count())
3085 p = players[0];
3086 #else
3088 #endif
3089
3091 {
3092 bool excluded = false;
3094 if (excludes)
3095 {
3096 foreach (string exclude : excludes)
3097 {
3099 {
3100 excluded = true;
3101 break;
3102 }
3103 }
3104 }
3105
3106 if (!excluded)
3107 {
3109 }
3110 }
3111
3113 }
3114}
3115
3117{
3118#ifdef BSB_DEBUG
3120#else
3121
3122#endif
3123}
3125{
3126#ifdef BSB_DEBUG_SPAM
3128#else
3129
3130#endif
3131}
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.