2388{
2390
2392
2394
2396
2402
2403
2404
2410
2416
2418
2422
2423
2425 {
2427
2428
2429 RegisterNetSyncVariableInt( "m_SyncParts01" );
2430 RegisterNetSyncVariableInt( "m_SyncParts02" );
2431 RegisterNetSyncVariableInt( "m_SyncParts03" );
2432 RegisterNetSyncVariableInt( "m_InteractedPartId" );
2433 RegisterNetSyncVariableInt( "m_PerformedActionId" );
2434 RegisterNetSyncVariableBool( "m_HasBase" );
2435
2436
2438
2439 if (ConfigIsExisting("hybridAttachments"))
2440 {
2443 }
2444 if (ConfigIsExisting("mountables"))
2445 {
2448 }
2449
2451 }
2452
2454 {
2455 super.EEDelete(parent);
2456
2458 {
2459 areaDamage.Destroy();
2460 }
2461
2462 }
2463
2465 {
2466 return "disableBaseDamage";
2467 }
2468
2470 {
2471 return true;
2472 }
2473
2475 {
2476 return EInventoryIconVisibility.HIDE_VICINITY;
2477 }
2478
2480 {
2481 super.InitItemSounds();
2482
2486
2491 }
2492
2494 {
2495 return "putDown_FenceKit_SoundSet";
2496 }
2497
2499 {
2500 return "Shelter_Site_Build_Loop_SoundSet";
2501 }
2502
2503
2505 {
2507 {
2508 SetSynchDirty();
2509 }
2510 }
2511
2513 {
2515 super.OnVariablesSynchronized();
2516
2518 }
2519
2521 {
2522
2524
2525
2527
2528
2530 }
2531
2532
2534 {
2535
2536 int offset;
2537 int mask;
2538
2539 if ( part_id >= 1 && part_id <= 31 )
2540 {
2541 offset = part_id - 1;
2542 mask = 1 << offset;
2543
2545 }
2546 else if ( part_id >= 32 && part_id <= 62 )
2547 {
2548 offset = ( part_id % 32 );
2549 mask = 1 << offset;
2550
2552 }
2553 else if ( part_id >= 63 && part_id <= 93 )
2554 {
2555 offset = ( part_id % 63 );
2556 mask = 1 << offset;
2557
2559 }
2560 }
2561
2563 {
2564
2565 int offset;
2566 int mask;
2567
2568 if ( part_id >= 1 && part_id <= 31 )
2569 {
2570 offset = part_id - 1;
2571 mask = 1 << offset;
2572
2574 }
2575 else if ( part_id >= 32 && part_id <= 62 )
2576 {
2577 offset = ( part_id % 32 );
2578 mask = 1 << offset;
2579
2581 }
2582 else if ( part_id >= 63 && part_id <= 93 )
2583 {
2584 offset = ( part_id % 63 );
2585 mask = 1 << offset;
2586
2588 }
2589 }
2590
2592 {
2593
2594 int offset;
2595 int mask;
2596
2597 if ( part_id >= 1 && part_id <= 31 )
2598 {
2599 offset = part_id - 1;
2600 mask = 1 << offset;
2601
2603 {
2604 return true;
2605 }
2606 }
2607 else if ( part_id >= 32 && part_id <= 62 )
2608 {
2609 offset = ( part_id % 32 );
2610 mask = 1 << offset;
2611
2613 {
2614 return true;
2615 }
2616 }
2617 else if ( part_id >= 63 && part_id <= 93 )
2618 {
2619 offset = ( part_id % 63 );
2620 mask = 1 << offset;
2621
2623 {
2624 return true;
2625 }
2626 }
2627
2628 return false;
2629 }
2630
2632 {
2635 }
2636
2638 {
2639
2642 }
2643
2645 {
2647 {
2650
2651 switch( build_action_id )
2652 {
2656 }
2657 }
2658 }
2659
2660
2662 {
2664 bool is_base = part.
IsBase();
2667 if ( is_part_built_sync )
2668 {
2670 {
2674
2675 if (is_base)
2676 {
2679 }
2680 }
2681 }
2682 else
2683 {
2685 {
2689
2690 if (is_base)
2691 {
2694 }
2695 }
2696 }
2697
2698
2700 }
2701
2702
2704 {
2707
2708 for ( int i = 0; i < construction_parts.Count(); ++i )
2709 {
2710 string key = construction_parts.GetKey( i );
2713 }
2714
2715
2717 }
2718
2720 {
2723
2724 for ( int i = 0; i < construction_parts.Count(); ++i )
2725 {
2726 string key = construction_parts.GetKey( i );
2728
2729 if ( value.
GetId() ==
id )
2730 {
2731 return value;
2732 }
2733 }
2734
2735 return NULL;
2736 }
2737
2738
2739
2741 {
2743 }
2744
2746 {
2748 }
2749
2751 {
2752 return true;
2753 }
2754
2756 {
2757 return false;
2758 }
2759
2760
2762 {
2765 {
2767 }
2768
2769 return construction_kit;
2770 }
2771
2773 {
2776 {
2778 }
2779 }
2780
2782 {
2784 }
2785
2787 {
2788 return "";
2789 }
2790
2792 {
2795 }
2796
2797
2799 {
2802 }
2803
2804
2806 {
2807 super.OnStoreSave( ctx );
2808
2809
2813
2815 }
2816
2818 {
2819 if ( !super.OnStoreLoad( ctx, version ) )
2820 return false;
2821
2822
2823
2825 {
2827 return false;
2828 }
2830 {
2832 return false;
2833 }
2835 {
2837 return false;
2838 }
2839
2840
2842 {
2844 return false;
2845 }
2846
2847
2848 return true;
2849 }
2850
2852 {
2853 super.AfterStoreLoad();
2854
2856 {
2858 }
2859 }
2860
2862 {
2863
2865
2866
2869
2870
2872 }
2873
2875 {
2876 super.OnCreatePhysics();
2879 }
2880
2882 {
2884 return;
2885
2886 super.EEHealthLevelChanged(oldLevel,newLevel,zone);
2887
2889 return;
2890
2892 string part_name = zone;
2894
2896 {
2897 ConstructionPart construction_part = construction.GetConstructionPart( part_name );
2898
2899 if ( construction_part && construction.IsPartConstructed( part_name ) )
2900 {
2902 construction.DestroyConnectedParts(part_name);
2903 }
2904
2905
2906 if ( part_name.
Contains(
"barbed") )
2907 {
2908 BarbedWire barbed_wire = BarbedWire.Cast( FindAttachmentBySlotName( zone ) );
2909 if (barbed_wire)
2910 barbed_wire.SetMountedState( false );
2911 }
2912 }
2913 }
2914
2916 {
2918 {
2920 }
2921
2922 super.EEOnAfterLoad();
2923 }
2924
2926 {
2927 super.EEInit();
2928
2929
2931
2932
2933 #ifdef DEVELOPER
2935 #endif
2936 }
2937
2939 {
2940 super.EEItemAttached( item, slot_name );
2941
2945 }
2946
2948 {
2949 super.EEItemDetached( item, slot_name );
2950
2953 }
2954
2955 protected void OnSetSlotLock(
int slotId,
bool locked,
bool was_locked )
2956 {
2959
2962 }
2963
2964
2966 {
2967 return true;
2968 }
2969
2970
2971
2973 {
2975
2976
2977 if (construtionPart.
IsBase())
2978 {
2980
2981
2983 }
2984
2985
2987
2988
2990
2991
2993
2995
2997
2998
3000
3001
3003 }
3004
3006 {
3007
3009 }
3010
3011
3013 {
3016
3017
3019
3020
3022
3023
3025
3026
3028
3030
3031
3033
3034
3036
3037
3038 if (construtionPart.
IsBase())
3039 {
3040
3042 }
3043 }
3044
3046 {
3047
3049 }
3050
3051
3052 void OnPartDestroyedServer(Man player,
string part_name,
int action_id,
bool destroyed_by_connected_part =
false)
3053 {
3056
3057
3059
3060
3062
3063
3065
3066
3068
3070
3071
3073
3074
3076
3077
3078 if (construtionPart.
IsBase())
3079 {
3080
3082 }
3083 }
3084
3086 {
3087
3089 }
3090
3093 {
3094 bool process = false;
3095
3096
3100
3101 if (process)
3102 {
3103 if (!MemoryPointExists(part.
m_PartName +
"_min") || !MemoryPointExists(part.
m_PartName +
"_max"))
3104 {
3106 return;
3107 }
3108
3110 mins = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_min"));
3111 maxs = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_max"));
3112
3113
3115 minTmp[0] =
Math.
Min(mins[0],maxs[0]);
3116 maxTmp[0] =
Math.
Max(mins[0],maxs[0]);
3117 minTmp[1] =
Math.
Min(mins[1],maxs[1]);
3118 maxTmp[1] =
Math.
Max(mins[1],maxs[1]);
3119 minTmp[2] =
Math.
Min(mins[2],maxs[2]);
3120 maxTmp[2] =
Math.
Max(mins[2],maxs[2]);
3121 mins = minTmp;
3122 maxs = maxTmp;
3123
3124 maxs[1] = maxs[1] + 0.35;
3125
3127 }
3128 }
3129
3132 {
3135
3136
3138 foreach (
EntityAI entity : foundEntities)
3139 {
3142 }
3143 }
3144
3145
3147 {
3149
3153 }
3154
3156 {
3158
3160 {
3162 }
3163 else
3164 {
3166 }
3167
3169 }
3170
3172 {
3174
3176 foreach (
string slotName : attachmentSlots)
3177 {
3179 }
3180
3181
3184 else
3186
3188 }
3189
3191 {
3192 string slotNameMounted = slot_name + "_Mounted";
3193 EntityAI attachment = FindAttachmentBySlotName(slot_name);
3194
3195 if (attachment)
3196 {
3197 BarbedWire barbedWire = BarbedWire.Cast(attachment);
3198 if (barbedWire && barbedWire.IsMounted())
3200 else
3202
3203 if (is_locked)
3204 {
3205 SetAnimationPhase(slotNameMounted, 0);
3206 SetAnimationPhase(slot_name, 1);
3207 }
3208 else
3209 {
3210 SetAnimationPhase(slotNameMounted, 1);
3211 SetAnimationPhase(slot_name, 0);
3212 }
3213 }
3214 else
3215 {
3216 SetAnimationPhase(slotNameMounted, 1);
3217 SetAnimationPhase(slot_name, 1);
3218
3220 }
3221 }
3222
3223
3225 {
3228
3231
3234
3235 foreach (
string slotName : attachmentSlots)
3236 {
3238 }
3239
3240
3242 {
3245
3247 }
3248 else
3249 {
3252
3254 }
3255
3258 }
3259
3261 {
3262
3264 return;
3265
3266 string slot_name_mounted = slot_name + "_Mounted";
3267 EntityAI attachment = FindAttachmentBySlotName( slot_name );
3268
3269
3271 RemoveProxyPhysics( slot_name_mounted );
3272 RemoveProxyPhysics( slot_name );
3273
3274 if ( attachment )
3275 {
3277 if ( is_locked )
3278 {
3280 AddProxyPhysics( slot_name_mounted );
3281 }
3282 else
3283 {
3285 AddProxyPhysics( slot_name );
3286 }
3287 }
3288 }
3289
3291 {
3292 SetAffectPathgraph( true, false );
3294 }
3295
3297 {
3298 return true;
3299 }
3300
3302 {
3303 return true;
3304 }
3305
3307 {
3308 if ( attachment )
3309 {
3311 attachment.GetInventory().GetCurrentInventoryLocation( inventory_location );
3312
3313 return GetInventory().GetSlotLock( inventory_location.
GetSlot() );
3314 }
3315
3316 return false;
3317 }
3318
3320 {
3322 }
3323
3324
3326 {
3327 string config_path = "CfgVehicles" + " " + entity.GetType() + " " + "attachments";
3328 if (
GetGame().ConfigIsExisting( config_path ) )
3329 {
3331 }
3332 }
3333
3335 {
3336 return true;
3337 }
3338
3340 {
3341 return true;
3342 }
3343
3345 {
3346 return true;
3347 }
3348
3349
3351 {
3353 {
3355 }
3356
3358 }
3359
3361 {
3363 }
3364
3365
3366
3368 {
3369 return super.CanReceiveAttachment(attachment, slotId);
3370 }
3371
3373 {
3374 int attachment_count = GetInventory().AttachmentCount();
3375 if ( attachment_count > 0 )
3376 {
3377 if (
HasBase() && attachment_count == 1 )
3378 {
3379 return false;
3380 }
3381
3382 return true;
3383 }
3384
3385 return false;
3386 }
3387
3389 {
3390 return true;
3391 }
3392
3394 {
3395 return false;
3396 }
3397
3398
3400 {
3401 return false;
3402 }
3403
3405 {
3406 return false;
3407 }
3408
3409
3411 {
3412 return false;
3413 }
3414
3415
3416
3418 {
3419 return true;
3420 }
3421
3423 {
3424 return true;
3425 }
3426
3429 {
3430 return false;
3431 }
3432
3433
3435 {
3436 return true;
3437 }
3438
3439
3441 {
3442 return false;
3443 }
3444
3445
3447 {
3448 return true;
3449 }
3450
3451
3453 {
3454 if (
HasBase() || GetInventory().AttachmentCount() > 0 )
3455 {
3456 return false;
3457 }
3458
3459 return true;
3460 }
3461
3463 {
3466
3467 return item;
3468 }
3469
3470
3472 {
3474 {
3475
3477
3478
3481
3483 if ( MemoryPointExists( slot_name + "_min" ) )
3484 {
3485 min_max[0] = GetMemoryPointPos( slot_name + "_min" );
3486 }
3487 if ( MemoryPointExists( slot_name + "_max" ) )
3488 {
3489 min_max[1] = GetMemoryPointPos( slot_name + "_max" );
3490 }
3491
3492
3495
3496
3499 center = ModelToWorld( center );
3500
3501
3504
3505 areaDamage.SetExtents( extents[0], extents[1] );
3506 areaDamage.SetAreaPosition( center );
3507 areaDamage.SetAreaOrientation( orientation );
3510 areaDamage.SetHitZones( { "Torso","LeftHand","LeftLeg","LeftFoot","RightHand","RightLeg","RightFoot" } );
3511 areaDamage.SetAmmoName( "BarbedWireHit" );
3512 areaDamage.Spawn();
3513
3515 }
3516 }
3517
3519 {
3520 if ( angle_deg != 0 )
3521 {
3522
3523 orientation[0] = orientation[0] - angle_deg;
3524
3525
3527 if ( MemoryPointExists( "rotate_axis" ) )
3528 {
3529 rotate_axis = ModelToWorld( GetMemoryPointPos( "rotate_axis" ) );
3530 }
3531 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];
3532 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];
3533 center[0] = r_center_x;
3534 center[2] = r_center_z;
3535 }
3536 }
3537
3539 {
3541 {
3544 {
3545 if (areaDamage)
3546 {
3547 areaDamage.Destroy();
3548 }
3549
3551 }
3552 }
3553 }
3554
3556 {
3557 return true;
3558 }
3559
3560
3561
3562
3564 {
3566 }
3567
3569 {
3571 }
3572
3574 {
3576 }
3577
3579 {
3581
3582 switch ( material_type )
3583 {
3589 }
3590
3591 return "";
3592 }
3593
3595 {
3597
3598 switch ( material_type )
3599 {
3605 }
3606
3607 return "";
3608 }
3609
3610
3612 {
3614 {
3615
3617 {
3618 SetHealth(slot_name,"Health",item.GetHealth());
3619 }
3620 }
3621 }
3622
3624 {
3625 return 111;
3626 }
3627
3629 {
3630 super.SetActions();
3631
3635 }
3636
3637
3638
3639
3641 {
3642 }
3643
3646 {
3647 return null;
3648 }
3649
3651 {
3653 }
3654
3656 {
3659
3660 Man p;
3661
3662 #ifdef SERVER
3665 if (players.Count())
3666 p = players[0];
3667 #else
3669 #endif
3670
3672 {
3673 bool excluded = false;
3675 if (excludes)
3676 {
3677 foreach (string exclude : excludes)
3678 {
3680 {
3681 excluded = true;
3682 break;
3683 }
3684 }
3685 }
3686
3687 if (!excluded)
3688 {
3690 }
3691 }
3692
3694 }
3695}
3696
3698{
3699#ifdef BSB_DEBUG
3701#else
3702
3703#endif
3704}
3706{
3707#ifdef BSB_DEBUG_SPAM
3709#else
3710
3711#endif
3712}
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.