2581{
2583
2585
2587
2589
2595
2596
2597
2603
2609
2611
2615
2616
2618 {
2620
2621
2622 RegisterNetSyncVariableInt( "m_SyncParts01" );
2623 RegisterNetSyncVariableInt( "m_SyncParts02" );
2624 RegisterNetSyncVariableInt( "m_SyncParts03" );
2625 RegisterNetSyncVariableInt( "m_InteractedPartId" );
2626 RegisterNetSyncVariableInt( "m_PerformedActionId" );
2627 RegisterNetSyncVariableBool( "m_HasBase" );
2628
2629
2631
2632 if (ConfigIsExisting("hybridAttachments"))
2633 {
2636 }
2637 if (ConfigIsExisting("mountables"))
2638 {
2641 }
2642
2644 }
2645
2647 {
2648 super.EEDelete(parent);
2649
2651 {
2652 areaDamage.Destroy();
2653 }
2654
2655 }
2656
2658 {
2659 return "disableBaseDamage";
2660 }
2661
2663 {
2664 return true;
2665 }
2666
2668 {
2669 return EInventoryIconVisibility.HIDE_VICINITY;
2670 }
2671
2673 {
2674 super.InitItemSounds();
2675
2679
2684 }
2685
2687 {
2688 return "putDown_FenceKit_SoundSet";
2689 }
2690
2692 {
2693 return "Shelter_Site_Build_Loop_SoundSet";
2694 }
2695
2696
2698 {
2700 {
2701 SetSynchDirty();
2702 }
2703 }
2704
2706 {
2708 super.OnVariablesSynchronized();
2709
2711 }
2712
2714 {
2715
2717
2718
2720
2721
2723 }
2724
2725
2727 {
2728
2729 int offset;
2730 int mask;
2731
2732 if ( part_id >= 1 && part_id <= 31 )
2733 {
2734 offset = part_id - 1;
2735 mask = 1 << offset;
2736
2738 }
2739 else if ( part_id >= 32 && part_id <= 62 )
2740 {
2741 offset = ( part_id % 32 );
2742 mask = 1 << offset;
2743
2745 }
2746 else if ( part_id >= 63 && part_id <= 93 )
2747 {
2748 offset = ( part_id % 63 );
2749 mask = 1 << offset;
2750
2752 }
2753 }
2754
2756 {
2757
2758 int offset;
2759 int mask;
2760
2761 if ( part_id >= 1 && part_id <= 31 )
2762 {
2763 offset = part_id - 1;
2764 mask = 1 << offset;
2765
2767 }
2768 else if ( part_id >= 32 && part_id <= 62 )
2769 {
2770 offset = ( part_id % 32 );
2771 mask = 1 << offset;
2772
2774 }
2775 else if ( part_id >= 63 && part_id <= 93 )
2776 {
2777 offset = ( part_id % 63 );
2778 mask = 1 << offset;
2779
2781 }
2782 }
2783
2785 {
2786
2787 int offset;
2788 int mask;
2789
2790 if ( part_id >= 1 && part_id <= 31 )
2791 {
2792 offset = part_id - 1;
2793 mask = 1 << offset;
2794
2796 {
2797 return true;
2798 }
2799 }
2800 else if ( part_id >= 32 && part_id <= 62 )
2801 {
2802 offset = ( part_id % 32 );
2803 mask = 1 << offset;
2804
2806 {
2807 return true;
2808 }
2809 }
2810 else if ( part_id >= 63 && part_id <= 93 )
2811 {
2812 offset = ( part_id % 63 );
2813 mask = 1 << offset;
2814
2816 {
2817 return true;
2818 }
2819 }
2820
2821 return false;
2822 }
2823
2825 {
2828 }
2829
2831 {
2832
2835 }
2836
2838 {
2840 {
2843
2844 switch( build_action_id )
2845 {
2849 }
2850 }
2851 }
2852
2853
2855 {
2857 bool is_base = part.
IsBase();
2860 if ( is_part_built_sync )
2861 {
2863 {
2867
2868 if (is_base)
2869 {
2872 }
2873 }
2874 }
2875 else
2876 {
2878 {
2882
2883 if (is_base)
2884 {
2887 }
2888 }
2889 }
2890
2891
2893 }
2894
2895
2897 {
2900
2901 for ( int i = 0; i < construction_parts.Count(); ++i )
2902 {
2903 string key = construction_parts.GetKey( i );
2906 }
2907
2908
2910 }
2911
2913 {
2916
2917 for ( int i = 0; i < construction_parts.Count(); ++i )
2918 {
2919 string key = construction_parts.GetKey( i );
2921
2922 if ( value.
GetId() ==
id )
2923 {
2924 return value;
2925 }
2926 }
2927
2928 return NULL;
2929 }
2930
2931
2932
2934 {
2936 }
2937
2939 {
2941 }
2942
2944 {
2945 return true;
2946 }
2947
2949 {
2950 return false;
2951 }
2952
2953
2955 {
2958 {
2960 }
2961
2962 return construction_kit;
2963 }
2964
2966 {
2969 {
2971 }
2972 }
2973
2975 {
2977 }
2978
2980 {
2981 return "";
2982 }
2983
2985 {
2988 }
2989
2990
2992 {
2995 }
2996
2997
2999 {
3000 super.OnStoreSave( ctx );
3001
3002
3006
3008 }
3009
3011 {
3012 if ( !super.OnStoreLoad( ctx, version ) )
3013 return false;
3014
3015
3016
3018 {
3020 return false;
3021 }
3023 {
3025 return false;
3026 }
3028 {
3030 return false;
3031 }
3032
3033
3035 {
3037 return false;
3038 }
3039
3040
3041 return true;
3042 }
3043
3045 {
3046 super.AfterStoreLoad();
3047
3049 {
3051 }
3052 }
3053
3055 {
3056
3058
3059
3062
3063
3065 }
3066
3068 {
3069 super.OnCreatePhysics();
3072 }
3073
3075 {
3077 return;
3078
3079 super.EEHealthLevelChanged(oldLevel,newLevel,zone);
3080
3082 return;
3083
3085 string part_name = zone;
3087
3089 {
3090 ConstructionPart construction_part = construction.GetConstructionPart( part_name );
3091
3092 if ( construction_part && construction.IsPartConstructed( part_name ) )
3093 {
3095 construction.DestroyConnectedParts(part_name);
3096 }
3097
3098
3099 if ( part_name.
Contains(
"barbed") )
3100 {
3101 BarbedWire barbed_wire = BarbedWire.Cast( FindAttachmentBySlotName( zone ) );
3102 if (barbed_wire)
3103 barbed_wire.SetMountedState( false );
3104 }
3105 }
3106 }
3107
3109 {
3111 {
3113 }
3114
3115 super.EEOnAfterLoad();
3116 }
3117
3119 {
3120 super.EEInit();
3121
3122
3124
3125
3126 #ifdef DEVELOPER
3128 #endif
3129 }
3130
3132 {
3133 super.EEItemAttached( item, slot_name );
3134
3138 }
3139
3141 {
3142 super.EEItemDetached( item, slot_name );
3143
3146 }
3147
3148 protected void OnSetSlotLock(
int slotId,
bool locked,
bool was_locked )
3149 {
3152
3155 }
3156
3157
3159 {
3160 return true;
3161 }
3162
3163
3164
3166 {
3168
3169
3170 if (construtionPart.
IsBase())
3171 {
3173
3174
3176 }
3177
3178
3180
3181
3183
3184
3186
3188
3190
3191
3193
3194
3196 }
3197
3199 {
3200
3202 }
3203
3204
3206 {
3209
3210
3212
3213
3215
3216
3218
3219
3221
3223
3224
3226
3227
3229
3230
3231 if (construtionPart.
IsBase())
3232 {
3233
3235 }
3236 }
3237
3239 {
3240
3242 }
3243
3244
3245 void OnPartDestroyedServer(Man player,
string part_name,
int action_id,
bool destroyed_by_connected_part =
false)
3246 {
3249
3250
3252
3253
3255
3256
3258
3259
3261
3263
3264
3266
3267
3269
3270
3271 if (construtionPart.
IsBase())
3272 {
3273
3275 }
3276 }
3277
3279 {
3280
3282 }
3283
3286 {
3287 bool process = false;
3288
3289
3293
3294 if (process)
3295 {
3296 if (!MemoryPointExists(part.
m_PartName +
"_min") || !MemoryPointExists(part.
m_PartName +
"_max"))
3297 {
3299 return;
3300 }
3301
3303 mins = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_min"));
3304 maxs = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_max"));
3305
3306
3308 minTmp[0] =
Math.
Min(mins[0],maxs[0]);
3309 maxTmp[0] =
Math.
Max(mins[0],maxs[0]);
3310 minTmp[1] =
Math.
Min(mins[1],maxs[1]);
3311 maxTmp[1] =
Math.
Max(mins[1],maxs[1]);
3312 minTmp[2] =
Math.
Min(mins[2],maxs[2]);
3313 maxTmp[2] =
Math.
Max(mins[2],maxs[2]);
3314 mins = minTmp;
3315 maxs = maxTmp;
3316
3317 maxs[1] = maxs[1] + 0.35;
3318
3320 }
3321 }
3322
3325 {
3328
3329
3331 foreach (
EntityAI entity : foundEntities)
3332 {
3335 }
3336 }
3337
3338
3340 {
3342
3346 }
3347
3349 {
3351
3353 {
3355 }
3356 else
3357 {
3359 }
3360
3362 }
3363
3365 {
3367
3369 foreach (
string slotName : attachmentSlots)
3370 {
3372 }
3373
3374
3377 else
3379
3381 }
3382
3384 {
3385 string slotNameMounted = slot_name + "_Mounted";
3386 EntityAI attachment = FindAttachmentBySlotName(slot_name);
3387
3388 if (attachment)
3389 {
3390 BarbedWire barbedWire = BarbedWire.Cast(attachment);
3391 if (barbedWire && barbedWire.IsMounted())
3393 else
3395
3396 if (is_locked)
3397 {
3398 SetAnimationPhase(slotNameMounted, 0);
3399 SetAnimationPhase(slot_name, 1);
3400 }
3401 else
3402 {
3403 SetAnimationPhase(slotNameMounted, 1);
3404 SetAnimationPhase(slot_name, 0);
3405 }
3406 }
3407 else
3408 {
3409 SetAnimationPhase(slotNameMounted, 1);
3410 SetAnimationPhase(slot_name, 1);
3411
3413 }
3414 }
3415
3416
3418 {
3421
3424
3427
3428 foreach (
string slotName : attachmentSlots)
3429 {
3431 }
3432
3433
3435 {
3438
3440 }
3441 else
3442 {
3445
3447 }
3448
3451 }
3452
3454 {
3455
3457 return;
3458
3459 string slot_name_mounted = slot_name + "_Mounted";
3460 EntityAI attachment = FindAttachmentBySlotName( slot_name );
3461
3462
3464 RemoveProxyPhysics( slot_name_mounted );
3465 RemoveProxyPhysics( slot_name );
3466
3467 if ( attachment )
3468 {
3470 if ( is_locked )
3471 {
3473 AddProxyPhysics( slot_name_mounted );
3474 }
3475 else
3476 {
3478 AddProxyPhysics( slot_name );
3479 }
3480 }
3481 }
3482
3484 {
3485 SetAffectPathgraph( true, false );
3487 }
3488
3490 {
3491 return true;
3492 }
3493
3495 {
3496 return true;
3497 }
3498
3500 {
3501 if ( attachment )
3502 {
3504 attachment.GetInventory().GetCurrentInventoryLocation( inventory_location );
3505
3506 return GetInventory().GetSlotLock( inventory_location.
GetSlot() );
3507 }
3508
3509 return false;
3510 }
3511
3513 {
3515 }
3516
3517
3519 {
3520 string config_path = "CfgVehicles" + " " + entity.GetType() + " " + "attachments";
3521 if (
GetGame().ConfigIsExisting( config_path ) )
3522 {
3524 }
3525 }
3526
3528 {
3529 return true;
3530 }
3531
3533 {
3534 return true;
3535 }
3536
3538 {
3539 return true;
3540 }
3541
3542
3544 {
3546 {
3548 }
3549
3551 }
3552
3554 {
3556 }
3557
3558
3559
3561 {
3562 return super.CanReceiveAttachment(attachment, slotId);
3563 }
3564
3566 {
3567 int attachment_count = GetInventory().AttachmentCount();
3568 if ( attachment_count > 0 )
3569 {
3570 if (
HasBase() && attachment_count == 1 )
3571 {
3572 return false;
3573 }
3574
3575 return true;
3576 }
3577
3578 return false;
3579 }
3580
3582 {
3583 return true;
3584 }
3585
3587 {
3588 return false;
3589 }
3590
3591
3593 {
3594 return false;
3595 }
3596
3598 {
3599 return false;
3600 }
3601
3602
3604 {
3605 return false;
3606 }
3607
3608
3609
3611 {
3612 return true;
3613 }
3614
3616 {
3617 return true;
3618 }
3619
3622 {
3623 return false;
3624 }
3625
3626
3628 {
3629 return true;
3630 }
3631
3632
3634 {
3635 return false;
3636 }
3637
3638
3640 {
3641 return true;
3642 }
3643
3644
3646 {
3647 if (
HasBase() || GetInventory().AttachmentCount() > 0 )
3648 {
3649 return false;
3650 }
3651
3652 return true;
3653 }
3654
3656 {
3659
3660 return item;
3661 }
3662
3663
3665 {
3667 {
3668
3670
3671
3674
3676 if ( MemoryPointExists( slot_name + "_min" ) )
3677 {
3678 min_max[0] = GetMemoryPointPos( slot_name + "_min" );
3679 }
3680 if ( MemoryPointExists( slot_name + "_max" ) )
3681 {
3682 min_max[1] = GetMemoryPointPos( slot_name + "_max" );
3683 }
3684
3685
3688
3689
3692 center = ModelToWorld( center );
3693
3694
3697
3698 areaDamage.SetExtents( extents[0], extents[1] );
3699 areaDamage.SetAreaPosition( center );
3700 areaDamage.SetAreaOrientation( orientation );
3703 areaDamage.SetHitZones( { "Torso","LeftHand","LeftLeg","LeftFoot","RightHand","RightLeg","RightFoot" } );
3704 areaDamage.SetAmmoName( "BarbedWireHit" );
3705 areaDamage.Spawn();
3706
3708 }
3709 }
3710
3712 {
3713 if ( angle_deg != 0 )
3714 {
3715
3716 orientation[0] = orientation[0] - angle_deg;
3717
3718
3720 if ( MemoryPointExists( "rotate_axis" ) )
3721 {
3722 rotate_axis = ModelToWorld( GetMemoryPointPos( "rotate_axis" ) );
3723 }
3724 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];
3725 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];
3726 center[0] = r_center_x;
3727 center[2] = r_center_z;
3728 }
3729 }
3730
3732 {
3734 {
3737 {
3738 if (areaDamage)
3739 {
3740 areaDamage.Destroy();
3741 }
3742
3744 }
3745 }
3746 }
3747
3749 {
3750 return true;
3751 }
3752
3753
3754
3755
3757 {
3759 }
3760
3762 {
3764 }
3765
3767 {
3769 }
3770
3772 {
3774
3775 switch ( material_type )
3776 {
3782 }
3783
3784 return "";
3785 }
3786
3788 {
3790
3791 switch ( material_type )
3792 {
3798 }
3799
3800 return "";
3801 }
3802
3803
3805 {
3807 {
3808
3810 {
3811 SetHealth(slot_name,"Health",item.GetHealth());
3812 }
3813 }
3814 }
3815
3817 {
3818 return 111;
3819 }
3820
3822 {
3823 super.SetActions();
3824
3828 }
3829
3830
3831
3832
3834 {
3835 }
3836
3839 {
3840 return null;
3841 }
3842
3844 {
3846 }
3847
3849 {
3852
3853 Man p;
3854
3855 #ifdef SERVER
3858 if (players.Count())
3859 p = players[0];
3860 #else
3862 #endif
3863
3865 {
3866 bool excluded = false;
3868 if (excludes)
3869 {
3870 foreach (string exclude : excludes)
3871 {
3873 {
3874 excluded = true;
3875 break;
3876 }
3877 }
3878 }
3879
3880 if (!excluded)
3881 {
3883 }
3884 }
3885
3887 }
3888}
3889
3891{
3892#ifdef BSB_DEBUG
3894#else
3895
3896#endif
3897}
3899{
3900#ifdef BSB_DEBUG_SPAM
3902#else
3903
3904#endif
3905}
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.