2554{
2556
2558
2560
2562
2568
2569
2570
2576
2582
2584
2588
2589
2591 {
2593
2594
2595 RegisterNetSyncVariableInt( "m_SyncParts01" );
2596 RegisterNetSyncVariableInt( "m_SyncParts02" );
2597 RegisterNetSyncVariableInt( "m_SyncParts03" );
2598 RegisterNetSyncVariableInt( "m_InteractedPartId" );
2599 RegisterNetSyncVariableInt( "m_PerformedActionId" );
2600 RegisterNetSyncVariableBool( "m_HasBase" );
2601
2602
2604
2605 if (ConfigIsExisting("hybridAttachments"))
2606 {
2609 }
2610 if (ConfigIsExisting("mountables"))
2611 {
2614 }
2615
2617 }
2618
2620 {
2621 super.EEDelete(parent);
2622
2624 {
2625 areaDamage.Destroy();
2626 }
2627
2628 }
2629
2631 {
2632 return "disableBaseDamage";
2633 }
2634
2636 {
2637 return true;
2638 }
2639
2641 {
2642 return EInventoryIconVisibility.HIDE_VICINITY;
2643 }
2644
2646 {
2647 super.InitItemSounds();
2648
2652
2657 }
2658
2660 {
2661 return "putDown_FenceKit_SoundSet";
2662 }
2663
2665 {
2666 return "Shelter_Site_Build_Loop_SoundSet";
2667 }
2668
2669
2671 {
2673 {
2674 SetSynchDirty();
2675 }
2676 }
2677
2679 {
2681 super.OnVariablesSynchronized();
2682
2684 }
2685
2687 {
2688
2690
2691
2693
2694
2696 }
2697
2698
2700 {
2701
2702 int offset;
2703 int mask;
2704
2705 if ( part_id >= 1 && part_id <= 31 )
2706 {
2707 offset = part_id - 1;
2708 mask = 1 << offset;
2709
2711 }
2712 else if ( part_id >= 32 && part_id <= 62 )
2713 {
2714 offset = ( part_id % 32 );
2715 mask = 1 << offset;
2716
2718 }
2719 else if ( part_id >= 63 && part_id <= 93 )
2720 {
2721 offset = ( part_id % 63 );
2722 mask = 1 << offset;
2723
2725 }
2726 }
2727
2729 {
2730
2731 int offset;
2732 int mask;
2733
2734 if ( part_id >= 1 && part_id <= 31 )
2735 {
2736 offset = part_id - 1;
2737 mask = 1 << offset;
2738
2740 }
2741 else if ( part_id >= 32 && part_id <= 62 )
2742 {
2743 offset = ( part_id % 32 );
2744 mask = 1 << offset;
2745
2747 }
2748 else if ( part_id >= 63 && part_id <= 93 )
2749 {
2750 offset = ( part_id % 63 );
2751 mask = 1 << offset;
2752
2754 }
2755 }
2756
2758 {
2759
2760 int offset;
2761 int mask;
2762
2763 if ( part_id >= 1 && part_id <= 31 )
2764 {
2765 offset = part_id - 1;
2766 mask = 1 << offset;
2767
2769 {
2770 return true;
2771 }
2772 }
2773 else if ( part_id >= 32 && part_id <= 62 )
2774 {
2775 offset = ( part_id % 32 );
2776 mask = 1 << offset;
2777
2779 {
2780 return true;
2781 }
2782 }
2783 else if ( part_id >= 63 && part_id <= 93 )
2784 {
2785 offset = ( part_id % 63 );
2786 mask = 1 << offset;
2787
2789 {
2790 return true;
2791 }
2792 }
2793
2794 return false;
2795 }
2796
2798 {
2801 }
2802
2804 {
2805
2808 }
2809
2811 {
2813 {
2816
2817 switch( build_action_id )
2818 {
2822 }
2823 }
2824 }
2825
2826
2828 {
2830 bool is_base = part.
IsBase();
2833 if ( is_part_built_sync )
2834 {
2836 {
2840
2841 if (is_base)
2842 {
2845 }
2846 }
2847 }
2848 else
2849 {
2851 {
2855
2856 if (is_base)
2857 {
2860 }
2861 }
2862 }
2863
2864
2866 }
2867
2868
2870 {
2873
2874 for ( int i = 0; i < construction_parts.Count(); ++i )
2875 {
2876 string key = construction_parts.GetKey( i );
2879 }
2880
2881
2883 }
2884
2886 {
2889
2890 for ( int i = 0; i < construction_parts.Count(); ++i )
2891 {
2892 string key = construction_parts.GetKey( i );
2894
2895 if ( value.
GetId() ==
id )
2896 {
2897 return value;
2898 }
2899 }
2900
2901 return NULL;
2902 }
2903
2904
2905
2907 {
2909 }
2910
2912 {
2914 }
2915
2917 {
2918 return true;
2919 }
2920
2922 {
2923 return false;
2924 }
2925
2926
2928 {
2931 {
2933 }
2934
2935 return construction_kit;
2936 }
2937
2939 {
2942 {
2944 }
2945 }
2946
2948 {
2950 }
2951
2953 {
2954 return "";
2955 }
2956
2958 {
2961 }
2962
2963
2965 {
2968 }
2969
2970
2972 {
2973 super.OnStoreSave( ctx );
2974
2975
2979
2981 }
2982
2984 {
2985 if ( !super.OnStoreLoad( ctx, version ) )
2986 return false;
2987
2988
2989
2991 {
2993 return false;
2994 }
2996 {
2998 return false;
2999 }
3001 {
3003 return false;
3004 }
3005
3006
3008 {
3010 return false;
3011 }
3012
3013
3014 return true;
3015 }
3016
3018 {
3019 super.AfterStoreLoad();
3020
3022 {
3024 }
3025 }
3026
3028 {
3029
3031
3032
3035
3036
3038 }
3039
3041 {
3042 super.OnCreatePhysics();
3045 }
3046
3048 {
3050 return;
3051
3052 super.EEHealthLevelChanged(oldLevel,newLevel,zone);
3053
3055 return;
3056
3058 string part_name = zone;
3060
3062 {
3063 ConstructionPart construction_part = construction.GetConstructionPart( part_name );
3064
3065 if ( construction_part && construction.IsPartConstructed( part_name ) )
3066 {
3068 construction.DestroyConnectedParts(part_name);
3069 }
3070
3071
3072 if ( part_name.
Contains(
"barbed") )
3073 {
3074 BarbedWire barbed_wire = BarbedWire.Cast( FindAttachmentBySlotName( zone ) );
3075 if (barbed_wire)
3076 barbed_wire.SetMountedState( false );
3077 }
3078 }
3079 }
3080
3082 {
3084 {
3086 }
3087
3088 super.EEOnAfterLoad();
3089 }
3090
3092 {
3093 super.EEInit();
3094
3095
3097
3098
3099 #ifdef DEVELOPER
3101 #endif
3102 }
3103
3105 {
3106 super.EEItemAttached( item, slot_name );
3107
3111 }
3112
3114 {
3115 super.EEItemDetached( item, slot_name );
3116
3119 }
3120
3121 protected void OnSetSlotLock(
int slotId,
bool locked,
bool was_locked )
3122 {
3125
3128 }
3129
3130
3132 {
3133 return true;
3134 }
3135
3136
3137
3139 {
3141
3142
3143 if (construtionPart.
IsBase())
3144 {
3146
3147
3149 }
3150
3151
3153
3154
3156
3157
3159
3161
3163
3164
3166
3167
3169 }
3170
3172 {
3173
3175 }
3176
3177
3179 {
3182
3183
3185
3186
3188
3189
3191
3192
3194
3196
3197
3199
3200
3202
3203
3204 if (construtionPart.
IsBase())
3205 {
3206
3208 }
3209 }
3210
3212 {
3213
3215 }
3216
3217
3218 void OnPartDestroyedServer(Man player,
string part_name,
int action_id,
bool destroyed_by_connected_part =
false)
3219 {
3222
3223
3225
3226
3228
3229
3231
3232
3234
3236
3237
3239
3240
3242
3243
3244 if (construtionPart.
IsBase())
3245 {
3246
3248 }
3249 }
3250
3252 {
3253
3255 }
3256
3259 {
3260 bool process = false;
3261
3262
3266
3267 if (process)
3268 {
3269 if (!MemoryPointExists(part.
m_PartName +
"_min") || !MemoryPointExists(part.
m_PartName +
"_max"))
3270 {
3272 return;
3273 }
3274
3276 mins = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_min"));
3277 maxs = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_max"));
3278
3279
3281 minTmp[0] =
Math.
Min(mins[0],maxs[0]);
3282 maxTmp[0] =
Math.
Max(mins[0],maxs[0]);
3283 minTmp[1] =
Math.
Min(mins[1],maxs[1]);
3284 maxTmp[1] =
Math.
Max(mins[1],maxs[1]);
3285 minTmp[2] =
Math.
Min(mins[2],maxs[2]);
3286 maxTmp[2] =
Math.
Max(mins[2],maxs[2]);
3287 mins = minTmp;
3288 maxs = maxTmp;
3289
3290 maxs[1] = maxs[1] + 0.35;
3291
3293 }
3294 }
3295
3298 {
3301
3302
3304 foreach (
EntityAI entity : foundEntities)
3305 {
3308 }
3309 }
3310
3311
3313 {
3315
3319 }
3320
3322 {
3324
3326 {
3328 }
3329 else
3330 {
3332 }
3333
3335 }
3336
3338 {
3340
3342 foreach (
string slotName : attachmentSlots)
3343 {
3345 }
3346
3347
3350 else
3352
3354 }
3355
3357 {
3358 string slotNameMounted = slot_name + "_Mounted";
3359 EntityAI attachment = FindAttachmentBySlotName(slot_name);
3360
3361 if (attachment)
3362 {
3363 BarbedWire barbedWire = BarbedWire.Cast(attachment);
3364 if (barbedWire && barbedWire.IsMounted())
3366 else
3368
3369 if (is_locked)
3370 {
3371 SetAnimationPhase(slotNameMounted, 0);
3372 SetAnimationPhase(slot_name, 1);
3373 }
3374 else
3375 {
3376 SetAnimationPhase(slotNameMounted, 1);
3377 SetAnimationPhase(slot_name, 0);
3378 }
3379 }
3380 else
3381 {
3382 SetAnimationPhase(slotNameMounted, 1);
3383 SetAnimationPhase(slot_name, 1);
3384
3386 }
3387 }
3388
3389
3391 {
3394
3397
3400
3401 foreach (
string slotName : attachmentSlots)
3402 {
3404 }
3405
3406
3408 {
3411
3413 }
3414 else
3415 {
3418
3420 }
3421
3424 }
3425
3427 {
3428
3430 return;
3431
3432 string slot_name_mounted = slot_name + "_Mounted";
3433 EntityAI attachment = FindAttachmentBySlotName( slot_name );
3434
3435
3437 RemoveProxyPhysics( slot_name_mounted );
3438 RemoveProxyPhysics( slot_name );
3439
3440 if ( attachment )
3441 {
3443 if ( is_locked )
3444 {
3446 AddProxyPhysics( slot_name_mounted );
3447 }
3448 else
3449 {
3451 AddProxyPhysics( slot_name );
3452 }
3453 }
3454 }
3455
3457 {
3458 SetAffectPathgraph( true, false );
3460 }
3461
3463 {
3464 return true;
3465 }
3466
3468 {
3469 return true;
3470 }
3471
3473 {
3474 if ( attachment )
3475 {
3477 attachment.GetInventory().GetCurrentInventoryLocation( inventory_location );
3478
3479 return GetInventory().GetSlotLock( inventory_location.
GetSlot() );
3480 }
3481
3482 return false;
3483 }
3484
3486 {
3488 }
3489
3490
3492 {
3493 string config_path = "CfgVehicles" + " " + entity.GetType() + " " + "attachments";
3494 if (
GetGame().ConfigIsExisting( config_path ) )
3495 {
3497 }
3498 }
3499
3501 {
3502 return true;
3503 }
3504
3506 {
3507 return true;
3508 }
3509
3511 {
3512 return true;
3513 }
3514
3515
3517 {
3519 {
3521 }
3522
3524 }
3525
3527 {
3529 }
3530
3531
3532
3534 {
3535 return super.CanReceiveAttachment(attachment, slotId);
3536 }
3537
3539 {
3540 int attachment_count = GetInventory().AttachmentCount();
3541 if ( attachment_count > 0 )
3542 {
3543 if (
HasBase() && attachment_count == 1 )
3544 {
3545 return false;
3546 }
3547
3548 return true;
3549 }
3550
3551 return false;
3552 }
3553
3555 {
3556 return true;
3557 }
3558
3560 {
3561 return false;
3562 }
3563
3564
3566 {
3567 return false;
3568 }
3569
3571 {
3572 return false;
3573 }
3574
3575
3577 {
3578 return false;
3579 }
3580
3581
3582
3584 {
3585 return true;
3586 }
3587
3589 {
3590 return true;
3591 }
3592
3595 {
3596 return false;
3597 }
3598
3599
3601 {
3602 return true;
3603 }
3604
3605
3607 {
3608 return false;
3609 }
3610
3611
3613 {
3614 return true;
3615 }
3616
3617
3619 {
3620 if (
HasBase() || GetInventory().AttachmentCount() > 0 )
3621 {
3622 return false;
3623 }
3624
3625 return true;
3626 }
3627
3629 {
3632
3633 return item;
3634 }
3635
3636
3638 {
3640 {
3641
3643
3644
3647
3649 if ( MemoryPointExists( slot_name + "_min" ) )
3650 {
3651 min_max[0] = GetMemoryPointPos( slot_name + "_min" );
3652 }
3653 if ( MemoryPointExists( slot_name + "_max" ) )
3654 {
3655 min_max[1] = GetMemoryPointPos( slot_name + "_max" );
3656 }
3657
3658
3661
3662
3665 center = ModelToWorld( center );
3666
3667
3670
3671 areaDamage.SetExtents( extents[0], extents[1] );
3672 areaDamage.SetAreaPosition( center );
3673 areaDamage.SetAreaOrientation( orientation );
3676 areaDamage.SetHitZones( { "Torso","LeftHand","LeftLeg","LeftFoot","RightHand","RightLeg","RightFoot" } );
3677 areaDamage.SetAmmoName( "BarbedWireHit" );
3678 areaDamage.Spawn();
3679
3681 }
3682 }
3683
3685 {
3686 if ( angle_deg != 0 )
3687 {
3688
3689 orientation[0] = orientation[0] - angle_deg;
3690
3691
3693 if ( MemoryPointExists( "rotate_axis" ) )
3694 {
3695 rotate_axis = ModelToWorld( GetMemoryPointPos( "rotate_axis" ) );
3696 }
3697 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];
3698 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];
3699 center[0] = r_center_x;
3700 center[2] = r_center_z;
3701 }
3702 }
3703
3705 {
3707 {
3710 {
3711 if (areaDamage)
3712 {
3713 areaDamage.Destroy();
3714 }
3715
3717 }
3718 }
3719 }
3720
3722 {
3723 return true;
3724 }
3725
3726
3727
3728
3730 {
3732 }
3733
3735 {
3737 }
3738
3740 {
3742 }
3743
3745 {
3747
3748 switch ( material_type )
3749 {
3755 }
3756
3757 return "";
3758 }
3759
3761 {
3763
3764 switch ( material_type )
3765 {
3771 }
3772
3773 return "";
3774 }
3775
3776
3778 {
3780 {
3781
3783 {
3784 SetHealth(slot_name,"Health",item.GetHealth());
3785 }
3786 }
3787 }
3788
3790 {
3791 return 111;
3792 }
3793
3795 {
3796 super.SetActions();
3797
3801 }
3802
3803
3804
3805
3807 {
3808 }
3809
3812 {
3813 return null;
3814 }
3815
3817 {
3819 }
3820
3822 {
3825
3826 Man p;
3827
3828 #ifdef SERVER
3831 if (players.Count())
3832 p = players[0];
3833 #else
3835 #endif
3836
3838 {
3839 bool excluded = false;
3841 if (excludes)
3842 {
3843 foreach (string exclude : excludes)
3844 {
3846 {
3847 excluded = true;
3848 break;
3849 }
3850 }
3851 }
3852
3853 if (!excluded)
3854 {
3856 }
3857 }
3858
3860 }
3861}
3862
3864{
3865#ifdef BSB_DEBUG
3867#else
3868
3869#endif
3870}
3872{
3873#ifdef BSB_DEBUG_SPAM
3875#else
3876
3877#endif
3878}
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.