2360{
2362
2364
2366
2368
2374
2375
2376
2382
2388
2390
2394
2395
2397 {
2399
2400
2401 RegisterNetSyncVariableInt( "m_SyncParts01" );
2402 RegisterNetSyncVariableInt( "m_SyncParts02" );
2403 RegisterNetSyncVariableInt( "m_SyncParts03" );
2404 RegisterNetSyncVariableInt( "m_InteractedPartId" );
2405 RegisterNetSyncVariableInt( "m_PerformedActionId" );
2406 RegisterNetSyncVariableBool( "m_HasBase" );
2407
2408
2410
2411 if (ConfigIsExisting("hybridAttachments"))
2412 {
2415 }
2416 if (ConfigIsExisting("mountables"))
2417 {
2420 }
2421
2423 }
2424
2426 {
2427 super.EEDelete(parent);
2428
2430 {
2431 areaDamage.Destroy();
2432 }
2433
2434 }
2435
2437 {
2438 return "disableBaseDamage";
2439 }
2440
2442 {
2443 return true;
2444 }
2445
2447 {
2448 return EInventoryIconVisibility.HIDE_VICINITY;
2449 }
2450
2452 {
2453 super.InitItemSounds();
2454
2458
2463 }
2464
2466 {
2467 return "putDown_FenceKit_SoundSet";
2468 }
2469
2471 {
2472 return "Shelter_Site_Build_Loop_SoundSet";
2473 }
2474
2475
2477 {
2479 {
2480 SetSynchDirty();
2481 }
2482 }
2483
2485 {
2487 super.OnVariablesSynchronized();
2488
2490 }
2491
2493 {
2494
2496
2497
2499
2500
2502 }
2503
2504
2506 {
2507
2508 int offset;
2509 int mask;
2510
2511 if ( part_id >= 1 && part_id <= 31 )
2512 {
2513 offset = part_id - 1;
2514 mask = 1 << offset;
2515
2517 }
2518 else if ( part_id >= 32 && part_id <= 62 )
2519 {
2520 offset = ( part_id % 32 );
2521 mask = 1 << offset;
2522
2524 }
2525 else if ( part_id >= 63 && part_id <= 93 )
2526 {
2527 offset = ( part_id % 63 );
2528 mask = 1 << offset;
2529
2531 }
2532 }
2533
2535 {
2536
2537 int offset;
2538 int mask;
2539
2540 if ( part_id >= 1 && part_id <= 31 )
2541 {
2542 offset = part_id - 1;
2543 mask = 1 << offset;
2544
2546 }
2547 else if ( part_id >= 32 && part_id <= 62 )
2548 {
2549 offset = ( part_id % 32 );
2550 mask = 1 << offset;
2551
2553 }
2554 else if ( part_id >= 63 && part_id <= 93 )
2555 {
2556 offset = ( part_id % 63 );
2557 mask = 1 << offset;
2558
2560 }
2561 }
2562
2564 {
2565
2566 int offset;
2567 int mask;
2568
2569 if ( part_id >= 1 && part_id <= 31 )
2570 {
2571 offset = part_id - 1;
2572 mask = 1 << offset;
2573
2575 {
2576 return true;
2577 }
2578 }
2579 else if ( part_id >= 32 && part_id <= 62 )
2580 {
2581 offset = ( part_id % 32 );
2582 mask = 1 << offset;
2583
2585 {
2586 return true;
2587 }
2588 }
2589 else if ( part_id >= 63 && part_id <= 93 )
2590 {
2591 offset = ( part_id % 63 );
2592 mask = 1 << offset;
2593
2595 {
2596 return true;
2597 }
2598 }
2599
2600 return false;
2601 }
2602
2604 {
2607 }
2608
2610 {
2611
2614 }
2615
2617 {
2619 {
2622
2623 switch( build_action_id )
2624 {
2628 }
2629 }
2630 }
2631
2632
2634 {
2636 bool is_base = part.
IsBase();
2639 if ( is_part_built_sync )
2640 {
2642 {
2646
2647 if (is_base)
2648 {
2651 }
2652 }
2653 }
2654 else
2655 {
2657 {
2661
2662 if (is_base)
2663 {
2666 }
2667 }
2668 }
2669
2670
2672 }
2673
2674
2676 {
2679
2680 for ( int i = 0; i < construction_parts.Count(); ++i )
2681 {
2682 string key = construction_parts.GetKey( i );
2685 }
2686
2687
2689 }
2690
2692 {
2695
2696 for ( int i = 0; i < construction_parts.Count(); ++i )
2697 {
2698 string key = construction_parts.GetKey( i );
2700
2701 if ( value.
GetId() ==
id )
2702 {
2703 return value;
2704 }
2705 }
2706
2707 return NULL;
2708 }
2709
2710
2711
2713 {
2715 }
2716
2718 {
2720 }
2721
2723 {
2724 return true;
2725 }
2726
2728 {
2729 return false;
2730 }
2731
2732
2734 {
2737 {
2739 }
2740
2741 return construction_kit;
2742 }
2743
2745 {
2748 {
2750 }
2751 }
2752
2754 {
2756 }
2757
2759 {
2760 return "";
2761 }
2762
2764 {
2767 }
2768
2769
2771 {
2774 }
2775
2776
2778 {
2779 super.OnStoreSave( ctx );
2780
2781
2785
2787 }
2788
2790 {
2791 if ( !super.OnStoreLoad( ctx, version ) )
2792 return false;
2793
2794
2795
2797 {
2799 return false;
2800 }
2802 {
2804 return false;
2805 }
2807 {
2809 return false;
2810 }
2811
2812
2814 {
2816 return false;
2817 }
2818
2819
2820 return true;
2821 }
2822
2824 {
2825 super.AfterStoreLoad();
2826
2828 {
2830 }
2831 }
2832
2834 {
2835
2837
2838
2841
2842
2844 }
2845
2847 {
2848 super.OnCreatePhysics();
2851 }
2852
2854 {
2856 return;
2857
2858 super.EEHealthLevelChanged(oldLevel,newLevel,zone);
2859
2861 return;
2862
2864 string part_name = zone;
2866
2868 {
2869 ConstructionPart construction_part = construction.GetConstructionPart( part_name );
2870
2871 if ( construction_part && construction.IsPartConstructed( part_name ) )
2872 {
2874 construction.DestroyConnectedParts(part_name);
2875 }
2876
2877
2878 if ( part_name.
Contains(
"barbed") )
2879 {
2880 BarbedWire barbed_wire = BarbedWire.Cast( FindAttachmentBySlotName( zone ) );
2881 if (barbed_wire)
2882 barbed_wire.SetMountedState( false );
2883 }
2884 }
2885 }
2886
2888 {
2890 {
2892 }
2893
2894 super.EEOnAfterLoad();
2895 }
2896
2898 {
2899 super.EEInit();
2900
2901
2903
2904
2905 #ifdef DEVELOPER
2907 #endif
2908 }
2909
2911 {
2912 super.EEItemAttached( item, slot_name );
2913
2917 }
2918
2920 {
2921 super.EEItemDetached( item, slot_name );
2922
2925 }
2926
2927 protected void OnSetSlotLock(
int slotId,
bool locked,
bool was_locked )
2928 {
2931
2934 }
2935
2936
2938 {
2939 return true;
2940 }
2941
2942
2943
2945 {
2947
2948
2949 if (construtionPart.
IsBase())
2950 {
2952
2953
2955 }
2956
2957
2959
2960
2962
2963
2965
2967
2969
2970
2972
2973
2975 }
2976
2978 {
2979
2981 }
2982
2983
2985 {
2988
2989
2991
2992
2994
2995
2997
2998
3000
3002
3003
3005
3006
3008
3009
3010 if (construtionPart.
IsBase())
3011 {
3012
3014 }
3015 }
3016
3018 {
3019
3021 }
3022
3023
3024 void OnPartDestroyedServer(Man player,
string part_name,
int action_id,
bool destroyed_by_connected_part =
false)
3025 {
3028
3029
3031
3032
3034
3035
3037
3038
3040
3042
3043
3045
3046
3048
3049
3050 if (construtionPart.
IsBase())
3051 {
3052
3054 }
3055 }
3056
3058 {
3059
3061 }
3062
3065 {
3066 bool process = false;
3067
3068
3072
3073 if (process)
3074 {
3075 if (!MemoryPointExists(part.
m_PartName +
"_min") || !MemoryPointExists(part.
m_PartName +
"_max"))
3076 {
3078 return;
3079 }
3080
3082 mins = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_min"));
3083 maxs = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_max"));
3084
3085
3087 minTmp[0] =
Math.
Min(mins[0],maxs[0]);
3088 maxTmp[0] =
Math.
Max(mins[0],maxs[0]);
3089 minTmp[1] =
Math.
Min(mins[1],maxs[1]);
3090 maxTmp[1] =
Math.
Max(mins[1],maxs[1]);
3091 minTmp[2] =
Math.
Min(mins[2],maxs[2]);
3092 maxTmp[2] =
Math.
Max(mins[2],maxs[2]);
3093 mins = minTmp;
3094 maxs = maxTmp;
3095
3096 maxs[1] = maxs[1] + 0.35;
3097
3099 }
3100 }
3101
3104 {
3107
3108
3110 foreach (
EntityAI entity : foundEntities)
3111 {
3114 }
3115 }
3116
3117
3119 {
3121
3125 }
3126
3128 {
3130
3132 {
3134 }
3135 else
3136 {
3138 }
3139
3141 }
3142
3144 {
3146
3148 foreach (
string slotName : attachmentSlots)
3149 {
3151 }
3152
3153
3156 else
3158
3160 }
3161
3163 {
3164 string slotNameMounted = slot_name + "_Mounted";
3165 EntityAI attachment = FindAttachmentBySlotName(slot_name);
3166
3167 if (attachment)
3168 {
3169 BarbedWire barbedWire = BarbedWire.Cast(attachment);
3170 if (barbedWire && barbedWire.IsMounted())
3172 else
3174
3175 if (is_locked)
3176 {
3177 SetAnimationPhase(slotNameMounted, 0);
3178 SetAnimationPhase(slot_name, 1);
3179 }
3180 else
3181 {
3182 SetAnimationPhase(slotNameMounted, 1);
3183 SetAnimationPhase(slot_name, 0);
3184 }
3185 }
3186 else
3187 {
3188 SetAnimationPhase(slotNameMounted, 1);
3189 SetAnimationPhase(slot_name, 1);
3190
3192 }
3193 }
3194
3195
3197 {
3200
3203
3206
3207 foreach (
string slotName : attachmentSlots)
3208 {
3210 }
3211
3212
3214 {
3217
3219 }
3220 else
3221 {
3224
3226 }
3227
3230 }
3231
3233 {
3234
3236 return;
3237
3238 string slot_name_mounted = slot_name + "_Mounted";
3239 EntityAI attachment = FindAttachmentBySlotName( slot_name );
3240
3241
3243 RemoveProxyPhysics( slot_name_mounted );
3244 RemoveProxyPhysics( slot_name );
3245
3246 if ( attachment )
3247 {
3249 if ( is_locked )
3250 {
3252 AddProxyPhysics( slot_name_mounted );
3253 }
3254 else
3255 {
3257 AddProxyPhysics( slot_name );
3258 }
3259 }
3260 }
3261
3263 {
3264 SetAffectPathgraph( true, false );
3266 }
3267
3269 {
3270 return true;
3271 }
3272
3274 {
3275 return true;
3276 }
3277
3279 {
3280 if ( attachment )
3281 {
3283 attachment.GetInventory().GetCurrentInventoryLocation( inventory_location );
3284
3285 return GetInventory().GetSlotLock( inventory_location.
GetSlot() );
3286 }
3287
3288 return false;
3289 }
3290
3292 {
3294 }
3295
3296
3298 {
3299 string config_path = "CfgVehicles" + " " + entity.GetType() + " " + "attachments";
3300 if (
GetGame().ConfigIsExisting( config_path ) )
3301 {
3303 }
3304 }
3305
3307 {
3308 return true;
3309 }
3310
3312 {
3313 return true;
3314 }
3315
3317 {
3318 return true;
3319 }
3320
3321
3323 {
3325 {
3327 }
3328
3330 }
3331
3333 {
3335 }
3336
3337
3338
3340 {
3341 return super.CanReceiveAttachment(attachment, slotId);
3342 }
3343
3345 {
3346 int attachment_count = GetInventory().AttachmentCount();
3347 if ( attachment_count > 0 )
3348 {
3349 if (
HasBase() && attachment_count == 1 )
3350 {
3351 return false;
3352 }
3353
3354 return true;
3355 }
3356
3357 return false;
3358 }
3359
3361 {
3362 return true;
3363 }
3364
3366 {
3367 return false;
3368 }
3369
3370
3372 {
3373 return false;
3374 }
3375
3377 {
3378 return false;
3379 }
3380
3381
3383 {
3384 return false;
3385 }
3386
3387
3388
3390 {
3391 return true;
3392 }
3393
3395 {
3396 return true;
3397 }
3398
3401 {
3402 return false;
3403 }
3404
3405
3407 {
3408 return true;
3409 }
3410
3411
3413 {
3414 return false;
3415 }
3416
3417
3419 {
3420 return true;
3421 }
3422
3423
3425 {
3426 if (
HasBase() || GetInventory().AttachmentCount() > 0 )
3427 {
3428 return false;
3429 }
3430
3431 return true;
3432 }
3433
3435 {
3438
3439 return item;
3440 }
3441
3442
3444 {
3446 {
3447
3449
3450
3453
3455 if ( MemoryPointExists( slot_name + "_min" ) )
3456 {
3457 min_max[0] = GetMemoryPointPos( slot_name + "_min" );
3458 }
3459 if ( MemoryPointExists( slot_name + "_max" ) )
3460 {
3461 min_max[1] = GetMemoryPointPos( slot_name + "_max" );
3462 }
3463
3464
3467
3468
3471 center = ModelToWorld( center );
3472
3473
3476
3477 areaDamage.SetExtents( extents[0], extents[1] );
3478 areaDamage.SetAreaPosition( center );
3479 areaDamage.SetAreaOrientation( orientation );
3482 areaDamage.SetHitZones( { "Torso","LeftHand","LeftLeg","LeftFoot","RightHand","RightLeg","RightFoot" } );
3483 areaDamage.SetAmmoName( "BarbedWireHit" );
3484 areaDamage.Spawn();
3485
3487 }
3488 }
3489
3491 {
3492 if ( angle_deg != 0 )
3493 {
3494
3495 orientation[0] = orientation[0] - angle_deg;
3496
3497
3499 if ( MemoryPointExists( "rotate_axis" ) )
3500 {
3501 rotate_axis = ModelToWorld( GetMemoryPointPos( "rotate_axis" ) );
3502 }
3503 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];
3504 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];
3505 center[0] = r_center_x;
3506 center[2] = r_center_z;
3507 }
3508 }
3509
3511 {
3513 {
3516 {
3517 if (areaDamage)
3518 {
3519 areaDamage.Destroy();
3520 }
3521
3523 }
3524 }
3525 }
3526
3528 {
3529 return true;
3530 }
3531
3532
3533
3534
3536 {
3538 }
3539
3541 {
3543 }
3544
3546 {
3548 }
3549
3551 {
3553
3554 switch ( material_type )
3555 {
3561 }
3562
3563 return "";
3564 }
3565
3567 {
3569
3570 switch ( material_type )
3571 {
3577 }
3578
3579 return "";
3580 }
3581
3582
3584 {
3586 {
3587
3589 {
3590 SetHealth(slot_name,"Health",item.GetHealth());
3591 }
3592 }
3593 }
3594
3596 {
3597 return 111;
3598 }
3599
3601 {
3602 super.SetActions();
3603
3607 }
3608
3609
3610
3611
3613 {
3614 }
3615
3618 {
3619 return null;
3620 }
3621
3623 {
3625 }
3626
3628 {
3631
3632 Man p;
3633
3634 #ifdef SERVER
3637 if (players.Count())
3638 p = players[0];
3639 #else
3641 #endif
3642
3644 {
3645 bool excluded = false;
3647 if (excludes)
3648 {
3649 foreach (string exclude : excludes)
3650 {
3652 {
3653 excluded = true;
3654 break;
3655 }
3656 }
3657 }
3658
3659 if (!excluded)
3660 {
3662 }
3663 }
3664
3666 }
3667}
3668
3670{
3671#ifdef BSB_DEBUG
3673#else
3674
3675#endif
3676}
3678{
3679#ifdef BSB_DEBUG_SPAM
3681#else
3682
3683#endif
3684}
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.