1971{
1973
1975
1977
1979
1985
1986
1987
1993
1999
2001
2005
2006
2008 {
2010
2011
2012 RegisterNetSyncVariableInt( "m_SyncParts01" );
2013 RegisterNetSyncVariableInt( "m_SyncParts02" );
2014 RegisterNetSyncVariableInt( "m_SyncParts03" );
2015 RegisterNetSyncVariableInt( "m_InteractedPartId" );
2016 RegisterNetSyncVariableInt( "m_PerformedActionId" );
2017 RegisterNetSyncVariableBool( "m_HasBase" );
2018
2019
2021
2022 if (ConfigIsExisting("hybridAttachments"))
2023 {
2026 }
2027 if (ConfigIsExisting("mountables"))
2028 {
2031 }
2032
2034 }
2035
2037 {
2038 super.EEDelete(parent);
2039
2041 {
2042 areaDamage.Destroy();
2043 }
2044
2045 }
2046
2048 {
2049 return "disableBaseDamage";
2050 }
2051
2053 {
2054 return true;
2055 }
2056
2058 {
2059 return EInventoryIconVisibility.HIDE_VICINITY;
2060 }
2061
2063 {
2064 super.InitItemSounds();
2065
2069
2074 }
2075
2077 {
2078 return "putDown_FenceKit_SoundSet";
2079 }
2080
2082 {
2083 return "Shelter_Site_Build_Loop_SoundSet";
2084 }
2085
2086
2088 {
2090 {
2091 SetSynchDirty();
2092 }
2093 }
2094
2096 {
2098 super.OnVariablesSynchronized();
2099
2101 }
2102
2104 {
2105
2107
2108
2110
2111
2113 }
2114
2115
2117 {
2118
2119 int offset;
2120 int mask;
2121
2122 if ( part_id >= 1 && part_id <= 31 )
2123 {
2124 offset = part_id - 1;
2125 mask = 1 << offset;
2126
2128 }
2129 else if ( part_id >= 32 && part_id <= 62 )
2130 {
2131 offset = ( part_id % 32 );
2132 mask = 1 << offset;
2133
2135 }
2136 else if ( part_id >= 63 && part_id <= 93 )
2137 {
2138 offset = ( part_id % 63 );
2139 mask = 1 << offset;
2140
2142 }
2143 }
2144
2146 {
2147
2148 int offset;
2149 int mask;
2150
2151 if ( part_id >= 1 && part_id <= 31 )
2152 {
2153 offset = part_id - 1;
2154 mask = 1 << offset;
2155
2157 }
2158 else if ( part_id >= 32 && part_id <= 62 )
2159 {
2160 offset = ( part_id % 32 );
2161 mask = 1 << offset;
2162
2164 }
2165 else if ( part_id >= 63 && part_id <= 93 )
2166 {
2167 offset = ( part_id % 63 );
2168 mask = 1 << offset;
2169
2171 }
2172 }
2173
2175 {
2176
2177 int offset;
2178 int mask;
2179
2180 if ( part_id >= 1 && part_id <= 31 )
2181 {
2182 offset = part_id - 1;
2183 mask = 1 << offset;
2184
2186 {
2187 return true;
2188 }
2189 }
2190 else if ( part_id >= 32 && part_id <= 62 )
2191 {
2192 offset = ( part_id % 32 );
2193 mask = 1 << offset;
2194
2196 {
2197 return true;
2198 }
2199 }
2200 else if ( part_id >= 63 && part_id <= 93 )
2201 {
2202 offset = ( part_id % 63 );
2203 mask = 1 << offset;
2204
2206 {
2207 return true;
2208 }
2209 }
2210
2211 return false;
2212 }
2213
2215 {
2218 }
2219
2221 {
2222
2225 }
2226
2228 {
2230 {
2233
2234 switch( build_action_id )
2235 {
2239 }
2240 }
2241 }
2242
2243
2245 {
2247 bool is_base = part.
IsBase();
2250 if ( is_part_built_sync )
2251 {
2253 {
2257
2258 if (is_base)
2259 {
2262 }
2263 }
2264 }
2265 else
2266 {
2268 {
2272
2273 if (is_base)
2274 {
2277 }
2278 }
2279 }
2280
2281
2283 }
2284
2285
2287 {
2290
2291 for ( int i = 0; i < construction_parts.Count(); ++i )
2292 {
2293 string key = construction_parts.GetKey( i );
2296 }
2297
2298
2300 }
2301
2303 {
2306
2307 for ( int i = 0; i < construction_parts.Count(); ++i )
2308 {
2309 string key = construction_parts.GetKey( i );
2311
2312 if ( value.
GetId() ==
id )
2313 {
2314 return value;
2315 }
2316 }
2317
2318 return NULL;
2319 }
2320
2321
2322
2324 {
2326 }
2327
2329 {
2331 }
2332
2334 {
2335 return true;
2336 }
2337
2339 {
2340 return false;
2341 }
2342
2343
2345 {
2348 {
2350 }
2351
2352 return construction_kit;
2353 }
2354
2356 {
2359 {
2361 }
2362 }
2363
2365 {
2367 }
2368
2370 {
2371 return "";
2372 }
2373
2375 {
2378 }
2379
2380
2382 {
2385 }
2386
2387
2389 {
2390 super.OnStoreSave( ctx );
2391
2392
2396
2398 }
2399
2401 {
2402 if ( !super.OnStoreLoad( ctx, version ) )
2403 return false;
2404
2405
2406
2408 {
2410 return false;
2411 }
2413 {
2415 return false;
2416 }
2418 {
2420 return false;
2421 }
2422
2423
2425 {
2427 return false;
2428 }
2429
2430
2431 return true;
2432 }
2433
2435 {
2436 super.AfterStoreLoad();
2437
2439 {
2441 }
2442 }
2443
2445 {
2446
2448
2449
2452
2453
2455 }
2456
2458 {
2459 super.OnCreatePhysics();
2462 }
2463
2465 {
2467 return;
2468
2469 super.EEHealthLevelChanged(oldLevel,newLevel,zone);
2470
2472 return;
2473
2475 string part_name = zone;
2477
2479 {
2480 ConstructionPart construction_part = construction.GetConstructionPart( part_name );
2481
2482 if ( construction_part && construction.IsPartConstructed( part_name ) )
2483 {
2485 construction.DestroyConnectedParts(part_name);
2486 }
2487
2488
2489 if ( part_name.
Contains(
"barbed") )
2490 {
2491 BarbedWire barbed_wire = BarbedWire.Cast( FindAttachmentBySlotName( zone ) );
2492 if (barbed_wire)
2493 barbed_wire.SetMountedState( false );
2494 }
2495 }
2496 }
2497
2499 {
2501 {
2503 }
2504
2505 super.EEOnAfterLoad();
2506 }
2507
2509 {
2510 super.EEInit();
2511
2512
2514
2515
2516 #ifdef DEVELOPER
2518 #endif
2519 }
2520
2522 {
2523 super.EEItemAttached( item, slot_name );
2524
2528 }
2529
2531 {
2532 super.EEItemDetached( item, slot_name );
2533
2536 }
2537
2538 protected void OnSetSlotLock(
int slotId,
bool locked,
bool was_locked )
2539 {
2542
2545 }
2546
2547
2549 {
2550 return true;
2551 }
2552
2553
2554
2556 {
2558
2559
2560 if (construtionPart.
IsBase())
2561 {
2563
2564
2566 }
2567
2568
2570
2571
2573
2574
2576
2578
2580
2581
2583
2584
2586 }
2587
2589 {
2590
2592 }
2593
2594
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
2634
2635 void OnPartDestroyedServer(Man player,
string part_name,
int action_id,
bool destroyed_by_connected_part =
false)
2636 {
2639
2640
2642
2643
2645
2646
2648
2649
2651
2653
2654
2656
2657
2659
2660
2661 if (construtionPart.
IsBase())
2662 {
2663
2665 }
2666 }
2667
2669 {
2670
2672 }
2673
2676 {
2677 bool process = false;
2678
2679
2683
2684 if (process)
2685 {
2686 if (!MemoryPointExists(part.
m_PartName +
"_min") || !MemoryPointExists(part.
m_PartName +
"_max"))
2687 {
2689 return;
2690 }
2691
2693 mins = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_min"));
2694 maxs = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_max"));
2695
2696
2698 minTmp[0] =
Math.
Min(mins[0],maxs[0]);
2699 maxTmp[0] =
Math.
Max(mins[0],maxs[0]);
2700 minTmp[1] =
Math.
Min(mins[1],maxs[1]);
2701 maxTmp[1] =
Math.
Max(mins[1],maxs[1]);
2702 minTmp[2] =
Math.
Min(mins[2],maxs[2]);
2703 maxTmp[2] =
Math.
Max(mins[2],maxs[2]);
2704 mins = minTmp;
2705 maxs = maxTmp;
2706
2707 maxs[1] = maxs[1] + 0.35;
2708
2710 }
2711 }
2712
2715 {
2718
2719
2721 foreach (
EntityAI entity : foundEntities)
2722 {
2725 }
2726 }
2727
2728
2730 {
2732
2736 }
2737
2739 {
2741
2743 {
2745 }
2746 else
2747 {
2749 }
2750
2752 }
2753
2755 {
2757
2759 foreach (
string slotName : attachmentSlots)
2760 {
2762 }
2763
2764
2767 else
2769
2771 }
2772
2774 {
2775 string slotNameMounted = slot_name + "_Mounted";
2776 EntityAI attachment = FindAttachmentBySlotName(slot_name);
2777
2778 if (attachment)
2779 {
2780 BarbedWire barbedWire = BarbedWire.Cast(attachment);
2781 if (barbedWire && barbedWire.IsMounted())
2783 else
2785
2786 if (is_locked)
2787 {
2788 SetAnimationPhase(slotNameMounted, 0);
2789 SetAnimationPhase(slot_name, 1);
2790 }
2791 else
2792 {
2793 SetAnimationPhase(slotNameMounted, 1);
2794 SetAnimationPhase(slot_name, 0);
2795 }
2796 }
2797 else
2798 {
2799 SetAnimationPhase(slotNameMounted, 1);
2800 SetAnimationPhase(slot_name, 1);
2801
2803 }
2804 }
2805
2806
2808 {
2811
2814
2817
2818 foreach (
string slotName : attachmentSlots)
2819 {
2821 }
2822
2823
2825 {
2828
2830 }
2831 else
2832 {
2835
2837 }
2838
2841 }
2842
2844 {
2845
2847 return;
2848
2849 string slot_name_mounted = slot_name + "_Mounted";
2850 EntityAI attachment = FindAttachmentBySlotName( slot_name );
2851
2852
2854 RemoveProxyPhysics( slot_name_mounted );
2855 RemoveProxyPhysics( slot_name );
2856
2857 if ( attachment )
2858 {
2860 if ( is_locked )
2861 {
2863 AddProxyPhysics( slot_name_mounted );
2864 }
2865 else
2866 {
2868 AddProxyPhysics( slot_name );
2869 }
2870 }
2871 }
2872
2874 {
2875 SetAffectPathgraph( true, false );
2877 }
2878
2880 {
2881 return true;
2882 }
2883
2885 {
2886 return true;
2887 }
2888
2890 {
2891 if ( attachment )
2892 {
2894 attachment.GetInventory().GetCurrentInventoryLocation( inventory_location );
2895
2896 return GetInventory().GetSlotLock( inventory_location.
GetSlot() );
2897 }
2898
2899 return false;
2900 }
2901
2903 {
2905 }
2906
2907
2909 {
2910 string config_path = "CfgVehicles" + " " + entity.GetType() + " " + "attachments";
2911 if (
GetGame().ConfigIsExisting( config_path ) )
2912 {
2914 }
2915 }
2916
2918 {
2919 return true;
2920 }
2921
2923 {
2924 return true;
2925 }
2926
2928 {
2929 return true;
2930 }
2931
2932
2934 {
2936 {
2938 }
2939
2941 }
2942
2944 {
2946 }
2947
2948
2949
2951 {
2952 return super.CanReceiveAttachment(attachment, slotId);
2953 }
2954
2956 {
2957 int attachment_count = GetInventory().AttachmentCount();
2958 if ( attachment_count > 0 )
2959 {
2960 if (
HasBase() && attachment_count == 1 )
2961 {
2962 return false;
2963 }
2964
2965 return true;
2966 }
2967
2968 return false;
2969 }
2970
2972 {
2973 return true;
2974 }
2975
2977 {
2978 return false;
2979 }
2980
2981
2983 {
2984 return false;
2985 }
2986
2988 {
2989 return false;
2990 }
2991
2992
2994 {
2995 return false;
2996 }
2997
2998
2999
3001 {
3002 return true;
3003 }
3004
3006 {
3007 return true;
3008 }
3009
3012 {
3013 return false;
3014 }
3015
3016
3018 {
3019 return true;
3020 }
3021
3022
3024 {
3025 return false;
3026 }
3027
3028
3030 {
3031 return true;
3032 }
3033
3034
3036 {
3037 if (
HasBase() || GetInventory().AttachmentCount() > 0 )
3038 {
3039 return false;
3040 }
3041
3042 return true;
3043 }
3044
3046 {
3049
3050 return item;
3051 }
3052
3053
3055 {
3057 {
3058
3060
3061
3064
3066 if ( MemoryPointExists( slot_name + "_min" ) )
3067 {
3068 min_max[0] = GetMemoryPointPos( slot_name + "_min" );
3069 }
3070 if ( MemoryPointExists( slot_name + "_max" ) )
3071 {
3072 min_max[1] = GetMemoryPointPos( slot_name + "_max" );
3073 }
3074
3075
3078
3079
3082 center = ModelToWorld( center );
3083
3084
3087
3088 areaDamage.SetExtents( extents[0], extents[1] );
3089 areaDamage.SetAreaPosition( center );
3090 areaDamage.SetAreaOrientation( orientation );
3093 areaDamage.SetHitZones( { "Torso","LeftHand","LeftLeg","LeftFoot","RightHand","RightLeg","RightFoot" } );
3094 areaDamage.SetAmmoName( "BarbedWireHit" );
3095 areaDamage.Spawn();
3096
3098 }
3099 }
3100
3102 {
3103 if ( angle_deg != 0 )
3104 {
3105
3106 orientation[0] = orientation[0] - angle_deg;
3107
3108
3110 if ( MemoryPointExists( "rotate_axis" ) )
3111 {
3112 rotate_axis = ModelToWorld( GetMemoryPointPos( "rotate_axis" ) );
3113 }
3114 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];
3115 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];
3116 center[0] = r_center_x;
3117 center[2] = r_center_z;
3118 }
3119 }
3120
3122 {
3124 {
3127 {
3128 if (areaDamage)
3129 {
3130 areaDamage.Destroy();
3131 }
3132
3134 }
3135 }
3136 }
3137
3139 {
3140 return true;
3141 }
3142
3143
3144
3145
3147 {
3149 }
3150
3152 {
3154 }
3155
3157 {
3159 }
3160
3162 {
3164
3165 switch ( material_type )
3166 {
3172 }
3173
3174 return "";
3175 }
3176
3178 {
3180
3181 switch ( material_type )
3182 {
3188 }
3189
3190 return "";
3191 }
3192
3193
3195 {
3197 {
3198
3200 {
3201 SetHealth(slot_name,"Health",item.GetHealth());
3202 }
3203 }
3204 }
3205
3207 {
3208 return 111;
3209 }
3210
3212 {
3213 super.SetActions();
3214
3218 }
3219
3220
3221
3222
3224 {
3225 }
3226
3229 {
3230 return null;
3231 }
3232
3234 {
3236 }
3237
3239 {
3242
3243 Man p;
3244
3245 #ifdef SERVER
3248 if (players.Count())
3249 p = players[0];
3250 #else
3252 #endif
3253
3255 {
3256 bool excluded = false;
3258 if (excludes)
3259 {
3260 foreach (string exclude : excludes)
3261 {
3263 {
3264 excluded = true;
3265 break;
3266 }
3267 }
3268 }
3269
3270 if (!excluded)
3271 {
3273 }
3274 }
3275
3277 }
3278}
3279
3281{
3282#ifdef BSB_DEBUG
3284#else
3285
3286#endif
3287}
3289{
3290#ifdef BSB_DEBUG_SPAM
3292#else
3293
3294#endif
3295}
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.