2576{
2578
2580
2582
2584
2590
2591
2592
2598
2604
2606
2610
2611
2613 {
2615
2616
2617 RegisterNetSyncVariableInt( "m_SyncParts01" );
2618 RegisterNetSyncVariableInt( "m_SyncParts02" );
2619 RegisterNetSyncVariableInt( "m_SyncParts03" );
2620 RegisterNetSyncVariableInt( "m_InteractedPartId" );
2621 RegisterNetSyncVariableInt( "m_PerformedActionId" );
2622 RegisterNetSyncVariableBool( "m_HasBase" );
2623
2624
2626
2627 if (ConfigIsExisting("hybridAttachments"))
2628 {
2631 }
2632 if (ConfigIsExisting("mountables"))
2633 {
2636 }
2637
2639 }
2640
2642 {
2643 super.EEDelete(parent);
2644
2646 {
2647 areaDamage.Destroy();
2648 }
2649
2650 }
2651
2653 {
2654 return "disableBaseDamage";
2655 }
2656
2658 {
2659 return true;
2660 }
2661
2663 {
2664 return EInventoryIconVisibility.HIDE_VICINITY;
2665 }
2666
2668 {
2669 super.InitItemSounds();
2670
2674
2679 }
2680
2682 {
2683 return "putDown_FenceKit_SoundSet";
2684 }
2685
2687 {
2688 return "Shelter_Site_Build_Loop_SoundSet";
2689 }
2690
2691
2693 {
2695 {
2696 SetSynchDirty();
2697 }
2698 }
2699
2701 {
2703 super.OnVariablesSynchronized();
2704
2706 }
2707
2709 {
2710
2712
2713
2715
2716
2718 }
2719
2720
2722 {
2723
2724 int offset;
2725 int mask;
2726
2727 if ( part_id >= 1 && part_id <= 31 )
2728 {
2729 offset = part_id - 1;
2730 mask = 1 << offset;
2731
2733 }
2734 else if ( part_id >= 32 && part_id <= 62 )
2735 {
2736 offset = ( part_id % 32 );
2737 mask = 1 << offset;
2738
2740 }
2741 else if ( part_id >= 63 && part_id <= 93 )
2742 {
2743 offset = ( part_id % 63 );
2744 mask = 1 << offset;
2745
2747 }
2748 }
2749
2751 {
2752
2753 int offset;
2754 int mask;
2755
2756 if ( part_id >= 1 && part_id <= 31 )
2757 {
2758 offset = part_id - 1;
2759 mask = 1 << offset;
2760
2762 }
2763 else if ( part_id >= 32 && part_id <= 62 )
2764 {
2765 offset = ( part_id % 32 );
2766 mask = 1 << offset;
2767
2769 }
2770 else if ( part_id >= 63 && part_id <= 93 )
2771 {
2772 offset = ( part_id % 63 );
2773 mask = 1 << offset;
2774
2776 }
2777 }
2778
2780 {
2781
2782 int offset;
2783 int mask;
2784
2785 if ( part_id >= 1 && part_id <= 31 )
2786 {
2787 offset = part_id - 1;
2788 mask = 1 << offset;
2789
2791 {
2792 return true;
2793 }
2794 }
2795 else if ( part_id >= 32 && part_id <= 62 )
2796 {
2797 offset = ( part_id % 32 );
2798 mask = 1 << offset;
2799
2801 {
2802 return true;
2803 }
2804 }
2805 else if ( part_id >= 63 && part_id <= 93 )
2806 {
2807 offset = ( part_id % 63 );
2808 mask = 1 << offset;
2809
2811 {
2812 return true;
2813 }
2814 }
2815
2816 return false;
2817 }
2818
2820 {
2823 }
2824
2826 {
2827
2830 }
2831
2833 {
2835 {
2838
2839 switch( build_action_id )
2840 {
2844 }
2845 }
2846 }
2847
2848
2850 {
2852 bool is_base = part.
IsBase();
2855 if ( is_part_built_sync )
2856 {
2858 {
2862
2863 if (is_base)
2864 {
2867 }
2868 }
2869 }
2870 else
2871 {
2873 {
2877
2878 if (is_base)
2879 {
2882 }
2883 }
2884 }
2885
2886
2888 }
2889
2890
2892 {
2895
2896 for ( int i = 0; i < construction_parts.Count(); ++i )
2897 {
2898 string key = construction_parts.GetKey( i );
2901 }
2902
2903
2905 }
2906
2908 {
2911
2912 for ( int i = 0; i < construction_parts.Count(); ++i )
2913 {
2914 string key = construction_parts.GetKey( i );
2916
2917 if ( value.
GetId() ==
id )
2918 {
2919 return value;
2920 }
2921 }
2922
2923 return NULL;
2924 }
2925
2926
2927
2929 {
2931 }
2932
2934 {
2936 }
2937
2939 {
2940 return true;
2941 }
2942
2944 {
2945 return false;
2946 }
2947
2948
2950 {
2953 {
2955 }
2956
2957 return construction_kit;
2958 }
2959
2961 {
2964 {
2966 }
2967 }
2968
2970 {
2972 }
2973
2975 {
2976 return "";
2977 }
2978
2980 {
2983 }
2984
2985
2987 {
2990 }
2991
2992
2994 {
2995 super.OnStoreSave( ctx );
2996
2997
3001
3003 }
3004
3006 {
3007 if ( !super.OnStoreLoad( ctx, version ) )
3008 return false;
3009
3010
3011
3013 {
3015 return false;
3016 }
3018 {
3020 return false;
3021 }
3023 {
3025 return false;
3026 }
3027
3028
3030 {
3032 return false;
3033 }
3034
3035
3036 return true;
3037 }
3038
3040 {
3041 super.AfterStoreLoad();
3042
3044 {
3046 }
3047 }
3048
3050 {
3051
3053
3054
3057
3058
3060 }
3061
3063 {
3064 super.OnCreatePhysics();
3067 }
3068
3070 {
3072 return;
3073
3074 super.EEHealthLevelChanged(oldLevel,newLevel,zone);
3075
3077 return;
3078
3080 string part_name = zone;
3082
3084 {
3085 ConstructionPart construction_part = construction.GetConstructionPart( part_name );
3086
3087 if ( construction_part && construction.IsPartConstructed( part_name ) )
3088 {
3090 construction.DestroyConnectedParts(part_name);
3091 }
3092
3093
3094 if ( part_name.
Contains(
"barbed") )
3095 {
3096 BarbedWire barbed_wire = BarbedWire.Cast( FindAttachmentBySlotName( zone ) );
3097 if (barbed_wire)
3098 barbed_wire.SetMountedState( false );
3099 }
3100 }
3101 }
3102
3104 {
3106 {
3108 }
3109
3110 super.EEOnAfterLoad();
3111 }
3112
3114 {
3115 super.EEInit();
3116
3117
3119
3120
3121 #ifdef DEVELOPER
3123 #endif
3124 }
3125
3127 {
3128 super.EEItemAttached( item, slot_name );
3129
3133 }
3134
3136 {
3137 super.EEItemDetached( item, slot_name );
3138
3141 }
3142
3143 protected void OnSetSlotLock(
int slotId,
bool locked,
bool was_locked )
3144 {
3147
3150 }
3151
3152
3154 {
3155 return true;
3156 }
3157
3158
3159
3161 {
3163
3164
3165 if (construtionPart.
IsBase())
3166 {
3168
3169
3171 }
3172
3173
3175
3176
3178
3179
3181
3183
3185
3186
3188
3189
3191 }
3192
3194 {
3195
3197 }
3198
3199
3201 {
3204
3205
3207
3208
3210
3211
3213
3214
3216
3218
3219
3221
3222
3224
3225
3226 if (construtionPart.
IsBase())
3227 {
3228
3230 }
3231 }
3232
3234 {
3235
3237 }
3238
3239
3240 void OnPartDestroyedServer(Man player,
string part_name,
int action_id,
bool destroyed_by_connected_part =
false)
3241 {
3244
3245
3247
3248
3250
3251
3253
3254
3256
3258
3259
3261
3262
3264
3265
3266 if (construtionPart.
IsBase())
3267 {
3268
3270 }
3271 }
3272
3274 {
3275
3277 }
3278
3281 {
3282 bool process = false;
3283
3284
3288
3289 if (process)
3290 {
3291 if (!MemoryPointExists(part.
m_PartName +
"_min") || !MemoryPointExists(part.
m_PartName +
"_max"))
3292 {
3294 return;
3295 }
3296
3298 mins = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_min"));
3299 maxs = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_max"));
3300
3301
3303 minTmp[0] =
Math.
Min(mins[0],maxs[0]);
3304 maxTmp[0] =
Math.
Max(mins[0],maxs[0]);
3305 minTmp[1] =
Math.
Min(mins[1],maxs[1]);
3306 maxTmp[1] =
Math.
Max(mins[1],maxs[1]);
3307 minTmp[2] =
Math.
Min(mins[2],maxs[2]);
3308 maxTmp[2] =
Math.
Max(mins[2],maxs[2]);
3309 mins = minTmp;
3310 maxs = maxTmp;
3311
3312 maxs[1] = maxs[1] + 0.35;
3313
3315 }
3316 }
3317
3320 {
3323
3324
3326 foreach (
EntityAI entity : foundEntities)
3327 {
3330 }
3331 }
3332
3333
3335 {
3337
3341 }
3342
3344 {
3346
3348 {
3350 }
3351 else
3352 {
3354 }
3355
3357 }
3358
3360 {
3362
3364 foreach (
string slotName : attachmentSlots)
3365 {
3367 }
3368
3369
3372 else
3374
3376 }
3377
3379 {
3380 string slotNameMounted = slot_name + "_Mounted";
3381 EntityAI attachment = FindAttachmentBySlotName(slot_name);
3382
3383 if (attachment)
3384 {
3385 BarbedWire barbedWire = BarbedWire.Cast(attachment);
3386 if (barbedWire && barbedWire.IsMounted())
3388 else
3390
3391 if (is_locked)
3392 {
3393 SetAnimationPhase(slotNameMounted, 0);
3394 SetAnimationPhase(slot_name, 1);
3395 }
3396 else
3397 {
3398 SetAnimationPhase(slotNameMounted, 1);
3399 SetAnimationPhase(slot_name, 0);
3400 }
3401 }
3402 else
3403 {
3404 SetAnimationPhase(slotNameMounted, 1);
3405 SetAnimationPhase(slot_name, 1);
3406
3408 }
3409 }
3410
3411
3413 {
3416
3419
3422
3423 foreach (
string slotName : attachmentSlots)
3424 {
3426 }
3427
3428
3430 {
3433
3435 }
3436 else
3437 {
3440
3442 }
3443
3446 }
3447
3449 {
3450
3452 return;
3453
3454 string slot_name_mounted = slot_name + "_Mounted";
3455 EntityAI attachment = FindAttachmentBySlotName( slot_name );
3456
3457
3459 RemoveProxyPhysics( slot_name_mounted );
3460 RemoveProxyPhysics( slot_name );
3461
3462 if ( attachment )
3463 {
3465 if ( is_locked )
3466 {
3468 AddProxyPhysics( slot_name_mounted );
3469 }
3470 else
3471 {
3473 AddProxyPhysics( slot_name );
3474 }
3475 }
3476 }
3477
3479 {
3480 SetAffectPathgraph( true, false );
3482 }
3483
3485 {
3486 return true;
3487 }
3488
3490 {
3491 return true;
3492 }
3493
3495 {
3496 if ( attachment )
3497 {
3499 attachment.GetInventory().GetCurrentInventoryLocation( inventory_location );
3500
3501 return GetInventory().GetSlotLock( inventory_location.
GetSlot() );
3502 }
3503
3504 return false;
3505 }
3506
3508 {
3510 }
3511
3512
3514 {
3515 string config_path = "CfgVehicles" + " " + entity.GetType() + " " + "attachments";
3516 if (
GetGame().ConfigIsExisting( config_path ) )
3517 {
3519 }
3520 }
3521
3523 {
3524 return true;
3525 }
3526
3528 {
3529 return true;
3530 }
3531
3533 {
3534 return true;
3535 }
3536
3537
3539 {
3541 {
3543 }
3544
3546 }
3547
3549 {
3551 }
3552
3553
3554
3556 {
3557 return super.CanReceiveAttachment(attachment, slotId);
3558 }
3559
3561 {
3562 int attachment_count = GetInventory().AttachmentCount();
3563 if ( attachment_count > 0 )
3564 {
3565 if (
HasBase() && attachment_count == 1 )
3566 {
3567 return false;
3568 }
3569
3570 return true;
3571 }
3572
3573 return false;
3574 }
3575
3577 {
3578 return true;
3579 }
3580
3582 {
3583 return false;
3584 }
3585
3586
3588 {
3589 return false;
3590 }
3591
3593 {
3594 return false;
3595 }
3596
3597
3599 {
3600 return false;
3601 }
3602
3603
3604
3606 {
3607 return true;
3608 }
3609
3611 {
3612 return true;
3613 }
3614
3617 {
3618 return false;
3619 }
3620
3621
3623 {
3624 return true;
3625 }
3626
3627
3629 {
3630 return false;
3631 }
3632
3633
3635 {
3636 return true;
3637 }
3638
3639
3641 {
3642 if (
HasBase() || GetInventory().AttachmentCount() > 0 )
3643 {
3644 return false;
3645 }
3646
3647 return true;
3648 }
3649
3651 {
3654
3655 return item;
3656 }
3657
3658
3660 {
3662 {
3663
3665
3666
3669
3671 if ( MemoryPointExists( slot_name + "_min" ) )
3672 {
3673 min_max[0] = GetMemoryPointPos( slot_name + "_min" );
3674 }
3675 if ( MemoryPointExists( slot_name + "_max" ) )
3676 {
3677 min_max[1] = GetMemoryPointPos( slot_name + "_max" );
3678 }
3679
3680
3683
3684
3687 center = ModelToWorld( center );
3688
3689
3692
3693 areaDamage.SetExtents( extents[0], extents[1] );
3694 areaDamage.SetAreaPosition( center );
3695 areaDamage.SetAreaOrientation( orientation );
3698 areaDamage.SetHitZones( { "Torso","LeftHand","LeftLeg","LeftFoot","RightHand","RightLeg","RightFoot" } );
3699 areaDamage.SetAmmoName( "BarbedWireHit" );
3700 areaDamage.Spawn();
3701
3703 }
3704 }
3705
3707 {
3708 if ( angle_deg != 0 )
3709 {
3710
3711 orientation[0] = orientation[0] - angle_deg;
3712
3713
3715 if ( MemoryPointExists( "rotate_axis" ) )
3716 {
3717 rotate_axis = ModelToWorld( GetMemoryPointPos( "rotate_axis" ) );
3718 }
3719 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];
3720 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];
3721 center[0] = r_center_x;
3722 center[2] = r_center_z;
3723 }
3724 }
3725
3727 {
3729 {
3732 {
3733 if (areaDamage)
3734 {
3735 areaDamage.Destroy();
3736 }
3737
3739 }
3740 }
3741 }
3742
3744 {
3745 return true;
3746 }
3747
3748
3749
3750
3752 {
3754 }
3755
3757 {
3759 }
3760
3762 {
3764 }
3765
3767 {
3769
3770 switch ( material_type )
3771 {
3777 }
3778
3779 return "";
3780 }
3781
3783 {
3785
3786 switch ( material_type )
3787 {
3793 }
3794
3795 return "";
3796 }
3797
3798
3800 {
3802 {
3803
3805 {
3806 SetHealth(slot_name,"Health",item.GetHealth());
3807 }
3808 }
3809 }
3810
3812 {
3813 return 111;
3814 }
3815
3817 {
3818 super.SetActions();
3819
3823 }
3824
3825
3826
3827
3829 {
3830 }
3831
3834 {
3835 return null;
3836 }
3837
3839 {
3841 }
3842
3844 {
3847
3848 Man p;
3849
3850 #ifdef SERVER
3853 if (players.Count())
3854 p = players[0];
3855 #else
3857 #endif
3858
3860 {
3861 bool excluded = false;
3863 if (excludes)
3864 {
3865 foreach (string exclude : excludes)
3866 {
3868 {
3869 excluded = true;
3870 break;
3871 }
3872 }
3873 }
3874
3875 if (!excluded)
3876 {
3878 }
3879 }
3880
3882 }
3883}
3884
3886{
3887#ifdef BSB_DEBUG
3889#else
3890
3891#endif
3892}
3894{
3895#ifdef BSB_DEBUG_SPAM
3897#else
3898
3899#endif
3900}
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.