2227{
2229
2231
2233
2235
2241
2242
2243
2249
2255
2257
2261
2262
2264 {
2266
2267
2268 RegisterNetSyncVariableInt( "m_SyncParts01" );
2269 RegisterNetSyncVariableInt( "m_SyncParts02" );
2270 RegisterNetSyncVariableInt( "m_SyncParts03" );
2271 RegisterNetSyncVariableInt( "m_InteractedPartId" );
2272 RegisterNetSyncVariableInt( "m_PerformedActionId" );
2273 RegisterNetSyncVariableBool( "m_HasBase" );
2274
2275
2277
2278 if (ConfigIsExisting("hybridAttachments"))
2279 {
2282 }
2283 if (ConfigIsExisting("mountables"))
2284 {
2287 }
2288
2290 }
2291
2293 {
2294 super.EEDelete(parent);
2295
2297 {
2298 areaDamage.Destroy();
2299 }
2300
2301 }
2302
2304 {
2305 return "disableBaseDamage";
2306 }
2307
2309 {
2310 return true;
2311 }
2312
2314 {
2315 return EInventoryIconVisibility.HIDE_VICINITY;
2316 }
2317
2319 {
2320 super.InitItemSounds();
2321
2325
2330 }
2331
2333 {
2334 return "putDown_FenceKit_SoundSet";
2335 }
2336
2338 {
2339 return "Shelter_Site_Build_Loop_SoundSet";
2340 }
2341
2342
2344 {
2346 {
2347 SetSynchDirty();
2348 }
2349 }
2350
2352 {
2354 super.OnVariablesSynchronized();
2355
2357 }
2358
2360 {
2361
2363
2364
2366
2367
2369 }
2370
2371
2373 {
2374
2375 int offset;
2376 int mask;
2377
2378 if ( part_id >= 1 && part_id <= 31 )
2379 {
2380 offset = part_id - 1;
2381 mask = 1 << offset;
2382
2384 }
2385 else if ( part_id >= 32 && part_id <= 62 )
2386 {
2387 offset = ( part_id % 32 );
2388 mask = 1 << offset;
2389
2391 }
2392 else if ( part_id >= 63 && part_id <= 93 )
2393 {
2394 offset = ( part_id % 63 );
2395 mask = 1 << offset;
2396
2398 }
2399 }
2400
2402 {
2403
2404 int offset;
2405 int mask;
2406
2407 if ( part_id >= 1 && part_id <= 31 )
2408 {
2409 offset = part_id - 1;
2410 mask = 1 << offset;
2411
2413 }
2414 else if ( part_id >= 32 && part_id <= 62 )
2415 {
2416 offset = ( part_id % 32 );
2417 mask = 1 << offset;
2418
2420 }
2421 else if ( part_id >= 63 && part_id <= 93 )
2422 {
2423 offset = ( part_id % 63 );
2424 mask = 1 << offset;
2425
2427 }
2428 }
2429
2431 {
2432
2433 int offset;
2434 int mask;
2435
2436 if ( part_id >= 1 && part_id <= 31 )
2437 {
2438 offset = part_id - 1;
2439 mask = 1 << offset;
2440
2442 {
2443 return true;
2444 }
2445 }
2446 else if ( part_id >= 32 && part_id <= 62 )
2447 {
2448 offset = ( part_id % 32 );
2449 mask = 1 << offset;
2450
2452 {
2453 return true;
2454 }
2455 }
2456 else if ( part_id >= 63 && part_id <= 93 )
2457 {
2458 offset = ( part_id % 63 );
2459 mask = 1 << offset;
2460
2462 {
2463 return true;
2464 }
2465 }
2466
2467 return false;
2468 }
2469
2471 {
2474 }
2475
2477 {
2478
2481 }
2482
2484 {
2486 {
2489
2490 switch( build_action_id )
2491 {
2495 }
2496 }
2497 }
2498
2499
2501 {
2503 bool is_base = part.
IsBase();
2506 if ( is_part_built_sync )
2507 {
2509 {
2513
2514 if (is_base)
2515 {
2518 }
2519 }
2520 }
2521 else
2522 {
2524 {
2528
2529 if (is_base)
2530 {
2533 }
2534 }
2535 }
2536
2537
2539 }
2540
2541
2543 {
2546
2547 for ( int i = 0; i < construction_parts.Count(); ++i )
2548 {
2549 string key = construction_parts.GetKey( i );
2552 }
2553
2554
2556 }
2557
2559 {
2562
2563 for ( int i = 0; i < construction_parts.Count(); ++i )
2564 {
2565 string key = construction_parts.GetKey( i );
2567
2568 if ( value.
GetId() ==
id )
2569 {
2570 return value;
2571 }
2572 }
2573
2574 return NULL;
2575 }
2576
2577
2578
2580 {
2582 }
2583
2585 {
2587 }
2588
2590 {
2591 return true;
2592 }
2593
2595 {
2596 return false;
2597 }
2598
2599
2601 {
2604 {
2606 }
2607
2608 return construction_kit;
2609 }
2610
2612 {
2615 {
2617 }
2618 }
2619
2621 {
2623 }
2624
2626 {
2627 return "";
2628 }
2629
2631 {
2634 }
2635
2636
2638 {
2641 }
2642
2643
2645 {
2646 super.OnStoreSave( ctx );
2647
2648
2652
2654 }
2655
2657 {
2658 if ( !super.OnStoreLoad( ctx, version ) )
2659 return false;
2660
2661
2662
2664 {
2666 return false;
2667 }
2669 {
2671 return false;
2672 }
2674 {
2676 return false;
2677 }
2678
2679
2681 {
2683 return false;
2684 }
2685
2686
2687 return true;
2688 }
2689
2691 {
2692 super.AfterStoreLoad();
2693
2695 {
2697 }
2698 }
2699
2701 {
2702
2704
2705
2708
2709
2711 }
2712
2714 {
2715 super.OnCreatePhysics();
2718 }
2719
2721 {
2723 return;
2724
2725 super.EEHealthLevelChanged(oldLevel,newLevel,zone);
2726
2728 return;
2729
2731 string part_name = zone;
2733
2735 {
2736 ConstructionPart construction_part = construction.GetConstructionPart( part_name );
2737
2738 if ( construction_part && construction.IsPartConstructed( part_name ) )
2739 {
2741 construction.DestroyConnectedParts(part_name);
2742 }
2743
2744
2745 if ( part_name.
Contains(
"barbed") )
2746 {
2747 BarbedWire barbed_wire = BarbedWire.Cast( FindAttachmentBySlotName( zone ) );
2748 if (barbed_wire)
2749 barbed_wire.SetMountedState( false );
2750 }
2751 }
2752 }
2753
2755 {
2757 {
2759 }
2760
2761 super.EEOnAfterLoad();
2762 }
2763
2765 {
2766 super.EEInit();
2767
2768
2770
2771
2772 #ifdef DEVELOPER
2774 #endif
2775 }
2776
2778 {
2779 super.EEItemAttached( item, slot_name );
2780
2784 }
2785
2787 {
2788 super.EEItemDetached( item, slot_name );
2789
2792 }
2793
2794 protected void OnSetSlotLock(
int slotId,
bool locked,
bool was_locked )
2795 {
2798
2801 }
2802
2803
2805 {
2806 return true;
2807 }
2808
2809
2810
2812 {
2814
2815
2816 if (construtionPart.
IsBase())
2817 {
2819
2820
2822 }
2823
2824
2826
2827
2829
2830
2832
2834
2836
2837
2839
2840
2842 }
2843
2845 {
2846
2848 }
2849
2850
2852 {
2855
2856
2858
2859
2861
2862
2864
2865
2867
2869
2870
2872
2873
2875
2876
2877 if (construtionPart.
IsBase())
2878 {
2879
2881 }
2882 }
2883
2885 {
2886
2888 }
2889
2890
2891 void OnPartDestroyedServer(Man player,
string part_name,
int action_id,
bool destroyed_by_connected_part =
false)
2892 {
2895
2896
2898
2899
2901
2902
2904
2905
2907
2909
2910
2912
2913
2915
2916
2917 if (construtionPart.
IsBase())
2918 {
2919
2921 }
2922 }
2923
2925 {
2926
2928 }
2929
2932 {
2933 bool process = false;
2934
2935
2939
2940 if (process)
2941 {
2942 if (!MemoryPointExists(part.
m_PartName +
"_min") || !MemoryPointExists(part.
m_PartName +
"_max"))
2943 {
2945 return;
2946 }
2947
2949 mins = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_min"));
2950 maxs = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_max"));
2951
2952
2954 minTmp[0] =
Math.
Min(mins[0],maxs[0]);
2955 maxTmp[0] =
Math.
Max(mins[0],maxs[0]);
2956 minTmp[1] =
Math.
Min(mins[1],maxs[1]);
2957 maxTmp[1] =
Math.
Max(mins[1],maxs[1]);
2958 minTmp[2] =
Math.
Min(mins[2],maxs[2]);
2959 maxTmp[2] =
Math.
Max(mins[2],maxs[2]);
2960 mins = minTmp;
2961 maxs = maxTmp;
2962
2963 maxs[1] = maxs[1] + 0.35;
2964
2966 }
2967 }
2968
2971 {
2974
2975
2977 foreach (
EntityAI entity : foundEntities)
2978 {
2981 }
2982 }
2983
2984
2986 {
2988
2992 }
2993
2995 {
2997
2999 {
3001 }
3002 else
3003 {
3005 }
3006
3008 }
3009
3011 {
3013
3015 foreach (
string slotName : attachmentSlots)
3016 {
3018 }
3019
3020
3023 else
3025
3027 }
3028
3030 {
3031 string slotNameMounted = slot_name + "_Mounted";
3032 EntityAI attachment = FindAttachmentBySlotName(slot_name);
3033
3034 if (attachment)
3035 {
3036 BarbedWire barbedWire = BarbedWire.Cast(attachment);
3037 if (barbedWire && barbedWire.IsMounted())
3039 else
3041
3042 if (is_locked)
3043 {
3044 SetAnimationPhase(slotNameMounted, 0);
3045 SetAnimationPhase(slot_name, 1);
3046 }
3047 else
3048 {
3049 SetAnimationPhase(slotNameMounted, 1);
3050 SetAnimationPhase(slot_name, 0);
3051 }
3052 }
3053 else
3054 {
3055 SetAnimationPhase(slotNameMounted, 1);
3056 SetAnimationPhase(slot_name, 1);
3057
3059 }
3060 }
3061
3062
3064 {
3067
3070
3073
3074 foreach (
string slotName : attachmentSlots)
3075 {
3077 }
3078
3079
3081 {
3084
3086 }
3087 else
3088 {
3091
3093 }
3094
3097 }
3098
3100 {
3101
3103 return;
3104
3105 string slot_name_mounted = slot_name + "_Mounted";
3106 EntityAI attachment = FindAttachmentBySlotName( slot_name );
3107
3108
3110 RemoveProxyPhysics( slot_name_mounted );
3111 RemoveProxyPhysics( slot_name );
3112
3113 if ( attachment )
3114 {
3116 if ( is_locked )
3117 {
3119 AddProxyPhysics( slot_name_mounted );
3120 }
3121 else
3122 {
3124 AddProxyPhysics( slot_name );
3125 }
3126 }
3127 }
3128
3130 {
3131 SetAffectPathgraph( true, false );
3133 }
3134
3136 {
3137 return true;
3138 }
3139
3141 {
3142 return true;
3143 }
3144
3146 {
3147 if ( attachment )
3148 {
3150 attachment.GetInventory().GetCurrentInventoryLocation( inventory_location );
3151
3152 return GetInventory().GetSlotLock( inventory_location.
GetSlot() );
3153 }
3154
3155 return false;
3156 }
3157
3159 {
3161 }
3162
3163
3165 {
3166 string config_path = "CfgVehicles" + " " + entity.GetType() + " " + "attachments";
3167 if (
GetGame().ConfigIsExisting( config_path ) )
3168 {
3170 }
3171 }
3172
3174 {
3175 return true;
3176 }
3177
3179 {
3180 return true;
3181 }
3182
3184 {
3185 return true;
3186 }
3187
3188
3190 {
3192 {
3194 }
3195
3197 }
3198
3200 {
3202 }
3203
3204
3205
3207 {
3208 return super.CanReceiveAttachment(attachment, slotId);
3209 }
3210
3212 {
3213 int attachment_count = GetInventory().AttachmentCount();
3214 if ( attachment_count > 0 )
3215 {
3216 if (
HasBase() && attachment_count == 1 )
3217 {
3218 return false;
3219 }
3220
3221 return true;
3222 }
3223
3224 return false;
3225 }
3226
3228 {
3229 return true;
3230 }
3231
3233 {
3234 return false;
3235 }
3236
3237
3239 {
3240 return false;
3241 }
3242
3244 {
3245 return false;
3246 }
3247
3248
3250 {
3251 return false;
3252 }
3253
3254
3255
3257 {
3258 return true;
3259 }
3260
3262 {
3263 return true;
3264 }
3265
3268 {
3269 return false;
3270 }
3271
3272
3274 {
3275 return true;
3276 }
3277
3278
3280 {
3281 return false;
3282 }
3283
3284
3286 {
3287 return true;
3288 }
3289
3290
3292 {
3293 if (
HasBase() || GetInventory().AttachmentCount() > 0 )
3294 {
3295 return false;
3296 }
3297
3298 return true;
3299 }
3300
3302 {
3305
3306 return item;
3307 }
3308
3309
3311 {
3313 {
3314
3316
3317
3320
3322 if ( MemoryPointExists( slot_name + "_min" ) )
3323 {
3324 min_max[0] = GetMemoryPointPos( slot_name + "_min" );
3325 }
3326 if ( MemoryPointExists( slot_name + "_max" ) )
3327 {
3328 min_max[1] = GetMemoryPointPos( slot_name + "_max" );
3329 }
3330
3331
3334
3335
3338 center = ModelToWorld( center );
3339
3340
3343
3344 areaDamage.SetExtents( extents[0], extents[1] );
3345 areaDamage.SetAreaPosition( center );
3346 areaDamage.SetAreaOrientation( orientation );
3349 areaDamage.SetHitZones( { "Torso","LeftHand","LeftLeg","LeftFoot","RightHand","RightLeg","RightFoot" } );
3350 areaDamage.SetAmmoName( "BarbedWireHit" );
3351 areaDamage.Spawn();
3352
3354 }
3355 }
3356
3358 {
3359 if ( angle_deg != 0 )
3360 {
3361
3362 orientation[0] = orientation[0] - angle_deg;
3363
3364
3366 if ( MemoryPointExists( "rotate_axis" ) )
3367 {
3368 rotate_axis = ModelToWorld( GetMemoryPointPos( "rotate_axis" ) );
3369 }
3370 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];
3371 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];
3372 center[0] = r_center_x;
3373 center[2] = r_center_z;
3374 }
3375 }
3376
3378 {
3380 {
3383 {
3384 if (areaDamage)
3385 {
3386 areaDamage.Destroy();
3387 }
3388
3390 }
3391 }
3392 }
3393
3395 {
3396 return true;
3397 }
3398
3399
3400
3401
3403 {
3405 }
3406
3408 {
3410 }
3411
3413 {
3415 }
3416
3418 {
3420
3421 switch ( material_type )
3422 {
3428 }
3429
3430 return "";
3431 }
3432
3434 {
3436
3437 switch ( material_type )
3438 {
3444 }
3445
3446 return "";
3447 }
3448
3449
3451 {
3453 {
3454
3456 {
3457 SetHealth(slot_name,"Health",item.GetHealth());
3458 }
3459 }
3460 }
3461
3463 {
3464 return 111;
3465 }
3466
3468 {
3469 super.SetActions();
3470
3474 }
3475
3476
3477
3478
3480 {
3481 }
3482
3485 {
3486 return null;
3487 }
3488
3490 {
3492 }
3493
3495 {
3498
3499 Man p;
3500
3501 #ifdef SERVER
3504 if (players.Count())
3505 p = players[0];
3506 #else
3508 #endif
3509
3511 {
3512 bool excluded = false;
3514 if (excludes)
3515 {
3516 foreach (string exclude : excludes)
3517 {
3519 {
3520 excluded = true;
3521 break;
3522 }
3523 }
3524 }
3525
3526 if (!excluded)
3527 {
3529 }
3530 }
3531
3533 }
3534}
3535
3537{
3538#ifdef BSB_DEBUG
3540#else
3541
3542#endif
3543}
3545{
3546#ifdef BSB_DEBUG_SPAM
3548#else
3549
3550#endif
3551}
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.