2336{
2338
2340
2342
2344
2350
2351
2352
2358
2364
2366
2370
2371
2373 {
2375
2376
2377 RegisterNetSyncVariableInt( "m_SyncParts01" );
2378 RegisterNetSyncVariableInt( "m_SyncParts02" );
2379 RegisterNetSyncVariableInt( "m_SyncParts03" );
2380 RegisterNetSyncVariableInt( "m_InteractedPartId" );
2381 RegisterNetSyncVariableInt( "m_PerformedActionId" );
2382 RegisterNetSyncVariableBool( "m_HasBase" );
2383
2384
2386
2387 if (ConfigIsExisting("hybridAttachments"))
2388 {
2391 }
2392 if (ConfigIsExisting("mountables"))
2393 {
2396 }
2397
2399 }
2400
2402 {
2403 super.EEDelete(parent);
2404
2406 {
2407 areaDamage.Destroy();
2408 }
2409
2410 }
2411
2413 {
2414 return "disableBaseDamage";
2415 }
2416
2418 {
2419 return true;
2420 }
2421
2423 {
2424 return EInventoryIconVisibility.HIDE_VICINITY;
2425 }
2426
2428 {
2429 super.InitItemSounds();
2430
2434
2439 }
2440
2442 {
2443 return "putDown_FenceKit_SoundSet";
2444 }
2445
2447 {
2448 return "Shelter_Site_Build_Loop_SoundSet";
2449 }
2450
2451
2453 {
2455 {
2456 SetSynchDirty();
2457 }
2458 }
2459
2461 {
2463 super.OnVariablesSynchronized();
2464
2466 }
2467
2469 {
2470
2472
2473
2475
2476
2478 }
2479
2480
2482 {
2483
2484 int offset;
2485 int mask;
2486
2487 if ( part_id >= 1 && part_id <= 31 )
2488 {
2489 offset = part_id - 1;
2490 mask = 1 << offset;
2491
2493 }
2494 else if ( part_id >= 32 && part_id <= 62 )
2495 {
2496 offset = ( part_id % 32 );
2497 mask = 1 << offset;
2498
2500 }
2501 else if ( part_id >= 63 && part_id <= 93 )
2502 {
2503 offset = ( part_id % 63 );
2504 mask = 1 << offset;
2505
2507 }
2508 }
2509
2511 {
2512
2513 int offset;
2514 int mask;
2515
2516 if ( part_id >= 1 && part_id <= 31 )
2517 {
2518 offset = part_id - 1;
2519 mask = 1 << offset;
2520
2522 }
2523 else if ( part_id >= 32 && part_id <= 62 )
2524 {
2525 offset = ( part_id % 32 );
2526 mask = 1 << offset;
2527
2529 }
2530 else if ( part_id >= 63 && part_id <= 93 )
2531 {
2532 offset = ( part_id % 63 );
2533 mask = 1 << offset;
2534
2536 }
2537 }
2538
2540 {
2541
2542 int offset;
2543 int mask;
2544
2545 if ( part_id >= 1 && part_id <= 31 )
2546 {
2547 offset = part_id - 1;
2548 mask = 1 << offset;
2549
2551 {
2552 return true;
2553 }
2554 }
2555 else if ( part_id >= 32 && part_id <= 62 )
2556 {
2557 offset = ( part_id % 32 );
2558 mask = 1 << offset;
2559
2561 {
2562 return true;
2563 }
2564 }
2565 else if ( part_id >= 63 && part_id <= 93 )
2566 {
2567 offset = ( part_id % 63 );
2568 mask = 1 << offset;
2569
2571 {
2572 return true;
2573 }
2574 }
2575
2576 return false;
2577 }
2578
2580 {
2583 }
2584
2586 {
2587
2590 }
2591
2593 {
2595 {
2598
2599 switch( build_action_id )
2600 {
2604 }
2605 }
2606 }
2607
2608
2610 {
2612 bool is_base = part.
IsBase();
2615 if ( is_part_built_sync )
2616 {
2618 {
2622
2623 if (is_base)
2624 {
2627 }
2628 }
2629 }
2630 else
2631 {
2633 {
2637
2638 if (is_base)
2639 {
2642 }
2643 }
2644 }
2645
2646
2648 }
2649
2650
2652 {
2655
2656 for ( int i = 0; i < construction_parts.Count(); ++i )
2657 {
2658 string key = construction_parts.GetKey( i );
2661 }
2662
2663
2665 }
2666
2668 {
2671
2672 for ( int i = 0; i < construction_parts.Count(); ++i )
2673 {
2674 string key = construction_parts.GetKey( i );
2676
2677 if ( value.
GetId() ==
id )
2678 {
2679 return value;
2680 }
2681 }
2682
2683 return NULL;
2684 }
2685
2686
2687
2689 {
2691 }
2692
2694 {
2696 }
2697
2699 {
2700 return true;
2701 }
2702
2704 {
2705 return false;
2706 }
2707
2708
2710 {
2713 {
2715 }
2716
2717 return construction_kit;
2718 }
2719
2721 {
2724 {
2726 }
2727 }
2728
2730 {
2732 }
2733
2735 {
2736 return "";
2737 }
2738
2740 {
2743 }
2744
2745
2747 {
2750 }
2751
2752
2754 {
2755 super.OnStoreSave( ctx );
2756
2757
2761
2763 }
2764
2766 {
2767 if ( !super.OnStoreLoad( ctx, version ) )
2768 return false;
2769
2770
2771
2773 {
2775 return false;
2776 }
2778 {
2780 return false;
2781 }
2783 {
2785 return false;
2786 }
2787
2788
2790 {
2792 return false;
2793 }
2794
2795
2796 return true;
2797 }
2798
2800 {
2801 super.AfterStoreLoad();
2802
2804 {
2806 }
2807 }
2808
2810 {
2811
2813
2814
2817
2818
2820 }
2821
2823 {
2824 super.OnCreatePhysics();
2827 }
2828
2830 {
2832 return;
2833
2834 super.EEHealthLevelChanged(oldLevel,newLevel,zone);
2835
2837 return;
2838
2840 string part_name = zone;
2842
2844 {
2845 ConstructionPart construction_part = construction.GetConstructionPart( part_name );
2846
2847 if ( construction_part && construction.IsPartConstructed( part_name ) )
2848 {
2850 construction.DestroyConnectedParts(part_name);
2851 }
2852
2853
2854 if ( part_name.
Contains(
"barbed") )
2855 {
2856 BarbedWire barbed_wire = BarbedWire.Cast( FindAttachmentBySlotName( zone ) );
2857 if (barbed_wire)
2858 barbed_wire.SetMountedState( false );
2859 }
2860 }
2861 }
2862
2864 {
2866 {
2868 }
2869
2870 super.EEOnAfterLoad();
2871 }
2872
2874 {
2875 super.EEInit();
2876
2877
2879
2880
2881 #ifdef DEVELOPER
2883 #endif
2884 }
2885
2887 {
2888 super.EEItemAttached( item, slot_name );
2889
2893 }
2894
2896 {
2897 super.EEItemDetached( item, slot_name );
2898
2901 }
2902
2903 protected void OnSetSlotLock(
int slotId,
bool locked,
bool was_locked )
2904 {
2907
2910 }
2911
2912
2914 {
2915 return true;
2916 }
2917
2918
2919
2921 {
2923
2924
2925 if (construtionPart.
IsBase())
2926 {
2928
2929
2931 }
2932
2933
2935
2936
2938
2939
2941
2943
2945
2946
2948
2949
2951 }
2952
2954 {
2955
2957 }
2958
2959
2961 {
2964
2965
2967
2968
2970
2971
2973
2974
2976
2978
2979
2981
2982
2984
2985
2986 if (construtionPart.
IsBase())
2987 {
2988
2990 }
2991 }
2992
2994 {
2995
2997 }
2998
2999
3000 void OnPartDestroyedServer(Man player,
string part_name,
int action_id,
bool destroyed_by_connected_part =
false)
3001 {
3004
3005
3007
3008
3010
3011
3013
3014
3016
3018
3019
3021
3022
3024
3025
3026 if (construtionPart.
IsBase())
3027 {
3028
3030 }
3031 }
3032
3034 {
3035
3037 }
3038
3041 {
3042 bool process = false;
3043
3044
3048
3049 if (process)
3050 {
3051 if (!MemoryPointExists(part.
m_PartName +
"_min") || !MemoryPointExists(part.
m_PartName +
"_max"))
3052 {
3054 return;
3055 }
3056
3058 mins = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_min"));
3059 maxs = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_max"));
3060
3061
3063 minTmp[0] =
Math.
Min(mins[0],maxs[0]);
3064 maxTmp[0] =
Math.
Max(mins[0],maxs[0]);
3065 minTmp[1] =
Math.
Min(mins[1],maxs[1]);
3066 maxTmp[1] =
Math.
Max(mins[1],maxs[1]);
3067 minTmp[2] =
Math.
Min(mins[2],maxs[2]);
3068 maxTmp[2] =
Math.
Max(mins[2],maxs[2]);
3069 mins = minTmp;
3070 maxs = maxTmp;
3071
3072 maxs[1] = maxs[1] + 0.35;
3073
3075 }
3076 }
3077
3080 {
3083
3084
3086 foreach (
EntityAI entity : foundEntities)
3087 {
3090 }
3091 }
3092
3093
3095 {
3097
3101 }
3102
3104 {
3106
3108 {
3110 }
3111 else
3112 {
3114 }
3115
3117 }
3118
3120 {
3122
3124 foreach (
string slotName : attachmentSlots)
3125 {
3127 }
3128
3129
3132 else
3134
3136 }
3137
3139 {
3140 string slotNameMounted = slot_name + "_Mounted";
3141 EntityAI attachment = FindAttachmentBySlotName(slot_name);
3142
3143 if (attachment)
3144 {
3145 BarbedWire barbedWire = BarbedWire.Cast(attachment);
3146 if (barbedWire && barbedWire.IsMounted())
3148 else
3150
3151 if (is_locked)
3152 {
3153 SetAnimationPhase(slotNameMounted, 0);
3154 SetAnimationPhase(slot_name, 1);
3155 }
3156 else
3157 {
3158 SetAnimationPhase(slotNameMounted, 1);
3159 SetAnimationPhase(slot_name, 0);
3160 }
3161 }
3162 else
3163 {
3164 SetAnimationPhase(slotNameMounted, 1);
3165 SetAnimationPhase(slot_name, 1);
3166
3168 }
3169 }
3170
3171
3173 {
3176
3179
3182
3183 foreach (
string slotName : attachmentSlots)
3184 {
3186 }
3187
3188
3190 {
3193
3195 }
3196 else
3197 {
3200
3202 }
3203
3206 }
3207
3209 {
3210
3212 return;
3213
3214 string slot_name_mounted = slot_name + "_Mounted";
3215 EntityAI attachment = FindAttachmentBySlotName( slot_name );
3216
3217
3219 RemoveProxyPhysics( slot_name_mounted );
3220 RemoveProxyPhysics( slot_name );
3221
3222 if ( attachment )
3223 {
3225 if ( is_locked )
3226 {
3228 AddProxyPhysics( slot_name_mounted );
3229 }
3230 else
3231 {
3233 AddProxyPhysics( slot_name );
3234 }
3235 }
3236 }
3237
3239 {
3240 SetAffectPathgraph( true, false );
3242 }
3243
3245 {
3246 return true;
3247 }
3248
3250 {
3251 return true;
3252 }
3253
3255 {
3256 if ( attachment )
3257 {
3259 attachment.GetInventory().GetCurrentInventoryLocation( inventory_location );
3260
3261 return GetInventory().GetSlotLock( inventory_location.
GetSlot() );
3262 }
3263
3264 return false;
3265 }
3266
3268 {
3270 }
3271
3272
3274 {
3275 string config_path = "CfgVehicles" + " " + entity.GetType() + " " + "attachments";
3276 if (
GetGame().ConfigIsExisting( config_path ) )
3277 {
3279 }
3280 }
3281
3283 {
3284 return true;
3285 }
3286
3288 {
3289 return true;
3290 }
3291
3293 {
3294 return true;
3295 }
3296
3297
3299 {
3301 {
3303 }
3304
3306 }
3307
3309 {
3311 }
3312
3313
3314
3316 {
3317 return super.CanReceiveAttachment(attachment, slotId);
3318 }
3319
3321 {
3322 int attachment_count = GetInventory().AttachmentCount();
3323 if ( attachment_count > 0 )
3324 {
3325 if (
HasBase() && attachment_count == 1 )
3326 {
3327 return false;
3328 }
3329
3330 return true;
3331 }
3332
3333 return false;
3334 }
3335
3337 {
3338 return true;
3339 }
3340
3342 {
3343 return false;
3344 }
3345
3346
3348 {
3349 return false;
3350 }
3351
3353 {
3354 return false;
3355 }
3356
3357
3359 {
3360 return false;
3361 }
3362
3363
3364
3366 {
3367 return true;
3368 }
3369
3371 {
3372 return true;
3373 }
3374
3377 {
3378 return false;
3379 }
3380
3381
3383 {
3384 return true;
3385 }
3386
3387
3389 {
3390 return false;
3391 }
3392
3393
3395 {
3396 return true;
3397 }
3398
3399
3401 {
3402 if (
HasBase() || GetInventory().AttachmentCount() > 0 )
3403 {
3404 return false;
3405 }
3406
3407 return true;
3408 }
3409
3411 {
3414
3415 return item;
3416 }
3417
3418
3420 {
3422 {
3423
3425
3426
3429
3431 if ( MemoryPointExists( slot_name + "_min" ) )
3432 {
3433 min_max[0] = GetMemoryPointPos( slot_name + "_min" );
3434 }
3435 if ( MemoryPointExists( slot_name + "_max" ) )
3436 {
3437 min_max[1] = GetMemoryPointPos( slot_name + "_max" );
3438 }
3439
3440
3443
3444
3447 center = ModelToWorld( center );
3448
3449
3452
3453 areaDamage.SetExtents( extents[0], extents[1] );
3454 areaDamage.SetAreaPosition( center );
3455 areaDamage.SetAreaOrientation( orientation );
3458 areaDamage.SetHitZones( { "Torso","LeftHand","LeftLeg","LeftFoot","RightHand","RightLeg","RightFoot" } );
3459 areaDamage.SetAmmoName( "BarbedWireHit" );
3460 areaDamage.Spawn();
3461
3463 }
3464 }
3465
3467 {
3468 if ( angle_deg != 0 )
3469 {
3470
3471 orientation[0] = orientation[0] - angle_deg;
3472
3473
3475 if ( MemoryPointExists( "rotate_axis" ) )
3476 {
3477 rotate_axis = ModelToWorld( GetMemoryPointPos( "rotate_axis" ) );
3478 }
3479 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];
3480 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];
3481 center[0] = r_center_x;
3482 center[2] = r_center_z;
3483 }
3484 }
3485
3487 {
3489 {
3492 {
3493 if (areaDamage)
3494 {
3495 areaDamage.Destroy();
3496 }
3497
3499 }
3500 }
3501 }
3502
3504 {
3505 return true;
3506 }
3507
3508
3509
3510
3512 {
3514 }
3515
3517 {
3519 }
3520
3522 {
3524 }
3525
3527 {
3529
3530 switch ( material_type )
3531 {
3537 }
3538
3539 return "";
3540 }
3541
3543 {
3545
3546 switch ( material_type )
3547 {
3553 }
3554
3555 return "";
3556 }
3557
3558
3560 {
3562 {
3563
3565 {
3566 SetHealth(slot_name,"Health",item.GetHealth());
3567 }
3568 }
3569 }
3570
3572 {
3573 return 111;
3574 }
3575
3577 {
3578 super.SetActions();
3579
3583 }
3584
3585
3586
3587
3589 {
3590 }
3591
3594 {
3595 return null;
3596 }
3597
3599 {
3601 }
3602
3604 {
3607
3608 Man p;
3609
3610 #ifdef SERVER
3613 if (players.Count())
3614 p = players[0];
3615 #else
3617 #endif
3618
3620 {
3621 bool excluded = false;
3623 if (excludes)
3624 {
3625 foreach (string exclude : excludes)
3626 {
3628 {
3629 excluded = true;
3630 break;
3631 }
3632 }
3633 }
3634
3635 if (!excluded)
3636 {
3638 }
3639 }
3640
3642 }
3643}
3644
3646{
3647#ifdef BSB_DEBUG
3649#else
3650
3651#endif
3652}
3654{
3655#ifdef BSB_DEBUG_SPAM
3657#else
3658
3659#endif
3660}
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.