2286{
2288
2290
2292
2294
2300
2301
2302
2308
2314
2316
2320
2321
2323 {
2325
2326
2327 RegisterNetSyncVariableInt( "m_SyncParts01" );
2328 RegisterNetSyncVariableInt( "m_SyncParts02" );
2329 RegisterNetSyncVariableInt( "m_SyncParts03" );
2330 RegisterNetSyncVariableInt( "m_InteractedPartId" );
2331 RegisterNetSyncVariableInt( "m_PerformedActionId" );
2332 RegisterNetSyncVariableBool( "m_HasBase" );
2333
2334
2336
2337 if (ConfigIsExisting("hybridAttachments"))
2338 {
2341 }
2342 if (ConfigIsExisting("mountables"))
2343 {
2346 }
2347
2349 }
2350
2352 {
2353 super.EEDelete(parent);
2354
2356 {
2357 areaDamage.Destroy();
2358 }
2359
2360 }
2361
2363 {
2364 return "disableBaseDamage";
2365 }
2366
2368 {
2369 return true;
2370 }
2371
2373 {
2374 return EInventoryIconVisibility.HIDE_VICINITY;
2375 }
2376
2378 {
2379 super.InitItemSounds();
2380
2384
2389 }
2390
2392 {
2393 return "putDown_FenceKit_SoundSet";
2394 }
2395
2397 {
2398 return "Shelter_Site_Build_Loop_SoundSet";
2399 }
2400
2401
2403 {
2405 {
2406 SetSynchDirty();
2407 }
2408 }
2409
2411 {
2413 super.OnVariablesSynchronized();
2414
2416 }
2417
2419 {
2420
2422
2423
2425
2426
2428 }
2429
2430
2432 {
2433
2434 int offset;
2435 int mask;
2436
2437 if ( part_id >= 1 && part_id <= 31 )
2438 {
2439 offset = part_id - 1;
2440 mask = 1 << offset;
2441
2443 }
2444 else if ( part_id >= 32 && part_id <= 62 )
2445 {
2446 offset = ( part_id % 32 );
2447 mask = 1 << offset;
2448
2450 }
2451 else if ( part_id >= 63 && part_id <= 93 )
2452 {
2453 offset = ( part_id % 63 );
2454 mask = 1 << offset;
2455
2457 }
2458 }
2459
2461 {
2462
2463 int offset;
2464 int mask;
2465
2466 if ( part_id >= 1 && part_id <= 31 )
2467 {
2468 offset = part_id - 1;
2469 mask = 1 << offset;
2470
2472 }
2473 else if ( part_id >= 32 && part_id <= 62 )
2474 {
2475 offset = ( part_id % 32 );
2476 mask = 1 << offset;
2477
2479 }
2480 else if ( part_id >= 63 && part_id <= 93 )
2481 {
2482 offset = ( part_id % 63 );
2483 mask = 1 << offset;
2484
2486 }
2487 }
2488
2490 {
2491
2492 int offset;
2493 int mask;
2494
2495 if ( part_id >= 1 && part_id <= 31 )
2496 {
2497 offset = part_id - 1;
2498 mask = 1 << offset;
2499
2501 {
2502 return true;
2503 }
2504 }
2505 else if ( part_id >= 32 && part_id <= 62 )
2506 {
2507 offset = ( part_id % 32 );
2508 mask = 1 << offset;
2509
2511 {
2512 return true;
2513 }
2514 }
2515 else if ( part_id >= 63 && part_id <= 93 )
2516 {
2517 offset = ( part_id % 63 );
2518 mask = 1 << offset;
2519
2521 {
2522 return true;
2523 }
2524 }
2525
2526 return false;
2527 }
2528
2530 {
2533 }
2534
2536 {
2537
2540 }
2541
2543 {
2545 {
2548
2549 switch( build_action_id )
2550 {
2554 }
2555 }
2556 }
2557
2558
2560 {
2562 bool is_base = part.
IsBase();
2565 if ( is_part_built_sync )
2566 {
2568 {
2572
2573 if (is_base)
2574 {
2577 }
2578 }
2579 }
2580 else
2581 {
2583 {
2587
2588 if (is_base)
2589 {
2592 }
2593 }
2594 }
2595
2596
2598 }
2599
2600
2602 {
2605
2606 for ( int i = 0; i < construction_parts.Count(); ++i )
2607 {
2608 string key = construction_parts.GetKey( i );
2611 }
2612
2613
2615 }
2616
2618 {
2621
2622 for ( int i = 0; i < construction_parts.Count(); ++i )
2623 {
2624 string key = construction_parts.GetKey( i );
2626
2627 if ( value.
GetId() ==
id )
2628 {
2629 return value;
2630 }
2631 }
2632
2633 return NULL;
2634 }
2635
2636
2637
2639 {
2641 }
2642
2644 {
2646 }
2647
2649 {
2650 return true;
2651 }
2652
2654 {
2655 return false;
2656 }
2657
2658
2660 {
2663 {
2665 }
2666
2667 return construction_kit;
2668 }
2669
2671 {
2674 {
2676 }
2677 }
2678
2680 {
2682 }
2683
2685 {
2686 return "";
2687 }
2688
2690 {
2693 }
2694
2695
2697 {
2700 }
2701
2702
2704 {
2705 super.OnStoreSave( ctx );
2706
2707
2711
2713 }
2714
2716 {
2717 if ( !super.OnStoreLoad( ctx, version ) )
2718 return false;
2719
2720
2721
2723 {
2725 return false;
2726 }
2728 {
2730 return false;
2731 }
2733 {
2735 return false;
2736 }
2737
2738
2740 {
2742 return false;
2743 }
2744
2745
2746 return true;
2747 }
2748
2750 {
2751 super.AfterStoreLoad();
2752
2754 {
2756 }
2757 }
2758
2760 {
2761
2763
2764
2767
2768
2770 }
2771
2773 {
2774 super.OnCreatePhysics();
2777 }
2778
2780 {
2782 return;
2783
2784 super.EEHealthLevelChanged(oldLevel,newLevel,zone);
2785
2787 return;
2788
2790 string part_name = zone;
2792
2794 {
2795 ConstructionPart construction_part = construction.GetConstructionPart( part_name );
2796
2797 if ( construction_part && construction.IsPartConstructed( part_name ) )
2798 {
2800 construction.DestroyConnectedParts(part_name);
2801 }
2802
2803
2804 if ( part_name.
Contains(
"barbed") )
2805 {
2806 BarbedWire barbed_wire = BarbedWire.Cast( FindAttachmentBySlotName( zone ) );
2807 if (barbed_wire)
2808 barbed_wire.SetMountedState( false );
2809 }
2810 }
2811 }
2812
2814 {
2816 {
2818 }
2819
2820 super.EEOnAfterLoad();
2821 }
2822
2824 {
2825 super.EEInit();
2826
2827
2829
2830
2831 #ifdef DEVELOPER
2833 #endif
2834 }
2835
2837 {
2838 super.EEItemAttached( item, slot_name );
2839
2843 }
2844
2846 {
2847 super.EEItemDetached( item, slot_name );
2848
2851 }
2852
2853 protected void OnSetSlotLock(
int slotId,
bool locked,
bool was_locked )
2854 {
2857
2860 }
2861
2862
2864 {
2865 return true;
2866 }
2867
2868
2869
2871 {
2873
2874
2875 if (construtionPart.
IsBase())
2876 {
2878
2879
2881 }
2882
2883
2885
2886
2888
2889
2891
2893
2895
2896
2898
2899
2901 }
2902
2904 {
2905
2907 }
2908
2909
2911 {
2914
2915
2917
2918
2920
2921
2923
2924
2926
2928
2929
2931
2932
2934
2935
2936 if (construtionPart.
IsBase())
2937 {
2938
2940 }
2941 }
2942
2944 {
2945
2947 }
2948
2949
2950 void OnPartDestroyedServer(Man player,
string part_name,
int action_id,
bool destroyed_by_connected_part =
false)
2951 {
2954
2955
2957
2958
2960
2961
2963
2964
2966
2968
2969
2971
2972
2974
2975
2976 if (construtionPart.
IsBase())
2977 {
2978
2980 }
2981 }
2982
2984 {
2985
2987 }
2988
2991 {
2992 bool process = false;
2993
2994
2998
2999 if (process)
3000 {
3001 if (!MemoryPointExists(part.
m_PartName +
"_min") || !MemoryPointExists(part.
m_PartName +
"_max"))
3002 {
3004 return;
3005 }
3006
3008 mins = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_min"));
3009 maxs = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_max"));
3010
3011
3013 minTmp[0] =
Math.
Min(mins[0],maxs[0]);
3014 maxTmp[0] =
Math.
Max(mins[0],maxs[0]);
3015 minTmp[1] =
Math.
Min(mins[1],maxs[1]);
3016 maxTmp[1] =
Math.
Max(mins[1],maxs[1]);
3017 minTmp[2] =
Math.
Min(mins[2],maxs[2]);
3018 maxTmp[2] =
Math.
Max(mins[2],maxs[2]);
3019 mins = minTmp;
3020 maxs = maxTmp;
3021
3022 maxs[1] = maxs[1] + 0.35;
3023
3025 }
3026 }
3027
3030 {
3033
3034
3036 foreach (
EntityAI entity : foundEntities)
3037 {
3040 }
3041 }
3042
3043
3045 {
3047
3051 }
3052
3054 {
3056
3058 {
3060 }
3061 else
3062 {
3064 }
3065
3067 }
3068
3070 {
3072
3074 foreach (
string slotName : attachmentSlots)
3075 {
3077 }
3078
3079
3082 else
3084
3086 }
3087
3089 {
3090 string slotNameMounted = slot_name + "_Mounted";
3091 EntityAI attachment = FindAttachmentBySlotName(slot_name);
3092
3093 if (attachment)
3094 {
3095 BarbedWire barbedWire = BarbedWire.Cast(attachment);
3096 if (barbedWire && barbedWire.IsMounted())
3098 else
3100
3101 if (is_locked)
3102 {
3103 SetAnimationPhase(slotNameMounted, 0);
3104 SetAnimationPhase(slot_name, 1);
3105 }
3106 else
3107 {
3108 SetAnimationPhase(slotNameMounted, 1);
3109 SetAnimationPhase(slot_name, 0);
3110 }
3111 }
3112 else
3113 {
3114 SetAnimationPhase(slotNameMounted, 1);
3115 SetAnimationPhase(slot_name, 1);
3116
3118 }
3119 }
3120
3121
3123 {
3126
3129
3132
3133 foreach (
string slotName : attachmentSlots)
3134 {
3136 }
3137
3138
3140 {
3143
3145 }
3146 else
3147 {
3150
3152 }
3153
3156 }
3157
3159 {
3160
3162 return;
3163
3164 string slot_name_mounted = slot_name + "_Mounted";
3165 EntityAI attachment = FindAttachmentBySlotName( slot_name );
3166
3167
3169 RemoveProxyPhysics( slot_name_mounted );
3170 RemoveProxyPhysics( slot_name );
3171
3172 if ( attachment )
3173 {
3175 if ( is_locked )
3176 {
3178 AddProxyPhysics( slot_name_mounted );
3179 }
3180 else
3181 {
3183 AddProxyPhysics( slot_name );
3184 }
3185 }
3186 }
3187
3189 {
3190 SetAffectPathgraph( true, false );
3192 }
3193
3195 {
3196 return true;
3197 }
3198
3200 {
3201 return true;
3202 }
3203
3205 {
3206 if ( attachment )
3207 {
3209 attachment.GetInventory().GetCurrentInventoryLocation( inventory_location );
3210
3211 return GetInventory().GetSlotLock( inventory_location.
GetSlot() );
3212 }
3213
3214 return false;
3215 }
3216
3218 {
3220 }
3221
3222
3224 {
3225 string config_path = "CfgVehicles" + " " + entity.GetType() + " " + "attachments";
3226 if (
GetGame().ConfigIsExisting( config_path ) )
3227 {
3229 }
3230 }
3231
3233 {
3234 return true;
3235 }
3236
3238 {
3239 return true;
3240 }
3241
3243 {
3244 return true;
3245 }
3246
3247
3249 {
3251 {
3253 }
3254
3256 }
3257
3259 {
3261 }
3262
3263
3264
3266 {
3267 return super.CanReceiveAttachment(attachment, slotId);
3268 }
3269
3271 {
3272 int attachment_count = GetInventory().AttachmentCount();
3273 if ( attachment_count > 0 )
3274 {
3275 if (
HasBase() && attachment_count == 1 )
3276 {
3277 return false;
3278 }
3279
3280 return true;
3281 }
3282
3283 return false;
3284 }
3285
3287 {
3288 return true;
3289 }
3290
3292 {
3293 return false;
3294 }
3295
3296
3298 {
3299 return false;
3300 }
3301
3303 {
3304 return false;
3305 }
3306
3307
3309 {
3310 return false;
3311 }
3312
3313
3314
3316 {
3317 return true;
3318 }
3319
3321 {
3322 return true;
3323 }
3324
3327 {
3328 return false;
3329 }
3330
3331
3333 {
3334 return true;
3335 }
3336
3337
3339 {
3340 return false;
3341 }
3342
3343
3345 {
3346 return true;
3347 }
3348
3349
3351 {
3352 if (
HasBase() || GetInventory().AttachmentCount() > 0 )
3353 {
3354 return false;
3355 }
3356
3357 return true;
3358 }
3359
3361 {
3364
3365 return item;
3366 }
3367
3368
3370 {
3372 {
3373
3375
3376
3379
3381 if ( MemoryPointExists( slot_name + "_min" ) )
3382 {
3383 min_max[0] = GetMemoryPointPos( slot_name + "_min" );
3384 }
3385 if ( MemoryPointExists( slot_name + "_max" ) )
3386 {
3387 min_max[1] = GetMemoryPointPos( slot_name + "_max" );
3388 }
3389
3390
3393
3394
3397 center = ModelToWorld( center );
3398
3399
3402
3403 areaDamage.SetExtents( extents[0], extents[1] );
3404 areaDamage.SetAreaPosition( center );
3405 areaDamage.SetAreaOrientation( orientation );
3408 areaDamage.SetHitZones( { "Torso","LeftHand","LeftLeg","LeftFoot","RightHand","RightLeg","RightFoot" } );
3409 areaDamage.SetAmmoName( "BarbedWireHit" );
3410 areaDamage.Spawn();
3411
3413 }
3414 }
3415
3417 {
3418 if ( angle_deg != 0 )
3419 {
3420
3421 orientation[0] = orientation[0] - angle_deg;
3422
3423
3425 if ( MemoryPointExists( "rotate_axis" ) )
3426 {
3427 rotate_axis = ModelToWorld( GetMemoryPointPos( "rotate_axis" ) );
3428 }
3429 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];
3430 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];
3431 center[0] = r_center_x;
3432 center[2] = r_center_z;
3433 }
3434 }
3435
3437 {
3439 {
3442 {
3443 if (areaDamage)
3444 {
3445 areaDamage.Destroy();
3446 }
3447
3449 }
3450 }
3451 }
3452
3454 {
3455 return true;
3456 }
3457
3458
3459
3460
3462 {
3464 }
3465
3467 {
3469 }
3470
3472 {
3474 }
3475
3477 {
3479
3480 switch ( material_type )
3481 {
3487 }
3488
3489 return "";
3490 }
3491
3493 {
3495
3496 switch ( material_type )
3497 {
3503 }
3504
3505 return "";
3506 }
3507
3508
3510 {
3512 {
3513
3515 {
3516 SetHealth(slot_name,"Health",item.GetHealth());
3517 }
3518 }
3519 }
3520
3522 {
3523 return 111;
3524 }
3525
3527 {
3528 super.SetActions();
3529
3533 }
3534
3535
3536
3537
3539 {
3540 }
3541
3544 {
3545 return null;
3546 }
3547
3549 {
3551 }
3552
3554 {
3557
3558 Man p;
3559
3560 #ifdef SERVER
3563 if (players.Count())
3564 p = players[0];
3565 #else
3567 #endif
3568
3570 {
3571 bool excluded = false;
3573 if (excludes)
3574 {
3575 foreach (string exclude : excludes)
3576 {
3578 {
3579 excluded = true;
3580 break;
3581 }
3582 }
3583 }
3584
3585 if (!excluded)
3586 {
3588 }
3589 }
3590
3592 }
3593}
3594
3596{
3597#ifdef BSB_DEBUG
3599#else
3600
3601#endif
3602}
3604{
3605#ifdef BSB_DEBUG_SPAM
3607#else
3608
3609#endif
3610}
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.