2489{
2491
2493
2495
2497
2503
2504
2505
2511
2517
2519
2523
2524
2526 {
2528
2529
2530 RegisterNetSyncVariableInt( "m_SyncParts01" );
2531 RegisterNetSyncVariableInt( "m_SyncParts02" );
2532 RegisterNetSyncVariableInt( "m_SyncParts03" );
2533 RegisterNetSyncVariableInt( "m_InteractedPartId" );
2534 RegisterNetSyncVariableInt( "m_PerformedActionId" );
2535 RegisterNetSyncVariableBool( "m_HasBase" );
2536
2537
2539
2540 if (ConfigIsExisting("hybridAttachments"))
2541 {
2544 }
2545 if (ConfigIsExisting("mountables"))
2546 {
2549 }
2550
2552 }
2553
2555 {
2556 super.EEDelete(parent);
2557
2559 {
2560 areaDamage.Destroy();
2561 }
2562
2563 }
2564
2566 {
2567 return "disableBaseDamage";
2568 }
2569
2571 {
2572 return true;
2573 }
2574
2576 {
2577 return EInventoryIconVisibility.HIDE_VICINITY;
2578 }
2579
2581 {
2582 super.InitItemSounds();
2583
2587
2592 }
2593
2595 {
2596 return "putDown_FenceKit_SoundSet";
2597 }
2598
2600 {
2601 return "Shelter_Site_Build_Loop_SoundSet";
2602 }
2603
2604
2606 {
2608 {
2609 SetSynchDirty();
2610 }
2611 }
2612
2614 {
2616 super.OnVariablesSynchronized();
2617
2619 }
2620
2622 {
2623
2625
2626
2628
2629
2631 }
2632
2633
2635 {
2636
2637 int offset;
2638 int mask;
2639
2640 if ( part_id >= 1 && part_id <= 31 )
2641 {
2642 offset = part_id - 1;
2643 mask = 1 << offset;
2644
2646 }
2647 else if ( part_id >= 32 && part_id <= 62 )
2648 {
2649 offset = ( part_id % 32 );
2650 mask = 1 << offset;
2651
2653 }
2654 else if ( part_id >= 63 && part_id <= 93 )
2655 {
2656 offset = ( part_id % 63 );
2657 mask = 1 << offset;
2658
2660 }
2661 }
2662
2664 {
2665
2666 int offset;
2667 int mask;
2668
2669 if ( part_id >= 1 && part_id <= 31 )
2670 {
2671 offset = part_id - 1;
2672 mask = 1 << offset;
2673
2675 }
2676 else if ( part_id >= 32 && part_id <= 62 )
2677 {
2678 offset = ( part_id % 32 );
2679 mask = 1 << offset;
2680
2682 }
2683 else if ( part_id >= 63 && part_id <= 93 )
2684 {
2685 offset = ( part_id % 63 );
2686 mask = 1 << offset;
2687
2689 }
2690 }
2691
2693 {
2694
2695 int offset;
2696 int mask;
2697
2698 if ( part_id >= 1 && part_id <= 31 )
2699 {
2700 offset = part_id - 1;
2701 mask = 1 << offset;
2702
2704 {
2705 return true;
2706 }
2707 }
2708 else if ( part_id >= 32 && part_id <= 62 )
2709 {
2710 offset = ( part_id % 32 );
2711 mask = 1 << offset;
2712
2714 {
2715 return true;
2716 }
2717 }
2718 else if ( part_id >= 63 && part_id <= 93 )
2719 {
2720 offset = ( part_id % 63 );
2721 mask = 1 << offset;
2722
2724 {
2725 return true;
2726 }
2727 }
2728
2729 return false;
2730 }
2731
2733 {
2736 }
2737
2739 {
2740
2743 }
2744
2746 {
2748 {
2751
2752 switch( build_action_id )
2753 {
2757 }
2758 }
2759 }
2760
2761
2763 {
2765 bool is_base = part.
IsBase();
2768 if ( is_part_built_sync )
2769 {
2771 {
2775
2776 if (is_base)
2777 {
2780 }
2781 }
2782 }
2783 else
2784 {
2786 {
2790
2791 if (is_base)
2792 {
2795 }
2796 }
2797 }
2798
2799
2801 }
2802
2803
2805 {
2808
2809 for ( int i = 0; i < construction_parts.Count(); ++i )
2810 {
2811 string key = construction_parts.GetKey( i );
2814 }
2815
2816
2818 }
2819
2821 {
2824
2825 for ( int i = 0; i < construction_parts.Count(); ++i )
2826 {
2827 string key = construction_parts.GetKey( i );
2829
2830 if ( value.
GetId() ==
id )
2831 {
2832 return value;
2833 }
2834 }
2835
2836 return NULL;
2837 }
2838
2839
2840
2842 {
2844 }
2845
2847 {
2849 }
2850
2852 {
2853 return true;
2854 }
2855
2857 {
2858 return false;
2859 }
2860
2861
2863 {
2866 {
2868 }
2869
2870 return construction_kit;
2871 }
2872
2874 {
2877 {
2879 }
2880 }
2881
2883 {
2885 }
2886
2888 {
2889 return "";
2890 }
2891
2893 {
2896 }
2897
2898
2900 {
2903 }
2904
2905
2907 {
2908 super.OnStoreSave( ctx );
2909
2910
2914
2916 }
2917
2919 {
2920 if ( !super.OnStoreLoad( ctx, version ) )
2921 return false;
2922
2923
2924
2926 {
2928 return false;
2929 }
2931 {
2933 return false;
2934 }
2936 {
2938 return false;
2939 }
2940
2941
2943 {
2945 return false;
2946 }
2947
2948
2949 return true;
2950 }
2951
2953 {
2954 super.AfterStoreLoad();
2955
2957 {
2959 }
2960 }
2961
2963 {
2964
2966
2967
2970
2971
2973 }
2974
2976 {
2977 super.OnCreatePhysics();
2980 }
2981
2983 {
2985 return;
2986
2987 super.EEHealthLevelChanged(oldLevel,newLevel,zone);
2988
2990 return;
2991
2993 string part_name = zone;
2995
2997 {
2998 ConstructionPart construction_part = construction.GetConstructionPart( part_name );
2999
3000 if ( construction_part && construction.IsPartConstructed( part_name ) )
3001 {
3003 construction.DestroyConnectedParts(part_name);
3004 }
3005
3006
3007 if ( part_name.
Contains(
"barbed") )
3008 {
3009 BarbedWire barbed_wire = BarbedWire.Cast( FindAttachmentBySlotName( zone ) );
3010 if (barbed_wire)
3011 barbed_wire.SetMountedState( false );
3012 }
3013 }
3014 }
3015
3017 {
3019 {
3021 }
3022
3023 super.EEOnAfterLoad();
3024 }
3025
3027 {
3028 super.EEInit();
3029
3030
3032
3033
3034 #ifdef DEVELOPER
3036 #endif
3037 }
3038
3040 {
3041 super.EEItemAttached( item, slot_name );
3042
3046 }
3047
3049 {
3050 super.EEItemDetached( item, slot_name );
3051
3054 }
3055
3056 protected void OnSetSlotLock(
int slotId,
bool locked,
bool was_locked )
3057 {
3060
3063 }
3064
3065
3067 {
3068 return true;
3069 }
3070
3071
3072
3074 {
3076
3077
3078 if (construtionPart.
IsBase())
3079 {
3081
3082
3084 }
3085
3086
3088
3089
3091
3092
3094
3096
3098
3099
3101
3102
3104 }
3105
3107 {
3108
3110 }
3111
3112
3114 {
3117
3118
3120
3121
3123
3124
3126
3127
3129
3131
3132
3134
3135
3137
3138
3139 if (construtionPart.
IsBase())
3140 {
3141
3143 }
3144 }
3145
3147 {
3148
3150 }
3151
3152
3153 void OnPartDestroyedServer(Man player,
string part_name,
int action_id,
bool destroyed_by_connected_part =
false)
3154 {
3157
3158
3160
3161
3163
3164
3166
3167
3169
3171
3172
3174
3175
3177
3178
3179 if (construtionPart.
IsBase())
3180 {
3181
3183 }
3184 }
3185
3187 {
3188
3190 }
3191
3194 {
3195 bool process = false;
3196
3197
3201
3202 if (process)
3203 {
3204 if (!MemoryPointExists(part.
m_PartName +
"_min") || !MemoryPointExists(part.
m_PartName +
"_max"))
3205 {
3207 return;
3208 }
3209
3211 mins = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_min"));
3212 maxs = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_max"));
3213
3214
3216 minTmp[0] =
Math.
Min(mins[0],maxs[0]);
3217 maxTmp[0] =
Math.
Max(mins[0],maxs[0]);
3218 minTmp[1] =
Math.
Min(mins[1],maxs[1]);
3219 maxTmp[1] =
Math.
Max(mins[1],maxs[1]);
3220 minTmp[2] =
Math.
Min(mins[2],maxs[2]);
3221 maxTmp[2] =
Math.
Max(mins[2],maxs[2]);
3222 mins = minTmp;
3223 maxs = maxTmp;
3224
3225 maxs[1] = maxs[1] + 0.35;
3226
3228 }
3229 }
3230
3233 {
3236
3237
3239 foreach (
EntityAI entity : foundEntities)
3240 {
3243 }
3244 }
3245
3246
3248 {
3250
3254 }
3255
3257 {
3259
3261 {
3263 }
3264 else
3265 {
3267 }
3268
3270 }
3271
3273 {
3275
3277 foreach (
string slotName : attachmentSlots)
3278 {
3280 }
3281
3282
3285 else
3287
3289 }
3290
3292 {
3293 string slotNameMounted = slot_name + "_Mounted";
3294 EntityAI attachment = FindAttachmentBySlotName(slot_name);
3295
3296 if (attachment)
3297 {
3298 BarbedWire barbedWire = BarbedWire.Cast(attachment);
3299 if (barbedWire && barbedWire.IsMounted())
3301 else
3303
3304 if (is_locked)
3305 {
3306 SetAnimationPhase(slotNameMounted, 0);
3307 SetAnimationPhase(slot_name, 1);
3308 }
3309 else
3310 {
3311 SetAnimationPhase(slotNameMounted, 1);
3312 SetAnimationPhase(slot_name, 0);
3313 }
3314 }
3315 else
3316 {
3317 SetAnimationPhase(slotNameMounted, 1);
3318 SetAnimationPhase(slot_name, 1);
3319
3321 }
3322 }
3323
3324
3326 {
3329
3332
3335
3336 foreach (
string slotName : attachmentSlots)
3337 {
3339 }
3340
3341
3343 {
3346
3348 }
3349 else
3350 {
3353
3355 }
3356
3359 }
3360
3362 {
3363
3365 return;
3366
3367 string slot_name_mounted = slot_name + "_Mounted";
3368 EntityAI attachment = FindAttachmentBySlotName( slot_name );
3369
3370
3372 RemoveProxyPhysics( slot_name_mounted );
3373 RemoveProxyPhysics( slot_name );
3374
3375 if ( attachment )
3376 {
3378 if ( is_locked )
3379 {
3381 AddProxyPhysics( slot_name_mounted );
3382 }
3383 else
3384 {
3386 AddProxyPhysics( slot_name );
3387 }
3388 }
3389 }
3390
3392 {
3393 SetAffectPathgraph( true, false );
3395 }
3396
3398 {
3399 return true;
3400 }
3401
3403 {
3404 return true;
3405 }
3406
3408 {
3409 if ( attachment )
3410 {
3412 attachment.GetInventory().GetCurrentInventoryLocation( inventory_location );
3413
3414 return GetInventory().GetSlotLock( inventory_location.
GetSlot() );
3415 }
3416
3417 return false;
3418 }
3419
3421 {
3423 }
3424
3425
3427 {
3428 string config_path = "CfgVehicles" + " " + entity.GetType() + " " + "attachments";
3429 if (
GetGame().ConfigIsExisting( config_path ) )
3430 {
3432 }
3433 }
3434
3436 {
3437 return true;
3438 }
3439
3441 {
3442 return true;
3443 }
3444
3446 {
3447 return true;
3448 }
3449
3450
3452 {
3454 {
3456 }
3457
3459 }
3460
3462 {
3464 }
3465
3466
3467
3469 {
3470 return super.CanReceiveAttachment(attachment, slotId);
3471 }
3472
3474 {
3475 int attachment_count = GetInventory().AttachmentCount();
3476 if ( attachment_count > 0 )
3477 {
3478 if (
HasBase() && attachment_count == 1 )
3479 {
3480 return false;
3481 }
3482
3483 return true;
3484 }
3485
3486 return false;
3487 }
3488
3490 {
3491 return true;
3492 }
3493
3495 {
3496 return false;
3497 }
3498
3499
3501 {
3502 return false;
3503 }
3504
3506 {
3507 return false;
3508 }
3509
3510
3512 {
3513 return false;
3514 }
3515
3516
3517
3519 {
3520 return true;
3521 }
3522
3524 {
3525 return true;
3526 }
3527
3530 {
3531 return false;
3532 }
3533
3534
3536 {
3537 return true;
3538 }
3539
3540
3542 {
3543 return false;
3544 }
3545
3546
3548 {
3549 return true;
3550 }
3551
3552
3554 {
3555 if (
HasBase() || GetInventory().AttachmentCount() > 0 )
3556 {
3557 return false;
3558 }
3559
3560 return true;
3561 }
3562
3564 {
3567
3568 return item;
3569 }
3570
3571
3573 {
3575 {
3576
3578
3579
3582
3584 if ( MemoryPointExists( slot_name + "_min" ) )
3585 {
3586 min_max[0] = GetMemoryPointPos( slot_name + "_min" );
3587 }
3588 if ( MemoryPointExists( slot_name + "_max" ) )
3589 {
3590 min_max[1] = GetMemoryPointPos( slot_name + "_max" );
3591 }
3592
3593
3596
3597
3600 center = ModelToWorld( center );
3601
3602
3605
3606 areaDamage.SetExtents( extents[0], extents[1] );
3607 areaDamage.SetAreaPosition( center );
3608 areaDamage.SetAreaOrientation( orientation );
3611 areaDamage.SetHitZones( { "Torso","LeftHand","LeftLeg","LeftFoot","RightHand","RightLeg","RightFoot" } );
3612 areaDamage.SetAmmoName( "BarbedWireHit" );
3613 areaDamage.Spawn();
3614
3616 }
3617 }
3618
3620 {
3621 if ( angle_deg != 0 )
3622 {
3623
3624 orientation[0] = orientation[0] - angle_deg;
3625
3626
3628 if ( MemoryPointExists( "rotate_axis" ) )
3629 {
3630 rotate_axis = ModelToWorld( GetMemoryPointPos( "rotate_axis" ) );
3631 }
3632 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];
3633 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];
3634 center[0] = r_center_x;
3635 center[2] = r_center_z;
3636 }
3637 }
3638
3640 {
3642 {
3645 {
3646 if (areaDamage)
3647 {
3648 areaDamage.Destroy();
3649 }
3650
3652 }
3653 }
3654 }
3655
3657 {
3658 return true;
3659 }
3660
3661
3662
3663
3665 {
3667 }
3668
3670 {
3672 }
3673
3675 {
3677 }
3678
3680 {
3682
3683 switch ( material_type )
3684 {
3690 }
3691
3692 return "";
3693 }
3694
3696 {
3698
3699 switch ( material_type )
3700 {
3706 }
3707
3708 return "";
3709 }
3710
3711
3713 {
3715 {
3716
3718 {
3719 SetHealth(slot_name,"Health",item.GetHealth());
3720 }
3721 }
3722 }
3723
3725 {
3726 return 111;
3727 }
3728
3730 {
3731 super.SetActions();
3732
3736 }
3737
3738
3739
3740
3742 {
3743 }
3744
3747 {
3748 return null;
3749 }
3750
3752 {
3754 }
3755
3757 {
3760
3761 Man p;
3762
3763 #ifdef SERVER
3766 if (players.Count())
3767 p = players[0];
3768 #else
3770 #endif
3771
3773 {
3774 bool excluded = false;
3776 if (excludes)
3777 {
3778 foreach (string exclude : excludes)
3779 {
3781 {
3782 excluded = true;
3783 break;
3784 }
3785 }
3786 }
3787
3788 if (!excluded)
3789 {
3791 }
3792 }
3793
3795 }
3796}
3797
3799{
3800#ifdef BSB_DEBUG
3802#else
3803
3804#endif
3805}
3807{
3808#ifdef BSB_DEBUG_SPAM
3810#else
3811
3812#endif
3813}
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.