2097{
2099
2101
2103
2105
2111
2112
2113
2119
2125
2127
2131
2132
2134 {
2136
2137
2138 RegisterNetSyncVariableInt( "m_SyncParts01" );
2139 RegisterNetSyncVariableInt( "m_SyncParts02" );
2140 RegisterNetSyncVariableInt( "m_SyncParts03" );
2141 RegisterNetSyncVariableInt( "m_InteractedPartId" );
2142 RegisterNetSyncVariableInt( "m_PerformedActionId" );
2143 RegisterNetSyncVariableBool( "m_HasBase" );
2144
2145
2147
2148 if (ConfigIsExisting("hybridAttachments"))
2149 {
2152 }
2153 if (ConfigIsExisting("mountables"))
2154 {
2157 }
2158
2160 }
2161
2163 {
2164 super.EEDelete(parent);
2165
2167 {
2168 areaDamage.Destroy();
2169 }
2170
2171 }
2172
2174 {
2175 return "disableBaseDamage";
2176 }
2177
2179 {
2180 return true;
2181 }
2182
2184 {
2185 return EInventoryIconVisibility.HIDE_VICINITY;
2186 }
2187
2189 {
2190 super.InitItemSounds();
2191
2195
2200 }
2201
2203 {
2204 return "putDown_FenceKit_SoundSet";
2205 }
2206
2208 {
2209 return "Shelter_Site_Build_Loop_SoundSet";
2210 }
2211
2212
2214 {
2216 {
2217 SetSynchDirty();
2218 }
2219 }
2220
2222 {
2224 super.OnVariablesSynchronized();
2225
2227 }
2228
2230 {
2231
2233
2234
2236
2237
2239 }
2240
2241
2243 {
2244
2245 int offset;
2246 int mask;
2247
2248 if ( part_id >= 1 && part_id <= 31 )
2249 {
2250 offset = part_id - 1;
2251 mask = 1 << offset;
2252
2254 }
2255 else if ( part_id >= 32 && part_id <= 62 )
2256 {
2257 offset = ( part_id % 32 );
2258 mask = 1 << offset;
2259
2261 }
2262 else if ( part_id >= 63 && part_id <= 93 )
2263 {
2264 offset = ( part_id % 63 );
2265 mask = 1 << offset;
2266
2268 }
2269 }
2270
2272 {
2273
2274 int offset;
2275 int mask;
2276
2277 if ( part_id >= 1 && part_id <= 31 )
2278 {
2279 offset = part_id - 1;
2280 mask = 1 << offset;
2281
2283 }
2284 else if ( part_id >= 32 && part_id <= 62 )
2285 {
2286 offset = ( part_id % 32 );
2287 mask = 1 << offset;
2288
2290 }
2291 else if ( part_id >= 63 && part_id <= 93 )
2292 {
2293 offset = ( part_id % 63 );
2294 mask = 1 << offset;
2295
2297 }
2298 }
2299
2301 {
2302
2303 int offset;
2304 int mask;
2305
2306 if ( part_id >= 1 && part_id <= 31 )
2307 {
2308 offset = part_id - 1;
2309 mask = 1 << offset;
2310
2312 {
2313 return true;
2314 }
2315 }
2316 else if ( part_id >= 32 && part_id <= 62 )
2317 {
2318 offset = ( part_id % 32 );
2319 mask = 1 << offset;
2320
2322 {
2323 return true;
2324 }
2325 }
2326 else if ( part_id >= 63 && part_id <= 93 )
2327 {
2328 offset = ( part_id % 63 );
2329 mask = 1 << offset;
2330
2332 {
2333 return true;
2334 }
2335 }
2336
2337 return false;
2338 }
2339
2341 {
2344 }
2345
2347 {
2348
2351 }
2352
2354 {
2356 {
2359
2360 switch( build_action_id )
2361 {
2365 }
2366 }
2367 }
2368
2369
2371 {
2373 bool is_base = part.
IsBase();
2376 if ( is_part_built_sync )
2377 {
2379 {
2383
2384 if (is_base)
2385 {
2388 }
2389 }
2390 }
2391 else
2392 {
2394 {
2398
2399 if (is_base)
2400 {
2403 }
2404 }
2405 }
2406
2407
2409 }
2410
2411
2413 {
2416
2417 for ( int i = 0; i < construction_parts.Count(); ++i )
2418 {
2419 string key = construction_parts.GetKey( i );
2422 }
2423
2424
2426 }
2427
2429 {
2432
2433 for ( int i = 0; i < construction_parts.Count(); ++i )
2434 {
2435 string key = construction_parts.GetKey( i );
2437
2438 if ( value.
GetId() ==
id )
2439 {
2440 return value;
2441 }
2442 }
2443
2444 return NULL;
2445 }
2446
2447
2448
2450 {
2452 }
2453
2455 {
2457 }
2458
2460 {
2461 return true;
2462 }
2463
2465 {
2466 return false;
2467 }
2468
2469
2471 {
2474 {
2476 }
2477
2478 return construction_kit;
2479 }
2480
2482 {
2485 {
2487 }
2488 }
2489
2491 {
2493 }
2494
2496 {
2497 return "";
2498 }
2499
2501 {
2504 }
2505
2506
2508 {
2511 }
2512
2513
2515 {
2516 super.OnStoreSave( ctx );
2517
2518
2522
2524 }
2525
2527 {
2528 if ( !super.OnStoreLoad( ctx, version ) )
2529 return false;
2530
2531
2532
2534 {
2536 return false;
2537 }
2539 {
2541 return false;
2542 }
2544 {
2546 return false;
2547 }
2548
2549
2551 {
2553 return false;
2554 }
2555
2556
2557 return true;
2558 }
2559
2561 {
2562 super.AfterStoreLoad();
2563
2565 {
2567 }
2568 }
2569
2571 {
2572
2574
2575
2578
2579
2581 }
2582
2584 {
2585 super.OnCreatePhysics();
2588 }
2589
2591 {
2593 return;
2594
2595 super.EEHealthLevelChanged(oldLevel,newLevel,zone);
2596
2598 return;
2599
2601 string part_name = zone;
2603
2605 {
2606 ConstructionPart construction_part = construction.GetConstructionPart( part_name );
2607
2608 if ( construction_part && construction.IsPartConstructed( part_name ) )
2609 {
2611 construction.DestroyConnectedParts(part_name);
2612 }
2613
2614
2615 if ( part_name.
Contains(
"barbed") )
2616 {
2617 BarbedWire barbed_wire = BarbedWire.Cast( FindAttachmentBySlotName( zone ) );
2618 if (barbed_wire)
2619 barbed_wire.SetMountedState( false );
2620 }
2621 }
2622 }
2623
2625 {
2627 {
2629 }
2630
2631 super.EEOnAfterLoad();
2632 }
2633
2635 {
2636 super.EEInit();
2637
2638
2640
2641
2642 #ifdef DEVELOPER
2644 #endif
2645 }
2646
2648 {
2649 super.EEItemAttached( item, slot_name );
2650
2654 }
2655
2657 {
2658 super.EEItemDetached( item, slot_name );
2659
2662 }
2663
2664 protected void OnSetSlotLock(
int slotId,
bool locked,
bool was_locked )
2665 {
2668
2671 }
2672
2673
2675 {
2676 return true;
2677 }
2678
2679
2680
2682 {
2684
2685
2686 if (construtionPart.
IsBase())
2687 {
2689
2690
2692 }
2693
2694
2696
2697
2699
2700
2702
2704
2706
2707
2709
2710
2712 }
2713
2715 {
2716
2718 }
2719
2720
2722 {
2725
2726
2728
2729
2731
2732
2734
2735
2737
2739
2740
2742
2743
2745
2746
2747 if (construtionPart.
IsBase())
2748 {
2749
2751 }
2752 }
2753
2755 {
2756
2758 }
2759
2760
2761 void OnPartDestroyedServer(Man player,
string part_name,
int action_id,
bool destroyed_by_connected_part =
false)
2762 {
2765
2766
2768
2769
2771
2772
2774
2775
2777
2779
2780
2782
2783
2785
2786
2787 if (construtionPart.
IsBase())
2788 {
2789
2791 }
2792 }
2793
2795 {
2796
2798 }
2799
2802 {
2803 bool process = false;
2804
2805
2809
2810 if (process)
2811 {
2812 if (!MemoryPointExists(part.
m_PartName +
"_min") || !MemoryPointExists(part.
m_PartName +
"_max"))
2813 {
2815 return;
2816 }
2817
2819 mins = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_min"));
2820 maxs = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_max"));
2821
2822
2824 minTmp[0] =
Math.
Min(mins[0],maxs[0]);
2825 maxTmp[0] =
Math.
Max(mins[0],maxs[0]);
2826 minTmp[1] =
Math.
Min(mins[1],maxs[1]);
2827 maxTmp[1] =
Math.
Max(mins[1],maxs[1]);
2828 minTmp[2] =
Math.
Min(mins[2],maxs[2]);
2829 maxTmp[2] =
Math.
Max(mins[2],maxs[2]);
2830 mins = minTmp;
2831 maxs = maxTmp;
2832
2833 maxs[1] = maxs[1] + 0.35;
2834
2836 }
2837 }
2838
2841 {
2844
2845
2847 foreach (
EntityAI entity : foundEntities)
2848 {
2851 }
2852 }
2853
2854
2856 {
2858
2862 }
2863
2865 {
2867
2869 {
2871 }
2872 else
2873 {
2875 }
2876
2878 }
2879
2881 {
2883
2885 foreach (
string slotName : attachmentSlots)
2886 {
2888 }
2889
2890
2893 else
2895
2897 }
2898
2900 {
2901 string slotNameMounted = slot_name + "_Mounted";
2902 EntityAI attachment = FindAttachmentBySlotName(slot_name);
2903
2904 if (attachment)
2905 {
2906 BarbedWire barbedWire = BarbedWire.Cast(attachment);
2907 if (barbedWire && barbedWire.IsMounted())
2909 else
2911
2912 if (is_locked)
2913 {
2914 SetAnimationPhase(slotNameMounted, 0);
2915 SetAnimationPhase(slot_name, 1);
2916 }
2917 else
2918 {
2919 SetAnimationPhase(slotNameMounted, 1);
2920 SetAnimationPhase(slot_name, 0);
2921 }
2922 }
2923 else
2924 {
2925 SetAnimationPhase(slotNameMounted, 1);
2926 SetAnimationPhase(slot_name, 1);
2927
2929 }
2930 }
2931
2932
2934 {
2937
2940
2943
2944 foreach (
string slotName : attachmentSlots)
2945 {
2947 }
2948
2949
2951 {
2954
2956 }
2957 else
2958 {
2961
2963 }
2964
2967 }
2968
2970 {
2971
2973 return;
2974
2975 string slot_name_mounted = slot_name + "_Mounted";
2976 EntityAI attachment = FindAttachmentBySlotName( slot_name );
2977
2978
2980 RemoveProxyPhysics( slot_name_mounted );
2981 RemoveProxyPhysics( slot_name );
2982
2983 if ( attachment )
2984 {
2986 if ( is_locked )
2987 {
2989 AddProxyPhysics( slot_name_mounted );
2990 }
2991 else
2992 {
2994 AddProxyPhysics( slot_name );
2995 }
2996 }
2997 }
2998
3000 {
3001 SetAffectPathgraph( true, false );
3003 }
3004
3006 {
3007 return true;
3008 }
3009
3011 {
3012 return true;
3013 }
3014
3016 {
3017 if ( attachment )
3018 {
3020 attachment.GetInventory().GetCurrentInventoryLocation( inventory_location );
3021
3022 return GetInventory().GetSlotLock( inventory_location.
GetSlot() );
3023 }
3024
3025 return false;
3026 }
3027
3029 {
3031 }
3032
3033
3035 {
3036 string config_path = "CfgVehicles" + " " + entity.GetType() + " " + "attachments";
3037 if (
GetGame().ConfigIsExisting( config_path ) )
3038 {
3040 }
3041 }
3042
3044 {
3045 return true;
3046 }
3047
3049 {
3050 return true;
3051 }
3052
3054 {
3055 return true;
3056 }
3057
3058
3060 {
3062 {
3064 }
3065
3067 }
3068
3070 {
3072 }
3073
3074
3075
3077 {
3078 return super.CanReceiveAttachment(attachment, slotId);
3079 }
3080
3082 {
3083 int attachment_count = GetInventory().AttachmentCount();
3084 if ( attachment_count > 0 )
3085 {
3086 if (
HasBase() && attachment_count == 1 )
3087 {
3088 return false;
3089 }
3090
3091 return true;
3092 }
3093
3094 return false;
3095 }
3096
3098 {
3099 return true;
3100 }
3101
3103 {
3104 return false;
3105 }
3106
3107
3109 {
3110 return false;
3111 }
3112
3114 {
3115 return false;
3116 }
3117
3118
3120 {
3121 return false;
3122 }
3123
3124
3125
3127 {
3128 return true;
3129 }
3130
3132 {
3133 return true;
3134 }
3135
3138 {
3139 return false;
3140 }
3141
3142
3144 {
3145 return true;
3146 }
3147
3148
3150 {
3151 return false;
3152 }
3153
3154
3156 {
3157 return true;
3158 }
3159
3160
3162 {
3163 if (
HasBase() || GetInventory().AttachmentCount() > 0 )
3164 {
3165 return false;
3166 }
3167
3168 return true;
3169 }
3170
3172 {
3175
3176 return item;
3177 }
3178
3179
3181 {
3183 {
3184
3186
3187
3190
3192 if ( MemoryPointExists( slot_name + "_min" ) )
3193 {
3194 min_max[0] = GetMemoryPointPos( slot_name + "_min" );
3195 }
3196 if ( MemoryPointExists( slot_name + "_max" ) )
3197 {
3198 min_max[1] = GetMemoryPointPos( slot_name + "_max" );
3199 }
3200
3201
3204
3205
3208 center = ModelToWorld( center );
3209
3210
3213
3214 areaDamage.SetExtents( extents[0], extents[1] );
3215 areaDamage.SetAreaPosition( center );
3216 areaDamage.SetAreaOrientation( orientation );
3219 areaDamage.SetHitZones( { "Torso","LeftHand","LeftLeg","LeftFoot","RightHand","RightLeg","RightFoot" } );
3220 areaDamage.SetAmmoName( "BarbedWireHit" );
3221 areaDamage.Spawn();
3222
3224 }
3225 }
3226
3228 {
3229 if ( angle_deg != 0 )
3230 {
3231
3232 orientation[0] = orientation[0] - angle_deg;
3233
3234
3236 if ( MemoryPointExists( "rotate_axis" ) )
3237 {
3238 rotate_axis = ModelToWorld( GetMemoryPointPos( "rotate_axis" ) );
3239 }
3240 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];
3241 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];
3242 center[0] = r_center_x;
3243 center[2] = r_center_z;
3244 }
3245 }
3246
3248 {
3250 {
3253 {
3254 if (areaDamage)
3255 {
3256 areaDamage.Destroy();
3257 }
3258
3260 }
3261 }
3262 }
3263
3265 {
3266 return true;
3267 }
3268
3269
3270
3271
3273 {
3275 }
3276
3278 {
3280 }
3281
3283 {
3285 }
3286
3288 {
3290
3291 switch ( material_type )
3292 {
3298 }
3299
3300 return "";
3301 }
3302
3304 {
3306
3307 switch ( material_type )
3308 {
3314 }
3315
3316 return "";
3317 }
3318
3319
3321 {
3323 {
3324
3326 {
3327 SetHealth(slot_name,"Health",item.GetHealth());
3328 }
3329 }
3330 }
3331
3333 {
3334 return 111;
3335 }
3336
3338 {
3339 super.SetActions();
3340
3344 }
3345
3346
3347
3348
3350 {
3351 }
3352
3355 {
3356 return null;
3357 }
3358
3360 {
3362 }
3363
3365 {
3368
3369 Man p;
3370
3371 #ifdef SERVER
3374 if (players.Count())
3375 p = players[0];
3376 #else
3378 #endif
3379
3381 {
3382 bool excluded = false;
3384 if (excludes)
3385 {
3386 foreach (string exclude : excludes)
3387 {
3389 {
3390 excluded = true;
3391 break;
3392 }
3393 }
3394 }
3395
3396 if (!excluded)
3397 {
3399 }
3400 }
3401
3403 }
3404}
3405
3407{
3408#ifdef BSB_DEBUG
3410#else
3411
3412#endif
3413}
3415{
3416#ifdef BSB_DEBUG_SPAM
3418#else
3419
3420#endif
3421}
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.