1864{
1866
1868
1870
1872
1878
1879
1880
1886
1892
1894
1898
1899
1901 {
1903
1904
1905 RegisterNetSyncVariableInt( "m_SyncParts01" );
1906 RegisterNetSyncVariableInt( "m_SyncParts02" );
1907 RegisterNetSyncVariableInt( "m_SyncParts03" );
1908 RegisterNetSyncVariableInt( "m_InteractedPartId" );
1909 RegisterNetSyncVariableInt( "m_PerformedActionId" );
1910 RegisterNetSyncVariableBool( "m_HasBase" );
1911
1912
1914
1915 if (ConfigIsExisting("hybridAttachments"))
1916 {
1919 }
1920 if (ConfigIsExisting("mountables"))
1921 {
1924 }
1925
1927 }
1928
1930 {
1931 super.EEDelete(parent);
1932
1934 {
1935 areaDamage.Destroy();
1936 }
1937
1938 }
1939
1941 {
1942 return "disableBaseDamage";
1943 }
1944
1946 {
1947 return true;
1948 }
1949
1951 {
1952 return EInventoryIconVisibility.HIDE_VICINITY;
1953 }
1954
1956 {
1957 super.InitItemSounds();
1958
1962
1967 }
1968
1970 {
1971 return "putDown_FenceKit_SoundSet";
1972 }
1973
1975 {
1976 return "Shelter_Site_Build_Loop_SoundSet";
1977 }
1978
1979
1981 {
1983 {
1984 SetSynchDirty();
1985 }
1986 }
1987
1989 {
1991 super.OnVariablesSynchronized();
1992
1994 }
1995
1997 {
1998
2000
2001
2003
2004
2006 }
2007
2008
2010 {
2011
2012 int offset;
2013 int mask;
2014
2015 if ( part_id >= 1 && part_id <= 31 )
2016 {
2017 offset = part_id - 1;
2018 mask = 1 << offset;
2019
2021 }
2022 else if ( part_id >= 32 && part_id <= 62 )
2023 {
2024 offset = ( part_id % 32 );
2025 mask = 1 << offset;
2026
2028 }
2029 else if ( part_id >= 63 && part_id <= 93 )
2030 {
2031 offset = ( part_id % 63 );
2032 mask = 1 << offset;
2033
2035 }
2036 }
2037
2039 {
2040
2041 int offset;
2042 int mask;
2043
2044 if ( part_id >= 1 && part_id <= 31 )
2045 {
2046 offset = part_id - 1;
2047 mask = 1 << offset;
2048
2050 }
2051 else if ( part_id >= 32 && part_id <= 62 )
2052 {
2053 offset = ( part_id % 32 );
2054 mask = 1 << offset;
2055
2057 }
2058 else if ( part_id >= 63 && part_id <= 93 )
2059 {
2060 offset = ( part_id % 63 );
2061 mask = 1 << offset;
2062
2064 }
2065 }
2066
2068 {
2069
2070 int offset;
2071 int mask;
2072
2073 if ( part_id >= 1 && part_id <= 31 )
2074 {
2075 offset = part_id - 1;
2076 mask = 1 << offset;
2077
2079 {
2080 return true;
2081 }
2082 }
2083 else if ( part_id >= 32 && part_id <= 62 )
2084 {
2085 offset = ( part_id % 32 );
2086 mask = 1 << offset;
2087
2089 {
2090 return true;
2091 }
2092 }
2093 else if ( part_id >= 63 && part_id <= 93 )
2094 {
2095 offset = ( part_id % 63 );
2096 mask = 1 << offset;
2097
2099 {
2100 return true;
2101 }
2102 }
2103
2104 return false;
2105 }
2106
2108 {
2111 }
2112
2114 {
2115
2118 }
2119
2121 {
2123 {
2126
2127 switch( build_action_id )
2128 {
2132 }
2133 }
2134 }
2135
2136
2138 {
2140 bool is_base = part.
IsBase();
2143 if ( is_part_built_sync )
2144 {
2146 {
2150
2151 if (is_base)
2152 {
2155 }
2156 }
2157 }
2158 else
2159 {
2161 {
2165
2166 if (is_base)
2167 {
2170 }
2171 }
2172 }
2173
2174
2176 }
2177
2178
2180 {
2183
2184 for ( int i = 0; i < construction_parts.Count(); ++i )
2185 {
2186 string key = construction_parts.GetKey( i );
2189 }
2190
2191
2193 }
2194
2196 {
2199
2200 for ( int i = 0; i < construction_parts.Count(); ++i )
2201 {
2202 string key = construction_parts.GetKey( i );
2204
2205 if ( value.
GetId() ==
id )
2206 {
2207 return value;
2208 }
2209 }
2210
2211 return NULL;
2212 }
2213
2214
2215
2217 {
2219 }
2220
2222 {
2224 }
2225
2227 {
2228 return true;
2229 }
2230
2232 {
2233 return false;
2234 }
2235
2236
2238 {
2241 {
2243 }
2244
2245 return construction_kit;
2246 }
2247
2249 {
2252 {
2254 }
2255 }
2256
2258 {
2260 }
2261
2263 {
2264 return "";
2265 }
2266
2268 {
2271 }
2272
2273
2275 {
2278 }
2279
2280
2282 {
2283 super.OnStoreSave( ctx );
2284
2285
2289
2291 }
2292
2294 {
2295 if ( !super.OnStoreLoad( ctx, version ) )
2296 return false;
2297
2298
2299
2301 {
2303 return false;
2304 }
2306 {
2308 return false;
2309 }
2311 {
2313 return false;
2314 }
2315
2316
2318 {
2320 return false;
2321 }
2322
2323
2324 return true;
2325 }
2326
2328 {
2329 super.AfterStoreLoad();
2330
2332 {
2334 }
2335 }
2336
2338 {
2339
2341
2342
2345
2346
2348 }
2349
2351 {
2352 super.OnCreatePhysics();
2355 }
2356
2358 {
2360 return;
2361
2362 super.EEHealthLevelChanged(oldLevel,newLevel,zone);
2363
2365 return;
2366
2368 string part_name = zone;
2370
2372 {
2373 ConstructionPart construction_part = construction.GetConstructionPart( part_name );
2374
2375 if ( construction_part && construction.IsPartConstructed( part_name ) )
2376 {
2378 construction.DestroyConnectedParts(part_name);
2379 }
2380
2381
2382 if ( part_name.
Contains(
"barbed") )
2383 {
2384 BarbedWire barbed_wire = BarbedWire.Cast( FindAttachmentBySlotName( zone ) );
2385 if (barbed_wire)
2386 barbed_wire.SetMountedState( false );
2387 }
2388 }
2389 }
2390
2392 {
2394 {
2396 }
2397
2398 super.EEOnAfterLoad();
2399 }
2400
2402 {
2403 super.EEInit();
2404
2405
2407
2408
2409 #ifdef DEVELOPER
2411 #endif
2412 }
2413
2415 {
2416 super.EEItemAttached( item, slot_name );
2417
2421 }
2422
2424 {
2425 super.EEItemDetached( item, slot_name );
2426
2429 }
2430
2431 protected void OnSetSlotLock(
int slotId,
bool locked,
bool was_locked )
2432 {
2435
2438 }
2439
2440
2442 {
2443 return true;
2444 }
2445
2446
2447
2449 {
2451
2452
2453 if (construtionPart.
IsBase())
2454 {
2456
2457
2459 }
2460
2461
2463
2464
2466
2467
2469
2471
2473
2474
2476
2477
2479 }
2480
2482 {
2483
2485 }
2486
2487
2489 {
2492
2493
2495
2496
2498
2499
2501
2502
2504
2506
2507
2509
2510
2512
2513
2514 if (construtionPart.
IsBase())
2515 {
2516
2518 }
2519 }
2520
2522 {
2523
2525 }
2526
2527
2528 void OnPartDestroyedServer(Man player,
string part_name,
int action_id,
bool destroyed_by_connected_part =
false)
2529 {
2532
2533
2535
2536
2538
2539
2541
2542
2544
2546
2547
2549
2550
2552
2553
2554 if (construtionPart.
IsBase())
2555 {
2556
2558 }
2559 }
2560
2562 {
2563
2565 }
2566
2569 {
2570 bool process = false;
2571
2572
2576
2577 if (process)
2578 {
2579 if (!MemoryPointExists(part.
m_PartName +
"_min") || !MemoryPointExists(part.
m_PartName +
"_max"))
2580 {
2582 return;
2583 }
2584
2586 mins = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_min"));
2587 maxs = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_max"));
2588
2589
2591 minTmp[0] =
Math.
Min(mins[0],maxs[0]);
2592 maxTmp[0] =
Math.
Max(mins[0],maxs[0]);
2593 minTmp[1] =
Math.
Min(mins[1],maxs[1]);
2594 maxTmp[1] =
Math.
Max(mins[1],maxs[1]);
2595 minTmp[2] =
Math.
Min(mins[2],maxs[2]);
2596 maxTmp[2] =
Math.
Max(mins[2],maxs[2]);
2597 mins = minTmp;
2598 maxs = maxTmp;
2599
2600 maxs[1] = maxs[1] + 0.35;
2601
2603 }
2604 }
2605
2608 {
2611
2612
2614 foreach (
EntityAI entity : foundEntities)
2615 {
2618 }
2619 }
2620
2621
2623 {
2625
2629 }
2630
2632 {
2634
2636 {
2638 }
2639 else
2640 {
2642 }
2643
2645 }
2646
2648 {
2650
2652 foreach (
string slotName : attachmentSlots)
2653 {
2655 }
2656
2657
2660 else
2662
2664 }
2665
2667 {
2668 string slotNameMounted = slot_name + "_Mounted";
2669 EntityAI attachment = FindAttachmentBySlotName(slot_name);
2670
2671 if (attachment)
2672 {
2673 BarbedWire barbedWire = BarbedWire.Cast(attachment);
2674 if (barbedWire && barbedWire.IsMounted())
2676 else
2678
2679 if (is_locked)
2680 {
2681 SetAnimationPhase(slotNameMounted, 0);
2682 SetAnimationPhase(slot_name, 1);
2683 }
2684 else
2685 {
2686 SetAnimationPhase(slotNameMounted, 1);
2687 SetAnimationPhase(slot_name, 0);
2688 }
2689 }
2690 else
2691 {
2692 SetAnimationPhase(slotNameMounted, 1);
2693 SetAnimationPhase(slot_name, 1);
2694
2696 }
2697 }
2698
2699
2701 {
2704
2707
2710
2711 foreach (
string slotName : attachmentSlots)
2712 {
2714 }
2715
2716
2718 {
2721
2723 }
2724 else
2725 {
2728
2730 }
2731
2734 }
2735
2737 {
2738
2740 return;
2741
2742 string slot_name_mounted = slot_name + "_Mounted";
2743 EntityAI attachment = FindAttachmentBySlotName( slot_name );
2744
2745
2747 RemoveProxyPhysics( slot_name_mounted );
2748 RemoveProxyPhysics( slot_name );
2749
2750 if ( attachment )
2751 {
2753 if ( is_locked )
2754 {
2756 AddProxyPhysics( slot_name_mounted );
2757 }
2758 else
2759 {
2761 AddProxyPhysics( slot_name );
2762 }
2763 }
2764 }
2765
2767 {
2768 SetAffectPathgraph( true, false );
2770 }
2771
2773 {
2774 return true;
2775 }
2776
2778 {
2779 return true;
2780 }
2781
2783 {
2784 if ( attachment )
2785 {
2787 attachment.GetInventory().GetCurrentInventoryLocation( inventory_location );
2788
2789 return GetInventory().GetSlotLock( inventory_location.
GetSlot() );
2790 }
2791
2792 return false;
2793 }
2794
2796 {
2798 }
2799
2800
2802 {
2803 string config_path = "CfgVehicles" + " " + entity.GetType() + " " + "attachments";
2804 if (
GetGame().ConfigIsExisting( config_path ) )
2805 {
2807 }
2808 }
2809
2811 {
2812 return true;
2813 }
2814
2816 {
2817 return true;
2818 }
2819
2821 {
2822 return true;
2823 }
2824
2825
2827 {
2829 {
2831 }
2832
2834 }
2835
2837 {
2839 }
2840
2841
2842
2844 {
2845 return super.CanReceiveAttachment(attachment, slotId);
2846 }
2847
2849 {
2850 int attachment_count = GetInventory().AttachmentCount();
2851 if ( attachment_count > 0 )
2852 {
2853 if (
HasBase() && attachment_count == 1 )
2854 {
2855 return false;
2856 }
2857
2858 return true;
2859 }
2860
2861 return false;
2862 }
2863
2865 {
2866 return true;
2867 }
2868
2870 {
2871 return false;
2872 }
2873
2874
2876 {
2877 return false;
2878 }
2879
2881 {
2882 return false;
2883 }
2884
2885
2887 {
2888 return false;
2889 }
2890
2891
2892
2894 {
2895 return true;
2896 }
2897
2899 {
2900 return true;
2901 }
2902
2905 {
2906 return false;
2907 }
2908
2909
2911 {
2912 return true;
2913 }
2914
2915
2917 {
2918 return false;
2919 }
2920
2921
2923 {
2924 return true;
2925 }
2926
2927
2929 {
2930 if (
HasBase() || GetInventory().AttachmentCount() > 0 )
2931 {
2932 return false;
2933 }
2934
2935 return true;
2936 }
2937
2939 {
2942
2943 return item;
2944 }
2945
2946
2948 {
2950 {
2951
2953
2954
2957
2959 if ( MemoryPointExists( slot_name + "_min" ) )
2960 {
2961 min_max[0] = GetMemoryPointPos( slot_name + "_min" );
2962 }
2963 if ( MemoryPointExists( slot_name + "_max" ) )
2964 {
2965 min_max[1] = GetMemoryPointPos( slot_name + "_max" );
2966 }
2967
2968
2971
2972
2975 center = ModelToWorld( center );
2976
2977
2980
2981 areaDamage.SetExtents( extents[0], extents[1] );
2982 areaDamage.SetAreaPosition( center );
2983 areaDamage.SetAreaOrientation( orientation );
2986 areaDamage.SetHitZones( { "Torso","LeftHand","LeftLeg","LeftFoot","RightHand","RightLeg","RightFoot" } );
2987 areaDamage.SetAmmoName( "BarbedWireHit" );
2988 areaDamage.Spawn();
2989
2991 }
2992 }
2993
2995 {
2996 if ( angle_deg != 0 )
2997 {
2998
2999 orientation[0] = orientation[0] - angle_deg;
3000
3001
3003 if ( MemoryPointExists( "rotate_axis" ) )
3004 {
3005 rotate_axis = ModelToWorld( GetMemoryPointPos( "rotate_axis" ) );
3006 }
3007 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];
3008 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];
3009 center[0] = r_center_x;
3010 center[2] = r_center_z;
3011 }
3012 }
3013
3015 {
3017 {
3020 {
3021 if (areaDamage)
3022 {
3023 areaDamage.Destroy();
3024 }
3025
3027 }
3028 }
3029 }
3030
3032 {
3033 return true;
3034 }
3035
3036
3037
3038
3040 {
3042 }
3043
3045 {
3047 }
3048
3050 {
3052 }
3053
3055 {
3057
3058 switch ( material_type )
3059 {
3065 }
3066
3067 return "";
3068 }
3069
3071 {
3073
3074 switch ( material_type )
3075 {
3081 }
3082
3083 return "";
3084 }
3085
3086
3088 {
3090 {
3091
3093 {
3094 SetHealth(slot_name,"Health",item.GetHealth());
3095 }
3096 }
3097 }
3098
3100 {
3101 return 111;
3102 }
3103
3105 {
3106 super.SetActions();
3107
3111 }
3112
3113
3114
3115
3117 {
3118 }
3119
3122 {
3123 return null;
3124 }
3125
3127 {
3129 }
3130
3132 {
3135
3136 Man p;
3137
3138 #ifdef SERVER
3141 if (players.Count())
3142 p = players[0];
3143 #else
3145 #endif
3146
3148 {
3149 bool excluded = false;
3151 if (excludes)
3152 {
3153 foreach (string exclude : excludes)
3154 {
3156 {
3157 excluded = true;
3158 break;
3159 }
3160 }
3161 }
3162
3163 if (!excluded)
3164 {
3166 }
3167 }
3168
3170 }
3171}
3172
3174{
3175#ifdef BSB_DEBUG
3177#else
3178
3179#endif
3180}
3182{
3183#ifdef BSB_DEBUG_SPAM
3185#else
3186
3187#endif
3188}
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.