1851{
1853
1855
1857
1859
1865
1866
1867
1873
1879
1881
1885
1886
1888 {
1890
1891
1892 RegisterNetSyncVariableInt( "m_SyncParts01" );
1893 RegisterNetSyncVariableInt( "m_SyncParts02" );
1894 RegisterNetSyncVariableInt( "m_SyncParts03" );
1895 RegisterNetSyncVariableInt( "m_InteractedPartId" );
1896 RegisterNetSyncVariableInt( "m_PerformedActionId" );
1897 RegisterNetSyncVariableBool( "m_HasBase" );
1898
1899
1901
1902 if (ConfigIsExisting("hybridAttachments"))
1903 {
1906 }
1907 if (ConfigIsExisting("mountables"))
1908 {
1911 }
1912
1914 }
1915
1917 {
1918 super.EEDelete(parent);
1919
1921 {
1922 areaDamage.Destroy();
1923 }
1924
1925 }
1926
1928 {
1929 return "disableBaseDamage";
1930 }
1931
1933 {
1934 return true;
1935 }
1936
1938 {
1939 return EInventoryIconVisibility.HIDE_VICINITY;
1940 }
1941
1943 {
1944 super.InitItemSounds();
1945
1949
1954 }
1955
1957 {
1958 return "putDown_FenceKit_SoundSet";
1959 }
1960
1962 {
1963 return "Shelter_Site_Build_Loop_SoundSet";
1964 }
1965
1966
1968 {
1970 {
1971 SetSynchDirty();
1972 }
1973 }
1974
1976 {
1978 super.OnVariablesSynchronized();
1979
1981 }
1982
1984 {
1985
1987
1988
1990
1991
1993 }
1994
1995
1997 {
1998
1999 int offset;
2000 int mask;
2001
2002 if ( part_id >= 1 && part_id <= 31 )
2003 {
2004 offset = part_id - 1;
2005 mask = 1 << offset;
2006
2008 }
2009 else if ( part_id >= 32 && part_id <= 62 )
2010 {
2011 offset = ( part_id % 32 );
2012 mask = 1 << offset;
2013
2015 }
2016 else if ( part_id >= 63 && part_id <= 93 )
2017 {
2018 offset = ( part_id % 63 );
2019 mask = 1 << offset;
2020
2022 }
2023 }
2024
2026 {
2027
2028 int offset;
2029 int mask;
2030
2031 if ( part_id >= 1 && part_id <= 31 )
2032 {
2033 offset = part_id - 1;
2034 mask = 1 << offset;
2035
2037 }
2038 else if ( part_id >= 32 && part_id <= 62 )
2039 {
2040 offset = ( part_id % 32 );
2041 mask = 1 << offset;
2042
2044 }
2045 else if ( part_id >= 63 && part_id <= 93 )
2046 {
2047 offset = ( part_id % 63 );
2048 mask = 1 << offset;
2049
2051 }
2052 }
2053
2055 {
2056
2057 int offset;
2058 int mask;
2059
2060 if ( part_id >= 1 && part_id <= 31 )
2061 {
2062 offset = part_id - 1;
2063 mask = 1 << offset;
2064
2066 {
2067 return true;
2068 }
2069 }
2070 else if ( part_id >= 32 && part_id <= 62 )
2071 {
2072 offset = ( part_id % 32 );
2073 mask = 1 << offset;
2074
2076 {
2077 return true;
2078 }
2079 }
2080 else if ( part_id >= 63 && part_id <= 93 )
2081 {
2082 offset = ( part_id % 63 );
2083 mask = 1 << offset;
2084
2086 {
2087 return true;
2088 }
2089 }
2090
2091 return false;
2092 }
2093
2095 {
2098 }
2099
2101 {
2102
2105 }
2106
2108 {
2110 {
2113
2114 switch( build_action_id )
2115 {
2119 }
2120 }
2121 }
2122
2123
2125 {
2127 bool is_base = part.
IsBase();
2130 if ( is_part_built_sync )
2131 {
2133 {
2137
2138 if (is_base)
2139 {
2142 }
2143 }
2144 }
2145 else
2146 {
2148 {
2152
2153 if (is_base)
2154 {
2157 }
2158 }
2159 }
2160
2161
2163 }
2164
2165
2167 {
2170
2171 for ( int i = 0; i < construction_parts.Count(); ++i )
2172 {
2173 string key = construction_parts.GetKey( i );
2176 }
2177
2178
2180 }
2181
2183 {
2186
2187 for ( int i = 0; i < construction_parts.Count(); ++i )
2188 {
2189 string key = construction_parts.GetKey( i );
2191
2192 if ( value.
GetId() ==
id )
2193 {
2194 return value;
2195 }
2196 }
2197
2198 return NULL;
2199 }
2200
2201
2202
2204 {
2206 }
2207
2209 {
2211 }
2212
2214 {
2215 return true;
2216 }
2217
2219 {
2220 return false;
2221 }
2222
2223
2225 {
2228 {
2230 }
2231
2232 return construction_kit;
2233 }
2234
2236 {
2239 {
2241 }
2242 }
2243
2245 {
2247 }
2248
2250 {
2251 return "";
2252 }
2253
2255 {
2258 }
2259
2260
2262 {
2265 }
2266
2267
2269 {
2270 super.OnStoreSave( ctx );
2271
2272
2276
2278 }
2279
2281 {
2282 if ( !super.OnStoreLoad( ctx, version ) )
2283 return false;
2284
2285
2286
2288 {
2290 return false;
2291 }
2293 {
2295 return false;
2296 }
2298 {
2300 return false;
2301 }
2302
2303
2305 {
2307 return false;
2308 }
2309
2310
2311 return true;
2312 }
2313
2315 {
2316 super.AfterStoreLoad();
2317
2319 {
2321 }
2322 }
2323
2325 {
2326
2328
2329
2332
2333
2335 }
2336
2338 {
2339 super.OnCreatePhysics();
2342 }
2343
2345 {
2347 return;
2348
2349 super.EEHealthLevelChanged(oldLevel,newLevel,zone);
2350
2352 return;
2353
2355 string part_name = zone;
2357
2359 {
2360 ConstructionPart construction_part = construction.GetConstructionPart( part_name );
2361
2362 if ( construction_part && construction.IsPartConstructed( part_name ) )
2363 {
2365 construction.DestroyConnectedParts(part_name);
2366 }
2367
2368
2369 if ( part_name.
Contains(
"barbed") )
2370 {
2371 BarbedWire barbed_wire = BarbedWire.Cast( FindAttachmentBySlotName( zone ) );
2372 if (barbed_wire)
2373 barbed_wire.SetMountedState( false );
2374 }
2375 }
2376 }
2377
2379 {
2381 {
2383 }
2384
2385 super.EEOnAfterLoad();
2386 }
2387
2389 {
2390 super.EEInit();
2391
2392
2394
2395
2396 #ifdef DEVELOPER
2398 #endif
2399 }
2400
2402 {
2403 super.EEItemAttached( item, slot_name );
2404
2408 }
2409
2411 {
2412 super.EEItemDetached( item, slot_name );
2413
2416 }
2417
2418 protected void OnSetSlotLock(
int slotId,
bool locked,
bool was_locked )
2419 {
2422
2425 }
2426
2427
2429 {
2430 return true;
2431 }
2432
2433
2434
2436 {
2438
2439
2440 if (construtionPart.
IsBase())
2441 {
2443
2444
2446 }
2447
2448
2450
2451
2453
2454
2456
2458
2460
2461
2463
2464
2466 }
2467
2469 {
2470
2472 }
2473
2474
2476 {
2479
2480
2482
2483
2485
2486
2488
2489
2491
2493
2494
2496
2497
2499
2500
2501 if (construtionPart.
IsBase())
2502 {
2503
2505 }
2506 }
2507
2509 {
2510
2512 }
2513
2514
2515 void OnPartDestroyedServer(Man player,
string part_name,
int action_id,
bool destroyed_by_connected_part =
false)
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
2556 {
2557 bool process = false;
2558
2559
2563
2564 if (process)
2565 {
2566 if (!MemoryPointExists(part.
m_PartName +
"_min") || !MemoryPointExists(part.
m_PartName +
"_max"))
2567 {
2569 return;
2570 }
2571
2573 mins = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_min"));
2574 maxs = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_max"));
2575
2576
2578 minTmp[0] =
Math.
Min(mins[0],maxs[0]);
2579 maxTmp[0] =
Math.
Max(mins[0],maxs[0]);
2580 minTmp[1] =
Math.
Min(mins[1],maxs[1]);
2581 maxTmp[1] =
Math.
Max(mins[1],maxs[1]);
2582 minTmp[2] =
Math.
Min(mins[2],maxs[2]);
2583 maxTmp[2] =
Math.
Max(mins[2],maxs[2]);
2584 mins = minTmp;
2585 maxs = maxTmp;
2586
2587 maxs[1] = maxs[1] + 0.35;
2588
2590 }
2591 }
2592
2595 {
2598
2599
2601 foreach (
EntityAI entity : foundEntities)
2602 {
2605 }
2606 }
2607
2608
2610 {
2612
2616 }
2617
2619 {
2621
2623 {
2625 }
2626 else
2627 {
2629 }
2630
2632 }
2633
2635 {
2637
2639 foreach (
string slotName : attachmentSlots)
2640 {
2642 }
2643
2644
2647 else
2649
2651 }
2652
2654 {
2655 string slotNameMounted = slot_name + "_Mounted";
2656 EntityAI attachment = FindAttachmentBySlotName(slot_name);
2657
2658 if (attachment)
2659 {
2660 BarbedWire barbedWire = BarbedWire.Cast(attachment);
2661 if (barbedWire && barbedWire.IsMounted())
2663 else
2665
2666 if (is_locked)
2667 {
2668 SetAnimationPhase(slotNameMounted, 0);
2669 SetAnimationPhase(slot_name, 1);
2670 }
2671 else
2672 {
2673 SetAnimationPhase(slotNameMounted, 1);
2674 SetAnimationPhase(slot_name, 0);
2675 }
2676 }
2677 else
2678 {
2679 SetAnimationPhase(slotNameMounted, 1);
2680 SetAnimationPhase(slot_name, 1);
2681
2683 }
2684 }
2685
2686
2688 {
2691
2694
2697
2698 foreach (
string slotName : attachmentSlots)
2699 {
2701 }
2702
2703
2705 {
2708
2710 }
2711 else
2712 {
2715
2717 }
2718
2721 }
2722
2724 {
2725
2727 return;
2728
2729 string slot_name_mounted = slot_name + "_Mounted";
2730 EntityAI attachment = FindAttachmentBySlotName( slot_name );
2731
2732
2734 RemoveProxyPhysics( slot_name_mounted );
2735 RemoveProxyPhysics( slot_name );
2736
2737 if ( attachment )
2738 {
2740 if ( is_locked )
2741 {
2743 AddProxyPhysics( slot_name_mounted );
2744 }
2745 else
2746 {
2748 AddProxyPhysics( slot_name );
2749 }
2750 }
2751 }
2752
2754 {
2755 SetAffectPathgraph( true, false );
2757 }
2758
2760 {
2761 return true;
2762 }
2763
2765 {
2766 return true;
2767 }
2768
2770 {
2771 if ( attachment )
2772 {
2774 attachment.GetInventory().GetCurrentInventoryLocation( inventory_location );
2775
2776 return GetInventory().GetSlotLock( inventory_location.
GetSlot() );
2777 }
2778
2779 return false;
2780 }
2781
2783 {
2785 }
2786
2787
2789 {
2790 string config_path = "CfgVehicles" + " " + entity.GetType() + " " + "attachments";
2791 if (
GetGame().ConfigIsExisting( config_path ) )
2792 {
2794 }
2795 }
2796
2798 {
2799 return true;
2800 }
2801
2803 {
2804 return true;
2805 }
2806
2808 {
2809 return true;
2810 }
2811
2812
2814 {
2816 {
2818 }
2819
2821 }
2822
2824 {
2826 }
2827
2828
2829
2831 {
2832 return super.CanReceiveAttachment(attachment, slotId);
2833 }
2834
2836 {
2837 int attachment_count = GetInventory().AttachmentCount();
2838 if ( attachment_count > 0 )
2839 {
2840 if (
HasBase() && attachment_count == 1 )
2841 {
2842 return false;
2843 }
2844
2845 return true;
2846 }
2847
2848 return false;
2849 }
2850
2852 {
2853 return true;
2854 }
2855
2857 {
2858 return false;
2859 }
2860
2861
2863 {
2864 return false;
2865 }
2866
2868 {
2869 return false;
2870 }
2871
2872
2874 {
2875 return false;
2876 }
2877
2878
2879
2881 {
2882 return true;
2883 }
2884
2886 {
2887 return true;
2888 }
2889
2892 {
2893 return false;
2894 }
2895
2896
2898 {
2899 return true;
2900 }
2901
2902
2904 {
2905 return false;
2906 }
2907
2908
2910 {
2911 return true;
2912 }
2913
2914
2916 {
2917 if (
HasBase() || GetInventory().AttachmentCount() > 0 )
2918 {
2919 return false;
2920 }
2921
2922 return true;
2923 }
2924
2926 {
2929
2930 return item;
2931 }
2932
2933
2935 {
2937 {
2938
2940
2941
2944
2946 if ( MemoryPointExists( slot_name + "_min" ) )
2947 {
2948 min_max[0] = GetMemoryPointPos( slot_name + "_min" );
2949 }
2950 if ( MemoryPointExists( slot_name + "_max" ) )
2951 {
2952 min_max[1] = GetMemoryPointPos( slot_name + "_max" );
2953 }
2954
2955
2958
2959
2962 center = ModelToWorld( center );
2963
2964
2967
2968 areaDamage.SetExtents( extents[0], extents[1] );
2969 areaDamage.SetAreaPosition( center );
2970 areaDamage.SetAreaOrientation( orientation );
2973 areaDamage.SetHitZones( { "Torso","LeftHand","LeftLeg","LeftFoot","RightHand","RightLeg","RightFoot" } );
2974 areaDamage.SetAmmoName( "BarbedWireHit" );
2975 areaDamage.Spawn();
2976
2978 }
2979 }
2980
2982 {
2983 if ( angle_deg != 0 )
2984 {
2985
2986 orientation[0] = orientation[0] - angle_deg;
2987
2988
2990 if ( MemoryPointExists( "rotate_axis" ) )
2991 {
2992 rotate_axis = ModelToWorld( GetMemoryPointPos( "rotate_axis" ) );
2993 }
2994 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];
2995 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];
2996 center[0] = r_center_x;
2997 center[2] = r_center_z;
2998 }
2999 }
3000
3002 {
3004 {
3007 {
3008 if (areaDamage)
3009 {
3010 areaDamage.Destroy();
3011 }
3012
3014 }
3015 }
3016 }
3017
3019 {
3020 return true;
3021 }
3022
3023
3024
3025
3027 {
3029 }
3030
3032 {
3034 }
3035
3037 {
3039 }
3040
3042 {
3044
3045 switch ( material_type )
3046 {
3052 }
3053
3054 return "";
3055 }
3056
3058 {
3060
3061 switch ( material_type )
3062 {
3068 }
3069
3070 return "";
3071 }
3072
3073
3075 {
3077 {
3078
3080 {
3081 SetHealth(slot_name,"Health",item.GetHealth());
3082 }
3083 }
3084 }
3085
3087 {
3088 return 111;
3089 }
3090
3092 {
3093 super.SetActions();
3094
3098 }
3099
3100
3101
3102
3104 {
3105 }
3106
3109 {
3110 return null;
3111 }
3112
3114 {
3116 }
3117
3119 {
3122
3123 Man p;
3124
3125 #ifdef SERVER
3128 if (players.Count())
3129 p = players[0];
3130 #else
3132 #endif
3133
3135 {
3136 bool excluded = false;
3138 if (excludes)
3139 {
3140 foreach (string exclude : excludes)
3141 {
3143 {
3144 excluded = true;
3145 break;
3146 }
3147 }
3148 }
3149
3150 if (!excluded)
3151 {
3153 }
3154 }
3155
3157 }
3158}
3159
3161{
3162#ifdef BSB_DEBUG
3164#else
3165
3166#endif
3167}
3169{
3170#ifdef BSB_DEBUG_SPAM
3172#else
3173
3174#endif
3175}
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.