2293{
2295
2297
2299
2301
2307
2308
2309
2315
2321
2323
2327
2328
2330 {
2332
2333
2334 RegisterNetSyncVariableInt( "m_SyncParts01" );
2335 RegisterNetSyncVariableInt( "m_SyncParts02" );
2336 RegisterNetSyncVariableInt( "m_SyncParts03" );
2337 RegisterNetSyncVariableInt( "m_InteractedPartId" );
2338 RegisterNetSyncVariableInt( "m_PerformedActionId" );
2339 RegisterNetSyncVariableBool( "m_HasBase" );
2340
2341
2343
2344 if (ConfigIsExisting("hybridAttachments"))
2345 {
2348 }
2349 if (ConfigIsExisting("mountables"))
2350 {
2353 }
2354
2356 }
2357
2359 {
2360 super.EEDelete(parent);
2361
2363 {
2364 areaDamage.Destroy();
2365 }
2366
2367 }
2368
2370 {
2371 return "disableBaseDamage";
2372 }
2373
2375 {
2376 return true;
2377 }
2378
2380 {
2381 return EInventoryIconVisibility.HIDE_VICINITY;
2382 }
2383
2385 {
2386 super.InitItemSounds();
2387
2391
2396 }
2397
2399 {
2400 return "putDown_FenceKit_SoundSet";
2401 }
2402
2404 {
2405 return "Shelter_Site_Build_Loop_SoundSet";
2406 }
2407
2408
2410 {
2412 {
2413 SetSynchDirty();
2414 }
2415 }
2416
2418 {
2420 super.OnVariablesSynchronized();
2421
2423 }
2424
2426 {
2427
2429
2430
2432
2433
2435 }
2436
2437
2439 {
2440
2441 int offset;
2442 int mask;
2443
2444 if ( part_id >= 1 && part_id <= 31 )
2445 {
2446 offset = part_id - 1;
2447 mask = 1 << offset;
2448
2450 }
2451 else if ( part_id >= 32 && part_id <= 62 )
2452 {
2453 offset = ( part_id % 32 );
2454 mask = 1 << offset;
2455
2457 }
2458 else if ( part_id >= 63 && part_id <= 93 )
2459 {
2460 offset = ( part_id % 63 );
2461 mask = 1 << offset;
2462
2464 }
2465 }
2466
2468 {
2469
2470 int offset;
2471 int mask;
2472
2473 if ( part_id >= 1 && part_id <= 31 )
2474 {
2475 offset = part_id - 1;
2476 mask = 1 << offset;
2477
2479 }
2480 else if ( part_id >= 32 && part_id <= 62 )
2481 {
2482 offset = ( part_id % 32 );
2483 mask = 1 << offset;
2484
2486 }
2487 else if ( part_id >= 63 && part_id <= 93 )
2488 {
2489 offset = ( part_id % 63 );
2490 mask = 1 << offset;
2491
2493 }
2494 }
2495
2497 {
2498
2499 int offset;
2500 int mask;
2501
2502 if ( part_id >= 1 && part_id <= 31 )
2503 {
2504 offset = part_id - 1;
2505 mask = 1 << offset;
2506
2508 {
2509 return true;
2510 }
2511 }
2512 else if ( part_id >= 32 && part_id <= 62 )
2513 {
2514 offset = ( part_id % 32 );
2515 mask = 1 << offset;
2516
2518 {
2519 return true;
2520 }
2521 }
2522 else if ( part_id >= 63 && part_id <= 93 )
2523 {
2524 offset = ( part_id % 63 );
2525 mask = 1 << offset;
2526
2528 {
2529 return true;
2530 }
2531 }
2532
2533 return false;
2534 }
2535
2537 {
2540 }
2541
2543 {
2544
2547 }
2548
2550 {
2552 {
2555
2556 switch( build_action_id )
2557 {
2561 }
2562 }
2563 }
2564
2565
2567 {
2569 bool is_base = part.
IsBase();
2572 if ( is_part_built_sync )
2573 {
2575 {
2579
2580 if (is_base)
2581 {
2584 }
2585 }
2586 }
2587 else
2588 {
2590 {
2594
2595 if (is_base)
2596 {
2599 }
2600 }
2601 }
2602
2603
2605 }
2606
2607
2609 {
2612
2613 for ( int i = 0; i < construction_parts.Count(); ++i )
2614 {
2615 string key = construction_parts.GetKey( i );
2618 }
2619
2620
2622 }
2623
2625 {
2628
2629 for ( int i = 0; i < construction_parts.Count(); ++i )
2630 {
2631 string key = construction_parts.GetKey( i );
2633
2634 if ( value.
GetId() ==
id )
2635 {
2636 return value;
2637 }
2638 }
2639
2640 return NULL;
2641 }
2642
2643
2644
2646 {
2648 }
2649
2651 {
2653 }
2654
2656 {
2657 return true;
2658 }
2659
2661 {
2662 return false;
2663 }
2664
2665
2667 {
2670 {
2672 }
2673
2674 return construction_kit;
2675 }
2676
2678 {
2681 {
2683 }
2684 }
2685
2687 {
2689 }
2690
2692 {
2693 return "";
2694 }
2695
2697 {
2700 }
2701
2702
2704 {
2707 }
2708
2709
2711 {
2712 super.OnStoreSave( ctx );
2713
2714
2718
2720 }
2721
2723 {
2724 if ( !super.OnStoreLoad( ctx, version ) )
2725 return false;
2726
2727
2728
2730 {
2732 return false;
2733 }
2735 {
2737 return false;
2738 }
2740 {
2742 return false;
2743 }
2744
2745
2747 {
2749 return false;
2750 }
2751
2752
2753 return true;
2754 }
2755
2757 {
2758 super.AfterStoreLoad();
2759
2761 {
2763 }
2764 }
2765
2767 {
2768
2770
2771
2774
2775
2777 }
2778
2780 {
2781 super.OnCreatePhysics();
2784 }
2785
2787 {
2789 return;
2790
2791 super.EEHealthLevelChanged(oldLevel,newLevel,zone);
2792
2794 return;
2795
2797 string part_name = zone;
2799
2801 {
2802 ConstructionPart construction_part = construction.GetConstructionPart( part_name );
2803
2804 if ( construction_part && construction.IsPartConstructed( part_name ) )
2805 {
2807 construction.DestroyConnectedParts(part_name);
2808 }
2809
2810
2811 if ( part_name.
Contains(
"barbed") )
2812 {
2813 BarbedWire barbed_wire = BarbedWire.Cast( FindAttachmentBySlotName( zone ) );
2814 if (barbed_wire)
2815 barbed_wire.SetMountedState( false );
2816 }
2817 }
2818 }
2819
2821 {
2823 {
2825 }
2826
2827 super.EEOnAfterLoad();
2828 }
2829
2831 {
2832 super.EEInit();
2833
2834
2836
2837
2838 #ifdef DEVELOPER
2840 #endif
2841 }
2842
2844 {
2845 super.EEItemAttached( item, slot_name );
2846
2850 }
2851
2853 {
2854 super.EEItemDetached( item, slot_name );
2855
2858 }
2859
2860 protected void OnSetSlotLock(
int slotId,
bool locked,
bool was_locked )
2861 {
2864
2867 }
2868
2869
2871 {
2872 return true;
2873 }
2874
2875
2876
2878 {
2880
2881
2882 if (construtionPart.
IsBase())
2883 {
2885
2886
2888 }
2889
2890
2892
2893
2895
2896
2898
2900
2902
2903
2905
2906
2908 }
2909
2911 {
2912
2914 }
2915
2916
2918 {
2921
2922
2924
2925
2927
2928
2930
2931
2933
2935
2936
2938
2939
2941
2942
2943 if (construtionPart.
IsBase())
2944 {
2945
2947 }
2948 }
2949
2951 {
2952
2954 }
2955
2956
2957 void OnPartDestroyedServer(Man player,
string part_name,
int action_id,
bool destroyed_by_connected_part =
false)
2958 {
2961
2962
2964
2965
2967
2968
2970
2971
2973
2975
2976
2978
2979
2981
2982
2983 if (construtionPart.
IsBase())
2984 {
2985
2987 }
2988 }
2989
2991 {
2992
2994 }
2995
2998 {
2999 bool process = false;
3000
3001
3005
3006 if (process)
3007 {
3008 if (!MemoryPointExists(part.
m_PartName +
"_min") || !MemoryPointExists(part.
m_PartName +
"_max"))
3009 {
3011 return;
3012 }
3013
3015 mins = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_min"));
3016 maxs = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_max"));
3017
3018
3020 minTmp[0] =
Math.
Min(mins[0],maxs[0]);
3021 maxTmp[0] =
Math.
Max(mins[0],maxs[0]);
3022 minTmp[1] =
Math.
Min(mins[1],maxs[1]);
3023 maxTmp[1] =
Math.
Max(mins[1],maxs[1]);
3024 minTmp[2] =
Math.
Min(mins[2],maxs[2]);
3025 maxTmp[2] =
Math.
Max(mins[2],maxs[2]);
3026 mins = minTmp;
3027 maxs = maxTmp;
3028
3029 maxs[1] = maxs[1] + 0.35;
3030
3032 }
3033 }
3034
3037 {
3040
3041
3043 foreach (
EntityAI entity : foundEntities)
3044 {
3047 }
3048 }
3049
3050
3052 {
3054
3058 }
3059
3061 {
3063
3065 {
3067 }
3068 else
3069 {
3071 }
3072
3074 }
3075
3077 {
3079
3081 foreach (
string slotName : attachmentSlots)
3082 {
3084 }
3085
3086
3089 else
3091
3093 }
3094
3096 {
3097 string slotNameMounted = slot_name + "_Mounted";
3098 EntityAI attachment = FindAttachmentBySlotName(slot_name);
3099
3100 if (attachment)
3101 {
3102 BarbedWire barbedWire = BarbedWire.Cast(attachment);
3103 if (barbedWire && barbedWire.IsMounted())
3105 else
3107
3108 if (is_locked)
3109 {
3110 SetAnimationPhase(slotNameMounted, 0);
3111 SetAnimationPhase(slot_name, 1);
3112 }
3113 else
3114 {
3115 SetAnimationPhase(slotNameMounted, 1);
3116 SetAnimationPhase(slot_name, 0);
3117 }
3118 }
3119 else
3120 {
3121 SetAnimationPhase(slotNameMounted, 1);
3122 SetAnimationPhase(slot_name, 1);
3123
3125 }
3126 }
3127
3128
3130 {
3133
3136
3139
3140 foreach (
string slotName : attachmentSlots)
3141 {
3143 }
3144
3145
3147 {
3150
3152 }
3153 else
3154 {
3157
3159 }
3160
3163 }
3164
3166 {
3167
3169 return;
3170
3171 string slot_name_mounted = slot_name + "_Mounted";
3172 EntityAI attachment = FindAttachmentBySlotName( slot_name );
3173
3174
3176 RemoveProxyPhysics( slot_name_mounted );
3177 RemoveProxyPhysics( slot_name );
3178
3179 if ( attachment )
3180 {
3182 if ( is_locked )
3183 {
3185 AddProxyPhysics( slot_name_mounted );
3186 }
3187 else
3188 {
3190 AddProxyPhysics( slot_name );
3191 }
3192 }
3193 }
3194
3196 {
3197 SetAffectPathgraph( true, false );
3199 }
3200
3202 {
3203 return true;
3204 }
3205
3207 {
3208 return true;
3209 }
3210
3212 {
3213 if ( attachment )
3214 {
3216 attachment.GetInventory().GetCurrentInventoryLocation( inventory_location );
3217
3218 return GetInventory().GetSlotLock( inventory_location.
GetSlot() );
3219 }
3220
3221 return false;
3222 }
3223
3225 {
3227 }
3228
3229
3231 {
3232 string config_path = "CfgVehicles" + " " + entity.GetType() + " " + "attachments";
3233 if (
GetGame().ConfigIsExisting( config_path ) )
3234 {
3236 }
3237 }
3238
3240 {
3241 return true;
3242 }
3243
3245 {
3246 return true;
3247 }
3248
3250 {
3251 return true;
3252 }
3253
3254
3256 {
3258 {
3260 }
3261
3263 }
3264
3266 {
3268 }
3269
3270
3271
3273 {
3274 return super.CanReceiveAttachment(attachment, slotId);
3275 }
3276
3278 {
3279 int attachment_count = GetInventory().AttachmentCount();
3280 if ( attachment_count > 0 )
3281 {
3282 if (
HasBase() && attachment_count == 1 )
3283 {
3284 return false;
3285 }
3286
3287 return true;
3288 }
3289
3290 return false;
3291 }
3292
3294 {
3295 return true;
3296 }
3297
3299 {
3300 return false;
3301 }
3302
3303
3305 {
3306 return false;
3307 }
3308
3310 {
3311 return false;
3312 }
3313
3314
3316 {
3317 return false;
3318 }
3319
3320
3321
3323 {
3324 return true;
3325 }
3326
3328 {
3329 return true;
3330 }
3331
3334 {
3335 return false;
3336 }
3337
3338
3340 {
3341 return true;
3342 }
3343
3344
3346 {
3347 return false;
3348 }
3349
3350
3352 {
3353 return true;
3354 }
3355
3356
3358 {
3359 if (
HasBase() || GetInventory().AttachmentCount() > 0 )
3360 {
3361 return false;
3362 }
3363
3364 return true;
3365 }
3366
3368 {
3371
3372 return item;
3373 }
3374
3375
3377 {
3379 {
3380
3382
3383
3386
3388 if ( MemoryPointExists( slot_name + "_min" ) )
3389 {
3390 min_max[0] = GetMemoryPointPos( slot_name + "_min" );
3391 }
3392 if ( MemoryPointExists( slot_name + "_max" ) )
3393 {
3394 min_max[1] = GetMemoryPointPos( slot_name + "_max" );
3395 }
3396
3397
3400
3401
3404 center = ModelToWorld( center );
3405
3406
3409
3410 areaDamage.SetExtents( extents[0], extents[1] );
3411 areaDamage.SetAreaPosition( center );
3412 areaDamage.SetAreaOrientation( orientation );
3415 areaDamage.SetHitZones( { "Torso","LeftHand","LeftLeg","LeftFoot","RightHand","RightLeg","RightFoot" } );
3416 areaDamage.SetAmmoName( "BarbedWireHit" );
3417 areaDamage.Spawn();
3418
3420 }
3421 }
3422
3424 {
3425 if ( angle_deg != 0 )
3426 {
3427
3428 orientation[0] = orientation[0] - angle_deg;
3429
3430
3432 if ( MemoryPointExists( "rotate_axis" ) )
3433 {
3434 rotate_axis = ModelToWorld( GetMemoryPointPos( "rotate_axis" ) );
3435 }
3436 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];
3437 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];
3438 center[0] = r_center_x;
3439 center[2] = r_center_z;
3440 }
3441 }
3442
3444 {
3446 {
3449 {
3450 if (areaDamage)
3451 {
3452 areaDamage.Destroy();
3453 }
3454
3456 }
3457 }
3458 }
3459
3461 {
3462 return true;
3463 }
3464
3465
3466
3467
3469 {
3471 }
3472
3474 {
3476 }
3477
3479 {
3481 }
3482
3484 {
3486
3487 switch ( material_type )
3488 {
3494 }
3495
3496 return "";
3497 }
3498
3500 {
3502
3503 switch ( material_type )
3504 {
3510 }
3511
3512 return "";
3513 }
3514
3515
3517 {
3519 {
3520
3522 {
3523 SetHealth(slot_name,"Health",item.GetHealth());
3524 }
3525 }
3526 }
3527
3529 {
3530 return 111;
3531 }
3532
3534 {
3535 super.SetActions();
3536
3540 }
3541
3542
3543
3544
3546 {
3547 }
3548
3551 {
3552 return null;
3553 }
3554
3556 {
3558 }
3559
3561 {
3564
3565 Man p;
3566
3567 #ifdef SERVER
3570 if (players.Count())
3571 p = players[0];
3572 #else
3574 #endif
3575
3577 {
3578 bool excluded = false;
3580 if (excludes)
3581 {
3582 foreach (string exclude : excludes)
3583 {
3585 {
3586 excluded = true;
3587 break;
3588 }
3589 }
3590 }
3591
3592 if (!excluded)
3593 {
3595 }
3596 }
3597
3599 }
3600}
3601
3603{
3604#ifdef BSB_DEBUG
3606#else
3607
3608#endif
3609}
3611{
3612#ifdef BSB_DEBUG_SPAM
3614#else
3615
3616#endif
3617}
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.