2537{
2539
2541
2543
2545
2551
2552
2553
2559
2565
2567
2571
2572
2574 {
2576
2577
2578 RegisterNetSyncVariableInt( "m_SyncParts01" );
2579 RegisterNetSyncVariableInt( "m_SyncParts02" );
2580 RegisterNetSyncVariableInt( "m_SyncParts03" );
2581 RegisterNetSyncVariableInt( "m_InteractedPartId" );
2582 RegisterNetSyncVariableInt( "m_PerformedActionId" );
2583 RegisterNetSyncVariableBool( "m_HasBase" );
2584
2585
2587
2588 if (ConfigIsExisting("hybridAttachments"))
2589 {
2592 }
2593 if (ConfigIsExisting("mountables"))
2594 {
2597 }
2598
2600 }
2601
2603 {
2604 super.EEDelete(parent);
2605
2607 {
2608 areaDamage.Destroy();
2609 }
2610
2611 }
2612
2614 {
2615 return "disableBaseDamage";
2616 }
2617
2619 {
2620 return true;
2621 }
2622
2624 {
2625 return EInventoryIconVisibility.HIDE_VICINITY;
2626 }
2627
2629 {
2630 super.InitItemSounds();
2631
2635
2640 }
2641
2643 {
2644 return "putDown_FenceKit_SoundSet";
2645 }
2646
2648 {
2649 return "Shelter_Site_Build_Loop_SoundSet";
2650 }
2651
2652
2654 {
2656 {
2657 SetSynchDirty();
2658 }
2659 }
2660
2662 {
2664 super.OnVariablesSynchronized();
2665
2667 }
2668
2670 {
2671
2673
2674
2676
2677
2679 }
2680
2681
2683 {
2684
2685 int offset;
2686 int mask;
2687
2688 if ( part_id >= 1 && part_id <= 31 )
2689 {
2690 offset = part_id - 1;
2691 mask = 1 << offset;
2692
2694 }
2695 else if ( part_id >= 32 && part_id <= 62 )
2696 {
2697 offset = ( part_id % 32 );
2698 mask = 1 << offset;
2699
2701 }
2702 else if ( part_id >= 63 && part_id <= 93 )
2703 {
2704 offset = ( part_id % 63 );
2705 mask = 1 << offset;
2706
2708 }
2709 }
2710
2712 {
2713
2714 int offset;
2715 int mask;
2716
2717 if ( part_id >= 1 && part_id <= 31 )
2718 {
2719 offset = part_id - 1;
2720 mask = 1 << offset;
2721
2723 }
2724 else if ( part_id >= 32 && part_id <= 62 )
2725 {
2726 offset = ( part_id % 32 );
2727 mask = 1 << offset;
2728
2730 }
2731 else if ( part_id >= 63 && part_id <= 93 )
2732 {
2733 offset = ( part_id % 63 );
2734 mask = 1 << offset;
2735
2737 }
2738 }
2739
2741 {
2742
2743 int offset;
2744 int mask;
2745
2746 if ( part_id >= 1 && part_id <= 31 )
2747 {
2748 offset = part_id - 1;
2749 mask = 1 << offset;
2750
2752 {
2753 return true;
2754 }
2755 }
2756 else if ( part_id >= 32 && part_id <= 62 )
2757 {
2758 offset = ( part_id % 32 );
2759 mask = 1 << offset;
2760
2762 {
2763 return true;
2764 }
2765 }
2766 else if ( part_id >= 63 && part_id <= 93 )
2767 {
2768 offset = ( part_id % 63 );
2769 mask = 1 << offset;
2770
2772 {
2773 return true;
2774 }
2775 }
2776
2777 return false;
2778 }
2779
2781 {
2784 }
2785
2787 {
2788
2791 }
2792
2794 {
2796 {
2799
2800 switch( build_action_id )
2801 {
2805 }
2806 }
2807 }
2808
2809
2811 {
2813 bool is_base = part.
IsBase();
2816 if ( is_part_built_sync )
2817 {
2819 {
2823
2824 if (is_base)
2825 {
2828 }
2829 }
2830 }
2831 else
2832 {
2834 {
2838
2839 if (is_base)
2840 {
2843 }
2844 }
2845 }
2846
2847
2849 }
2850
2851
2853 {
2856
2857 for ( int i = 0; i < construction_parts.Count(); ++i )
2858 {
2859 string key = construction_parts.GetKey( i );
2862 }
2863
2864
2866 }
2867
2869 {
2872
2873 for ( int i = 0; i < construction_parts.Count(); ++i )
2874 {
2875 string key = construction_parts.GetKey( i );
2877
2878 if ( value.
GetId() ==
id )
2879 {
2880 return value;
2881 }
2882 }
2883
2884 return NULL;
2885 }
2886
2887
2888
2890 {
2892 }
2893
2895 {
2897 }
2898
2900 {
2901 return true;
2902 }
2903
2905 {
2906 return false;
2907 }
2908
2909
2911 {
2914 {
2916 }
2917
2918 return construction_kit;
2919 }
2920
2922 {
2925 {
2927 }
2928 }
2929
2931 {
2933 }
2934
2936 {
2937 return "";
2938 }
2939
2941 {
2944 }
2945
2946
2948 {
2951 }
2952
2953
2955 {
2956 super.OnStoreSave( ctx );
2957
2958
2962
2964 }
2965
2967 {
2968 if ( !super.OnStoreLoad( ctx, version ) )
2969 return false;
2970
2971
2972
2974 {
2976 return false;
2977 }
2979 {
2981 return false;
2982 }
2984 {
2986 return false;
2987 }
2988
2989
2991 {
2993 return false;
2994 }
2995
2996
2997 return true;
2998 }
2999
3001 {
3002 super.AfterStoreLoad();
3003
3005 {
3007 }
3008 }
3009
3011 {
3012
3014
3015
3018
3019
3021 }
3022
3024 {
3025 super.OnCreatePhysics();
3028 }
3029
3031 {
3033 return;
3034
3035 super.EEHealthLevelChanged(oldLevel,newLevel,zone);
3036
3038 return;
3039
3041 string part_name = zone;
3043
3045 {
3046 ConstructionPart construction_part = construction.GetConstructionPart( part_name );
3047
3048 if ( construction_part && construction.IsPartConstructed( part_name ) )
3049 {
3051 construction.DestroyConnectedParts(part_name);
3052 }
3053
3054
3055 if ( part_name.
Contains(
"barbed") )
3056 {
3057 BarbedWire barbed_wire = BarbedWire.Cast( FindAttachmentBySlotName( zone ) );
3058 if (barbed_wire)
3059 barbed_wire.SetMountedState( false );
3060 }
3061 }
3062 }
3063
3065 {
3067 {
3069 }
3070
3071 super.EEOnAfterLoad();
3072 }
3073
3075 {
3076 super.EEInit();
3077
3078
3080
3081
3082 #ifdef DEVELOPER
3084 #endif
3085 }
3086
3088 {
3089 super.EEItemAttached( item, slot_name );
3090
3094 }
3095
3097 {
3098 super.EEItemDetached( item, slot_name );
3099
3102 }
3103
3104 protected void OnSetSlotLock(
int slotId,
bool locked,
bool was_locked )
3105 {
3108
3111 }
3112
3113
3115 {
3116 return true;
3117 }
3118
3119
3120
3122 {
3124
3125
3126 if (construtionPart.
IsBase())
3127 {
3129
3130
3132 }
3133
3134
3136
3137
3139
3140
3142
3144
3146
3147
3149
3150
3152 }
3153
3155 {
3156
3158 }
3159
3160
3162 {
3165
3166
3168
3169
3171
3172
3174
3175
3177
3179
3180
3182
3183
3185
3186
3187 if (construtionPart.
IsBase())
3188 {
3189
3191 }
3192 }
3193
3195 {
3196
3198 }
3199
3200
3201 void OnPartDestroyedServer(Man player,
string part_name,
int action_id,
bool destroyed_by_connected_part =
false)
3202 {
3205
3206
3208
3209
3211
3212
3214
3215
3217
3219
3220
3222
3223
3225
3226
3227 if (construtionPart.
IsBase())
3228 {
3229
3231 }
3232 }
3233
3235 {
3236
3238 }
3239
3242 {
3243 bool process = false;
3244
3245
3249
3250 if (process)
3251 {
3252 if (!MemoryPointExists(part.
m_PartName +
"_min") || !MemoryPointExists(part.
m_PartName +
"_max"))
3253 {
3255 return;
3256 }
3257
3259 mins = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_min"));
3260 maxs = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_max"));
3261
3262
3264 minTmp[0] =
Math.
Min(mins[0],maxs[0]);
3265 maxTmp[0] =
Math.
Max(mins[0],maxs[0]);
3266 minTmp[1] =
Math.
Min(mins[1],maxs[1]);
3267 maxTmp[1] =
Math.
Max(mins[1],maxs[1]);
3268 minTmp[2] =
Math.
Min(mins[2],maxs[2]);
3269 maxTmp[2] =
Math.
Max(mins[2],maxs[2]);
3270 mins = minTmp;
3271 maxs = maxTmp;
3272
3273 maxs[1] = maxs[1] + 0.35;
3274
3276 }
3277 }
3278
3281 {
3284
3285
3287 foreach (
EntityAI entity : foundEntities)
3288 {
3291 }
3292 }
3293
3294
3296 {
3298
3302 }
3303
3305 {
3307
3309 {
3311 }
3312 else
3313 {
3315 }
3316
3318 }
3319
3321 {
3323
3325 foreach (
string slotName : attachmentSlots)
3326 {
3328 }
3329
3330
3333 else
3335
3337 }
3338
3340 {
3341 string slotNameMounted = slot_name + "_Mounted";
3342 EntityAI attachment = FindAttachmentBySlotName(slot_name);
3343
3344 if (attachment)
3345 {
3346 BarbedWire barbedWire = BarbedWire.Cast(attachment);
3347 if (barbedWire && barbedWire.IsMounted())
3349 else
3351
3352 if (is_locked)
3353 {
3354 SetAnimationPhase(slotNameMounted, 0);
3355 SetAnimationPhase(slot_name, 1);
3356 }
3357 else
3358 {
3359 SetAnimationPhase(slotNameMounted, 1);
3360 SetAnimationPhase(slot_name, 0);
3361 }
3362 }
3363 else
3364 {
3365 SetAnimationPhase(slotNameMounted, 1);
3366 SetAnimationPhase(slot_name, 1);
3367
3369 }
3370 }
3371
3372
3374 {
3377
3380
3383
3384 foreach (
string slotName : attachmentSlots)
3385 {
3387 }
3388
3389
3391 {
3394
3396 }
3397 else
3398 {
3401
3403 }
3404
3407 }
3408
3410 {
3411
3413 return;
3414
3415 string slot_name_mounted = slot_name + "_Mounted";
3416 EntityAI attachment = FindAttachmentBySlotName( slot_name );
3417
3418
3420 RemoveProxyPhysics( slot_name_mounted );
3421 RemoveProxyPhysics( slot_name );
3422
3423 if ( attachment )
3424 {
3426 if ( is_locked )
3427 {
3429 AddProxyPhysics( slot_name_mounted );
3430 }
3431 else
3432 {
3434 AddProxyPhysics( slot_name );
3435 }
3436 }
3437 }
3438
3440 {
3441 SetAffectPathgraph( true, false );
3443 }
3444
3446 {
3447 return true;
3448 }
3449
3451 {
3452 return true;
3453 }
3454
3456 {
3457 if ( attachment )
3458 {
3460 attachment.GetInventory().GetCurrentInventoryLocation( inventory_location );
3461
3462 return GetInventory().GetSlotLock( inventory_location.
GetSlot() );
3463 }
3464
3465 return false;
3466 }
3467
3469 {
3471 }
3472
3473
3475 {
3476 string config_path = "CfgVehicles" + " " + entity.GetType() + " " + "attachments";
3477 if (
GetGame().ConfigIsExisting( config_path ) )
3478 {
3480 }
3481 }
3482
3484 {
3485 return true;
3486 }
3487
3489 {
3490 return true;
3491 }
3492
3494 {
3495 return true;
3496 }
3497
3498
3500 {
3502 {
3504 }
3505
3507 }
3508
3510 {
3512 }
3513
3514
3515
3517 {
3518 return super.CanReceiveAttachment(attachment, slotId);
3519 }
3520
3522 {
3523 int attachment_count = GetInventory().AttachmentCount();
3524 if ( attachment_count > 0 )
3525 {
3526 if (
HasBase() && attachment_count == 1 )
3527 {
3528 return false;
3529 }
3530
3531 return true;
3532 }
3533
3534 return false;
3535 }
3536
3538 {
3539 return true;
3540 }
3541
3543 {
3544 return false;
3545 }
3546
3547
3549 {
3550 return false;
3551 }
3552
3554 {
3555 return false;
3556 }
3557
3558
3560 {
3561 return false;
3562 }
3563
3564
3565
3567 {
3568 return true;
3569 }
3570
3572 {
3573 return true;
3574 }
3575
3578 {
3579 return false;
3580 }
3581
3582
3584 {
3585 return true;
3586 }
3587
3588
3590 {
3591 return false;
3592 }
3593
3594
3596 {
3597 return true;
3598 }
3599
3600
3602 {
3603 if (
HasBase() || GetInventory().AttachmentCount() > 0 )
3604 {
3605 return false;
3606 }
3607
3608 return true;
3609 }
3610
3612 {
3615
3616 return item;
3617 }
3618
3619
3621 {
3623 {
3624
3626
3627
3630
3632 if ( MemoryPointExists( slot_name + "_min" ) )
3633 {
3634 min_max[0] = GetMemoryPointPos( slot_name + "_min" );
3635 }
3636 if ( MemoryPointExists( slot_name + "_max" ) )
3637 {
3638 min_max[1] = GetMemoryPointPos( slot_name + "_max" );
3639 }
3640
3641
3644
3645
3648 center = ModelToWorld( center );
3649
3650
3653
3654 areaDamage.SetExtents( extents[0], extents[1] );
3655 areaDamage.SetAreaPosition( center );
3656 areaDamage.SetAreaOrientation( orientation );
3659 areaDamage.SetHitZones( { "Torso","LeftHand","LeftLeg","LeftFoot","RightHand","RightLeg","RightFoot" } );
3660 areaDamage.SetAmmoName( "BarbedWireHit" );
3661 areaDamage.Spawn();
3662
3664 }
3665 }
3666
3668 {
3669 if ( angle_deg != 0 )
3670 {
3671
3672 orientation[0] = orientation[0] - angle_deg;
3673
3674
3676 if ( MemoryPointExists( "rotate_axis" ) )
3677 {
3678 rotate_axis = ModelToWorld( GetMemoryPointPos( "rotate_axis" ) );
3679 }
3680 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];
3681 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];
3682 center[0] = r_center_x;
3683 center[2] = r_center_z;
3684 }
3685 }
3686
3688 {
3690 {
3693 {
3694 if (areaDamage)
3695 {
3696 areaDamage.Destroy();
3697 }
3698
3700 }
3701 }
3702 }
3703
3705 {
3706 return true;
3707 }
3708
3709
3710
3711
3713 {
3715 }
3716
3718 {
3720 }
3721
3723 {
3725 }
3726
3728 {
3730
3731 switch ( material_type )
3732 {
3738 }
3739
3740 return "";
3741 }
3742
3744 {
3746
3747 switch ( material_type )
3748 {
3754 }
3755
3756 return "";
3757 }
3758
3759
3761 {
3763 {
3764
3766 {
3767 SetHealth(slot_name,"Health",item.GetHealth());
3768 }
3769 }
3770 }
3771
3773 {
3774 return 111;
3775 }
3776
3778 {
3779 super.SetActions();
3780
3784 }
3785
3786
3787
3788
3790 {
3791 }
3792
3795 {
3796 return null;
3797 }
3798
3800 {
3802 }
3803
3805 {
3808
3809 Man p;
3810
3811 #ifdef SERVER
3814 if (players.Count())
3815 p = players[0];
3816 #else
3818 #endif
3819
3821 {
3822 bool excluded = false;
3824 if (excludes)
3825 {
3826 foreach (string exclude : excludes)
3827 {
3829 {
3830 excluded = true;
3831 break;
3832 }
3833 }
3834 }
3835
3836 if (!excluded)
3837 {
3839 }
3840 }
3841
3843 }
3844}
3845
3847{
3848#ifdef BSB_DEBUG
3850#else
3851
3852#endif
3853}
3855{
3856#ifdef BSB_DEBUG_SPAM
3858#else
3859
3860#endif
3861}
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.