1891{
1893
1895
1897
1899
1905
1906
1907
1913
1919
1921
1925
1926
1928 {
1930
1931
1932 RegisterNetSyncVariableInt( "m_SyncParts01" );
1933 RegisterNetSyncVariableInt( "m_SyncParts02" );
1934 RegisterNetSyncVariableInt( "m_SyncParts03" );
1935 RegisterNetSyncVariableInt( "m_InteractedPartId" );
1936 RegisterNetSyncVariableInt( "m_PerformedActionId" );
1937 RegisterNetSyncVariableBool( "m_HasBase" );
1938
1939
1941
1942 if (ConfigIsExisting("hybridAttachments"))
1943 {
1946 }
1947 if (ConfigIsExisting("mountables"))
1948 {
1951 }
1952
1954 }
1955
1957 {
1958 super.EEDelete(parent);
1959
1961 {
1962 areaDamage.Destroy();
1963 }
1964
1965 }
1966
1968 {
1969 return "disableBaseDamage";
1970 }
1971
1973 {
1974 return true;
1975 }
1976
1978 {
1979 return EInventoryIconVisibility.HIDE_VICINITY;
1980 }
1981
1983 {
1984 super.InitItemSounds();
1985
1989
1994 }
1995
1997 {
1998 return "putDown_FenceKit_SoundSet";
1999 }
2000
2002 {
2003 return "Shelter_Site_Build_Loop_SoundSet";
2004 }
2005
2006
2008 {
2010 {
2011 SetSynchDirty();
2012 }
2013 }
2014
2016 {
2018 super.OnVariablesSynchronized();
2019
2021 }
2022
2024 {
2025
2027
2028
2030
2031
2033 }
2034
2035
2037 {
2038
2039 int offset;
2040 int mask;
2041
2042 if ( part_id >= 1 && part_id <= 31 )
2043 {
2044 offset = part_id - 1;
2045 mask = 1 << offset;
2046
2048 }
2049 else if ( part_id >= 32 && part_id <= 62 )
2050 {
2051 offset = ( part_id % 32 );
2052 mask = 1 << offset;
2053
2055 }
2056 else if ( part_id >= 63 && part_id <= 93 )
2057 {
2058 offset = ( part_id % 63 );
2059 mask = 1 << offset;
2060
2062 }
2063 }
2064
2066 {
2067
2068 int offset;
2069 int mask;
2070
2071 if ( part_id >= 1 && part_id <= 31 )
2072 {
2073 offset = part_id - 1;
2074 mask = 1 << offset;
2075
2077 }
2078 else if ( part_id >= 32 && part_id <= 62 )
2079 {
2080 offset = ( part_id % 32 );
2081 mask = 1 << offset;
2082
2084 }
2085 else if ( part_id >= 63 && part_id <= 93 )
2086 {
2087 offset = ( part_id % 63 );
2088 mask = 1 << offset;
2089
2091 }
2092 }
2093
2095 {
2096
2097 int offset;
2098 int mask;
2099
2100 if ( part_id >= 1 && part_id <= 31 )
2101 {
2102 offset = part_id - 1;
2103 mask = 1 << offset;
2104
2106 {
2107 return true;
2108 }
2109 }
2110 else if ( part_id >= 32 && part_id <= 62 )
2111 {
2112 offset = ( part_id % 32 );
2113 mask = 1 << offset;
2114
2116 {
2117 return true;
2118 }
2119 }
2120 else if ( part_id >= 63 && part_id <= 93 )
2121 {
2122 offset = ( part_id % 63 );
2123 mask = 1 << offset;
2124
2126 {
2127 return true;
2128 }
2129 }
2130
2131 return false;
2132 }
2133
2135 {
2138 }
2139
2141 {
2142
2145 }
2146
2148 {
2150 {
2153
2154 switch( build_action_id )
2155 {
2159 }
2160 }
2161 }
2162
2163
2165 {
2167 bool is_base = part.
IsBase();
2170 if ( is_part_built_sync )
2171 {
2173 {
2177
2178 if (is_base)
2179 {
2182 }
2183 }
2184 }
2185 else
2186 {
2188 {
2192
2193 if (is_base)
2194 {
2197 }
2198 }
2199 }
2200
2201
2203 }
2204
2205
2207 {
2210
2211 for ( int i = 0; i < construction_parts.Count(); ++i )
2212 {
2213 string key = construction_parts.GetKey( i );
2216 }
2217
2218
2220 }
2221
2223 {
2226
2227 for ( int i = 0; i < construction_parts.Count(); ++i )
2228 {
2229 string key = construction_parts.GetKey( i );
2231
2232 if ( value.
GetId() ==
id )
2233 {
2234 return value;
2235 }
2236 }
2237
2238 return NULL;
2239 }
2240
2241
2242
2244 {
2246 }
2247
2249 {
2251 }
2252
2254 {
2255 return true;
2256 }
2257
2259 {
2260 return false;
2261 }
2262
2263
2265 {
2268 {
2270 }
2271
2272 return construction_kit;
2273 }
2274
2276 {
2279 {
2281 }
2282 }
2283
2285 {
2287 }
2288
2290 {
2291 return "";
2292 }
2293
2295 {
2298 }
2299
2300
2302 {
2305 }
2306
2307
2309 {
2310 super.OnStoreSave( ctx );
2311
2312
2316
2318 }
2319
2321 {
2322 if ( !super.OnStoreLoad( ctx, version ) )
2323 return false;
2324
2325
2326
2328 {
2330 return false;
2331 }
2333 {
2335 return false;
2336 }
2338 {
2340 return false;
2341 }
2342
2343
2345 {
2347 return false;
2348 }
2349
2350
2351 return true;
2352 }
2353
2355 {
2356 super.AfterStoreLoad();
2357
2359 {
2361 }
2362 }
2363
2365 {
2366
2368
2369
2372
2373
2375 }
2376
2378 {
2379 super.OnCreatePhysics();
2382 }
2383
2385 {
2387 return;
2388
2389 super.EEHealthLevelChanged(oldLevel,newLevel,zone);
2390
2392 return;
2393
2395 string part_name = zone;
2397
2399 {
2400 ConstructionPart construction_part = construction.GetConstructionPart( part_name );
2401
2402 if ( construction_part && construction.IsPartConstructed( part_name ) )
2403 {
2405 construction.DestroyConnectedParts(part_name);
2406 }
2407
2408
2409 if ( part_name.
Contains(
"barbed") )
2410 {
2411 BarbedWire barbed_wire = BarbedWire.Cast( FindAttachmentBySlotName( zone ) );
2412 if (barbed_wire)
2413 barbed_wire.SetMountedState( false );
2414 }
2415 }
2416 }
2417
2419 {
2421 {
2423 }
2424
2425 super.EEOnAfterLoad();
2426 }
2427
2429 {
2430 super.EEInit();
2431
2432
2434
2435
2436 #ifdef DEVELOPER
2438 #endif
2439 }
2440
2442 {
2443 super.EEItemAttached( item, slot_name );
2444
2448 }
2449
2451 {
2452 super.EEItemDetached( item, slot_name );
2453
2456 }
2457
2458 protected void OnSetSlotLock(
int slotId,
bool locked,
bool was_locked )
2459 {
2462
2465 }
2466
2467
2469 {
2470 return true;
2471 }
2472
2473
2474
2476 {
2478
2479
2480 if (construtionPart.
IsBase())
2481 {
2483
2484
2486 }
2487
2488
2490
2491
2493
2494
2496
2498
2500
2501
2503
2504
2506 }
2507
2509 {
2510
2512 }
2513
2514
2516 {
2519
2520
2522
2523
2525
2526
2528
2529
2531
2533
2534
2536
2537
2539
2540
2541 if (construtionPart.
IsBase())
2542 {
2543
2545 }
2546 }
2547
2549 {
2550
2552 }
2553
2554
2555 void OnPartDestroyedServer(Man player,
string part_name,
int action_id,
bool destroyed_by_connected_part =
false)
2556 {
2559
2560
2562
2563
2565
2566
2568
2569
2571
2573
2574
2576
2577
2579
2580
2581 if (construtionPart.
IsBase())
2582 {
2583
2585 }
2586 }
2587
2589 {
2590
2592 }
2593
2596 {
2597 bool process = false;
2598
2599
2603
2604 if (process)
2605 {
2606 if (!MemoryPointExists(part.
m_PartName +
"_min") || !MemoryPointExists(part.
m_PartName +
"_max"))
2607 {
2609 return;
2610 }
2611
2613 mins = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_min"));
2614 maxs = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_max"));
2615
2616
2618 minTmp[0] =
Math.
Min(mins[0],maxs[0]);
2619 maxTmp[0] =
Math.
Max(mins[0],maxs[0]);
2620 minTmp[1] =
Math.
Min(mins[1],maxs[1]);
2621 maxTmp[1] =
Math.
Max(mins[1],maxs[1]);
2622 minTmp[2] =
Math.
Min(mins[2],maxs[2]);
2623 maxTmp[2] =
Math.
Max(mins[2],maxs[2]);
2624 mins = minTmp;
2625 maxs = maxTmp;
2626
2627 maxs[1] = maxs[1] + 0.35;
2628
2630 }
2631 }
2632
2635 {
2638
2639
2641 foreach (
EntityAI entity : foundEntities)
2642 {
2645 }
2646 }
2647
2648
2650 {
2652
2656 }
2657
2659 {
2661
2663 {
2665 }
2666 else
2667 {
2669 }
2670
2672 }
2673
2675 {
2677
2679 foreach (
string slotName : attachmentSlots)
2680 {
2682 }
2683
2684
2687 else
2689
2691 }
2692
2694 {
2695 string slotNameMounted = slot_name + "_Mounted";
2696 EntityAI attachment = FindAttachmentBySlotName(slot_name);
2697
2698 if (attachment)
2699 {
2700 BarbedWire barbedWire = BarbedWire.Cast(attachment);
2701 if (barbedWire && barbedWire.IsMounted())
2703 else
2705
2706 if (is_locked)
2707 {
2708 SetAnimationPhase(slotNameMounted, 0);
2709 SetAnimationPhase(slot_name, 1);
2710 }
2711 else
2712 {
2713 SetAnimationPhase(slotNameMounted, 1);
2714 SetAnimationPhase(slot_name, 0);
2715 }
2716 }
2717 else
2718 {
2719 SetAnimationPhase(slotNameMounted, 1);
2720 SetAnimationPhase(slot_name, 1);
2721
2723 }
2724 }
2725
2726
2728 {
2731
2734
2737
2738 foreach (
string slotName : attachmentSlots)
2739 {
2741 }
2742
2743
2745 {
2748
2750 }
2751 else
2752 {
2755
2757 }
2758
2761 }
2762
2764 {
2765
2767 return;
2768
2769 string slot_name_mounted = slot_name + "_Mounted";
2770 EntityAI attachment = FindAttachmentBySlotName( slot_name );
2771
2772
2774 RemoveProxyPhysics( slot_name_mounted );
2775 RemoveProxyPhysics( slot_name );
2776
2777 if ( attachment )
2778 {
2780 if ( is_locked )
2781 {
2783 AddProxyPhysics( slot_name_mounted );
2784 }
2785 else
2786 {
2788 AddProxyPhysics( slot_name );
2789 }
2790 }
2791 }
2792
2794 {
2795 SetAffectPathgraph( true, false );
2797 }
2798
2800 {
2801 return true;
2802 }
2803
2805 {
2806 return true;
2807 }
2808
2810 {
2811 if ( attachment )
2812 {
2814 attachment.GetInventory().GetCurrentInventoryLocation( inventory_location );
2815
2816 return GetInventory().GetSlotLock( inventory_location.
GetSlot() );
2817 }
2818
2819 return false;
2820 }
2821
2823 {
2825 }
2826
2827
2829 {
2830 string config_path = "CfgVehicles" + " " + entity.GetType() + " " + "attachments";
2831 if (
GetGame().ConfigIsExisting( config_path ) )
2832 {
2834 }
2835 }
2836
2838 {
2839 return true;
2840 }
2841
2843 {
2844 return true;
2845 }
2846
2848 {
2849 return true;
2850 }
2851
2852
2854 {
2856 {
2858 }
2859
2861 }
2862
2864 {
2866 }
2867
2868
2869
2871 {
2872 return super.CanReceiveAttachment(attachment, slotId);
2873 }
2874
2876 {
2877 int attachment_count = GetInventory().AttachmentCount();
2878 if ( attachment_count > 0 )
2879 {
2880 if (
HasBase() && attachment_count == 1 )
2881 {
2882 return false;
2883 }
2884
2885 return true;
2886 }
2887
2888 return false;
2889 }
2890
2892 {
2893 return true;
2894 }
2895
2897 {
2898 return false;
2899 }
2900
2901
2903 {
2904 return false;
2905 }
2906
2908 {
2909 return false;
2910 }
2911
2912
2914 {
2915 return false;
2916 }
2917
2918
2919
2921 {
2922 return true;
2923 }
2924
2926 {
2927 return true;
2928 }
2929
2932 {
2933 return false;
2934 }
2935
2936
2938 {
2939 return true;
2940 }
2941
2942
2944 {
2945 return false;
2946 }
2947
2948
2950 {
2951 return true;
2952 }
2953
2954
2956 {
2957 if (
HasBase() || GetInventory().AttachmentCount() > 0 )
2958 {
2959 return false;
2960 }
2961
2962 return true;
2963 }
2964
2966 {
2969
2970 return item;
2971 }
2972
2973
2975 {
2977 {
2978
2980
2981
2984
2986 if ( MemoryPointExists( slot_name + "_min" ) )
2987 {
2988 min_max[0] = GetMemoryPointPos( slot_name + "_min" );
2989 }
2990 if ( MemoryPointExists( slot_name + "_max" ) )
2991 {
2992 min_max[1] = GetMemoryPointPos( slot_name + "_max" );
2993 }
2994
2995
2998
2999
3002 center = ModelToWorld( center );
3003
3004
3007
3008 areaDamage.SetExtents( extents[0], extents[1] );
3009 areaDamage.SetAreaPosition( center );
3010 areaDamage.SetAreaOrientation( orientation );
3013 areaDamage.SetHitZones( { "Torso","LeftHand","LeftLeg","LeftFoot","RightHand","RightLeg","RightFoot" } );
3014 areaDamage.SetAmmoName( "BarbedWireHit" );
3015 areaDamage.Spawn();
3016
3018 }
3019 }
3020
3022 {
3023 if ( angle_deg != 0 )
3024 {
3025
3026 orientation[0] = orientation[0] - angle_deg;
3027
3028
3030 if ( MemoryPointExists( "rotate_axis" ) )
3031 {
3032 rotate_axis = ModelToWorld( GetMemoryPointPos( "rotate_axis" ) );
3033 }
3034 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];
3035 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];
3036 center[0] = r_center_x;
3037 center[2] = r_center_z;
3038 }
3039 }
3040
3042 {
3044 {
3047 {
3048 if (areaDamage)
3049 {
3050 areaDamage.Destroy();
3051 }
3052
3054 }
3055 }
3056 }
3057
3059 {
3060 return true;
3061 }
3062
3063
3064
3065
3067 {
3069 }
3070
3072 {
3074 }
3075
3077 {
3079 }
3080
3082 {
3084
3085 switch ( material_type )
3086 {
3092 }
3093
3094 return "";
3095 }
3096
3098 {
3100
3101 switch ( material_type )
3102 {
3108 }
3109
3110 return "";
3111 }
3112
3113
3115 {
3117 {
3118
3120 {
3121 SetHealth(slot_name,"Health",item.GetHealth());
3122 }
3123 }
3124 }
3125
3127 {
3128 return 111;
3129 }
3130
3132 {
3133 super.SetActions();
3134
3138 }
3139
3140
3141
3142
3144 {
3145 }
3146
3149 {
3150 return null;
3151 }
3152
3154 {
3156 }
3157
3159 {
3162
3163 Man p;
3164
3165 #ifdef SERVER
3168 if (players.Count())
3169 p = players[0];
3170 #else
3172 #endif
3173
3175 {
3176 bool excluded = false;
3178 if (excludes)
3179 {
3180 foreach (string exclude : excludes)
3181 {
3183 {
3184 excluded = true;
3185 break;
3186 }
3187 }
3188 }
3189
3190 if (!excluded)
3191 {
3193 }
3194 }
3195
3197 }
3198}
3199
3201{
3202#ifdef BSB_DEBUG
3204#else
3205
3206#endif
3207}
3209{
3210#ifdef BSB_DEBUG_SPAM
3212#else
3213
3214#endif
3215}
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.