1881{
1883
1885
1887
1889
1895
1896
1897
1903
1909
1911
1915
1916
1918 {
1920
1921
1922 RegisterNetSyncVariableInt( "m_SyncParts01" );
1923 RegisterNetSyncVariableInt( "m_SyncParts02" );
1924 RegisterNetSyncVariableInt( "m_SyncParts03" );
1925 RegisterNetSyncVariableInt( "m_InteractedPartId" );
1926 RegisterNetSyncVariableInt( "m_PerformedActionId" );
1927 RegisterNetSyncVariableBool( "m_HasBase" );
1928
1929
1931
1932 if (ConfigIsExisting("hybridAttachments"))
1933 {
1936 }
1937 if (ConfigIsExisting("mountables"))
1938 {
1941 }
1942
1944 }
1945
1947 {
1948 super.EEDelete(parent);
1949
1951 {
1952 areaDamage.Destroy();
1953 }
1954
1955 }
1956
1958 {
1959 return "disableBaseDamage";
1960 }
1961
1963 {
1964 return true;
1965 }
1966
1968 {
1969 return EInventoryIconVisibility.HIDE_VICINITY;
1970 }
1971
1973 {
1974 super.InitItemSounds();
1975
1979
1984 }
1985
1987 {
1988 return "putDown_FenceKit_SoundSet";
1989 }
1990
1992 {
1993 return "Shelter_Site_Build_Loop_SoundSet";
1994 }
1995
1996
1998 {
2000 {
2001 SetSynchDirty();
2002 }
2003 }
2004
2006 {
2008 super.OnVariablesSynchronized();
2009
2011 }
2012
2014 {
2015
2017
2018
2020
2021
2023 }
2024
2025
2027 {
2028
2029 int offset;
2030 int mask;
2031
2032 if ( part_id >= 1 && part_id <= 31 )
2033 {
2034 offset = part_id - 1;
2035 mask = 1 << offset;
2036
2038 }
2039 else if ( part_id >= 32 && part_id <= 62 )
2040 {
2041 offset = ( part_id % 32 );
2042 mask = 1 << offset;
2043
2045 }
2046 else if ( part_id >= 63 && part_id <= 93 )
2047 {
2048 offset = ( part_id % 63 );
2049 mask = 1 << offset;
2050
2052 }
2053 }
2054
2056 {
2057
2058 int offset;
2059 int mask;
2060
2061 if ( part_id >= 1 && part_id <= 31 )
2062 {
2063 offset = part_id - 1;
2064 mask = 1 << offset;
2065
2067 }
2068 else if ( part_id >= 32 && part_id <= 62 )
2069 {
2070 offset = ( part_id % 32 );
2071 mask = 1 << offset;
2072
2074 }
2075 else if ( part_id >= 63 && part_id <= 93 )
2076 {
2077 offset = ( part_id % 63 );
2078 mask = 1 << offset;
2079
2081 }
2082 }
2083
2085 {
2086
2087 int offset;
2088 int mask;
2089
2090 if ( part_id >= 1 && part_id <= 31 )
2091 {
2092 offset = part_id - 1;
2093 mask = 1 << offset;
2094
2096 {
2097 return true;
2098 }
2099 }
2100 else if ( part_id >= 32 && part_id <= 62 )
2101 {
2102 offset = ( part_id % 32 );
2103 mask = 1 << offset;
2104
2106 {
2107 return true;
2108 }
2109 }
2110 else if ( part_id >= 63 && part_id <= 93 )
2111 {
2112 offset = ( part_id % 63 );
2113 mask = 1 << offset;
2114
2116 {
2117 return true;
2118 }
2119 }
2120
2121 return false;
2122 }
2123
2125 {
2128 }
2129
2131 {
2132
2135 }
2136
2138 {
2140 {
2143
2144 switch( build_action_id )
2145 {
2149 }
2150 }
2151 }
2152
2153
2155 {
2157 bool is_base = part.
IsBase();
2160 if ( is_part_built_sync )
2161 {
2163 {
2167
2168 if (is_base)
2169 {
2172 }
2173 }
2174 }
2175 else
2176 {
2178 {
2182
2183 if (is_base)
2184 {
2187 }
2188 }
2189 }
2190
2191
2193 }
2194
2195
2197 {
2200
2201 for ( int i = 0; i < construction_parts.Count(); ++i )
2202 {
2203 string key = construction_parts.GetKey( i );
2206 }
2207
2208
2210 }
2211
2213 {
2216
2217 for ( int i = 0; i < construction_parts.Count(); ++i )
2218 {
2219 string key = construction_parts.GetKey( i );
2221
2222 if ( value.
GetId() ==
id )
2223 {
2224 return value;
2225 }
2226 }
2227
2228 return NULL;
2229 }
2230
2231
2232
2234 {
2236 }
2237
2239 {
2241 }
2242
2244 {
2245 return true;
2246 }
2247
2249 {
2250 return false;
2251 }
2252
2253
2255 {
2258 {
2260 }
2261
2262 return construction_kit;
2263 }
2264
2266 {
2269 {
2271 }
2272 }
2273
2275 {
2277 }
2278
2280 {
2281 return "";
2282 }
2283
2285 {
2288 }
2289
2290
2292 {
2295 }
2296
2297
2299 {
2300 super.OnStoreSave( ctx );
2301
2302
2306
2308 }
2309
2311 {
2312 if ( !super.OnStoreLoad( ctx, version ) )
2313 return false;
2314
2315
2316
2318 {
2320 return false;
2321 }
2323 {
2325 return false;
2326 }
2328 {
2330 return false;
2331 }
2332
2333
2335 {
2337 return false;
2338 }
2339
2340
2341 return true;
2342 }
2343
2345 {
2346 super.AfterStoreLoad();
2347
2349 {
2351 }
2352 }
2353
2355 {
2356
2358
2359
2362
2363
2365 }
2366
2368 {
2369 super.OnCreatePhysics();
2372 }
2373
2375 {
2377 return;
2378
2379 super.EEHealthLevelChanged(oldLevel,newLevel,zone);
2380
2382 return;
2383
2385 string part_name = zone;
2387
2389 {
2390 ConstructionPart construction_part = construction.GetConstructionPart( part_name );
2391
2392 if ( construction_part && construction.IsPartConstructed( part_name ) )
2393 {
2395 construction.DestroyConnectedParts(part_name);
2396 }
2397
2398
2399 if ( part_name.
Contains(
"barbed") )
2400 {
2401 BarbedWire barbed_wire = BarbedWire.Cast( FindAttachmentBySlotName( zone ) );
2402 if (barbed_wire)
2403 barbed_wire.SetMountedState( false );
2404 }
2405 }
2406 }
2407
2409 {
2411 {
2413 }
2414
2415 super.EEOnAfterLoad();
2416 }
2417
2419 {
2420 super.EEInit();
2421
2422
2424
2425
2426 #ifdef DEVELOPER
2428 #endif
2429 }
2430
2432 {
2433 super.EEItemAttached( item, slot_name );
2434
2438 }
2439
2441 {
2442 super.EEItemDetached( item, slot_name );
2443
2446 }
2447
2448 protected void OnSetSlotLock(
int slotId,
bool locked,
bool was_locked )
2449 {
2452
2455 }
2456
2457
2459 {
2460 return true;
2461 }
2462
2463
2464
2466 {
2468
2469
2470 if (construtionPart.
IsBase())
2471 {
2473
2474
2476 }
2477
2478
2480
2481
2483
2484
2486
2488
2490
2491
2493
2494
2496 }
2497
2499 {
2500
2502 }
2503
2504
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
2544
2545 void OnPartDestroyedServer(Man player,
string part_name,
int action_id,
bool destroyed_by_connected_part =
false)
2546 {
2549
2550
2552
2553
2555
2556
2558
2559
2561
2563
2564
2566
2567
2569
2570
2571 if (construtionPart.
IsBase())
2572 {
2573
2575 }
2576 }
2577
2579 {
2580
2582 }
2583
2586 {
2587 bool process = false;
2588
2589
2593
2594 if (process)
2595 {
2596 if (!MemoryPointExists(part.
m_PartName +
"_min") || !MemoryPointExists(part.
m_PartName +
"_max"))
2597 {
2599 return;
2600 }
2601
2603 mins = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_min"));
2604 maxs = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_max"));
2605
2606
2608 minTmp[0] =
Math.
Min(mins[0],maxs[0]);
2609 maxTmp[0] =
Math.
Max(mins[0],maxs[0]);
2610 minTmp[1] =
Math.
Min(mins[1],maxs[1]);
2611 maxTmp[1] =
Math.
Max(mins[1],maxs[1]);
2612 minTmp[2] =
Math.
Min(mins[2],maxs[2]);
2613 maxTmp[2] =
Math.
Max(mins[2],maxs[2]);
2614 mins = minTmp;
2615 maxs = maxTmp;
2616
2617 maxs[1] = maxs[1] + 0.35;
2618
2620 }
2621 }
2622
2625 {
2628
2629
2631 foreach (
EntityAI entity : foundEntities)
2632 {
2635 }
2636 }
2637
2638
2640 {
2642
2646 }
2647
2649 {
2651
2653 {
2655 }
2656 else
2657 {
2659 }
2660
2662 }
2663
2665 {
2667
2669 foreach (
string slotName : attachmentSlots)
2670 {
2672 }
2673
2674
2677 else
2679
2681 }
2682
2684 {
2685 string slotNameMounted = slot_name + "_Mounted";
2686 EntityAI attachment = FindAttachmentBySlotName(slot_name);
2687
2688 if (attachment)
2689 {
2690 BarbedWire barbedWire = BarbedWire.Cast(attachment);
2691 if (barbedWire && barbedWire.IsMounted())
2693 else
2695
2696 if (is_locked)
2697 {
2698 SetAnimationPhase(slotNameMounted, 0);
2699 SetAnimationPhase(slot_name, 1);
2700 }
2701 else
2702 {
2703 SetAnimationPhase(slotNameMounted, 1);
2704 SetAnimationPhase(slot_name, 0);
2705 }
2706 }
2707 else
2708 {
2709 SetAnimationPhase(slotNameMounted, 1);
2710 SetAnimationPhase(slot_name, 1);
2711
2713 }
2714 }
2715
2716
2718 {
2721
2724
2727
2728 foreach (
string slotName : attachmentSlots)
2729 {
2731 }
2732
2733
2735 {
2738
2740 }
2741 else
2742 {
2745
2747 }
2748
2751 }
2752
2754 {
2755
2757 return;
2758
2759 string slot_name_mounted = slot_name + "_Mounted";
2760 EntityAI attachment = FindAttachmentBySlotName( slot_name );
2761
2762
2764 RemoveProxyPhysics( slot_name_mounted );
2765 RemoveProxyPhysics( slot_name );
2766
2767 if ( attachment )
2768 {
2770 if ( is_locked )
2771 {
2773 AddProxyPhysics( slot_name_mounted );
2774 }
2775 else
2776 {
2778 AddProxyPhysics( slot_name );
2779 }
2780 }
2781 }
2782
2784 {
2785 SetAffectPathgraph( true, false );
2787 }
2788
2790 {
2791 return true;
2792 }
2793
2795 {
2796 return true;
2797 }
2798
2800 {
2801 if ( attachment )
2802 {
2804 attachment.GetInventory().GetCurrentInventoryLocation( inventory_location );
2805
2806 return GetInventory().GetSlotLock( inventory_location.
GetSlot() );
2807 }
2808
2809 return false;
2810 }
2811
2813 {
2815 }
2816
2817
2819 {
2820 string config_path = "CfgVehicles" + " " + entity.GetType() + " " + "attachments";
2821 if (
GetGame().ConfigIsExisting( config_path ) )
2822 {
2824 }
2825 }
2826
2828 {
2829 return true;
2830 }
2831
2833 {
2834 return true;
2835 }
2836
2838 {
2839 return true;
2840 }
2841
2842
2844 {
2846 {
2848 }
2849
2851 }
2852
2854 {
2856 }
2857
2858
2859
2861 {
2862 return super.CanReceiveAttachment(attachment, slotId);
2863 }
2864
2866 {
2867 int attachment_count = GetInventory().AttachmentCount();
2868 if ( attachment_count > 0 )
2869 {
2870 if (
HasBase() && attachment_count == 1 )
2871 {
2872 return false;
2873 }
2874
2875 return true;
2876 }
2877
2878 return false;
2879 }
2880
2882 {
2883 return true;
2884 }
2885
2887 {
2888 return false;
2889 }
2890
2891
2893 {
2894 return false;
2895 }
2896
2898 {
2899 return false;
2900 }
2901
2902
2904 {
2905 return false;
2906 }
2907
2908
2909
2911 {
2912 return true;
2913 }
2914
2916 {
2917 return true;
2918 }
2919
2922 {
2923 return false;
2924 }
2925
2926
2928 {
2929 return true;
2930 }
2931
2932
2934 {
2935 return false;
2936 }
2937
2938
2940 {
2941 return true;
2942 }
2943
2944
2946 {
2947 if (
HasBase() || GetInventory().AttachmentCount() > 0 )
2948 {
2949 return false;
2950 }
2951
2952 return true;
2953 }
2954
2956 {
2959
2960 return item;
2961 }
2962
2963
2965 {
2967 {
2968
2970
2971
2974
2976 if ( MemoryPointExists( slot_name + "_min" ) )
2977 {
2978 min_max[0] = GetMemoryPointPos( slot_name + "_min" );
2979 }
2980 if ( MemoryPointExists( slot_name + "_max" ) )
2981 {
2982 min_max[1] = GetMemoryPointPos( slot_name + "_max" );
2983 }
2984
2985
2988
2989
2992 center = ModelToWorld( center );
2993
2994
2997
2998 areaDamage.SetExtents( extents[0], extents[1] );
2999 areaDamage.SetAreaPosition( center );
3000 areaDamage.SetAreaOrientation( orientation );
3003 areaDamage.SetHitZones( { "Torso","LeftHand","LeftLeg","LeftFoot","RightHand","RightLeg","RightFoot" } );
3004 areaDamage.SetAmmoName( "BarbedWireHit" );
3005 areaDamage.Spawn();
3006
3008 }
3009 }
3010
3012 {
3013 if ( angle_deg != 0 )
3014 {
3015
3016 orientation[0] = orientation[0] - angle_deg;
3017
3018
3020 if ( MemoryPointExists( "rotate_axis" ) )
3021 {
3022 rotate_axis = ModelToWorld( GetMemoryPointPos( "rotate_axis" ) );
3023 }
3024 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];
3025 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];
3026 center[0] = r_center_x;
3027 center[2] = r_center_z;
3028 }
3029 }
3030
3032 {
3034 {
3037 {
3038 if (areaDamage)
3039 {
3040 areaDamage.Destroy();
3041 }
3042
3044 }
3045 }
3046 }
3047
3049 {
3050 return true;
3051 }
3052
3053
3054
3055
3057 {
3059 }
3060
3062 {
3064 }
3065
3067 {
3069 }
3070
3072 {
3074
3075 switch ( material_type )
3076 {
3082 }
3083
3084 return "";
3085 }
3086
3088 {
3090
3091 switch ( material_type )
3092 {
3098 }
3099
3100 return "";
3101 }
3102
3103
3105 {
3107 {
3108
3110 {
3111 SetHealth(slot_name,"Health",item.GetHealth());
3112 }
3113 }
3114 }
3115
3117 {
3118 return 111;
3119 }
3120
3122 {
3123 super.SetActions();
3124
3128 }
3129
3130
3131
3132
3134 {
3135 }
3136
3139 {
3140 return null;
3141 }
3142
3144 {
3146 }
3147
3149 {
3152
3153 Man p;
3154
3155 #ifdef SERVER
3158 if (players.Count())
3159 p = players[0];
3160 #else
3162 #endif
3163
3165 {
3166 bool excluded = false;
3168 if (excludes)
3169 {
3170 foreach (string exclude : excludes)
3171 {
3173 {
3174 excluded = true;
3175 break;
3176 }
3177 }
3178 }
3179
3180 if (!excluded)
3181 {
3183 }
3184 }
3185
3187 }
3188}
3189
3191{
3192#ifdef BSB_DEBUG
3194#else
3195
3196#endif
3197}
3199{
3200#ifdef BSB_DEBUG_SPAM
3202#else
3203
3204#endif
3205}
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.