2378{
2380
2382
2384
2386
2392
2393
2394
2400
2406
2408
2412
2413
2415 {
2417
2418
2419 RegisterNetSyncVariableInt( "m_SyncParts01" );
2420 RegisterNetSyncVariableInt( "m_SyncParts02" );
2421 RegisterNetSyncVariableInt( "m_SyncParts03" );
2422 RegisterNetSyncVariableInt( "m_InteractedPartId" );
2423 RegisterNetSyncVariableInt( "m_PerformedActionId" );
2424 RegisterNetSyncVariableBool( "m_HasBase" );
2425
2426
2428
2429 if (ConfigIsExisting("hybridAttachments"))
2430 {
2433 }
2434 if (ConfigIsExisting("mountables"))
2435 {
2438 }
2439
2441 }
2442
2444 {
2445 super.EEDelete(parent);
2446
2448 {
2449 areaDamage.Destroy();
2450 }
2451
2452 }
2453
2455 {
2456 return "disableBaseDamage";
2457 }
2458
2460 {
2461 return true;
2462 }
2463
2465 {
2466 return EInventoryIconVisibility.HIDE_VICINITY;
2467 }
2468
2470 {
2471 super.InitItemSounds();
2472
2476
2481 }
2482
2484 {
2485 return "putDown_FenceKit_SoundSet";
2486 }
2487
2489 {
2490 return "Shelter_Site_Build_Loop_SoundSet";
2491 }
2492
2493
2495 {
2497 {
2498 SetSynchDirty();
2499 }
2500 }
2501
2503 {
2505 super.OnVariablesSynchronized();
2506
2508 }
2509
2511 {
2512
2514
2515
2517
2518
2520 }
2521
2522
2524 {
2525
2526 int offset;
2527 int mask;
2528
2529 if ( part_id >= 1 && part_id <= 31 )
2530 {
2531 offset = part_id - 1;
2532 mask = 1 << offset;
2533
2535 }
2536 else if ( part_id >= 32 && part_id <= 62 )
2537 {
2538 offset = ( part_id % 32 );
2539 mask = 1 << offset;
2540
2542 }
2543 else if ( part_id >= 63 && part_id <= 93 )
2544 {
2545 offset = ( part_id % 63 );
2546 mask = 1 << offset;
2547
2549 }
2550 }
2551
2553 {
2554
2555 int offset;
2556 int mask;
2557
2558 if ( part_id >= 1 && part_id <= 31 )
2559 {
2560 offset = part_id - 1;
2561 mask = 1 << offset;
2562
2564 }
2565 else if ( part_id >= 32 && part_id <= 62 )
2566 {
2567 offset = ( part_id % 32 );
2568 mask = 1 << offset;
2569
2571 }
2572 else if ( part_id >= 63 && part_id <= 93 )
2573 {
2574 offset = ( part_id % 63 );
2575 mask = 1 << offset;
2576
2578 }
2579 }
2580
2582 {
2583
2584 int offset;
2585 int mask;
2586
2587 if ( part_id >= 1 && part_id <= 31 )
2588 {
2589 offset = part_id - 1;
2590 mask = 1 << offset;
2591
2593 {
2594 return true;
2595 }
2596 }
2597 else if ( part_id >= 32 && part_id <= 62 )
2598 {
2599 offset = ( part_id % 32 );
2600 mask = 1 << offset;
2601
2603 {
2604 return true;
2605 }
2606 }
2607 else if ( part_id >= 63 && part_id <= 93 )
2608 {
2609 offset = ( part_id % 63 );
2610 mask = 1 << offset;
2611
2613 {
2614 return true;
2615 }
2616 }
2617
2618 return false;
2619 }
2620
2622 {
2625 }
2626
2628 {
2629
2632 }
2633
2635 {
2637 {
2640
2641 switch( build_action_id )
2642 {
2646 }
2647 }
2648 }
2649
2650
2652 {
2654 bool is_base = part.
IsBase();
2657 if ( is_part_built_sync )
2658 {
2660 {
2664
2665 if (is_base)
2666 {
2669 }
2670 }
2671 }
2672 else
2673 {
2675 {
2679
2680 if (is_base)
2681 {
2684 }
2685 }
2686 }
2687
2688
2690 }
2691
2692
2694 {
2697
2698 for ( int i = 0; i < construction_parts.Count(); ++i )
2699 {
2700 string key = construction_parts.GetKey( i );
2703 }
2704
2705
2707 }
2708
2710 {
2713
2714 for ( int i = 0; i < construction_parts.Count(); ++i )
2715 {
2716 string key = construction_parts.GetKey( i );
2718
2719 if ( value.
GetId() ==
id )
2720 {
2721 return value;
2722 }
2723 }
2724
2725 return NULL;
2726 }
2727
2728
2729
2731 {
2733 }
2734
2736 {
2738 }
2739
2741 {
2742 return true;
2743 }
2744
2746 {
2747 return false;
2748 }
2749
2750
2752 {
2755 {
2757 }
2758
2759 return construction_kit;
2760 }
2761
2763 {
2766 {
2768 }
2769 }
2770
2772 {
2774 }
2775
2777 {
2778 return "";
2779 }
2780
2782 {
2785 }
2786
2787
2789 {
2792 }
2793
2794
2796 {
2797 super.OnStoreSave( ctx );
2798
2799
2803
2805 }
2806
2808 {
2809 if ( !super.OnStoreLoad( ctx, version ) )
2810 return false;
2811
2812
2813
2815 {
2817 return false;
2818 }
2820 {
2822 return false;
2823 }
2825 {
2827 return false;
2828 }
2829
2830
2832 {
2834 return false;
2835 }
2836
2837
2838 return true;
2839 }
2840
2842 {
2843 super.AfterStoreLoad();
2844
2846 {
2848 }
2849 }
2850
2852 {
2853
2855
2856
2859
2860
2862 }
2863
2865 {
2866 super.OnCreatePhysics();
2869 }
2870
2872 {
2874 return;
2875
2876 super.EEHealthLevelChanged(oldLevel,newLevel,zone);
2877
2879 return;
2880
2882 string part_name = zone;
2884
2886 {
2887 ConstructionPart construction_part = construction.GetConstructionPart( part_name );
2888
2889 if ( construction_part && construction.IsPartConstructed( part_name ) )
2890 {
2892 construction.DestroyConnectedParts(part_name);
2893 }
2894
2895
2896 if ( part_name.
Contains(
"barbed") )
2897 {
2898 BarbedWire barbed_wire = BarbedWire.Cast( FindAttachmentBySlotName( zone ) );
2899 if (barbed_wire)
2900 barbed_wire.SetMountedState( false );
2901 }
2902 }
2903 }
2904
2906 {
2908 {
2910 }
2911
2912 super.EEOnAfterLoad();
2913 }
2914
2916 {
2917 super.EEInit();
2918
2919
2921
2922
2923 #ifdef DEVELOPER
2925 #endif
2926 }
2927
2929 {
2930 super.EEItemAttached( item, slot_name );
2931
2935 }
2936
2938 {
2939 super.EEItemDetached( item, slot_name );
2940
2943 }
2944
2945 protected void OnSetSlotLock(
int slotId,
bool locked,
bool was_locked )
2946 {
2949
2952 }
2953
2954
2956 {
2957 return true;
2958 }
2959
2960
2961
2963 {
2965
2966
2967 if (construtionPart.
IsBase())
2968 {
2970
2971
2973 }
2974
2975
2977
2978
2980
2981
2983
2985
2987
2988
2990
2991
2993 }
2994
2996 {
2997
2999 }
3000
3001
3003 {
3006
3007
3009
3010
3012
3013
3015
3016
3018
3020
3021
3023
3024
3026
3027
3028 if (construtionPart.
IsBase())
3029 {
3030
3032 }
3033 }
3034
3036 {
3037
3039 }
3040
3041
3042 void OnPartDestroyedServer(Man player,
string part_name,
int action_id,
bool destroyed_by_connected_part =
false)
3043 {
3046
3047
3049
3050
3052
3053
3055
3056
3058
3060
3061
3063
3064
3066
3067
3068 if (construtionPart.
IsBase())
3069 {
3070
3072 }
3073 }
3074
3076 {
3077
3079 }
3080
3083 {
3084 bool process = false;
3085
3086
3090
3091 if (process)
3092 {
3093 if (!MemoryPointExists(part.
m_PartName +
"_min") || !MemoryPointExists(part.
m_PartName +
"_max"))
3094 {
3096 return;
3097 }
3098
3100 mins = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_min"));
3101 maxs = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_max"));
3102
3103
3105 minTmp[0] =
Math.
Min(mins[0],maxs[0]);
3106 maxTmp[0] =
Math.
Max(mins[0],maxs[0]);
3107 minTmp[1] =
Math.
Min(mins[1],maxs[1]);
3108 maxTmp[1] =
Math.
Max(mins[1],maxs[1]);
3109 minTmp[2] =
Math.
Min(mins[2],maxs[2]);
3110 maxTmp[2] =
Math.
Max(mins[2],maxs[2]);
3111 mins = minTmp;
3112 maxs = maxTmp;
3113
3114 maxs[1] = maxs[1] + 0.35;
3115
3117 }
3118 }
3119
3122 {
3125
3126
3128 foreach (
EntityAI entity : foundEntities)
3129 {
3132 }
3133 }
3134
3135
3137 {
3139
3143 }
3144
3146 {
3148
3150 {
3152 }
3153 else
3154 {
3156 }
3157
3159 }
3160
3162 {
3164
3166 foreach (
string slotName : attachmentSlots)
3167 {
3169 }
3170
3171
3174 else
3176
3178 }
3179
3181 {
3182 string slotNameMounted = slot_name + "_Mounted";
3183 EntityAI attachment = FindAttachmentBySlotName(slot_name);
3184
3185 if (attachment)
3186 {
3187 BarbedWire barbedWire = BarbedWire.Cast(attachment);
3188 if (barbedWire && barbedWire.IsMounted())
3190 else
3192
3193 if (is_locked)
3194 {
3195 SetAnimationPhase(slotNameMounted, 0);
3196 SetAnimationPhase(slot_name, 1);
3197 }
3198 else
3199 {
3200 SetAnimationPhase(slotNameMounted, 1);
3201 SetAnimationPhase(slot_name, 0);
3202 }
3203 }
3204 else
3205 {
3206 SetAnimationPhase(slotNameMounted, 1);
3207 SetAnimationPhase(slot_name, 1);
3208
3210 }
3211 }
3212
3213
3215 {
3218
3221
3224
3225 foreach (
string slotName : attachmentSlots)
3226 {
3228 }
3229
3230
3232 {
3235
3237 }
3238 else
3239 {
3242
3244 }
3245
3248 }
3249
3251 {
3252
3254 return;
3255
3256 string slot_name_mounted = slot_name + "_Mounted";
3257 EntityAI attachment = FindAttachmentBySlotName( slot_name );
3258
3259
3261 RemoveProxyPhysics( slot_name_mounted );
3262 RemoveProxyPhysics( slot_name );
3263
3264 if ( attachment )
3265 {
3267 if ( is_locked )
3268 {
3270 AddProxyPhysics( slot_name_mounted );
3271 }
3272 else
3273 {
3275 AddProxyPhysics( slot_name );
3276 }
3277 }
3278 }
3279
3281 {
3282 SetAffectPathgraph( true, false );
3284 }
3285
3287 {
3288 return true;
3289 }
3290
3292 {
3293 return true;
3294 }
3295
3297 {
3298 if ( attachment )
3299 {
3301 attachment.GetInventory().GetCurrentInventoryLocation( inventory_location );
3302
3303 return GetInventory().GetSlotLock( inventory_location.
GetSlot() );
3304 }
3305
3306 return false;
3307 }
3308
3310 {
3312 }
3313
3314
3316 {
3317 string config_path = "CfgVehicles" + " " + entity.GetType() + " " + "attachments";
3318 if (
GetGame().ConfigIsExisting( config_path ) )
3319 {
3321 }
3322 }
3323
3325 {
3326 return true;
3327 }
3328
3330 {
3331 return true;
3332 }
3333
3335 {
3336 return true;
3337 }
3338
3339
3341 {
3343 {
3345 }
3346
3348 }
3349
3351 {
3353 }
3354
3355
3356
3358 {
3359 return super.CanReceiveAttachment(attachment, slotId);
3360 }
3361
3363 {
3364 int attachment_count = GetInventory().AttachmentCount();
3365 if ( attachment_count > 0 )
3366 {
3367 if (
HasBase() && attachment_count == 1 )
3368 {
3369 return false;
3370 }
3371
3372 return true;
3373 }
3374
3375 return false;
3376 }
3377
3379 {
3380 return true;
3381 }
3382
3384 {
3385 return false;
3386 }
3387
3388
3390 {
3391 return false;
3392 }
3393
3395 {
3396 return false;
3397 }
3398
3399
3401 {
3402 return false;
3403 }
3404
3405
3406
3408 {
3409 return true;
3410 }
3411
3413 {
3414 return true;
3415 }
3416
3419 {
3420 return false;
3421 }
3422
3423
3425 {
3426 return true;
3427 }
3428
3429
3431 {
3432 return false;
3433 }
3434
3435
3437 {
3438 return true;
3439 }
3440
3441
3443 {
3444 if (
HasBase() || GetInventory().AttachmentCount() > 0 )
3445 {
3446 return false;
3447 }
3448
3449 return true;
3450 }
3451
3453 {
3456
3457 return item;
3458 }
3459
3460
3462 {
3464 {
3465
3467
3468
3471
3473 if ( MemoryPointExists( slot_name + "_min" ) )
3474 {
3475 min_max[0] = GetMemoryPointPos( slot_name + "_min" );
3476 }
3477 if ( MemoryPointExists( slot_name + "_max" ) )
3478 {
3479 min_max[1] = GetMemoryPointPos( slot_name + "_max" );
3480 }
3481
3482
3485
3486
3489 center = ModelToWorld( center );
3490
3491
3494
3495 areaDamage.SetExtents( extents[0], extents[1] );
3496 areaDamage.SetAreaPosition( center );
3497 areaDamage.SetAreaOrientation( orientation );
3500 areaDamage.SetHitZones( { "Torso","LeftHand","LeftLeg","LeftFoot","RightHand","RightLeg","RightFoot" } );
3501 areaDamage.SetAmmoName( "BarbedWireHit" );
3502 areaDamage.Spawn();
3503
3505 }
3506 }
3507
3509 {
3510 if ( angle_deg != 0 )
3511 {
3512
3513 orientation[0] = orientation[0] - angle_deg;
3514
3515
3517 if ( MemoryPointExists( "rotate_axis" ) )
3518 {
3519 rotate_axis = ModelToWorld( GetMemoryPointPos( "rotate_axis" ) );
3520 }
3521 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];
3522 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];
3523 center[0] = r_center_x;
3524 center[2] = r_center_z;
3525 }
3526 }
3527
3529 {
3531 {
3534 {
3535 if (areaDamage)
3536 {
3537 areaDamage.Destroy();
3538 }
3539
3541 }
3542 }
3543 }
3544
3546 {
3547 return true;
3548 }
3549
3550
3551
3552
3554 {
3556 }
3557
3559 {
3561 }
3562
3564 {
3566 }
3567
3569 {
3571
3572 switch ( material_type )
3573 {
3579 }
3580
3581 return "";
3582 }
3583
3585 {
3587
3588 switch ( material_type )
3589 {
3595 }
3596
3597 return "";
3598 }
3599
3600
3602 {
3604 {
3605
3607 {
3608 SetHealth(slot_name,"Health",item.GetHealth());
3609 }
3610 }
3611 }
3612
3614 {
3615 return 111;
3616 }
3617
3619 {
3620 super.SetActions();
3621
3625 }
3626
3627
3628
3629
3631 {
3632 }
3633
3636 {
3637 return null;
3638 }
3639
3641 {
3643 }
3644
3646 {
3649
3650 Man p;
3651
3652 #ifdef SERVER
3655 if (players.Count())
3656 p = players[0];
3657 #else
3659 #endif
3660
3662 {
3663 bool excluded = false;
3665 if (excludes)
3666 {
3667 foreach (string exclude : excludes)
3668 {
3670 {
3671 excluded = true;
3672 break;
3673 }
3674 }
3675 }
3676
3677 if (!excluded)
3678 {
3680 }
3681 }
3682
3684 }
3685}
3686
3688{
3689#ifdef BSB_DEBUG
3691#else
3692
3693#endif
3694}
3696{
3697#ifdef BSB_DEBUG_SPAM
3699#else
3700
3701#endif
3702}
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.