1841{
1843
1845
1847
1849
1855
1856
1857
1863
1869
1871
1875
1876
1878 {
1880
1881
1882 RegisterNetSyncVariableInt( "m_SyncParts01" );
1883 RegisterNetSyncVariableInt( "m_SyncParts02" );
1884 RegisterNetSyncVariableInt( "m_SyncParts03" );
1885 RegisterNetSyncVariableInt( "m_InteractedPartId" );
1886 RegisterNetSyncVariableInt( "m_PerformedActionId" );
1887 RegisterNetSyncVariableBool( "m_HasBase" );
1888
1889
1891
1892 if (ConfigIsExisting("hybridAttachments"))
1893 {
1896 }
1897 if (ConfigIsExisting("mountables"))
1898 {
1901 }
1902
1904 }
1905
1907 {
1908 super.EEDelete(parent);
1909
1911 {
1912 areaDamage.Destroy();
1913 }
1914
1915 }
1916
1918 {
1919 return "disableBaseDamage";
1920 }
1921
1923 {
1924 return true;
1925 }
1926
1928 {
1929 return EInventoryIconVisibility.HIDE_VICINITY;
1930 }
1931
1933 {
1934 super.InitItemSounds();
1935
1939
1944 }
1945
1947 {
1948 return "putDown_FenceKit_SoundSet";
1949 }
1950
1952 {
1953 return "Shelter_Site_Build_Loop_SoundSet";
1954 }
1955
1956
1958 {
1960 {
1961 SetSynchDirty();
1962 }
1963 }
1964
1966 {
1968 super.OnVariablesSynchronized();
1969
1971 }
1972
1974 {
1975
1977
1978
1980
1981
1983 }
1984
1985
1987 {
1988
1989 int offset;
1990 int mask;
1991
1992 if ( part_id >= 1 && part_id <= 31 )
1993 {
1994 offset = part_id - 1;
1995 mask = 1 << offset;
1996
1998 }
1999 else if ( part_id >= 32 && part_id <= 62 )
2000 {
2001 offset = ( part_id % 32 );
2002 mask = 1 << offset;
2003
2005 }
2006 else if ( part_id >= 63 && part_id <= 93 )
2007 {
2008 offset = ( part_id % 63 );
2009 mask = 1 << offset;
2010
2012 }
2013 }
2014
2016 {
2017
2018 int offset;
2019 int mask;
2020
2021 if ( part_id >= 1 && part_id <= 31 )
2022 {
2023 offset = part_id - 1;
2024 mask = 1 << offset;
2025
2027 }
2028 else if ( part_id >= 32 && part_id <= 62 )
2029 {
2030 offset = ( part_id % 32 );
2031 mask = 1 << offset;
2032
2034 }
2035 else if ( part_id >= 63 && part_id <= 93 )
2036 {
2037 offset = ( part_id % 63 );
2038 mask = 1 << offset;
2039
2041 }
2042 }
2043
2045 {
2046
2047 int offset;
2048 int mask;
2049
2050 if ( part_id >= 1 && part_id <= 31 )
2051 {
2052 offset = part_id - 1;
2053 mask = 1 << offset;
2054
2056 {
2057 return true;
2058 }
2059 }
2060 else if ( part_id >= 32 && part_id <= 62 )
2061 {
2062 offset = ( part_id % 32 );
2063 mask = 1 << offset;
2064
2066 {
2067 return true;
2068 }
2069 }
2070 else if ( part_id >= 63 && part_id <= 93 )
2071 {
2072 offset = ( part_id % 63 );
2073 mask = 1 << offset;
2074
2076 {
2077 return true;
2078 }
2079 }
2080
2081 return false;
2082 }
2083
2085 {
2088 }
2089
2091 {
2092
2095 }
2096
2098 {
2100 {
2103
2104 switch( build_action_id )
2105 {
2109 }
2110 }
2111 }
2112
2113
2115 {
2117 bool is_base = part.
IsBase();
2120 if ( is_part_built_sync )
2121 {
2123 {
2127
2128 if (is_base)
2129 {
2132 }
2133 }
2134 }
2135 else
2136 {
2138 {
2142
2143 if (is_base)
2144 {
2147 }
2148 }
2149 }
2150
2151
2153 }
2154
2155
2157 {
2160
2161 for ( int i = 0; i < construction_parts.Count(); ++i )
2162 {
2163 string key = construction_parts.GetKey( i );
2166 }
2167
2168
2170 }
2171
2173 {
2176
2177 for ( int i = 0; i < construction_parts.Count(); ++i )
2178 {
2179 string key = construction_parts.GetKey( i );
2181
2182 if ( value.
GetId() ==
id )
2183 {
2184 return value;
2185 }
2186 }
2187
2188 return NULL;
2189 }
2190
2191
2192
2194 {
2196 }
2197
2199 {
2201 }
2202
2204 {
2205 return true;
2206 }
2207
2209 {
2210 return false;
2211 }
2212
2213
2215 {
2218 {
2220 }
2221
2222 return construction_kit;
2223 }
2224
2226 {
2229 {
2231 }
2232 }
2233
2235 {
2237 }
2238
2240 {
2241 return "";
2242 }
2243
2245 {
2248 }
2249
2250
2252 {
2255 }
2256
2257
2259 {
2260 super.OnStoreSave( ctx );
2261
2262
2266
2268 }
2269
2271 {
2272 if ( !super.OnStoreLoad( ctx, version ) )
2273 return false;
2274
2275
2276
2278 {
2280 return false;
2281 }
2283 {
2285 return false;
2286 }
2288 {
2290 return false;
2291 }
2292
2293
2295 {
2297 return false;
2298 }
2299
2300
2301 return true;
2302 }
2303
2305 {
2306 super.AfterStoreLoad();
2307
2309 {
2311 }
2312 }
2313
2315 {
2316
2318
2319
2322
2323
2325 }
2326
2328 {
2329 super.OnCreatePhysics();
2332 }
2333
2335 {
2337 return;
2338
2339 super.EEHealthLevelChanged(oldLevel,newLevel,zone);
2340
2342 return;
2343
2345 string part_name = zone;
2347
2349 {
2350 ConstructionPart construction_part = construction.GetConstructionPart( part_name );
2351
2352 if ( construction_part && construction.IsPartConstructed( part_name ) )
2353 {
2355 construction.DestroyConnectedParts(part_name);
2356 }
2357
2358
2359 if ( part_name.
Contains(
"barbed") )
2360 {
2361 BarbedWire barbed_wire = BarbedWire.Cast( FindAttachmentBySlotName( zone ) );
2362 if (barbed_wire)
2363 barbed_wire.SetMountedState( false );
2364 }
2365 }
2366 }
2367
2369 {
2371 {
2373 }
2374
2375 super.EEOnAfterLoad();
2376 }
2377
2379 {
2380 super.EEInit();
2381
2382
2384
2385
2386 #ifdef DEVELOPER
2388 #endif
2389 }
2390
2392 {
2393 super.EEItemAttached( item, slot_name );
2394
2398 }
2399
2401 {
2402 super.EEItemDetached( item, slot_name );
2403
2406 }
2407
2408 protected void OnSetSlotLock(
int slotId,
bool locked,
bool was_locked )
2409 {
2412
2415 }
2416
2417
2419 {
2420 return true;
2421 }
2422
2423
2424
2426 {
2428
2429
2430 if (construtionPart.
IsBase())
2431 {
2433
2434
2436 }
2437
2438
2440
2441
2443
2444
2446
2448
2450
2451
2453
2454
2456 }
2457
2459 {
2460
2462 }
2463
2464
2466 {
2469
2470
2472
2473
2475
2476
2478
2479
2481
2483
2484
2486
2487
2489
2490
2491 if (construtionPart.
IsBase())
2492 {
2493
2495 }
2496 }
2497
2499 {
2500
2502 }
2503
2504
2505 void OnPartDestroyedServer(Man player,
string part_name,
int action_id,
bool destroyed_by_connected_part =
false)
2506 {
2509
2510
2512
2513
2515
2516
2518
2519
2521
2523
2524
2526
2527
2529
2530
2531 if (construtionPart.
IsBase())
2532 {
2533
2535 }
2536 }
2537
2539 {
2540
2542 }
2543
2546 {
2547 bool process = false;
2548
2549
2553
2554 if (process)
2555 {
2556 if (!MemoryPointExists(part.
m_PartName +
"_min") || !MemoryPointExists(part.
m_PartName +
"_max"))
2557 {
2559 return;
2560 }
2561
2563 mins = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_min"));
2564 maxs = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_max"));
2565
2566
2568 minTmp[0] =
Math.
Min(mins[0],maxs[0]);
2569 maxTmp[0] =
Math.
Max(mins[0],maxs[0]);
2570 minTmp[1] =
Math.
Min(mins[1],maxs[1]);
2571 maxTmp[1] =
Math.
Max(mins[1],maxs[1]);
2572 minTmp[2] =
Math.
Min(mins[2],maxs[2]);
2573 maxTmp[2] =
Math.
Max(mins[2],maxs[2]);
2574 mins = minTmp;
2575 maxs = maxTmp;
2576
2577 maxs[1] = maxs[1] + 0.35;
2578
2580 }
2581 }
2582
2585 {
2588
2589
2591 foreach (
EntityAI entity : foundEntities)
2592 {
2595 }
2596 }
2597
2598
2600 {
2602
2606 }
2607
2609 {
2611
2613 {
2615 }
2616 else
2617 {
2619 }
2620
2622 }
2623
2625 {
2627
2629 foreach (
string slotName : attachmentSlots)
2630 {
2632 }
2633
2634
2637 else
2639
2641 }
2642
2644 {
2645 string slotNameMounted = slot_name + "_Mounted";
2646 EntityAI attachment = FindAttachmentBySlotName(slot_name);
2647
2648 if (attachment)
2649 {
2650 BarbedWire barbedWire = BarbedWire.Cast(attachment);
2651 if (barbedWire && barbedWire.IsMounted())
2653 else
2655
2656 if (is_locked)
2657 {
2658 SetAnimationPhase(slotNameMounted, 0);
2659 SetAnimationPhase(slot_name, 1);
2660 }
2661 else
2662 {
2663 SetAnimationPhase(slotNameMounted, 1);
2664 SetAnimationPhase(slot_name, 0);
2665 }
2666 }
2667 else
2668 {
2669 SetAnimationPhase(slotNameMounted, 1);
2670 SetAnimationPhase(slot_name, 1);
2671
2673 }
2674 }
2675
2676
2678 {
2681
2684
2687
2688 foreach (
string slotName : attachmentSlots)
2689 {
2691 }
2692
2693
2695 {
2698
2700 }
2701 else
2702 {
2705
2707 }
2708
2711 }
2712
2714 {
2715
2717 return;
2718
2719 string slot_name_mounted = slot_name + "_Mounted";
2720 EntityAI attachment = FindAttachmentBySlotName( slot_name );
2721
2722
2724 RemoveProxyPhysics( slot_name_mounted );
2725 RemoveProxyPhysics( slot_name );
2726
2727 if ( attachment )
2728 {
2730 if ( is_locked )
2731 {
2733 AddProxyPhysics( slot_name_mounted );
2734 }
2735 else
2736 {
2738 AddProxyPhysics( slot_name );
2739 }
2740 }
2741 }
2742
2744 {
2745 SetAffectPathgraph( true, false );
2747 }
2748
2750 {
2751 return true;
2752 }
2753
2755 {
2756 return true;
2757 }
2758
2760 {
2761 if ( attachment )
2762 {
2764 attachment.GetInventory().GetCurrentInventoryLocation( inventory_location );
2765
2766 return GetInventory().GetSlotLock( inventory_location.
GetSlot() );
2767 }
2768
2769 return false;
2770 }
2771
2773 {
2775 }
2776
2777
2779 {
2780 string config_path = "CfgVehicles" + " " + entity.GetType() + " " + "attachments";
2781 if (
GetGame().ConfigIsExisting( config_path ) )
2782 {
2784 }
2785 }
2786
2788 {
2789 return true;
2790 }
2791
2793 {
2794 return true;
2795 }
2796
2798 {
2799 return true;
2800 }
2801
2802
2804 {
2806 {
2808 }
2809
2811 }
2812
2814 {
2816 }
2817
2818
2819
2821 {
2822 return super.CanReceiveAttachment(attachment, slotId);
2823 }
2824
2826 {
2827 int attachment_count = GetInventory().AttachmentCount();
2828 if ( attachment_count > 0 )
2829 {
2830 if (
HasBase() && attachment_count == 1 )
2831 {
2832 return false;
2833 }
2834
2835 return true;
2836 }
2837
2838 return false;
2839 }
2840
2842 {
2843 return true;
2844 }
2845
2847 {
2848 return false;
2849 }
2850
2851
2853 {
2854 return false;
2855 }
2856
2858 {
2859 return false;
2860 }
2861
2862
2864 {
2865 return false;
2866 }
2867
2868
2869
2871 {
2872 return true;
2873 }
2874
2876 {
2877 return true;
2878 }
2879
2882 {
2883 return false;
2884 }
2885
2886
2888 {
2889 return true;
2890 }
2891
2892
2894 {
2895 return false;
2896 }
2897
2898
2900 {
2901 return true;
2902 }
2903
2904
2906 {
2907 if (
HasBase() || GetInventory().AttachmentCount() > 0 )
2908 {
2909 return false;
2910 }
2911
2912 return true;
2913 }
2914
2916 {
2919
2920 return item;
2921 }
2922
2923
2925 {
2927 {
2928
2930
2931
2934
2936 if ( MemoryPointExists( slot_name + "_min" ) )
2937 {
2938 min_max[0] = GetMemoryPointPos( slot_name + "_min" );
2939 }
2940 if ( MemoryPointExists( slot_name + "_max" ) )
2941 {
2942 min_max[1] = GetMemoryPointPos( slot_name + "_max" );
2943 }
2944
2945
2948
2949
2952 center = ModelToWorld( center );
2953
2954
2957
2958 areaDamage.SetExtents( extents[0], extents[1] );
2959 areaDamage.SetAreaPosition( center );
2960 areaDamage.SetAreaOrientation( orientation );
2963 areaDamage.SetHitZones( { "Torso","LeftHand","LeftLeg","LeftFoot","RightHand","RightLeg","RightFoot" } );
2964 areaDamage.SetAmmoName( "BarbedWireHit" );
2965 areaDamage.Spawn();
2966
2968 }
2969 }
2970
2972 {
2973 if ( angle_deg != 0 )
2974 {
2975
2976 orientation[0] = orientation[0] - angle_deg;
2977
2978
2980 if ( MemoryPointExists( "rotate_axis" ) )
2981 {
2982 rotate_axis = ModelToWorld( GetMemoryPointPos( "rotate_axis" ) );
2983 }
2984 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];
2985 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];
2986 center[0] = r_center_x;
2987 center[2] = r_center_z;
2988 }
2989 }
2990
2992 {
2994 {
2997 {
2998 if (areaDamage)
2999 {
3000 areaDamage.Destroy();
3001 }
3002
3004 }
3005 }
3006 }
3007
3009 {
3010 return true;
3011 }
3012
3013
3014
3015
3017 {
3019 }
3020
3022 {
3024 }
3025
3027 {
3029 }
3030
3032 {
3034
3035 switch ( material_type )
3036 {
3042 }
3043
3044 return "";
3045 }
3046
3048 {
3050
3051 switch ( material_type )
3052 {
3058 }
3059
3060 return "";
3061 }
3062
3063
3065 {
3067 {
3068
3070 {
3071 SetHealth(slot_name,"Health",item.GetHealth());
3072 }
3073 }
3074 }
3075
3077 {
3078 return 111;
3079 }
3080
3082 {
3083 super.SetActions();
3084
3088 }
3089
3090
3091
3092
3094 {
3095 }
3096
3099 {
3100 return null;
3101 }
3102
3104 {
3106 }
3107
3109 {
3112
3113 Man p;
3114
3115 #ifdef SERVER
3118 if (players.Count())
3119 p = players[0];
3120 #else
3122 #endif
3123
3125 {
3126 bool excluded = false;
3128 if (excludes)
3129 {
3130 foreach (string exclude : excludes)
3131 {
3133 {
3134 excluded = true;
3135 break;
3136 }
3137 }
3138 }
3139
3140 if (!excluded)
3141 {
3143 }
3144 }
3145
3147 }
3148}
3149
3151{
3152#ifdef BSB_DEBUG
3154#else
3155
3156#endif
3157}
3159{
3160#ifdef BSB_DEBUG_SPAM
3162#else
3163
3164#endif
3165}
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.