2314{
2316
2318
2320
2322
2328
2329
2330
2336
2342
2344
2348
2349
2351 {
2353
2354
2355 RegisterNetSyncVariableInt( "m_SyncParts01" );
2356 RegisterNetSyncVariableInt( "m_SyncParts02" );
2357 RegisterNetSyncVariableInt( "m_SyncParts03" );
2358 RegisterNetSyncVariableInt( "m_InteractedPartId" );
2359 RegisterNetSyncVariableInt( "m_PerformedActionId" );
2360 RegisterNetSyncVariableBool( "m_HasBase" );
2361
2362
2364
2365 if (ConfigIsExisting("hybridAttachments"))
2366 {
2369 }
2370 if (ConfigIsExisting("mountables"))
2371 {
2374 }
2375
2377 }
2378
2380 {
2381 super.EEDelete(parent);
2382
2384 {
2385 areaDamage.Destroy();
2386 }
2387
2388 }
2389
2391 {
2392 return "disableBaseDamage";
2393 }
2394
2396 {
2397 return true;
2398 }
2399
2401 {
2402 return EInventoryIconVisibility.HIDE_VICINITY;
2403 }
2404
2406 {
2407 super.InitItemSounds();
2408
2412
2417 }
2418
2420 {
2421 return "putDown_FenceKit_SoundSet";
2422 }
2423
2425 {
2426 return "Shelter_Site_Build_Loop_SoundSet";
2427 }
2428
2429
2431 {
2433 {
2434 SetSynchDirty();
2435 }
2436 }
2437
2439 {
2441 super.OnVariablesSynchronized();
2442
2444 }
2445
2447 {
2448
2450
2451
2453
2454
2456 }
2457
2458
2460 {
2461
2462 int offset;
2463 int mask;
2464
2465 if ( part_id >= 1 && part_id <= 31 )
2466 {
2467 offset = part_id - 1;
2468 mask = 1 << offset;
2469
2471 }
2472 else if ( part_id >= 32 && part_id <= 62 )
2473 {
2474 offset = ( part_id % 32 );
2475 mask = 1 << offset;
2476
2478 }
2479 else if ( part_id >= 63 && part_id <= 93 )
2480 {
2481 offset = ( part_id % 63 );
2482 mask = 1 << offset;
2483
2485 }
2486 }
2487
2489 {
2490
2491 int offset;
2492 int mask;
2493
2494 if ( part_id >= 1 && part_id <= 31 )
2495 {
2496 offset = part_id - 1;
2497 mask = 1 << offset;
2498
2500 }
2501 else if ( part_id >= 32 && part_id <= 62 )
2502 {
2503 offset = ( part_id % 32 );
2504 mask = 1 << offset;
2505
2507 }
2508 else if ( part_id >= 63 && part_id <= 93 )
2509 {
2510 offset = ( part_id % 63 );
2511 mask = 1 << offset;
2512
2514 }
2515 }
2516
2518 {
2519
2520 int offset;
2521 int mask;
2522
2523 if ( part_id >= 1 && part_id <= 31 )
2524 {
2525 offset = part_id - 1;
2526 mask = 1 << offset;
2527
2529 {
2530 return true;
2531 }
2532 }
2533 else if ( part_id >= 32 && part_id <= 62 )
2534 {
2535 offset = ( part_id % 32 );
2536 mask = 1 << offset;
2537
2539 {
2540 return true;
2541 }
2542 }
2543 else if ( part_id >= 63 && part_id <= 93 )
2544 {
2545 offset = ( part_id % 63 );
2546 mask = 1 << offset;
2547
2549 {
2550 return true;
2551 }
2552 }
2553
2554 return false;
2555 }
2556
2558 {
2561 }
2562
2564 {
2565
2568 }
2569
2571 {
2573 {
2576
2577 switch( build_action_id )
2578 {
2582 }
2583 }
2584 }
2585
2586
2588 {
2590 bool is_base = part.
IsBase();
2593 if ( is_part_built_sync )
2594 {
2596 {
2600
2601 if (is_base)
2602 {
2605 }
2606 }
2607 }
2608 else
2609 {
2611 {
2615
2616 if (is_base)
2617 {
2620 }
2621 }
2622 }
2623
2624
2626 }
2627
2628
2630 {
2633
2634 for ( int i = 0; i < construction_parts.Count(); ++i )
2635 {
2636 string key = construction_parts.GetKey( i );
2639 }
2640
2641
2643 }
2644
2646 {
2649
2650 for ( int i = 0; i < construction_parts.Count(); ++i )
2651 {
2652 string key = construction_parts.GetKey( i );
2654
2655 if ( value.
GetId() ==
id )
2656 {
2657 return value;
2658 }
2659 }
2660
2661 return NULL;
2662 }
2663
2664
2665
2667 {
2669 }
2670
2672 {
2674 }
2675
2677 {
2678 return true;
2679 }
2680
2682 {
2683 return false;
2684 }
2685
2686
2688 {
2691 {
2693 }
2694
2695 return construction_kit;
2696 }
2697
2699 {
2702 {
2704 }
2705 }
2706
2708 {
2710 }
2711
2713 {
2714 return "";
2715 }
2716
2718 {
2721 }
2722
2723
2725 {
2728 }
2729
2730
2732 {
2733 super.OnStoreSave( ctx );
2734
2735
2739
2741 }
2742
2744 {
2745 if ( !super.OnStoreLoad( ctx, version ) )
2746 return false;
2747
2748
2749
2751 {
2753 return false;
2754 }
2756 {
2758 return false;
2759 }
2761 {
2763 return false;
2764 }
2765
2766
2768 {
2770 return false;
2771 }
2772
2773
2774 return true;
2775 }
2776
2778 {
2779 super.AfterStoreLoad();
2780
2782 {
2784 }
2785 }
2786
2788 {
2789
2791
2792
2795
2796
2798 }
2799
2801 {
2802 super.OnCreatePhysics();
2805 }
2806
2808 {
2810 return;
2811
2812 super.EEHealthLevelChanged(oldLevel,newLevel,zone);
2813
2815 return;
2816
2818 string part_name = zone;
2820
2822 {
2823 ConstructionPart construction_part = construction.GetConstructionPart( part_name );
2824
2825 if ( construction_part && construction.IsPartConstructed( part_name ) )
2826 {
2828 construction.DestroyConnectedParts(part_name);
2829 }
2830
2831
2832 if ( part_name.
Contains(
"barbed") )
2833 {
2834 BarbedWire barbed_wire = BarbedWire.Cast( FindAttachmentBySlotName( zone ) );
2835 if (barbed_wire)
2836 barbed_wire.SetMountedState( false );
2837 }
2838 }
2839 }
2840
2842 {
2844 {
2846 }
2847
2848 super.EEOnAfterLoad();
2849 }
2850
2852 {
2853 super.EEInit();
2854
2855
2857
2858
2859 #ifdef DEVELOPER
2861 #endif
2862 }
2863
2865 {
2866 super.EEItemAttached( item, slot_name );
2867
2871 }
2872
2874 {
2875 super.EEItemDetached( item, slot_name );
2876
2879 }
2880
2881 protected void OnSetSlotLock(
int slotId,
bool locked,
bool was_locked )
2882 {
2885
2888 }
2889
2890
2892 {
2893 return true;
2894 }
2895
2896
2897
2899 {
2901
2902
2903 if (construtionPart.
IsBase())
2904 {
2906
2907
2909 }
2910
2911
2913
2914
2916
2917
2919
2921
2923
2924
2926
2927
2929 }
2930
2932 {
2933
2935 }
2936
2937
2939 {
2942
2943
2945
2946
2948
2949
2951
2952
2954
2956
2957
2959
2960
2962
2963
2964 if (construtionPart.
IsBase())
2965 {
2966
2968 }
2969 }
2970
2972 {
2973
2975 }
2976
2977
2978 void OnPartDestroyedServer(Man player,
string part_name,
int action_id,
bool destroyed_by_connected_part =
false)
2979 {
2982
2983
2985
2986
2988
2989
2991
2992
2994
2996
2997
2999
3000
3002
3003
3004 if (construtionPart.
IsBase())
3005 {
3006
3008 }
3009 }
3010
3012 {
3013
3015 }
3016
3019 {
3020 bool process = false;
3021
3022
3026
3027 if (process)
3028 {
3029 if (!MemoryPointExists(part.
m_PartName +
"_min") || !MemoryPointExists(part.
m_PartName +
"_max"))
3030 {
3032 return;
3033 }
3034
3036 mins = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_min"));
3037 maxs = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_max"));
3038
3039
3041 minTmp[0] =
Math.
Min(mins[0],maxs[0]);
3042 maxTmp[0] =
Math.
Max(mins[0],maxs[0]);
3043 minTmp[1] =
Math.
Min(mins[1],maxs[1]);
3044 maxTmp[1] =
Math.
Max(mins[1],maxs[1]);
3045 minTmp[2] =
Math.
Min(mins[2],maxs[2]);
3046 maxTmp[2] =
Math.
Max(mins[2],maxs[2]);
3047 mins = minTmp;
3048 maxs = maxTmp;
3049
3050 maxs[1] = maxs[1] + 0.35;
3051
3053 }
3054 }
3055
3058 {
3061
3062
3064 foreach (
EntityAI entity : foundEntities)
3065 {
3068 }
3069 }
3070
3071
3073 {
3075
3079 }
3080
3082 {
3084
3086 {
3088 }
3089 else
3090 {
3092 }
3093
3095 }
3096
3098 {
3100
3102 foreach (
string slotName : attachmentSlots)
3103 {
3105 }
3106
3107
3110 else
3112
3114 }
3115
3117 {
3118 string slotNameMounted = slot_name + "_Mounted";
3119 EntityAI attachment = FindAttachmentBySlotName(slot_name);
3120
3121 if (attachment)
3122 {
3123 BarbedWire barbedWire = BarbedWire.Cast(attachment);
3124 if (barbedWire && barbedWire.IsMounted())
3126 else
3128
3129 if (is_locked)
3130 {
3131 SetAnimationPhase(slotNameMounted, 0);
3132 SetAnimationPhase(slot_name, 1);
3133 }
3134 else
3135 {
3136 SetAnimationPhase(slotNameMounted, 1);
3137 SetAnimationPhase(slot_name, 0);
3138 }
3139 }
3140 else
3141 {
3142 SetAnimationPhase(slotNameMounted, 1);
3143 SetAnimationPhase(slot_name, 1);
3144
3146 }
3147 }
3148
3149
3151 {
3154
3157
3160
3161 foreach (
string slotName : attachmentSlots)
3162 {
3164 }
3165
3166
3168 {
3171
3173 }
3174 else
3175 {
3178
3180 }
3181
3184 }
3185
3187 {
3188
3190 return;
3191
3192 string slot_name_mounted = slot_name + "_Mounted";
3193 EntityAI attachment = FindAttachmentBySlotName( slot_name );
3194
3195
3197 RemoveProxyPhysics( slot_name_mounted );
3198 RemoveProxyPhysics( slot_name );
3199
3200 if ( attachment )
3201 {
3203 if ( is_locked )
3204 {
3206 AddProxyPhysics( slot_name_mounted );
3207 }
3208 else
3209 {
3211 AddProxyPhysics( slot_name );
3212 }
3213 }
3214 }
3215
3217 {
3218 SetAffectPathgraph( true, false );
3220 }
3221
3223 {
3224 return true;
3225 }
3226
3228 {
3229 return true;
3230 }
3231
3233 {
3234 if ( attachment )
3235 {
3237 attachment.GetInventory().GetCurrentInventoryLocation( inventory_location );
3238
3239 return GetInventory().GetSlotLock( inventory_location.
GetSlot() );
3240 }
3241
3242 return false;
3243 }
3244
3246 {
3248 }
3249
3250
3252 {
3253 string config_path = "CfgVehicles" + " " + entity.GetType() + " " + "attachments";
3254 if (
GetGame().ConfigIsExisting( config_path ) )
3255 {
3257 }
3258 }
3259
3261 {
3262 return true;
3263 }
3264
3266 {
3267 return true;
3268 }
3269
3271 {
3272 return true;
3273 }
3274
3275
3277 {
3279 {
3281 }
3282
3284 }
3285
3287 {
3289 }
3290
3291
3292
3294 {
3295 return super.CanReceiveAttachment(attachment, slotId);
3296 }
3297
3299 {
3300 int attachment_count = GetInventory().AttachmentCount();
3301 if ( attachment_count > 0 )
3302 {
3303 if (
HasBase() && attachment_count == 1 )
3304 {
3305 return false;
3306 }
3307
3308 return true;
3309 }
3310
3311 return false;
3312 }
3313
3315 {
3316 return true;
3317 }
3318
3320 {
3321 return false;
3322 }
3323
3324
3326 {
3327 return false;
3328 }
3329
3331 {
3332 return false;
3333 }
3334
3335
3337 {
3338 return false;
3339 }
3340
3341
3342
3344 {
3345 return true;
3346 }
3347
3349 {
3350 return true;
3351 }
3352
3355 {
3356 return false;
3357 }
3358
3359
3361 {
3362 return true;
3363 }
3364
3365
3367 {
3368 return false;
3369 }
3370
3371
3373 {
3374 return true;
3375 }
3376
3377
3379 {
3380 if (
HasBase() || GetInventory().AttachmentCount() > 0 )
3381 {
3382 return false;
3383 }
3384
3385 return true;
3386 }
3387
3389 {
3392
3393 return item;
3394 }
3395
3396
3398 {
3400 {
3401
3403
3404
3407
3409 if ( MemoryPointExists( slot_name + "_min" ) )
3410 {
3411 min_max[0] = GetMemoryPointPos( slot_name + "_min" );
3412 }
3413 if ( MemoryPointExists( slot_name + "_max" ) )
3414 {
3415 min_max[1] = GetMemoryPointPos( slot_name + "_max" );
3416 }
3417
3418
3421
3422
3425 center = ModelToWorld( center );
3426
3427
3430
3431 areaDamage.SetExtents( extents[0], extents[1] );
3432 areaDamage.SetAreaPosition( center );
3433 areaDamage.SetAreaOrientation( orientation );
3436 areaDamage.SetHitZones( { "Torso","LeftHand","LeftLeg","LeftFoot","RightHand","RightLeg","RightFoot" } );
3437 areaDamage.SetAmmoName( "BarbedWireHit" );
3438 areaDamage.Spawn();
3439
3441 }
3442 }
3443
3445 {
3446 if ( angle_deg != 0 )
3447 {
3448
3449 orientation[0] = orientation[0] - angle_deg;
3450
3451
3453 if ( MemoryPointExists( "rotate_axis" ) )
3454 {
3455 rotate_axis = ModelToWorld( GetMemoryPointPos( "rotate_axis" ) );
3456 }
3457 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];
3458 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];
3459 center[0] = r_center_x;
3460 center[2] = r_center_z;
3461 }
3462 }
3463
3465 {
3467 {
3470 {
3471 if (areaDamage)
3472 {
3473 areaDamage.Destroy();
3474 }
3475
3477 }
3478 }
3479 }
3480
3482 {
3483 return true;
3484 }
3485
3486
3487
3488
3490 {
3492 }
3493
3495 {
3497 }
3498
3500 {
3502 }
3503
3505 {
3507
3508 switch ( material_type )
3509 {
3515 }
3516
3517 return "";
3518 }
3519
3521 {
3523
3524 switch ( material_type )
3525 {
3531 }
3532
3533 return "";
3534 }
3535
3536
3538 {
3540 {
3541
3543 {
3544 SetHealth(slot_name,"Health",item.GetHealth());
3545 }
3546 }
3547 }
3548
3550 {
3551 return 111;
3552 }
3553
3555 {
3556 super.SetActions();
3557
3561 }
3562
3563
3564
3565
3567 {
3568 }
3569
3572 {
3573 return null;
3574 }
3575
3577 {
3579 }
3580
3582 {
3585
3586 Man p;
3587
3588 #ifdef SERVER
3591 if (players.Count())
3592 p = players[0];
3593 #else
3595 #endif
3596
3598 {
3599 bool excluded = false;
3601 if (excludes)
3602 {
3603 foreach (string exclude : excludes)
3604 {
3606 {
3607 excluded = true;
3608 break;
3609 }
3610 }
3611 }
3612
3613 if (!excluded)
3614 {
3616 }
3617 }
3618
3620 }
3621}
3622
3624{
3625#ifdef BSB_DEBUG
3627#else
3628
3629#endif
3630}
3632{
3633#ifdef BSB_DEBUG_SPAM
3635#else
3636
3637#endif
3638}
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.