1931{
1933
1935
1937
1939
1945
1946
1947
1953
1959
1961
1965
1966
1968 {
1970
1971
1972 RegisterNetSyncVariableInt( "m_SyncParts01" );
1973 RegisterNetSyncVariableInt( "m_SyncParts02" );
1974 RegisterNetSyncVariableInt( "m_SyncParts03" );
1975 RegisterNetSyncVariableInt( "m_InteractedPartId" );
1976 RegisterNetSyncVariableInt( "m_PerformedActionId" );
1977 RegisterNetSyncVariableBool( "m_HasBase" );
1978
1979
1981
1982 if (ConfigIsExisting("hybridAttachments"))
1983 {
1986 }
1987 if (ConfigIsExisting("mountables"))
1988 {
1991 }
1992
1994 }
1995
1997 {
1998 super.EEDelete(parent);
1999
2001 {
2002 areaDamage.Destroy();
2003 }
2004
2005 }
2006
2008 {
2009 return "disableBaseDamage";
2010 }
2011
2013 {
2014 return true;
2015 }
2016
2018 {
2019 return EInventoryIconVisibility.HIDE_VICINITY;
2020 }
2021
2023 {
2024 super.InitItemSounds();
2025
2029
2034 }
2035
2037 {
2038 return "putDown_FenceKit_SoundSet";
2039 }
2040
2042 {
2043 return "Shelter_Site_Build_Loop_SoundSet";
2044 }
2045
2046
2048 {
2050 {
2051 SetSynchDirty();
2052 }
2053 }
2054
2056 {
2058 super.OnVariablesSynchronized();
2059
2061 }
2062
2064 {
2065
2067
2068
2070
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 else if ( part_id >= 32 && part_id <= 62 )
2090 {
2091 offset = ( part_id % 32 );
2092 mask = 1 << offset;
2093
2095 }
2096 else if ( part_id >= 63 && part_id <= 93 )
2097 {
2098 offset = ( part_id % 63 );
2099 mask = 1 << offset;
2100
2102 }
2103 }
2104
2106 {
2107
2108 int offset;
2109 int mask;
2110
2111 if ( part_id >= 1 && part_id <= 31 )
2112 {
2113 offset = part_id - 1;
2114 mask = 1 << offset;
2115
2117 }
2118 else if ( part_id >= 32 && part_id <= 62 )
2119 {
2120 offset = ( part_id % 32 );
2121 mask = 1 << offset;
2122
2124 }
2125 else if ( part_id >= 63 && part_id <= 93 )
2126 {
2127 offset = ( part_id % 63 );
2128 mask = 1 << offset;
2129
2131 }
2132 }
2133
2135 {
2136
2137 int offset;
2138 int mask;
2139
2140 if ( part_id >= 1 && part_id <= 31 )
2141 {
2142 offset = part_id - 1;
2143 mask = 1 << offset;
2144
2146 {
2147 return true;
2148 }
2149 }
2150 else if ( part_id >= 32 && part_id <= 62 )
2151 {
2152 offset = ( part_id % 32 );
2153 mask = 1 << offset;
2154
2156 {
2157 return true;
2158 }
2159 }
2160 else if ( part_id >= 63 && part_id <= 93 )
2161 {
2162 offset = ( part_id % 63 );
2163 mask = 1 << offset;
2164
2166 {
2167 return true;
2168 }
2169 }
2170
2171 return false;
2172 }
2173
2175 {
2178 }
2179
2181 {
2182
2185 }
2186
2188 {
2190 {
2193
2194 switch( build_action_id )
2195 {
2199 }
2200 }
2201 }
2202
2203
2205 {
2207 bool is_base = part.
IsBase();
2210 if ( is_part_built_sync )
2211 {
2213 {
2217
2218 if (is_base)
2219 {
2222 }
2223 }
2224 }
2225 else
2226 {
2228 {
2232
2233 if (is_base)
2234 {
2237 }
2238 }
2239 }
2240
2241
2243 }
2244
2245
2247 {
2250
2251 for ( int i = 0; i < construction_parts.Count(); ++i )
2252 {
2253 string key = construction_parts.GetKey( i );
2256 }
2257
2258
2260 }
2261
2263 {
2266
2267 for ( int i = 0; i < construction_parts.Count(); ++i )
2268 {
2269 string key = construction_parts.GetKey( i );
2271
2272 if ( value.
GetId() ==
id )
2273 {
2274 return value;
2275 }
2276 }
2277
2278 return NULL;
2279 }
2280
2281
2282
2284 {
2286 }
2287
2289 {
2291 }
2292
2294 {
2295 return true;
2296 }
2297
2299 {
2300 return false;
2301 }
2302
2303
2305 {
2308 {
2310 }
2311
2312 return construction_kit;
2313 }
2314
2316 {
2319 {
2321 }
2322 }
2323
2325 {
2327 }
2328
2330 {
2331 return "";
2332 }
2333
2335 {
2338 }
2339
2340
2342 {
2345 }
2346
2347
2349 {
2350 super.OnStoreSave( ctx );
2351
2352
2356
2358 }
2359
2361 {
2362 if ( !super.OnStoreLoad( ctx, version ) )
2363 return false;
2364
2365
2366
2368 {
2370 return false;
2371 }
2373 {
2375 return false;
2376 }
2378 {
2380 return false;
2381 }
2382
2383
2385 {
2387 return false;
2388 }
2389
2390
2391 return true;
2392 }
2393
2395 {
2396 super.AfterStoreLoad();
2397
2399 {
2401 }
2402 }
2403
2405 {
2406
2408
2409
2412
2413
2415 }
2416
2418 {
2419 super.OnCreatePhysics();
2422 }
2423
2425 {
2427 return;
2428
2429 super.EEHealthLevelChanged(oldLevel,newLevel,zone);
2430
2432 return;
2433
2435 string part_name = zone;
2437
2439 {
2440 ConstructionPart construction_part = construction.GetConstructionPart( part_name );
2441
2442 if ( construction_part && construction.IsPartConstructed( part_name ) )
2443 {
2445 construction.DestroyConnectedParts(part_name);
2446 }
2447
2448
2449 if ( part_name.
Contains(
"barbed") )
2450 {
2451 BarbedWire barbed_wire = BarbedWire.Cast( FindAttachmentBySlotName( zone ) );
2452 if (barbed_wire)
2453 barbed_wire.SetMountedState( false );
2454 }
2455 }
2456 }
2457
2459 {
2461 {
2463 }
2464
2465 super.EEOnAfterLoad();
2466 }
2467
2469 {
2470 super.EEInit();
2471
2472
2474
2475
2476 #ifdef DEVELOPER
2478 #endif
2479 }
2480
2482 {
2483 super.EEItemAttached( item, slot_name );
2484
2488 }
2489
2491 {
2492 super.EEItemDetached( item, slot_name );
2493
2496 }
2497
2498 protected void OnSetSlotLock(
int slotId,
bool locked,
bool was_locked )
2499 {
2502
2505 }
2506
2507
2509 {
2510 return true;
2511 }
2512
2513
2514
2516 {
2518
2519
2520 if (construtionPart.
IsBase())
2521 {
2523
2524
2526 }
2527
2528
2530
2531
2533
2534
2536
2538
2540
2541
2543
2544
2546 }
2547
2549 {
2550
2552 }
2553
2554
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
2594
2595 void OnPartDestroyedServer(Man player,
string part_name,
int action_id,
bool destroyed_by_connected_part =
false)
2596 {
2599
2600
2602
2603
2605
2606
2608
2609
2611
2613
2614
2616
2617
2619
2620
2621 if (construtionPart.
IsBase())
2622 {
2623
2625 }
2626 }
2627
2629 {
2630
2632 }
2633
2636 {
2637 bool process = false;
2638
2639
2643
2644 if (process)
2645 {
2646 if (!MemoryPointExists(part.
m_PartName +
"_min") || !MemoryPointExists(part.
m_PartName +
"_max"))
2647 {
2649 return;
2650 }
2651
2653 mins = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_min"));
2654 maxs = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_max"));
2655
2656
2658 minTmp[0] =
Math.
Min(mins[0],maxs[0]);
2659 maxTmp[0] =
Math.
Max(mins[0],maxs[0]);
2660 minTmp[1] =
Math.
Min(mins[1],maxs[1]);
2661 maxTmp[1] =
Math.
Max(mins[1],maxs[1]);
2662 minTmp[2] =
Math.
Min(mins[2],maxs[2]);
2663 maxTmp[2] =
Math.
Max(mins[2],maxs[2]);
2664 mins = minTmp;
2665 maxs = maxTmp;
2666
2667 maxs[1] = maxs[1] + 0.35;
2668
2670 }
2671 }
2672
2675 {
2678
2679
2681 foreach (
EntityAI entity : foundEntities)
2682 {
2685 }
2686 }
2687
2688
2690 {
2692
2696 }
2697
2699 {
2701
2703 {
2705 }
2706 else
2707 {
2709 }
2710
2712 }
2713
2715 {
2717
2719 foreach (
string slotName : attachmentSlots)
2720 {
2722 }
2723
2724
2727 else
2729
2731 }
2732
2734 {
2735 string slotNameMounted = slot_name + "_Mounted";
2736 EntityAI attachment = FindAttachmentBySlotName(slot_name);
2737
2738 if (attachment)
2739 {
2740 BarbedWire barbedWire = BarbedWire.Cast(attachment);
2741 if (barbedWire && barbedWire.IsMounted())
2743 else
2745
2746 if (is_locked)
2747 {
2748 SetAnimationPhase(slotNameMounted, 0);
2749 SetAnimationPhase(slot_name, 1);
2750 }
2751 else
2752 {
2753 SetAnimationPhase(slotNameMounted, 1);
2754 SetAnimationPhase(slot_name, 0);
2755 }
2756 }
2757 else
2758 {
2759 SetAnimationPhase(slotNameMounted, 1);
2760 SetAnimationPhase(slot_name, 1);
2761
2763 }
2764 }
2765
2766
2768 {
2771
2774
2777
2778 foreach (
string slotName : attachmentSlots)
2779 {
2781 }
2782
2783
2785 {
2788
2790 }
2791 else
2792 {
2795
2797 }
2798
2801 }
2802
2804 {
2805
2807 return;
2808
2809 string slot_name_mounted = slot_name + "_Mounted";
2810 EntityAI attachment = FindAttachmentBySlotName( slot_name );
2811
2812
2814 RemoveProxyPhysics( slot_name_mounted );
2815 RemoveProxyPhysics( slot_name );
2816
2817 if ( attachment )
2818 {
2820 if ( is_locked )
2821 {
2823 AddProxyPhysics( slot_name_mounted );
2824 }
2825 else
2826 {
2828 AddProxyPhysics( slot_name );
2829 }
2830 }
2831 }
2832
2834 {
2835 SetAffectPathgraph( true, false );
2837 }
2838
2840 {
2841 return true;
2842 }
2843
2845 {
2846 return true;
2847 }
2848
2850 {
2851 if ( attachment )
2852 {
2854 attachment.GetInventory().GetCurrentInventoryLocation( inventory_location );
2855
2856 return GetInventory().GetSlotLock( inventory_location.
GetSlot() );
2857 }
2858
2859 return false;
2860 }
2861
2863 {
2865 }
2866
2867
2869 {
2870 string config_path = "CfgVehicles" + " " + entity.GetType() + " " + "attachments";
2871 if (
GetGame().ConfigIsExisting( config_path ) )
2872 {
2874 }
2875 }
2876
2878 {
2879 return true;
2880 }
2881
2883 {
2884 return true;
2885 }
2886
2888 {
2889 return true;
2890 }
2891
2892
2894 {
2896 {
2898 }
2899
2901 }
2902
2904 {
2906 }
2907
2908
2909
2911 {
2912 return super.CanReceiveAttachment(attachment, slotId);
2913 }
2914
2916 {
2917 int attachment_count = GetInventory().AttachmentCount();
2918 if ( attachment_count > 0 )
2919 {
2920 if (
HasBase() && attachment_count == 1 )
2921 {
2922 return false;
2923 }
2924
2925 return true;
2926 }
2927
2928 return false;
2929 }
2930
2932 {
2933 return true;
2934 }
2935
2937 {
2938 return false;
2939 }
2940
2941
2943 {
2944 return false;
2945 }
2946
2948 {
2949 return false;
2950 }
2951
2952
2954 {
2955 return false;
2956 }
2957
2958
2959
2961 {
2962 return true;
2963 }
2964
2966 {
2967 return true;
2968 }
2969
2972 {
2973 return false;
2974 }
2975
2976
2978 {
2979 return true;
2980 }
2981
2982
2984 {
2985 return false;
2986 }
2987
2988
2990 {
2991 return true;
2992 }
2993
2994
2996 {
2997 if (
HasBase() || GetInventory().AttachmentCount() > 0 )
2998 {
2999 return false;
3000 }
3001
3002 return true;
3003 }
3004
3006 {
3009
3010 return item;
3011 }
3012
3013
3015 {
3017 {
3018
3020
3021
3024
3026 if ( MemoryPointExists( slot_name + "_min" ) )
3027 {
3028 min_max[0] = GetMemoryPointPos( slot_name + "_min" );
3029 }
3030 if ( MemoryPointExists( slot_name + "_max" ) )
3031 {
3032 min_max[1] = GetMemoryPointPos( slot_name + "_max" );
3033 }
3034
3035
3038
3039
3042 center = ModelToWorld( center );
3043
3044
3047
3048 areaDamage.SetExtents( extents[0], extents[1] );
3049 areaDamage.SetAreaPosition( center );
3050 areaDamage.SetAreaOrientation( orientation );
3053 areaDamage.SetHitZones( { "Torso","LeftHand","LeftLeg","LeftFoot","RightHand","RightLeg","RightFoot" } );
3054 areaDamage.SetAmmoName( "BarbedWireHit" );
3055 areaDamage.Spawn();
3056
3058 }
3059 }
3060
3062 {
3063 if ( angle_deg != 0 )
3064 {
3065
3066 orientation[0] = orientation[0] - angle_deg;
3067
3068
3070 if ( MemoryPointExists( "rotate_axis" ) )
3071 {
3072 rotate_axis = ModelToWorld( GetMemoryPointPos( "rotate_axis" ) );
3073 }
3074 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];
3075 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];
3076 center[0] = r_center_x;
3077 center[2] = r_center_z;
3078 }
3079 }
3080
3082 {
3084 {
3087 {
3088 if (areaDamage)
3089 {
3090 areaDamage.Destroy();
3091 }
3092
3094 }
3095 }
3096 }
3097
3099 {
3100 return true;
3101 }
3102
3103
3104
3105
3107 {
3109 }
3110
3112 {
3114 }
3115
3117 {
3119 }
3120
3122 {
3124
3125 switch ( material_type )
3126 {
3132 }
3133
3134 return "";
3135 }
3136
3138 {
3140
3141 switch ( material_type )
3142 {
3148 }
3149
3150 return "";
3151 }
3152
3153
3155 {
3157 {
3158
3160 {
3161 SetHealth(slot_name,"Health",item.GetHealth());
3162 }
3163 }
3164 }
3165
3167 {
3168 return 111;
3169 }
3170
3172 {
3173 super.SetActions();
3174
3178 }
3179
3180
3181
3182
3184 {
3185 }
3186
3189 {
3190 return null;
3191 }
3192
3194 {
3196 }
3197
3199 {
3202
3203 Man p;
3204
3205 #ifdef SERVER
3208 if (players.Count())
3209 p = players[0];
3210 #else
3212 #endif
3213
3215 {
3216 bool excluded = false;
3218 if (excludes)
3219 {
3220 foreach (string exclude : excludes)
3221 {
3223 {
3224 excluded = true;
3225 break;
3226 }
3227 }
3228 }
3229
3230 if (!excluded)
3231 {
3233 }
3234 }
3235
3237 }
3238}
3239
3241{
3242#ifdef BSB_DEBUG
3244#else
3245
3246#endif
3247}
3249{
3250#ifdef BSB_DEBUG_SPAM
3252#else
3253
3254#endif
3255}
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.