2330{
2332
2334
2336
2338
2344
2345
2346
2352
2358
2360
2364
2365
2367 {
2369
2370
2371 RegisterNetSyncVariableInt( "m_SyncParts01" );
2372 RegisterNetSyncVariableInt( "m_SyncParts02" );
2373 RegisterNetSyncVariableInt( "m_SyncParts03" );
2374 RegisterNetSyncVariableInt( "m_InteractedPartId" );
2375 RegisterNetSyncVariableInt( "m_PerformedActionId" );
2376 RegisterNetSyncVariableBool( "m_HasBase" );
2377
2378
2380
2381 if (ConfigIsExisting("hybridAttachments"))
2382 {
2385 }
2386 if (ConfigIsExisting("mountables"))
2387 {
2390 }
2391
2393 }
2394
2396 {
2397 super.EEDelete(parent);
2398
2400 {
2401 areaDamage.Destroy();
2402 }
2403
2404 }
2405
2407 {
2408 return "disableBaseDamage";
2409 }
2410
2412 {
2413 return true;
2414 }
2415
2417 {
2418 return EInventoryIconVisibility.HIDE_VICINITY;
2419 }
2420
2422 {
2423 super.InitItemSounds();
2424
2428
2433 }
2434
2436 {
2437 return "putDown_FenceKit_SoundSet";
2438 }
2439
2441 {
2442 return "Shelter_Site_Build_Loop_SoundSet";
2443 }
2444
2445
2447 {
2449 {
2450 SetSynchDirty();
2451 }
2452 }
2453
2455 {
2457 super.OnVariablesSynchronized();
2458
2460 }
2461
2463 {
2464
2466
2467
2469
2470
2472 }
2473
2474
2476 {
2477
2478 int offset;
2479 int mask;
2480
2481 if ( part_id >= 1 && part_id <= 31 )
2482 {
2483 offset = part_id - 1;
2484 mask = 1 << offset;
2485
2487 }
2488 else if ( part_id >= 32 && part_id <= 62 )
2489 {
2490 offset = ( part_id % 32 );
2491 mask = 1 << offset;
2492
2494 }
2495 else if ( part_id >= 63 && part_id <= 93 )
2496 {
2497 offset = ( part_id % 63 );
2498 mask = 1 << offset;
2499
2501 }
2502 }
2503
2505 {
2506
2507 int offset;
2508 int mask;
2509
2510 if ( part_id >= 1 && part_id <= 31 )
2511 {
2512 offset = part_id - 1;
2513 mask = 1 << offset;
2514
2516 }
2517 else if ( part_id >= 32 && part_id <= 62 )
2518 {
2519 offset = ( part_id % 32 );
2520 mask = 1 << offset;
2521
2523 }
2524 else if ( part_id >= 63 && part_id <= 93 )
2525 {
2526 offset = ( part_id % 63 );
2527 mask = 1 << offset;
2528
2530 }
2531 }
2532
2534 {
2535
2536 int offset;
2537 int mask;
2538
2539 if ( part_id >= 1 && part_id <= 31 )
2540 {
2541 offset = part_id - 1;
2542 mask = 1 << offset;
2543
2545 {
2546 return true;
2547 }
2548 }
2549 else if ( part_id >= 32 && part_id <= 62 )
2550 {
2551 offset = ( part_id % 32 );
2552 mask = 1 << offset;
2553
2555 {
2556 return true;
2557 }
2558 }
2559 else if ( part_id >= 63 && part_id <= 93 )
2560 {
2561 offset = ( part_id % 63 );
2562 mask = 1 << offset;
2563
2565 {
2566 return true;
2567 }
2568 }
2569
2570 return false;
2571 }
2572
2574 {
2577 }
2578
2580 {
2581
2584 }
2585
2587 {
2589 {
2592
2593 switch( build_action_id )
2594 {
2598 }
2599 }
2600 }
2601
2602
2604 {
2606 bool is_base = part.
IsBase();
2609 if ( is_part_built_sync )
2610 {
2612 {
2616
2617 if (is_base)
2618 {
2621 }
2622 }
2623 }
2624 else
2625 {
2627 {
2631
2632 if (is_base)
2633 {
2636 }
2637 }
2638 }
2639
2640
2642 }
2643
2644
2646 {
2649
2650 for ( int i = 0; i < construction_parts.Count(); ++i )
2651 {
2652 string key = construction_parts.GetKey( i );
2655 }
2656
2657
2659 }
2660
2662 {
2665
2666 for ( int i = 0; i < construction_parts.Count(); ++i )
2667 {
2668 string key = construction_parts.GetKey( i );
2670
2671 if ( value.
GetId() ==
id )
2672 {
2673 return value;
2674 }
2675 }
2676
2677 return NULL;
2678 }
2679
2680
2681
2683 {
2685 }
2686
2688 {
2690 }
2691
2693 {
2694 return true;
2695 }
2696
2698 {
2699 return false;
2700 }
2701
2702
2704 {
2707 {
2709 }
2710
2711 return construction_kit;
2712 }
2713
2715 {
2718 {
2720 }
2721 }
2722
2724 {
2726 }
2727
2729 {
2730 return "";
2731 }
2732
2734 {
2737 }
2738
2739
2741 {
2744 }
2745
2746
2748 {
2749 super.OnStoreSave( ctx );
2750
2751
2755
2757 }
2758
2760 {
2761 if ( !super.OnStoreLoad( ctx, version ) )
2762 return false;
2763
2764
2765
2767 {
2769 return false;
2770 }
2772 {
2774 return false;
2775 }
2777 {
2779 return false;
2780 }
2781
2782
2784 {
2786 return false;
2787 }
2788
2789
2790 return true;
2791 }
2792
2794 {
2795 super.AfterStoreLoad();
2796
2798 {
2800 }
2801 }
2802
2804 {
2805
2807
2808
2811
2812
2814 }
2815
2817 {
2818 super.OnCreatePhysics();
2821 }
2822
2824 {
2826 return;
2827
2828 super.EEHealthLevelChanged(oldLevel,newLevel,zone);
2829
2831 return;
2832
2834 string part_name = zone;
2836
2838 {
2839 ConstructionPart construction_part = construction.GetConstructionPart( part_name );
2840
2841 if ( construction_part && construction.IsPartConstructed( part_name ) )
2842 {
2844 construction.DestroyConnectedParts(part_name);
2845 }
2846
2847
2848 if ( part_name.
Contains(
"barbed") )
2849 {
2850 BarbedWire barbed_wire = BarbedWire.Cast( FindAttachmentBySlotName( zone ) );
2851 if (barbed_wire)
2852 barbed_wire.SetMountedState( false );
2853 }
2854 }
2855 }
2856
2858 {
2860 {
2862 }
2863
2864 super.EEOnAfterLoad();
2865 }
2866
2868 {
2869 super.EEInit();
2870
2871
2873
2874
2875 #ifdef DEVELOPER
2877 #endif
2878 }
2879
2881 {
2882 super.EEItemAttached( item, slot_name );
2883
2887 }
2888
2890 {
2891 super.EEItemDetached( item, slot_name );
2892
2895 }
2896
2897 protected void OnSetSlotLock(
int slotId,
bool locked,
bool was_locked )
2898 {
2901
2904 }
2905
2906
2908 {
2909 return true;
2910 }
2911
2912
2913
2915 {
2917
2918
2919 if (construtionPart.
IsBase())
2920 {
2922
2923
2925 }
2926
2927
2929
2930
2932
2933
2935
2937
2939
2940
2942
2943
2945 }
2946
2948 {
2949
2951 }
2952
2953
2955 {
2958
2959
2961
2962
2964
2965
2967
2968
2970
2972
2973
2975
2976
2978
2979
2980 if (construtionPart.
IsBase())
2981 {
2982
2984 }
2985 }
2986
2988 {
2989
2991 }
2992
2993
2994 void OnPartDestroyedServer(Man player,
string part_name,
int action_id,
bool destroyed_by_connected_part =
false)
2995 {
2998
2999
3001
3002
3004
3005
3007
3008
3010
3012
3013
3015
3016
3018
3019
3020 if (construtionPart.
IsBase())
3021 {
3022
3024 }
3025 }
3026
3028 {
3029
3031 }
3032
3035 {
3036 bool process = false;
3037
3038
3042
3043 if (process)
3044 {
3045 if (!MemoryPointExists(part.
m_PartName +
"_min") || !MemoryPointExists(part.
m_PartName +
"_max"))
3046 {
3048 return;
3049 }
3050
3052 mins = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_min"));
3053 maxs = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_max"));
3054
3055
3057 minTmp[0] =
Math.
Min(mins[0],maxs[0]);
3058 maxTmp[0] =
Math.
Max(mins[0],maxs[0]);
3059 minTmp[1] =
Math.
Min(mins[1],maxs[1]);
3060 maxTmp[1] =
Math.
Max(mins[1],maxs[1]);
3061 minTmp[2] =
Math.
Min(mins[2],maxs[2]);
3062 maxTmp[2] =
Math.
Max(mins[2],maxs[2]);
3063 mins = minTmp;
3064 maxs = maxTmp;
3065
3066 maxs[1] = maxs[1] + 0.35;
3067
3069 }
3070 }
3071
3074 {
3077
3078
3080 foreach (
EntityAI entity : foundEntities)
3081 {
3084 }
3085 }
3086
3087
3089 {
3091
3095 }
3096
3098 {
3100
3102 {
3104 }
3105 else
3106 {
3108 }
3109
3111 }
3112
3114 {
3116
3118 foreach (
string slotName : attachmentSlots)
3119 {
3121 }
3122
3123
3126 else
3128
3130 }
3131
3133 {
3134 string slotNameMounted = slot_name + "_Mounted";
3135 EntityAI attachment = FindAttachmentBySlotName(slot_name);
3136
3137 if (attachment)
3138 {
3139 BarbedWire barbedWire = BarbedWire.Cast(attachment);
3140 if (barbedWire && barbedWire.IsMounted())
3142 else
3144
3145 if (is_locked)
3146 {
3147 SetAnimationPhase(slotNameMounted, 0);
3148 SetAnimationPhase(slot_name, 1);
3149 }
3150 else
3151 {
3152 SetAnimationPhase(slotNameMounted, 1);
3153 SetAnimationPhase(slot_name, 0);
3154 }
3155 }
3156 else
3157 {
3158 SetAnimationPhase(slotNameMounted, 1);
3159 SetAnimationPhase(slot_name, 1);
3160
3162 }
3163 }
3164
3165
3167 {
3170
3173
3176
3177 foreach (
string slotName : attachmentSlots)
3178 {
3180 }
3181
3182
3184 {
3187
3189 }
3190 else
3191 {
3194
3196 }
3197
3200 }
3201
3203 {
3204
3206 return;
3207
3208 string slot_name_mounted = slot_name + "_Mounted";
3209 EntityAI attachment = FindAttachmentBySlotName( slot_name );
3210
3211
3213 RemoveProxyPhysics( slot_name_mounted );
3214 RemoveProxyPhysics( slot_name );
3215
3216 if ( attachment )
3217 {
3219 if ( is_locked )
3220 {
3222 AddProxyPhysics( slot_name_mounted );
3223 }
3224 else
3225 {
3227 AddProxyPhysics( slot_name );
3228 }
3229 }
3230 }
3231
3233 {
3234 SetAffectPathgraph( true, false );
3236 }
3237
3239 {
3240 return true;
3241 }
3242
3244 {
3245 return true;
3246 }
3247
3249 {
3250 if ( attachment )
3251 {
3253 attachment.GetInventory().GetCurrentInventoryLocation( inventory_location );
3254
3255 return GetInventory().GetSlotLock( inventory_location.
GetSlot() );
3256 }
3257
3258 return false;
3259 }
3260
3262 {
3264 }
3265
3266
3268 {
3269 string config_path = "CfgVehicles" + " " + entity.GetType() + " " + "attachments";
3270 if (
GetGame().ConfigIsExisting( config_path ) )
3271 {
3273 }
3274 }
3275
3277 {
3278 return true;
3279 }
3280
3282 {
3283 return true;
3284 }
3285
3287 {
3288 return true;
3289 }
3290
3291
3293 {
3295 {
3297 }
3298
3300 }
3301
3303 {
3305 }
3306
3307
3308
3310 {
3311 return super.CanReceiveAttachment(attachment, slotId);
3312 }
3313
3315 {
3316 int attachment_count = GetInventory().AttachmentCount();
3317 if ( attachment_count > 0 )
3318 {
3319 if (
HasBase() && attachment_count == 1 )
3320 {
3321 return false;
3322 }
3323
3324 return true;
3325 }
3326
3327 return false;
3328 }
3329
3331 {
3332 return true;
3333 }
3334
3336 {
3337 return false;
3338 }
3339
3340
3342 {
3343 return false;
3344 }
3345
3347 {
3348 return false;
3349 }
3350
3351
3353 {
3354 return false;
3355 }
3356
3357
3358
3360 {
3361 return true;
3362 }
3363
3365 {
3366 return true;
3367 }
3368
3371 {
3372 return false;
3373 }
3374
3375
3377 {
3378 return true;
3379 }
3380
3381
3383 {
3384 return false;
3385 }
3386
3387
3389 {
3390 return true;
3391 }
3392
3393
3395 {
3396 if (
HasBase() || GetInventory().AttachmentCount() > 0 )
3397 {
3398 return false;
3399 }
3400
3401 return true;
3402 }
3403
3405 {
3408
3409 return item;
3410 }
3411
3412
3414 {
3416 {
3417
3419
3420
3423
3425 if ( MemoryPointExists( slot_name + "_min" ) )
3426 {
3427 min_max[0] = GetMemoryPointPos( slot_name + "_min" );
3428 }
3429 if ( MemoryPointExists( slot_name + "_max" ) )
3430 {
3431 min_max[1] = GetMemoryPointPos( slot_name + "_max" );
3432 }
3433
3434
3437
3438
3441 center = ModelToWorld( center );
3442
3443
3446
3447 areaDamage.SetExtents( extents[0], extents[1] );
3448 areaDamage.SetAreaPosition( center );
3449 areaDamage.SetAreaOrientation( orientation );
3452 areaDamage.SetHitZones( { "Torso","LeftHand","LeftLeg","LeftFoot","RightHand","RightLeg","RightFoot" } );
3453 areaDamage.SetAmmoName( "BarbedWireHit" );
3454 areaDamage.Spawn();
3455
3457 }
3458 }
3459
3461 {
3462 if ( angle_deg != 0 )
3463 {
3464
3465 orientation[0] = orientation[0] - angle_deg;
3466
3467
3469 if ( MemoryPointExists( "rotate_axis" ) )
3470 {
3471 rotate_axis = ModelToWorld( GetMemoryPointPos( "rotate_axis" ) );
3472 }
3473 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];
3474 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];
3475 center[0] = r_center_x;
3476 center[2] = r_center_z;
3477 }
3478 }
3479
3481 {
3483 {
3486 {
3487 if (areaDamage)
3488 {
3489 areaDamage.Destroy();
3490 }
3491
3493 }
3494 }
3495 }
3496
3498 {
3499 return true;
3500 }
3501
3502
3503
3504
3506 {
3508 }
3509
3511 {
3513 }
3514
3516 {
3518 }
3519
3521 {
3523
3524 switch ( material_type )
3525 {
3531 }
3532
3533 return "";
3534 }
3535
3537 {
3539
3540 switch ( material_type )
3541 {
3547 }
3548
3549 return "";
3550 }
3551
3552
3554 {
3556 {
3557
3559 {
3560 SetHealth(slot_name,"Health",item.GetHealth());
3561 }
3562 }
3563 }
3564
3566 {
3567 return 111;
3568 }
3569
3571 {
3572 super.SetActions();
3573
3577 }
3578
3579
3580
3581
3583 {
3584 }
3585
3588 {
3589 return null;
3590 }
3591
3593 {
3595 }
3596
3598 {
3601
3602 Man p;
3603
3604 #ifdef SERVER
3607 if (players.Count())
3608 p = players[0];
3609 #else
3611 #endif
3612
3614 {
3615 bool excluded = false;
3617 if (excludes)
3618 {
3619 foreach (string exclude : excludes)
3620 {
3622 {
3623 excluded = true;
3624 break;
3625 }
3626 }
3627 }
3628
3629 if (!excluded)
3630 {
3632 }
3633 }
3634
3636 }
3637}
3638
3640{
3641#ifdef BSB_DEBUG
3643#else
3644
3645#endif
3646}
3648{
3649#ifdef BSB_DEBUG_SPAM
3651#else
3652
3653#endif
3654}
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.