1873{
1875
1877
1879
1881
1887
1888
1889
1895
1901
1903
1907
1908
1910 {
1912
1913
1914 RegisterNetSyncVariableInt( "m_SyncParts01" );
1915 RegisterNetSyncVariableInt( "m_SyncParts02" );
1916 RegisterNetSyncVariableInt( "m_SyncParts03" );
1917 RegisterNetSyncVariableInt( "m_InteractedPartId" );
1918 RegisterNetSyncVariableInt( "m_PerformedActionId" );
1919 RegisterNetSyncVariableBool( "m_HasBase" );
1920
1921
1923
1924 if (ConfigIsExisting("hybridAttachments"))
1925 {
1928 }
1929 if (ConfigIsExisting("mountables"))
1930 {
1933 }
1934
1936 }
1937
1939 {
1940 super.EEDelete(parent);
1941
1943 {
1944 areaDamage.Destroy();
1945 }
1946
1947 }
1948
1950 {
1951 return "disableBaseDamage";
1952 }
1953
1955 {
1956 return true;
1957 }
1958
1960 {
1961 return EInventoryIconVisibility.HIDE_VICINITY;
1962 }
1963
1965 {
1966 super.InitItemSounds();
1967
1971
1976 }
1977
1979 {
1980 return "putDown_FenceKit_SoundSet";
1981 }
1982
1984 {
1985 return "Shelter_Site_Build_Loop_SoundSet";
1986 }
1987
1988
1990 {
1992 {
1993 SetSynchDirty();
1994 }
1995 }
1996
1998 {
2000 super.OnVariablesSynchronized();
2001
2003 }
2004
2006 {
2007
2009
2010
2012
2013
2015 }
2016
2017
2019 {
2020
2021 int offset;
2022 int mask;
2023
2024 if ( part_id >= 1 && part_id <= 31 )
2025 {
2026 offset = part_id - 1;
2027 mask = 1 << offset;
2028
2030 }
2031 else if ( part_id >= 32 && part_id <= 62 )
2032 {
2033 offset = ( part_id % 32 );
2034 mask = 1 << offset;
2035
2037 }
2038 else if ( part_id >= 63 && part_id <= 93 )
2039 {
2040 offset = ( part_id % 63 );
2041 mask = 1 << offset;
2042
2044 }
2045 }
2046
2048 {
2049
2050 int offset;
2051 int mask;
2052
2053 if ( part_id >= 1 && part_id <= 31 )
2054 {
2055 offset = part_id - 1;
2056 mask = 1 << offset;
2057
2059 }
2060 else if ( part_id >= 32 && part_id <= 62 )
2061 {
2062 offset = ( part_id % 32 );
2063 mask = 1 << offset;
2064
2066 }
2067 else if ( part_id >= 63 && part_id <= 93 )
2068 {
2069 offset = ( part_id % 63 );
2070 mask = 1 << offset;
2071
2073 }
2074 }
2075
2077 {
2078
2079 int offset;
2080 int mask;
2081
2082 if ( part_id >= 1 && part_id <= 31 )
2083 {
2084 offset = part_id - 1;
2085 mask = 1 << offset;
2086
2088 {
2089 return true;
2090 }
2091 }
2092 else if ( part_id >= 32 && part_id <= 62 )
2093 {
2094 offset = ( part_id % 32 );
2095 mask = 1 << offset;
2096
2098 {
2099 return true;
2100 }
2101 }
2102 else if ( part_id >= 63 && part_id <= 93 )
2103 {
2104 offset = ( part_id % 63 );
2105 mask = 1 << offset;
2106
2108 {
2109 return true;
2110 }
2111 }
2112
2113 return false;
2114 }
2115
2117 {
2120 }
2121
2123 {
2124
2127 }
2128
2130 {
2132 {
2135
2136 switch( build_action_id )
2137 {
2141 }
2142 }
2143 }
2144
2145
2147 {
2149 bool is_base = part.
IsBase();
2152 if ( is_part_built_sync )
2153 {
2155 {
2159
2160 if (is_base)
2161 {
2164 }
2165 }
2166 }
2167 else
2168 {
2170 {
2174
2175 if (is_base)
2176 {
2179 }
2180 }
2181 }
2182
2183
2185 }
2186
2187
2189 {
2192
2193 for ( int i = 0; i < construction_parts.Count(); ++i )
2194 {
2195 string key = construction_parts.GetKey( i );
2198 }
2199
2200
2202 }
2203
2205 {
2208
2209 for ( int i = 0; i < construction_parts.Count(); ++i )
2210 {
2211 string key = construction_parts.GetKey( i );
2213
2214 if ( value.
GetId() ==
id )
2215 {
2216 return value;
2217 }
2218 }
2219
2220 return NULL;
2221 }
2222
2223
2224
2226 {
2228 }
2229
2231 {
2233 }
2234
2236 {
2237 return true;
2238 }
2239
2241 {
2242 return false;
2243 }
2244
2245
2247 {
2250 {
2252 }
2253
2254 return construction_kit;
2255 }
2256
2258 {
2261 {
2263 }
2264 }
2265
2267 {
2269 }
2270
2272 {
2273 return "";
2274 }
2275
2277 {
2280 }
2281
2282
2284 {
2287 }
2288
2289
2291 {
2292 super.OnStoreSave( ctx );
2293
2294
2298
2300 }
2301
2303 {
2304 if ( !super.OnStoreLoad( ctx, version ) )
2305 return false;
2306
2307
2308
2310 {
2312 return false;
2313 }
2315 {
2317 return false;
2318 }
2320 {
2322 return false;
2323 }
2324
2325
2327 {
2329 return false;
2330 }
2331
2332
2333 return true;
2334 }
2335
2337 {
2338 super.AfterStoreLoad();
2339
2341 {
2343 }
2344 }
2345
2347 {
2348
2350
2351
2354
2355
2357 }
2358
2360 {
2361 super.OnCreatePhysics();
2364 }
2365
2367 {
2369 return;
2370
2371 super.EEHealthLevelChanged(oldLevel,newLevel,zone);
2372
2374 return;
2375
2377 string part_name = zone;
2379
2381 {
2382 ConstructionPart construction_part = construction.GetConstructionPart( part_name );
2383
2384 if ( construction_part && construction.IsPartConstructed( part_name ) )
2385 {
2387 construction.DestroyConnectedParts(part_name);
2388 }
2389
2390
2391 if ( part_name.
Contains(
"barbed") )
2392 {
2393 BarbedWire barbed_wire = BarbedWire.Cast( FindAttachmentBySlotName( zone ) );
2394 if (barbed_wire)
2395 barbed_wire.SetMountedState( false );
2396 }
2397 }
2398 }
2399
2401 {
2403 {
2405 }
2406
2407 super.EEOnAfterLoad();
2408 }
2409
2411 {
2412 super.EEInit();
2413
2414
2416
2417
2418 #ifdef DEVELOPER
2420 #endif
2421 }
2422
2424 {
2425 super.EEItemAttached( item, slot_name );
2426
2430 }
2431
2433 {
2434 super.EEItemDetached( item, slot_name );
2435
2438 }
2439
2440 protected void OnSetSlotLock(
int slotId,
bool locked,
bool was_locked )
2441 {
2444
2447 }
2448
2449
2451 {
2452 return true;
2453 }
2454
2455
2456
2458 {
2460
2461
2462 if (construtionPart.
IsBase())
2463 {
2465
2466
2468 }
2469
2470
2472
2473
2475
2476
2478
2480
2482
2483
2485
2486
2488 }
2489
2491 {
2492
2494 }
2495
2496
2498 {
2501
2502
2504
2505
2507
2508
2510
2511
2513
2515
2516
2518
2519
2521
2522
2523 if (construtionPart.
IsBase())
2524 {
2525
2527 }
2528 }
2529
2531 {
2532
2534 }
2535
2536
2537 void OnPartDestroyedServer(Man player,
string part_name,
int action_id,
bool destroyed_by_connected_part =
false)
2538 {
2541
2542
2544
2545
2547
2548
2550
2551
2553
2555
2556
2558
2559
2561
2562
2563 if (construtionPart.
IsBase())
2564 {
2565
2567 }
2568 }
2569
2571 {
2572
2574 }
2575
2578 {
2579 bool process = false;
2580
2581
2585
2586 if (process)
2587 {
2588 if (!MemoryPointExists(part.
m_PartName +
"_min") || !MemoryPointExists(part.
m_PartName +
"_max"))
2589 {
2591 return;
2592 }
2593
2595 mins = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_min"));
2596 maxs = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_max"));
2597
2598
2600 minTmp[0] =
Math.
Min(mins[0],maxs[0]);
2601 maxTmp[0] =
Math.
Max(mins[0],maxs[0]);
2602 minTmp[1] =
Math.
Min(mins[1],maxs[1]);
2603 maxTmp[1] =
Math.
Max(mins[1],maxs[1]);
2604 minTmp[2] =
Math.
Min(mins[2],maxs[2]);
2605 maxTmp[2] =
Math.
Max(mins[2],maxs[2]);
2606 mins = minTmp;
2607 maxs = maxTmp;
2608
2609 maxs[1] = maxs[1] + 0.35;
2610
2612 }
2613 }
2614
2617 {
2620
2621
2623 foreach (
EntityAI entity : foundEntities)
2624 {
2627 }
2628 }
2629
2630
2632 {
2634
2638 }
2639
2641 {
2643
2645 {
2647 }
2648 else
2649 {
2651 }
2652
2654 }
2655
2657 {
2659
2661 foreach (
string slotName : attachmentSlots)
2662 {
2664 }
2665
2666
2669 else
2671
2673 }
2674
2676 {
2677 string slotNameMounted = slot_name + "_Mounted";
2678 EntityAI attachment = FindAttachmentBySlotName(slot_name);
2679
2680 if (attachment)
2681 {
2682 BarbedWire barbedWire = BarbedWire.Cast(attachment);
2683 if (barbedWire && barbedWire.IsMounted())
2685 else
2687
2688 if (is_locked)
2689 {
2690 SetAnimationPhase(slotNameMounted, 0);
2691 SetAnimationPhase(slot_name, 1);
2692 }
2693 else
2694 {
2695 SetAnimationPhase(slotNameMounted, 1);
2696 SetAnimationPhase(slot_name, 0);
2697 }
2698 }
2699 else
2700 {
2701 SetAnimationPhase(slotNameMounted, 1);
2702 SetAnimationPhase(slot_name, 1);
2703
2705 }
2706 }
2707
2708
2710 {
2713
2716
2719
2720 foreach (
string slotName : attachmentSlots)
2721 {
2723 }
2724
2725
2727 {
2730
2732 }
2733 else
2734 {
2737
2739 }
2740
2743 }
2744
2746 {
2747
2749 return;
2750
2751 string slot_name_mounted = slot_name + "_Mounted";
2752 EntityAI attachment = FindAttachmentBySlotName( slot_name );
2753
2754
2756 RemoveProxyPhysics( slot_name_mounted );
2757 RemoveProxyPhysics( slot_name );
2758
2759 if ( attachment )
2760 {
2762 if ( is_locked )
2763 {
2765 AddProxyPhysics( slot_name_mounted );
2766 }
2767 else
2768 {
2770 AddProxyPhysics( slot_name );
2771 }
2772 }
2773 }
2774
2776 {
2777 SetAffectPathgraph( true, false );
2779 }
2780
2782 {
2783 return true;
2784 }
2785
2787 {
2788 return true;
2789 }
2790
2792 {
2793 if ( attachment )
2794 {
2796 attachment.GetInventory().GetCurrentInventoryLocation( inventory_location );
2797
2798 return GetInventory().GetSlotLock( inventory_location.
GetSlot() );
2799 }
2800
2801 return false;
2802 }
2803
2805 {
2807 }
2808
2809
2811 {
2812 string config_path = "CfgVehicles" + " " + entity.GetType() + " " + "attachments";
2813 if (
GetGame().ConfigIsExisting( config_path ) )
2814 {
2816 }
2817 }
2818
2820 {
2821 return true;
2822 }
2823
2825 {
2826 return true;
2827 }
2828
2830 {
2831 return true;
2832 }
2833
2834
2836 {
2838 {
2840 }
2841
2843 }
2844
2846 {
2848 }
2849
2850
2851
2853 {
2854 return super.CanReceiveAttachment(attachment, slotId);
2855 }
2856
2858 {
2859 int attachment_count = GetInventory().AttachmentCount();
2860 if ( attachment_count > 0 )
2861 {
2862 if (
HasBase() && attachment_count == 1 )
2863 {
2864 return false;
2865 }
2866
2867 return true;
2868 }
2869
2870 return false;
2871 }
2872
2874 {
2875 return true;
2876 }
2877
2879 {
2880 return false;
2881 }
2882
2883
2885 {
2886 return false;
2887 }
2888
2890 {
2891 return false;
2892 }
2893
2894
2896 {
2897 return false;
2898 }
2899
2900
2901
2903 {
2904 return true;
2905 }
2906
2908 {
2909 return true;
2910 }
2911
2914 {
2915 return false;
2916 }
2917
2918
2920 {
2921 return true;
2922 }
2923
2924
2926 {
2927 return false;
2928 }
2929
2930
2932 {
2933 return true;
2934 }
2935
2936
2938 {
2939 if (
HasBase() || GetInventory().AttachmentCount() > 0 )
2940 {
2941 return false;
2942 }
2943
2944 return true;
2945 }
2946
2948 {
2951
2952 return item;
2953 }
2954
2955
2957 {
2959 {
2960
2962
2963
2966
2968 if ( MemoryPointExists( slot_name + "_min" ) )
2969 {
2970 min_max[0] = GetMemoryPointPos( slot_name + "_min" );
2971 }
2972 if ( MemoryPointExists( slot_name + "_max" ) )
2973 {
2974 min_max[1] = GetMemoryPointPos( slot_name + "_max" );
2975 }
2976
2977
2980
2981
2984 center = ModelToWorld( center );
2985
2986
2989
2990 areaDamage.SetExtents( extents[0], extents[1] );
2991 areaDamage.SetAreaPosition( center );
2992 areaDamage.SetAreaOrientation( orientation );
2995 areaDamage.SetHitZones( { "Torso","LeftHand","LeftLeg","LeftFoot","RightHand","RightLeg","RightFoot" } );
2996 areaDamage.SetAmmoName( "BarbedWireHit" );
2997 areaDamage.Spawn();
2998
3000 }
3001 }
3002
3004 {
3005 if ( angle_deg != 0 )
3006 {
3007
3008 orientation[0] = orientation[0] - angle_deg;
3009
3010
3012 if ( MemoryPointExists( "rotate_axis" ) )
3013 {
3014 rotate_axis = ModelToWorld( GetMemoryPointPos( "rotate_axis" ) );
3015 }
3016 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];
3017 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];
3018 center[0] = r_center_x;
3019 center[2] = r_center_z;
3020 }
3021 }
3022
3024 {
3026 {
3029 {
3030 if (areaDamage)
3031 {
3032 areaDamage.Destroy();
3033 }
3034
3036 }
3037 }
3038 }
3039
3041 {
3042 return true;
3043 }
3044
3045
3046
3047
3049 {
3051 }
3052
3054 {
3056 }
3057
3059 {
3061 }
3062
3064 {
3066
3067 switch ( material_type )
3068 {
3074 }
3075
3076 return "";
3077 }
3078
3080 {
3082
3083 switch ( material_type )
3084 {
3090 }
3091
3092 return "";
3093 }
3094
3095
3097 {
3099 {
3100
3102 {
3103 SetHealth(slot_name,"Health",item.GetHealth());
3104 }
3105 }
3106 }
3107
3109 {
3110 return 111;
3111 }
3112
3114 {
3115 super.SetActions();
3116
3120 }
3121
3122
3123
3124
3126 {
3127 }
3128
3131 {
3132 return null;
3133 }
3134
3136 {
3138 }
3139
3141 {
3144
3145 Man p;
3146
3147 #ifdef SERVER
3150 if (players.Count())
3151 p = players[0];
3152 #else
3154 #endif
3155
3157 {
3158 bool excluded = false;
3160 if (excludes)
3161 {
3162 foreach (string exclude : excludes)
3163 {
3165 {
3166 excluded = true;
3167 break;
3168 }
3169 }
3170 }
3171
3172 if (!excluded)
3173 {
3175 }
3176 }
3177
3179 }
3180}
3181
3183{
3184#ifdef BSB_DEBUG
3186#else
3187
3188#endif
3189}
3191{
3192#ifdef BSB_DEBUG_SPAM
3194#else
3195
3196#endif
3197}
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.