2494{
2496
2498
2500
2502
2508
2509
2510
2516
2522
2524
2528
2529
2531 {
2533
2534
2535 RegisterNetSyncVariableInt( "m_SyncParts01" );
2536 RegisterNetSyncVariableInt( "m_SyncParts02" );
2537 RegisterNetSyncVariableInt( "m_SyncParts03" );
2538 RegisterNetSyncVariableInt( "m_InteractedPartId" );
2539 RegisterNetSyncVariableInt( "m_PerformedActionId" );
2540 RegisterNetSyncVariableBool( "m_HasBase" );
2541
2542
2544
2545 if (ConfigIsExisting("hybridAttachments"))
2546 {
2549 }
2550 if (ConfigIsExisting("mountables"))
2551 {
2554 }
2555
2557 }
2558
2560 {
2561 super.EEDelete(parent);
2562
2564 {
2565 areaDamage.Destroy();
2566 }
2567
2568 }
2569
2571 {
2572 return "disableBaseDamage";
2573 }
2574
2576 {
2577 return true;
2578 }
2579
2581 {
2582 return EInventoryIconVisibility.HIDE_VICINITY;
2583 }
2584
2586 {
2587 super.InitItemSounds();
2588
2592
2597 }
2598
2600 {
2601 return "putDown_FenceKit_SoundSet";
2602 }
2603
2605 {
2606 return "Shelter_Site_Build_Loop_SoundSet";
2607 }
2608
2609
2611 {
2613 {
2614 SetSynchDirty();
2615 }
2616 }
2617
2619 {
2621 super.OnVariablesSynchronized();
2622
2624 }
2625
2627 {
2628
2630
2631
2633
2634
2636 }
2637
2638
2640 {
2641
2642 int offset;
2643 int mask;
2644
2645 if ( part_id >= 1 && part_id <= 31 )
2646 {
2647 offset = part_id - 1;
2648 mask = 1 << offset;
2649
2651 }
2652 else if ( part_id >= 32 && part_id <= 62 )
2653 {
2654 offset = ( part_id % 32 );
2655 mask = 1 << offset;
2656
2658 }
2659 else if ( part_id >= 63 && part_id <= 93 )
2660 {
2661 offset = ( part_id % 63 );
2662 mask = 1 << offset;
2663
2665 }
2666 }
2667
2669 {
2670
2671 int offset;
2672 int mask;
2673
2674 if ( part_id >= 1 && part_id <= 31 )
2675 {
2676 offset = part_id - 1;
2677 mask = 1 << offset;
2678
2680 }
2681 else if ( part_id >= 32 && part_id <= 62 )
2682 {
2683 offset = ( part_id % 32 );
2684 mask = 1 << offset;
2685
2687 }
2688 else if ( part_id >= 63 && part_id <= 93 )
2689 {
2690 offset = ( part_id % 63 );
2691 mask = 1 << offset;
2692
2694 }
2695 }
2696
2698 {
2699
2700 int offset;
2701 int mask;
2702
2703 if ( part_id >= 1 && part_id <= 31 )
2704 {
2705 offset = part_id - 1;
2706 mask = 1 << offset;
2707
2709 {
2710 return true;
2711 }
2712 }
2713 else if ( part_id >= 32 && part_id <= 62 )
2714 {
2715 offset = ( part_id % 32 );
2716 mask = 1 << offset;
2717
2719 {
2720 return true;
2721 }
2722 }
2723 else if ( part_id >= 63 && part_id <= 93 )
2724 {
2725 offset = ( part_id % 63 );
2726 mask = 1 << offset;
2727
2729 {
2730 return true;
2731 }
2732 }
2733
2734 return false;
2735 }
2736
2738 {
2741 }
2742
2744 {
2745
2748 }
2749
2751 {
2753 {
2756
2757 switch( build_action_id )
2758 {
2762 }
2763 }
2764 }
2765
2766
2768 {
2770 bool is_base = part.
IsBase();
2773 if ( is_part_built_sync )
2774 {
2776 {
2780
2781 if (is_base)
2782 {
2785 }
2786 }
2787 }
2788 else
2789 {
2791 {
2795
2796 if (is_base)
2797 {
2800 }
2801 }
2802 }
2803
2804
2806 }
2807
2808
2810 {
2813
2814 for ( int i = 0; i < construction_parts.Count(); ++i )
2815 {
2816 string key = construction_parts.GetKey( i );
2819 }
2820
2821
2823 }
2824
2826 {
2829
2830 for ( int i = 0; i < construction_parts.Count(); ++i )
2831 {
2832 string key = construction_parts.GetKey( i );
2834
2835 if ( value.
GetId() ==
id )
2836 {
2837 return value;
2838 }
2839 }
2840
2841 return NULL;
2842 }
2843
2844
2845
2847 {
2849 }
2850
2852 {
2854 }
2855
2857 {
2858 return true;
2859 }
2860
2862 {
2863 return false;
2864 }
2865
2866
2868 {
2871 {
2873 }
2874
2875 return construction_kit;
2876 }
2877
2879 {
2882 {
2884 }
2885 }
2886
2888 {
2890 }
2891
2893 {
2894 return "";
2895 }
2896
2898 {
2901 }
2902
2903
2905 {
2908 }
2909
2910
2912 {
2913 super.OnStoreSave( ctx );
2914
2915
2919
2921 }
2922
2924 {
2925 if ( !super.OnStoreLoad( ctx, version ) )
2926 return false;
2927
2928
2929
2931 {
2933 return false;
2934 }
2936 {
2938 return false;
2939 }
2941 {
2943 return false;
2944 }
2945
2946
2948 {
2950 return false;
2951 }
2952
2953
2954 return true;
2955 }
2956
2958 {
2959 super.AfterStoreLoad();
2960
2962 {
2964 }
2965 }
2966
2968 {
2969
2971
2972
2975
2976
2978 }
2979
2981 {
2982 super.OnCreatePhysics();
2985 }
2986
2988 {
2990 return;
2991
2992 super.EEHealthLevelChanged(oldLevel,newLevel,zone);
2993
2995 return;
2996
2998 string part_name = zone;
3000
3002 {
3003 ConstructionPart construction_part = construction.GetConstructionPart( part_name );
3004
3005 if ( construction_part && construction.IsPartConstructed( part_name ) )
3006 {
3008 construction.DestroyConnectedParts(part_name);
3009 }
3010
3011
3012 if ( part_name.
Contains(
"barbed") )
3013 {
3014 BarbedWire barbed_wire = BarbedWire.Cast( FindAttachmentBySlotName( zone ) );
3015 if (barbed_wire)
3016 barbed_wire.SetMountedState( false );
3017 }
3018 }
3019 }
3020
3022 {
3024 {
3026 }
3027
3028 super.EEOnAfterLoad();
3029 }
3030
3032 {
3033 super.EEInit();
3034
3035
3037
3038
3039 #ifdef DEVELOPER
3041 #endif
3042 }
3043
3045 {
3046 super.EEItemAttached( item, slot_name );
3047
3051 }
3052
3054 {
3055 super.EEItemDetached( item, slot_name );
3056
3059 }
3060
3061 protected void OnSetSlotLock(
int slotId,
bool locked,
bool was_locked )
3062 {
3065
3068 }
3069
3070
3072 {
3073 return true;
3074 }
3075
3076
3077
3079 {
3081
3082
3083 if (construtionPart.
IsBase())
3084 {
3086
3087
3089 }
3090
3091
3093
3094
3096
3097
3099
3101
3103
3104
3106
3107
3109 }
3110
3112 {
3113
3115 }
3116
3117
3119 {
3122
3123
3125
3126
3128
3129
3131
3132
3134
3136
3137
3139
3140
3142
3143
3144 if (construtionPart.
IsBase())
3145 {
3146
3148 }
3149 }
3150
3152 {
3153
3155 }
3156
3157
3158 void OnPartDestroyedServer(Man player,
string part_name,
int action_id,
bool destroyed_by_connected_part =
false)
3159 {
3162
3163
3165
3166
3168
3169
3171
3172
3174
3176
3177
3179
3180
3182
3183
3184 if (construtionPart.
IsBase())
3185 {
3186
3188 }
3189 }
3190
3192 {
3193
3195 }
3196
3199 {
3200 bool process = false;
3201
3202
3206
3207 if (process)
3208 {
3209 if (!MemoryPointExists(part.
m_PartName +
"_min") || !MemoryPointExists(part.
m_PartName +
"_max"))
3210 {
3212 return;
3213 }
3214
3216 mins = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_min"));
3217 maxs = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_max"));
3218
3219
3221 minTmp[0] =
Math.
Min(mins[0],maxs[0]);
3222 maxTmp[0] =
Math.
Max(mins[0],maxs[0]);
3223 minTmp[1] =
Math.
Min(mins[1],maxs[1]);
3224 maxTmp[1] =
Math.
Max(mins[1],maxs[1]);
3225 minTmp[2] =
Math.
Min(mins[2],maxs[2]);
3226 maxTmp[2] =
Math.
Max(mins[2],maxs[2]);
3227 mins = minTmp;
3228 maxs = maxTmp;
3229
3230 maxs[1] = maxs[1] + 0.35;
3231
3233 }
3234 }
3235
3238 {
3241
3242
3244 foreach (
EntityAI entity : foundEntities)
3245 {
3248 }
3249 }
3250
3251
3253 {
3255
3259 }
3260
3262 {
3264
3266 {
3268 }
3269 else
3270 {
3272 }
3273
3275 }
3276
3278 {
3280
3282 foreach (
string slotName : attachmentSlots)
3283 {
3285 }
3286
3287
3290 else
3292
3294 }
3295
3297 {
3298 string slotNameMounted = slot_name + "_Mounted";
3299 EntityAI attachment = FindAttachmentBySlotName(slot_name);
3300
3301 if (attachment)
3302 {
3303 BarbedWire barbedWire = BarbedWire.Cast(attachment);
3304 if (barbedWire && barbedWire.IsMounted())
3306 else
3308
3309 if (is_locked)
3310 {
3311 SetAnimationPhase(slotNameMounted, 0);
3312 SetAnimationPhase(slot_name, 1);
3313 }
3314 else
3315 {
3316 SetAnimationPhase(slotNameMounted, 1);
3317 SetAnimationPhase(slot_name, 0);
3318 }
3319 }
3320 else
3321 {
3322 SetAnimationPhase(slotNameMounted, 1);
3323 SetAnimationPhase(slot_name, 1);
3324
3326 }
3327 }
3328
3329
3331 {
3334
3337
3340
3341 foreach (
string slotName : attachmentSlots)
3342 {
3344 }
3345
3346
3348 {
3351
3353 }
3354 else
3355 {
3358
3360 }
3361
3364 }
3365
3367 {
3368
3370 return;
3371
3372 string slot_name_mounted = slot_name + "_Mounted";
3373 EntityAI attachment = FindAttachmentBySlotName( slot_name );
3374
3375
3377 RemoveProxyPhysics( slot_name_mounted );
3378 RemoveProxyPhysics( slot_name );
3379
3380 if ( attachment )
3381 {
3383 if ( is_locked )
3384 {
3386 AddProxyPhysics( slot_name_mounted );
3387 }
3388 else
3389 {
3391 AddProxyPhysics( slot_name );
3392 }
3393 }
3394 }
3395
3397 {
3398 SetAffectPathgraph( true, false );
3400 }
3401
3403 {
3404 return true;
3405 }
3406
3408 {
3409 return true;
3410 }
3411
3413 {
3414 if ( attachment )
3415 {
3417 attachment.GetInventory().GetCurrentInventoryLocation( inventory_location );
3418
3419 return GetInventory().GetSlotLock( inventory_location.
GetSlot() );
3420 }
3421
3422 return false;
3423 }
3424
3426 {
3428 }
3429
3430
3432 {
3433 string config_path = "CfgVehicles" + " " + entity.GetType() + " " + "attachments";
3434 if (
GetGame().ConfigIsExisting( config_path ) )
3435 {
3437 }
3438 }
3439
3441 {
3442 return true;
3443 }
3444
3446 {
3447 return true;
3448 }
3449
3451 {
3452 return true;
3453 }
3454
3455
3457 {
3459 {
3461 }
3462
3464 }
3465
3467 {
3469 }
3470
3471
3472
3474 {
3475 return super.CanReceiveAttachment(attachment, slotId);
3476 }
3477
3479 {
3480 int attachment_count = GetInventory().AttachmentCount();
3481 if ( attachment_count > 0 )
3482 {
3483 if (
HasBase() && attachment_count == 1 )
3484 {
3485 return false;
3486 }
3487
3488 return true;
3489 }
3490
3491 return false;
3492 }
3493
3495 {
3496 return true;
3497 }
3498
3500 {
3501 return false;
3502 }
3503
3504
3506 {
3507 return false;
3508 }
3509
3511 {
3512 return false;
3513 }
3514
3515
3517 {
3518 return false;
3519 }
3520
3521
3522
3524 {
3525 return true;
3526 }
3527
3529 {
3530 return true;
3531 }
3532
3535 {
3536 return false;
3537 }
3538
3539
3541 {
3542 return true;
3543 }
3544
3545
3547 {
3548 return false;
3549 }
3550
3551
3553 {
3554 return true;
3555 }
3556
3557
3559 {
3560 if (
HasBase() || GetInventory().AttachmentCount() > 0 )
3561 {
3562 return false;
3563 }
3564
3565 return true;
3566 }
3567
3569 {
3572
3573 return item;
3574 }
3575
3576
3578 {
3580 {
3581
3583
3584
3587
3589 if ( MemoryPointExists( slot_name + "_min" ) )
3590 {
3591 min_max[0] = GetMemoryPointPos( slot_name + "_min" );
3592 }
3593 if ( MemoryPointExists( slot_name + "_max" ) )
3594 {
3595 min_max[1] = GetMemoryPointPos( slot_name + "_max" );
3596 }
3597
3598
3601
3602
3605 center = ModelToWorld( center );
3606
3607
3610
3611 areaDamage.SetExtents( extents[0], extents[1] );
3612 areaDamage.SetAreaPosition( center );
3613 areaDamage.SetAreaOrientation( orientation );
3616 areaDamage.SetHitZones( { "Torso","LeftHand","LeftLeg","LeftFoot","RightHand","RightLeg","RightFoot" } );
3617 areaDamage.SetAmmoName( "BarbedWireHit" );
3618 areaDamage.Spawn();
3619
3621 }
3622 }
3623
3625 {
3626 if ( angle_deg != 0 )
3627 {
3628
3629 orientation[0] = orientation[0] - angle_deg;
3630
3631
3633 if ( MemoryPointExists( "rotate_axis" ) )
3634 {
3635 rotate_axis = ModelToWorld( GetMemoryPointPos( "rotate_axis" ) );
3636 }
3637 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];
3638 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];
3639 center[0] = r_center_x;
3640 center[2] = r_center_z;
3641 }
3642 }
3643
3645 {
3647 {
3650 {
3651 if (areaDamage)
3652 {
3653 areaDamage.Destroy();
3654 }
3655
3657 }
3658 }
3659 }
3660
3662 {
3663 return true;
3664 }
3665
3666
3667
3668
3670 {
3672 }
3673
3675 {
3677 }
3678
3680 {
3682 }
3683
3685 {
3687
3688 switch ( material_type )
3689 {
3695 }
3696
3697 return "";
3698 }
3699
3701 {
3703
3704 switch ( material_type )
3705 {
3711 }
3712
3713 return "";
3714 }
3715
3716
3718 {
3720 {
3721
3723 {
3724 SetHealth(slot_name,"Health",item.GetHealth());
3725 }
3726 }
3727 }
3728
3730 {
3731 return 111;
3732 }
3733
3735 {
3736 super.SetActions();
3737
3741 }
3742
3743
3744
3745
3747 {
3748 }
3749
3752 {
3753 return null;
3754 }
3755
3757 {
3759 }
3760
3762 {
3765
3766 Man p;
3767
3768 #ifdef SERVER
3771 if (players.Count())
3772 p = players[0];
3773 #else
3775 #endif
3776
3778 {
3779 bool excluded = false;
3781 if (excludes)
3782 {
3783 foreach (string exclude : excludes)
3784 {
3786 {
3787 excluded = true;
3788 break;
3789 }
3790 }
3791 }
3792
3793 if (!excluded)
3794 {
3796 }
3797 }
3798
3800 }
3801}
3802
3804{
3805#ifdef BSB_DEBUG
3807#else
3808
3809#endif
3810}
3812{
3813#ifdef BSB_DEBUG_SPAM
3815#else
3816
3817#endif
3818}
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.