2499{
2501
2503
2505
2507
2513
2514
2515
2521
2527
2529
2533
2534
2536 {
2538
2539
2540 RegisterNetSyncVariableInt( "m_SyncParts01" );
2541 RegisterNetSyncVariableInt( "m_SyncParts02" );
2542 RegisterNetSyncVariableInt( "m_SyncParts03" );
2543 RegisterNetSyncVariableInt( "m_InteractedPartId" );
2544 RegisterNetSyncVariableInt( "m_PerformedActionId" );
2545 RegisterNetSyncVariableBool( "m_HasBase" );
2546
2547
2549
2550 if (ConfigIsExisting("hybridAttachments"))
2551 {
2554 }
2555 if (ConfigIsExisting("mountables"))
2556 {
2559 }
2560
2562 }
2563
2565 {
2566 super.EEDelete(parent);
2567
2569 {
2570 areaDamage.Destroy();
2571 }
2572
2573 }
2574
2576 {
2577 return "disableBaseDamage";
2578 }
2579
2581 {
2582 return true;
2583 }
2584
2586 {
2587 return EInventoryIconVisibility.HIDE_VICINITY;
2588 }
2589
2591 {
2592 super.InitItemSounds();
2593
2597
2602 }
2603
2605 {
2606 return "putDown_FenceKit_SoundSet";
2607 }
2608
2610 {
2611 return "Shelter_Site_Build_Loop_SoundSet";
2612 }
2613
2614
2616 {
2618 {
2619 SetSynchDirty();
2620 }
2621 }
2622
2624 {
2626 super.OnVariablesSynchronized();
2627
2629 }
2630
2632 {
2633
2635
2636
2638
2639
2641 }
2642
2643
2645 {
2646
2647 int offset;
2648 int mask;
2649
2650 if ( part_id >= 1 && part_id <= 31 )
2651 {
2652 offset = part_id - 1;
2653 mask = 1 << offset;
2654
2656 }
2657 else if ( part_id >= 32 && part_id <= 62 )
2658 {
2659 offset = ( part_id % 32 );
2660 mask = 1 << offset;
2661
2663 }
2664 else if ( part_id >= 63 && part_id <= 93 )
2665 {
2666 offset = ( part_id % 63 );
2667 mask = 1 << offset;
2668
2670 }
2671 }
2672
2674 {
2675
2676 int offset;
2677 int mask;
2678
2679 if ( part_id >= 1 && part_id <= 31 )
2680 {
2681 offset = part_id - 1;
2682 mask = 1 << offset;
2683
2685 }
2686 else if ( part_id >= 32 && part_id <= 62 )
2687 {
2688 offset = ( part_id % 32 );
2689 mask = 1 << offset;
2690
2692 }
2693 else if ( part_id >= 63 && part_id <= 93 )
2694 {
2695 offset = ( part_id % 63 );
2696 mask = 1 << offset;
2697
2699 }
2700 }
2701
2703 {
2704
2705 int offset;
2706 int mask;
2707
2708 if ( part_id >= 1 && part_id <= 31 )
2709 {
2710 offset = part_id - 1;
2711 mask = 1 << offset;
2712
2714 {
2715 return true;
2716 }
2717 }
2718 else if ( part_id >= 32 && part_id <= 62 )
2719 {
2720 offset = ( part_id % 32 );
2721 mask = 1 << offset;
2722
2724 {
2725 return true;
2726 }
2727 }
2728 else if ( part_id >= 63 && part_id <= 93 )
2729 {
2730 offset = ( part_id % 63 );
2731 mask = 1 << offset;
2732
2734 {
2735 return true;
2736 }
2737 }
2738
2739 return false;
2740 }
2741
2743 {
2746 }
2747
2749 {
2750
2753 }
2754
2756 {
2758 {
2761
2762 switch( build_action_id )
2763 {
2767 }
2768 }
2769 }
2770
2771
2773 {
2775 bool is_base = part.
IsBase();
2778 if ( is_part_built_sync )
2779 {
2781 {
2785
2786 if (is_base)
2787 {
2790 }
2791 }
2792 }
2793 else
2794 {
2796 {
2800
2801 if (is_base)
2802 {
2805 }
2806 }
2807 }
2808
2809
2811 }
2812
2813
2815 {
2818
2819 for ( int i = 0; i < construction_parts.Count(); ++i )
2820 {
2821 string key = construction_parts.GetKey( i );
2824 }
2825
2826
2828 }
2829
2831 {
2834
2835 for ( int i = 0; i < construction_parts.Count(); ++i )
2836 {
2837 string key = construction_parts.GetKey( i );
2839
2840 if ( value.
GetId() ==
id )
2841 {
2842 return value;
2843 }
2844 }
2845
2846 return NULL;
2847 }
2848
2849
2850
2852 {
2854 }
2855
2857 {
2859 }
2860
2862 {
2863 return true;
2864 }
2865
2867 {
2868 return false;
2869 }
2870
2871
2873 {
2876 {
2878 }
2879
2880 return construction_kit;
2881 }
2882
2884 {
2887 {
2889 }
2890 }
2891
2893 {
2895 }
2896
2898 {
2899 return "";
2900 }
2901
2903 {
2906 }
2907
2908
2910 {
2913 }
2914
2915
2917 {
2918 super.OnStoreSave( ctx );
2919
2920
2924
2926 }
2927
2929 {
2930 if ( !super.OnStoreLoad( ctx, version ) )
2931 return false;
2932
2933
2934
2936 {
2938 return false;
2939 }
2941 {
2943 return false;
2944 }
2946 {
2948 return false;
2949 }
2950
2951
2953 {
2955 return false;
2956 }
2957
2958
2959 return true;
2960 }
2961
2963 {
2964 super.AfterStoreLoad();
2965
2967 {
2969 }
2970 }
2971
2973 {
2974
2976
2977
2980
2981
2983 }
2984
2986 {
2987 super.OnCreatePhysics();
2990 }
2991
2993 {
2995 return;
2996
2997 super.EEHealthLevelChanged(oldLevel,newLevel,zone);
2998
3000 return;
3001
3003 string part_name = zone;
3005
3007 {
3008 ConstructionPart construction_part = construction.GetConstructionPart( part_name );
3009
3010 if ( construction_part && construction.IsPartConstructed( part_name ) )
3011 {
3013 construction.DestroyConnectedParts(part_name);
3014 }
3015
3016
3017 if ( part_name.
Contains(
"barbed") )
3018 {
3019 BarbedWire barbed_wire = BarbedWire.Cast( FindAttachmentBySlotName( zone ) );
3020 if (barbed_wire)
3021 barbed_wire.SetMountedState( false );
3022 }
3023 }
3024 }
3025
3027 {
3029 {
3031 }
3032
3033 super.EEOnAfterLoad();
3034 }
3035
3037 {
3038 super.EEInit();
3039
3040
3042
3043
3044 #ifdef DEVELOPER
3046 #endif
3047 }
3048
3050 {
3051 super.EEItemAttached( item, slot_name );
3052
3056 }
3057
3059 {
3060 super.EEItemDetached( item, slot_name );
3061
3064 }
3065
3066 protected void OnSetSlotLock(
int slotId,
bool locked,
bool was_locked )
3067 {
3070
3073 }
3074
3075
3077 {
3078 return true;
3079 }
3080
3081
3082
3084 {
3086
3087
3088 if (construtionPart.
IsBase())
3089 {
3091
3092
3094 }
3095
3096
3098
3099
3101
3102
3104
3106
3108
3109
3111
3112
3114 }
3115
3117 {
3118
3120 }
3121
3122
3124 {
3127
3128
3130
3131
3133
3134
3136
3137
3139
3141
3142
3144
3145
3147
3148
3149 if (construtionPart.
IsBase())
3150 {
3151
3153 }
3154 }
3155
3157 {
3158
3160 }
3161
3162
3163 void OnPartDestroyedServer(Man player,
string part_name,
int action_id,
bool destroyed_by_connected_part =
false)
3164 {
3167
3168
3170
3171
3173
3174
3176
3177
3179
3181
3182
3184
3185
3187
3188
3189 if (construtionPart.
IsBase())
3190 {
3191
3193 }
3194 }
3195
3197 {
3198
3200 }
3201
3204 {
3205 bool process = false;
3206
3207
3211
3212 if (process)
3213 {
3214 if (!MemoryPointExists(part.
m_PartName +
"_min") || !MemoryPointExists(part.
m_PartName +
"_max"))
3215 {
3217 return;
3218 }
3219
3221 mins = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_min"));
3222 maxs = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_max"));
3223
3224
3226 minTmp[0] =
Math.
Min(mins[0],maxs[0]);
3227 maxTmp[0] =
Math.
Max(mins[0],maxs[0]);
3228 minTmp[1] =
Math.
Min(mins[1],maxs[1]);
3229 maxTmp[1] =
Math.
Max(mins[1],maxs[1]);
3230 minTmp[2] =
Math.
Min(mins[2],maxs[2]);
3231 maxTmp[2] =
Math.
Max(mins[2],maxs[2]);
3232 mins = minTmp;
3233 maxs = maxTmp;
3234
3235 maxs[1] = maxs[1] + 0.35;
3236
3238 }
3239 }
3240
3243 {
3246
3247
3249 foreach (
EntityAI entity : foundEntities)
3250 {
3253 }
3254 }
3255
3256
3258 {
3260
3264 }
3265
3267 {
3269
3271 {
3273 }
3274 else
3275 {
3277 }
3278
3280 }
3281
3283 {
3285
3287 foreach (
string slotName : attachmentSlots)
3288 {
3290 }
3291
3292
3295 else
3297
3299 }
3300
3302 {
3303 string slotNameMounted = slot_name + "_Mounted";
3304 EntityAI attachment = FindAttachmentBySlotName(slot_name);
3305
3306 if (attachment)
3307 {
3308 BarbedWire barbedWire = BarbedWire.Cast(attachment);
3309 if (barbedWire && barbedWire.IsMounted())
3311 else
3313
3314 if (is_locked)
3315 {
3316 SetAnimationPhase(slotNameMounted, 0);
3317 SetAnimationPhase(slot_name, 1);
3318 }
3319 else
3320 {
3321 SetAnimationPhase(slotNameMounted, 1);
3322 SetAnimationPhase(slot_name, 0);
3323 }
3324 }
3325 else
3326 {
3327 SetAnimationPhase(slotNameMounted, 1);
3328 SetAnimationPhase(slot_name, 1);
3329
3331 }
3332 }
3333
3334
3336 {
3339
3342
3345
3346 foreach (
string slotName : attachmentSlots)
3347 {
3349 }
3350
3351
3353 {
3356
3358 }
3359 else
3360 {
3363
3365 }
3366
3369 }
3370
3372 {
3373
3375 return;
3376
3377 string slot_name_mounted = slot_name + "_Mounted";
3378 EntityAI attachment = FindAttachmentBySlotName( slot_name );
3379
3380
3382 RemoveProxyPhysics( slot_name_mounted );
3383 RemoveProxyPhysics( slot_name );
3384
3385 if ( attachment )
3386 {
3388 if ( is_locked )
3389 {
3391 AddProxyPhysics( slot_name_mounted );
3392 }
3393 else
3394 {
3396 AddProxyPhysics( slot_name );
3397 }
3398 }
3399 }
3400
3402 {
3403 SetAffectPathgraph( true, false );
3405 }
3406
3408 {
3409 return true;
3410 }
3411
3413 {
3414 return true;
3415 }
3416
3418 {
3419 if ( attachment )
3420 {
3422 attachment.GetInventory().GetCurrentInventoryLocation( inventory_location );
3423
3424 return GetInventory().GetSlotLock( inventory_location.
GetSlot() );
3425 }
3426
3427 return false;
3428 }
3429
3431 {
3433 }
3434
3435
3437 {
3438 string config_path = "CfgVehicles" + " " + entity.GetType() + " " + "attachments";
3439 if (
GetGame().ConfigIsExisting( config_path ) )
3440 {
3442 }
3443 }
3444
3446 {
3447 return true;
3448 }
3449
3451 {
3452 return true;
3453 }
3454
3456 {
3457 return true;
3458 }
3459
3460
3462 {
3464 {
3466 }
3467
3469 }
3470
3472 {
3474 }
3475
3476
3477
3479 {
3480 return super.CanReceiveAttachment(attachment, slotId);
3481 }
3482
3484 {
3485 int attachment_count = GetInventory().AttachmentCount();
3486 if ( attachment_count > 0 )
3487 {
3488 if (
HasBase() && attachment_count == 1 )
3489 {
3490 return false;
3491 }
3492
3493 return true;
3494 }
3495
3496 return false;
3497 }
3498
3500 {
3501 return true;
3502 }
3503
3505 {
3506 return false;
3507 }
3508
3509
3511 {
3512 return false;
3513 }
3514
3516 {
3517 return false;
3518 }
3519
3520
3522 {
3523 return false;
3524 }
3525
3526
3527
3529 {
3530 return true;
3531 }
3532
3534 {
3535 return true;
3536 }
3537
3540 {
3541 return false;
3542 }
3543
3544
3546 {
3547 return true;
3548 }
3549
3550
3552 {
3553 return false;
3554 }
3555
3556
3558 {
3559 return true;
3560 }
3561
3562
3564 {
3565 if (
HasBase() || GetInventory().AttachmentCount() > 0 )
3566 {
3567 return false;
3568 }
3569
3570 return true;
3571 }
3572
3574 {
3577
3578 return item;
3579 }
3580
3581
3583 {
3585 {
3586
3588
3589
3592
3594 if ( MemoryPointExists( slot_name + "_min" ) )
3595 {
3596 min_max[0] = GetMemoryPointPos( slot_name + "_min" );
3597 }
3598 if ( MemoryPointExists( slot_name + "_max" ) )
3599 {
3600 min_max[1] = GetMemoryPointPos( slot_name + "_max" );
3601 }
3602
3603
3606
3607
3610 center = ModelToWorld( center );
3611
3612
3615
3616 areaDamage.SetExtents( extents[0], extents[1] );
3617 areaDamage.SetAreaPosition( center );
3618 areaDamage.SetAreaOrientation( orientation );
3621 areaDamage.SetHitZones( { "Torso","LeftHand","LeftLeg","LeftFoot","RightHand","RightLeg","RightFoot" } );
3622 areaDamage.SetAmmoName( "BarbedWireHit" );
3623 areaDamage.Spawn();
3624
3626 }
3627 }
3628
3630 {
3631 if ( angle_deg != 0 )
3632 {
3633
3634 orientation[0] = orientation[0] - angle_deg;
3635
3636
3638 if ( MemoryPointExists( "rotate_axis" ) )
3639 {
3640 rotate_axis = ModelToWorld( GetMemoryPointPos( "rotate_axis" ) );
3641 }
3642 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];
3643 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];
3644 center[0] = r_center_x;
3645 center[2] = r_center_z;
3646 }
3647 }
3648
3650 {
3652 {
3655 {
3656 if (areaDamage)
3657 {
3658 areaDamage.Destroy();
3659 }
3660
3662 }
3663 }
3664 }
3665
3667 {
3668 return true;
3669 }
3670
3671
3672
3673
3675 {
3677 }
3678
3680 {
3682 }
3683
3685 {
3687 }
3688
3690 {
3692
3693 switch ( material_type )
3694 {
3700 }
3701
3702 return "";
3703 }
3704
3706 {
3708
3709 switch ( material_type )
3710 {
3716 }
3717
3718 return "";
3719 }
3720
3721
3723 {
3725 {
3726
3728 {
3729 SetHealth(slot_name,"Health",item.GetHealth());
3730 }
3731 }
3732 }
3733
3735 {
3736 return 111;
3737 }
3738
3740 {
3741 super.SetActions();
3742
3746 }
3747
3748
3749
3750
3752 {
3753 }
3754
3757 {
3758 return null;
3759 }
3760
3762 {
3764 }
3765
3767 {
3770
3771 Man p;
3772
3773 #ifdef SERVER
3776 if (players.Count())
3777 p = players[0];
3778 #else
3780 #endif
3781
3783 {
3784 bool excluded = false;
3786 if (excludes)
3787 {
3788 foreach (string exclude : excludes)
3789 {
3791 {
3792 excluded = true;
3793 break;
3794 }
3795 }
3796 }
3797
3798 if (!excluded)
3799 {
3801 }
3802 }
3803
3805 }
3806}
3807
3809{
3810#ifdef BSB_DEBUG
3812#else
3813
3814#endif
3815}
3817{
3818#ifdef BSB_DEBUG_SPAM
3820#else
3821
3822#endif
3823}
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.