1898{
1900
1902
1904
1906
1912
1913
1914
1920
1926
1928
1932
1933
1935 {
1937
1938
1939 RegisterNetSyncVariableInt( "m_SyncParts01" );
1940 RegisterNetSyncVariableInt( "m_SyncParts02" );
1941 RegisterNetSyncVariableInt( "m_SyncParts03" );
1942 RegisterNetSyncVariableInt( "m_InteractedPartId" );
1943 RegisterNetSyncVariableInt( "m_PerformedActionId" );
1944 RegisterNetSyncVariableBool( "m_HasBase" );
1945
1946
1948
1949 if (ConfigIsExisting("hybridAttachments"))
1950 {
1953 }
1954 if (ConfigIsExisting("mountables"))
1955 {
1958 }
1959
1961 }
1962
1964 {
1965 super.EEDelete(parent);
1966
1968 {
1969 areaDamage.Destroy();
1970 }
1971
1972 }
1973
1975 {
1976 return "disableBaseDamage";
1977 }
1978
1980 {
1981 return true;
1982 }
1983
1985 {
1986 return EInventoryIconVisibility.HIDE_VICINITY;
1987 }
1988
1990 {
1991 super.InitItemSounds();
1992
1996
2001 }
2002
2004 {
2005 return "putDown_FenceKit_SoundSet";
2006 }
2007
2009 {
2010 return "Shelter_Site_Build_Loop_SoundSet";
2011 }
2012
2013
2015 {
2017 {
2018 SetSynchDirty();
2019 }
2020 }
2021
2023 {
2025 super.OnVariablesSynchronized();
2026
2028 }
2029
2031 {
2032
2034
2035
2037
2038
2040 }
2041
2042
2044 {
2045
2046 int offset;
2047 int mask;
2048
2049 if ( part_id >= 1 && part_id <= 31 )
2050 {
2051 offset = part_id - 1;
2052 mask = 1 << offset;
2053
2055 }
2056 else if ( part_id >= 32 && part_id <= 62 )
2057 {
2058 offset = ( part_id % 32 );
2059 mask = 1 << offset;
2060
2062 }
2063 else if ( part_id >= 63 && part_id <= 93 )
2064 {
2065 offset = ( part_id % 63 );
2066 mask = 1 << offset;
2067
2069 }
2070 }
2071
2073 {
2074
2075 int offset;
2076 int mask;
2077
2078 if ( part_id >= 1 && part_id <= 31 )
2079 {
2080 offset = part_id - 1;
2081 mask = 1 << offset;
2082
2084 }
2085 else if ( part_id >= 32 && part_id <= 62 )
2086 {
2087 offset = ( part_id % 32 );
2088 mask = 1 << offset;
2089
2091 }
2092 else if ( part_id >= 63 && part_id <= 93 )
2093 {
2094 offset = ( part_id % 63 );
2095 mask = 1 << offset;
2096
2098 }
2099 }
2100
2102 {
2103
2104 int offset;
2105 int mask;
2106
2107 if ( part_id >= 1 && part_id <= 31 )
2108 {
2109 offset = part_id - 1;
2110 mask = 1 << offset;
2111
2113 {
2114 return true;
2115 }
2116 }
2117 else if ( part_id >= 32 && part_id <= 62 )
2118 {
2119 offset = ( part_id % 32 );
2120 mask = 1 << offset;
2121
2123 {
2124 return true;
2125 }
2126 }
2127 else if ( part_id >= 63 && part_id <= 93 )
2128 {
2129 offset = ( part_id % 63 );
2130 mask = 1 << offset;
2131
2133 {
2134 return true;
2135 }
2136 }
2137
2138 return false;
2139 }
2140
2142 {
2145 }
2146
2148 {
2149
2152 }
2153
2155 {
2157 {
2160
2161 switch( build_action_id )
2162 {
2166 }
2167 }
2168 }
2169
2170
2172 {
2174 bool is_base = part.
IsBase();
2177 if ( is_part_built_sync )
2178 {
2180 {
2184
2185 if (is_base)
2186 {
2189 }
2190 }
2191 }
2192 else
2193 {
2195 {
2199
2200 if (is_base)
2201 {
2204 }
2205 }
2206 }
2207
2208
2210 }
2211
2212
2214 {
2217
2218 for ( int i = 0; i < construction_parts.Count(); ++i )
2219 {
2220 string key = construction_parts.GetKey( i );
2223 }
2224
2225
2227 }
2228
2230 {
2233
2234 for ( int i = 0; i < construction_parts.Count(); ++i )
2235 {
2236 string key = construction_parts.GetKey( i );
2238
2239 if ( value.
GetId() ==
id )
2240 {
2241 return value;
2242 }
2243 }
2244
2245 return NULL;
2246 }
2247
2248
2249
2251 {
2253 }
2254
2256 {
2258 }
2259
2261 {
2262 return true;
2263 }
2264
2266 {
2267 return false;
2268 }
2269
2270
2272 {
2275 {
2277 }
2278
2279 return construction_kit;
2280 }
2281
2283 {
2286 {
2288 }
2289 }
2290
2292 {
2294 }
2295
2297 {
2298 return "";
2299 }
2300
2302 {
2305 }
2306
2307
2309 {
2312 }
2313
2314
2316 {
2317 super.OnStoreSave( ctx );
2318
2319
2323
2325 }
2326
2328 {
2329 if ( !super.OnStoreLoad( ctx, version ) )
2330 return false;
2331
2332
2333
2335 {
2337 return false;
2338 }
2340 {
2342 return false;
2343 }
2345 {
2347 return false;
2348 }
2349
2350
2352 {
2354 return false;
2355 }
2356
2357
2358 return true;
2359 }
2360
2362 {
2363 super.AfterStoreLoad();
2364
2366 {
2368 }
2369 }
2370
2372 {
2373
2375
2376
2379
2380
2382 }
2383
2385 {
2386 super.OnCreatePhysics();
2389 }
2390
2392 {
2394 return;
2395
2396 super.EEHealthLevelChanged(oldLevel,newLevel,zone);
2397
2399 return;
2400
2402 string part_name = zone;
2404
2406 {
2407 ConstructionPart construction_part = construction.GetConstructionPart( part_name );
2408
2409 if ( construction_part && construction.IsPartConstructed( part_name ) )
2410 {
2412 construction.DestroyConnectedParts(part_name);
2413 }
2414
2415
2416 if ( part_name.
Contains(
"barbed") )
2417 {
2418 BarbedWire barbed_wire = BarbedWire.Cast( FindAttachmentBySlotName( zone ) );
2419 if (barbed_wire)
2420 barbed_wire.SetMountedState( false );
2421 }
2422 }
2423 }
2424
2426 {
2428 {
2430 }
2431
2432 super.EEOnAfterLoad();
2433 }
2434
2436 {
2437 super.EEInit();
2438
2439
2441
2442
2443 #ifdef DEVELOPER
2445 #endif
2446 }
2447
2449 {
2450 super.EEItemAttached( item, slot_name );
2451
2455 }
2456
2458 {
2459 super.EEItemDetached( item, slot_name );
2460
2463 }
2464
2465 protected void OnSetSlotLock(
int slotId,
bool locked,
bool was_locked )
2466 {
2469
2472 }
2473
2474
2476 {
2477 return true;
2478 }
2479
2480
2481
2483 {
2485
2486
2487 if (construtionPart.
IsBase())
2488 {
2490
2491
2493 }
2494
2495
2497
2498
2500
2501
2503
2505
2507
2508
2510
2511
2513 }
2514
2516 {
2517
2519 }
2520
2521
2523 {
2526
2527
2529
2530
2532
2533
2535
2536
2538
2540
2541
2543
2544
2546
2547
2548 if (construtionPart.
IsBase())
2549 {
2550
2552 }
2553 }
2554
2556 {
2557
2559 }
2560
2561
2562 void OnPartDestroyedServer(Man player,
string part_name,
int action_id,
bool destroyed_by_connected_part =
false)
2563 {
2566
2567
2569
2570
2572
2573
2575
2576
2578
2580
2581
2583
2584
2586
2587
2588 if (construtionPart.
IsBase())
2589 {
2590
2592 }
2593 }
2594
2596 {
2597
2599 }
2600
2603 {
2604 bool process = false;
2605
2606
2610
2611 if (process)
2612 {
2613 if (!MemoryPointExists(part.
m_PartName +
"_min") || !MemoryPointExists(part.
m_PartName +
"_max"))
2614 {
2616 return;
2617 }
2618
2620 mins = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_min"));
2621 maxs = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_max"));
2622
2623
2625 minTmp[0] =
Math.
Min(mins[0],maxs[0]);
2626 maxTmp[0] =
Math.
Max(mins[0],maxs[0]);
2627 minTmp[1] =
Math.
Min(mins[1],maxs[1]);
2628 maxTmp[1] =
Math.
Max(mins[1],maxs[1]);
2629 minTmp[2] =
Math.
Min(mins[2],maxs[2]);
2630 maxTmp[2] =
Math.
Max(mins[2],maxs[2]);
2631 mins = minTmp;
2632 maxs = maxTmp;
2633
2634 maxs[1] = maxs[1] + 0.35;
2635
2637 }
2638 }
2639
2642 {
2645
2646
2648 foreach (
EntityAI entity : foundEntities)
2649 {
2652 }
2653 }
2654
2655
2657 {
2659
2663 }
2664
2666 {
2668
2670 {
2672 }
2673 else
2674 {
2676 }
2677
2679 }
2680
2682 {
2684
2686 foreach (
string slotName : attachmentSlots)
2687 {
2689 }
2690
2691
2694 else
2696
2698 }
2699
2701 {
2702 string slotNameMounted = slot_name + "_Mounted";
2703 EntityAI attachment = FindAttachmentBySlotName(slot_name);
2704
2705 if (attachment)
2706 {
2707 BarbedWire barbedWire = BarbedWire.Cast(attachment);
2708 if (barbedWire && barbedWire.IsMounted())
2710 else
2712
2713 if (is_locked)
2714 {
2715 SetAnimationPhase(slotNameMounted, 0);
2716 SetAnimationPhase(slot_name, 1);
2717 }
2718 else
2719 {
2720 SetAnimationPhase(slotNameMounted, 1);
2721 SetAnimationPhase(slot_name, 0);
2722 }
2723 }
2724 else
2725 {
2726 SetAnimationPhase(slotNameMounted, 1);
2727 SetAnimationPhase(slot_name, 1);
2728
2730 }
2731 }
2732
2733
2735 {
2738
2741
2744
2745 foreach (
string slotName : attachmentSlots)
2746 {
2748 }
2749
2750
2752 {
2755
2757 }
2758 else
2759 {
2762
2764 }
2765
2768 }
2769
2771 {
2772
2774 return;
2775
2776 string slot_name_mounted = slot_name + "_Mounted";
2777 EntityAI attachment = FindAttachmentBySlotName( slot_name );
2778
2779
2781 RemoveProxyPhysics( slot_name_mounted );
2782 RemoveProxyPhysics( slot_name );
2783
2784 if ( attachment )
2785 {
2787 if ( is_locked )
2788 {
2790 AddProxyPhysics( slot_name_mounted );
2791 }
2792 else
2793 {
2795 AddProxyPhysics( slot_name );
2796 }
2797 }
2798 }
2799
2801 {
2802 SetAffectPathgraph( true, false );
2804 }
2805
2807 {
2808 return true;
2809 }
2810
2812 {
2813 return true;
2814 }
2815
2817 {
2818 if ( attachment )
2819 {
2821 attachment.GetInventory().GetCurrentInventoryLocation( inventory_location );
2822
2823 return GetInventory().GetSlotLock( inventory_location.
GetSlot() );
2824 }
2825
2826 return false;
2827 }
2828
2830 {
2832 }
2833
2834
2836 {
2837 string config_path = "CfgVehicles" + " " + entity.GetType() + " " + "attachments";
2838 if (
GetGame().ConfigIsExisting( config_path ) )
2839 {
2841 }
2842 }
2843
2845 {
2846 return true;
2847 }
2848
2850 {
2851 return true;
2852 }
2853
2855 {
2856 return true;
2857 }
2858
2859
2861 {
2863 {
2865 }
2866
2868 }
2869
2871 {
2873 }
2874
2875
2876
2878 {
2879 return super.CanReceiveAttachment(attachment, slotId);
2880 }
2881
2883 {
2884 int attachment_count = GetInventory().AttachmentCount();
2885 if ( attachment_count > 0 )
2886 {
2887 if (
HasBase() && attachment_count == 1 )
2888 {
2889 return false;
2890 }
2891
2892 return true;
2893 }
2894
2895 return false;
2896 }
2897
2899 {
2900 return true;
2901 }
2902
2904 {
2905 return false;
2906 }
2907
2908
2910 {
2911 return false;
2912 }
2913
2915 {
2916 return false;
2917 }
2918
2919
2921 {
2922 return false;
2923 }
2924
2925
2926
2928 {
2929 return true;
2930 }
2931
2933 {
2934 return true;
2935 }
2936
2939 {
2940 return false;
2941 }
2942
2943
2945 {
2946 return true;
2947 }
2948
2949
2951 {
2952 return false;
2953 }
2954
2955
2957 {
2958 return true;
2959 }
2960
2961
2963 {
2964 if (
HasBase() || GetInventory().AttachmentCount() > 0 )
2965 {
2966 return false;
2967 }
2968
2969 return true;
2970 }
2971
2973 {
2976
2977 return item;
2978 }
2979
2980
2982 {
2984 {
2985
2987
2988
2991
2993 if ( MemoryPointExists( slot_name + "_min" ) )
2994 {
2995 min_max[0] = GetMemoryPointPos( slot_name + "_min" );
2996 }
2997 if ( MemoryPointExists( slot_name + "_max" ) )
2998 {
2999 min_max[1] = GetMemoryPointPos( slot_name + "_max" );
3000 }
3001
3002
3005
3006
3009 center = ModelToWorld( center );
3010
3011
3014
3015 areaDamage.SetExtents( extents[0], extents[1] );
3016 areaDamage.SetAreaPosition( center );
3017 areaDamage.SetAreaOrientation( orientation );
3020 areaDamage.SetHitZones( { "Torso","LeftHand","LeftLeg","LeftFoot","RightHand","RightLeg","RightFoot" } );
3021 areaDamage.SetAmmoName( "BarbedWireHit" );
3022 areaDamage.Spawn();
3023
3025 }
3026 }
3027
3029 {
3030 if ( angle_deg != 0 )
3031 {
3032
3033 orientation[0] = orientation[0] - angle_deg;
3034
3035
3037 if ( MemoryPointExists( "rotate_axis" ) )
3038 {
3039 rotate_axis = ModelToWorld( GetMemoryPointPos( "rotate_axis" ) );
3040 }
3041 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];
3042 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];
3043 center[0] = r_center_x;
3044 center[2] = r_center_z;
3045 }
3046 }
3047
3049 {
3051 {
3054 {
3055 if (areaDamage)
3056 {
3057 areaDamage.Destroy();
3058 }
3059
3061 }
3062 }
3063 }
3064
3066 {
3067 return true;
3068 }
3069
3070
3071
3072
3074 {
3076 }
3077
3079 {
3081 }
3082
3084 {
3086 }
3087
3089 {
3091
3092 switch ( material_type )
3093 {
3099 }
3100
3101 return "";
3102 }
3103
3105 {
3107
3108 switch ( material_type )
3109 {
3115 }
3116
3117 return "";
3118 }
3119
3120
3122 {
3124 {
3125
3127 {
3128 SetHealth(slot_name,"Health",item.GetHealth());
3129 }
3130 }
3131 }
3132
3134 {
3135 return 111;
3136 }
3137
3139 {
3140 super.SetActions();
3141
3145 }
3146
3147
3148
3149
3151 {
3152 }
3153
3156 {
3157 return null;
3158 }
3159
3161 {
3163 }
3164
3166 {
3169
3170 Man p;
3171
3172 #ifdef SERVER
3175 if (players.Count())
3176 p = players[0];
3177 #else
3179 #endif
3180
3182 {
3183 bool excluded = false;
3185 if (excludes)
3186 {
3187 foreach (string exclude : excludes)
3188 {
3190 {
3191 excluded = true;
3192 break;
3193 }
3194 }
3195 }
3196
3197 if (!excluded)
3198 {
3200 }
3201 }
3202
3204 }
3205}
3206
3208{
3209#ifdef BSB_DEBUG
3211#else
3212
3213#endif
3214}
3216{
3217#ifdef BSB_DEBUG_SPAM
3219#else
3220
3221#endif
3222}
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.