2232{
2234
2236
2238
2240
2246
2247
2248
2254
2260
2262
2266
2267
2269 {
2271
2272
2273 RegisterNetSyncVariableInt( "m_SyncParts01" );
2274 RegisterNetSyncVariableInt( "m_SyncParts02" );
2275 RegisterNetSyncVariableInt( "m_SyncParts03" );
2276 RegisterNetSyncVariableInt( "m_InteractedPartId" );
2277 RegisterNetSyncVariableInt( "m_PerformedActionId" );
2278 RegisterNetSyncVariableBool( "m_HasBase" );
2279
2280
2282
2283 if (ConfigIsExisting("hybridAttachments"))
2284 {
2287 }
2288 if (ConfigIsExisting("mountables"))
2289 {
2292 }
2293
2295 }
2296
2298 {
2299 super.EEDelete(parent);
2300
2302 {
2303 areaDamage.Destroy();
2304 }
2305
2306 }
2307
2309 {
2310 return "disableBaseDamage";
2311 }
2312
2314 {
2315 return true;
2316 }
2317
2319 {
2320 return EInventoryIconVisibility.HIDE_VICINITY;
2321 }
2322
2324 {
2325 super.InitItemSounds();
2326
2330
2335 }
2336
2338 {
2339 return "putDown_FenceKit_SoundSet";
2340 }
2341
2343 {
2344 return "Shelter_Site_Build_Loop_SoundSet";
2345 }
2346
2347
2349 {
2351 {
2352 SetSynchDirty();
2353 }
2354 }
2355
2357 {
2359 super.OnVariablesSynchronized();
2360
2362 }
2363
2365 {
2366
2368
2369
2371
2372
2374 }
2375
2376
2378 {
2379
2380 int offset;
2381 int mask;
2382
2383 if ( part_id >= 1 && part_id <= 31 )
2384 {
2385 offset = part_id - 1;
2386 mask = 1 << offset;
2387
2389 }
2390 else if ( part_id >= 32 && part_id <= 62 )
2391 {
2392 offset = ( part_id % 32 );
2393 mask = 1 << offset;
2394
2396 }
2397 else if ( part_id >= 63 && part_id <= 93 )
2398 {
2399 offset = ( part_id % 63 );
2400 mask = 1 << offset;
2401
2403 }
2404 }
2405
2407 {
2408
2409 int offset;
2410 int mask;
2411
2412 if ( part_id >= 1 && part_id <= 31 )
2413 {
2414 offset = part_id - 1;
2415 mask = 1 << offset;
2416
2418 }
2419 else if ( part_id >= 32 && part_id <= 62 )
2420 {
2421 offset = ( part_id % 32 );
2422 mask = 1 << offset;
2423
2425 }
2426 else if ( part_id >= 63 && part_id <= 93 )
2427 {
2428 offset = ( part_id % 63 );
2429 mask = 1 << offset;
2430
2432 }
2433 }
2434
2436 {
2437
2438 int offset;
2439 int mask;
2440
2441 if ( part_id >= 1 && part_id <= 31 )
2442 {
2443 offset = part_id - 1;
2444 mask = 1 << offset;
2445
2447 {
2448 return true;
2449 }
2450 }
2451 else if ( part_id >= 32 && part_id <= 62 )
2452 {
2453 offset = ( part_id % 32 );
2454 mask = 1 << offset;
2455
2457 {
2458 return true;
2459 }
2460 }
2461 else if ( part_id >= 63 && part_id <= 93 )
2462 {
2463 offset = ( part_id % 63 );
2464 mask = 1 << offset;
2465
2467 {
2468 return true;
2469 }
2470 }
2471
2472 return false;
2473 }
2474
2476 {
2479 }
2480
2482 {
2483
2486 }
2487
2489 {
2491 {
2494
2495 switch( build_action_id )
2496 {
2500 }
2501 }
2502 }
2503
2504
2506 {
2508 bool is_base = part.
IsBase();
2511 if ( is_part_built_sync )
2512 {
2514 {
2518
2519 if (is_base)
2520 {
2523 }
2524 }
2525 }
2526 else
2527 {
2529 {
2533
2534 if (is_base)
2535 {
2538 }
2539 }
2540 }
2541
2542
2544 }
2545
2546
2548 {
2551
2552 for ( int i = 0; i < construction_parts.Count(); ++i )
2553 {
2554 string key = construction_parts.GetKey( i );
2557 }
2558
2559
2561 }
2562
2564 {
2567
2568 for ( int i = 0; i < construction_parts.Count(); ++i )
2569 {
2570 string key = construction_parts.GetKey( i );
2572
2573 if ( value.
GetId() ==
id )
2574 {
2575 return value;
2576 }
2577 }
2578
2579 return NULL;
2580 }
2581
2582
2583
2585 {
2587 }
2588
2590 {
2592 }
2593
2595 {
2596 return true;
2597 }
2598
2600 {
2601 return false;
2602 }
2603
2604
2606 {
2609 {
2611 }
2612
2613 return construction_kit;
2614 }
2615
2617 {
2620 {
2622 }
2623 }
2624
2626 {
2628 }
2629
2631 {
2632 return "";
2633 }
2634
2636 {
2639 }
2640
2641
2643 {
2646 }
2647
2648
2650 {
2651 super.OnStoreSave( ctx );
2652
2653
2657
2659 }
2660
2662 {
2663 if ( !super.OnStoreLoad( ctx, version ) )
2664 return false;
2665
2666
2667
2669 {
2671 return false;
2672 }
2674 {
2676 return false;
2677 }
2679 {
2681 return false;
2682 }
2683
2684
2686 {
2688 return false;
2689 }
2690
2691
2692 return true;
2693 }
2694
2696 {
2697 super.AfterStoreLoad();
2698
2700 {
2702 }
2703 }
2704
2706 {
2707
2709
2710
2713
2714
2716 }
2717
2719 {
2720 super.OnCreatePhysics();
2723 }
2724
2726 {
2728 return;
2729
2730 super.EEHealthLevelChanged(oldLevel,newLevel,zone);
2731
2733 return;
2734
2736 string part_name = zone;
2738
2740 {
2741 ConstructionPart construction_part = construction.GetConstructionPart( part_name );
2742
2743 if ( construction_part && construction.IsPartConstructed( part_name ) )
2744 {
2746 construction.DestroyConnectedParts(part_name);
2747 }
2748
2749
2750 if ( part_name.
Contains(
"barbed") )
2751 {
2752 BarbedWire barbed_wire = BarbedWire.Cast( FindAttachmentBySlotName( zone ) );
2753 if (barbed_wire)
2754 barbed_wire.SetMountedState( false );
2755 }
2756 }
2757 }
2758
2760 {
2762 {
2764 }
2765
2766 super.EEOnAfterLoad();
2767 }
2768
2770 {
2771 super.EEInit();
2772
2773
2775
2776
2777 #ifdef DEVELOPER
2779 #endif
2780 }
2781
2783 {
2784 super.EEItemAttached( item, slot_name );
2785
2789 }
2790
2792 {
2793 super.EEItemDetached( item, slot_name );
2794
2797 }
2798
2799 protected void OnSetSlotLock(
int slotId,
bool locked,
bool was_locked )
2800 {
2803
2806 }
2807
2808
2810 {
2811 return true;
2812 }
2813
2814
2815
2817 {
2819
2820
2821 if (construtionPart.
IsBase())
2822 {
2824
2825
2827 }
2828
2829
2831
2832
2834
2835
2837
2839
2841
2842
2844
2845
2847 }
2848
2850 {
2851
2853 }
2854
2855
2857 {
2860
2861
2863
2864
2866
2867
2869
2870
2872
2874
2875
2877
2878
2880
2881
2882 if (construtionPart.
IsBase())
2883 {
2884
2886 }
2887 }
2888
2890 {
2891
2893 }
2894
2895
2896 void OnPartDestroyedServer(Man player,
string part_name,
int action_id,
bool destroyed_by_connected_part =
false)
2897 {
2900
2901
2903
2904
2906
2907
2909
2910
2912
2914
2915
2917
2918
2920
2921
2922 if (construtionPart.
IsBase())
2923 {
2924
2926 }
2927 }
2928
2930 {
2931
2933 }
2934
2937 {
2938 bool process = false;
2939
2940
2944
2945 if (process)
2946 {
2947 if (!MemoryPointExists(part.
m_PartName +
"_min") || !MemoryPointExists(part.
m_PartName +
"_max"))
2948 {
2950 return;
2951 }
2952
2954 mins = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_min"));
2955 maxs = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_max"));
2956
2957
2959 minTmp[0] =
Math.
Min(mins[0],maxs[0]);
2960 maxTmp[0] =
Math.
Max(mins[0],maxs[0]);
2961 minTmp[1] =
Math.
Min(mins[1],maxs[1]);
2962 maxTmp[1] =
Math.
Max(mins[1],maxs[1]);
2963 minTmp[2] =
Math.
Min(mins[2],maxs[2]);
2964 maxTmp[2] =
Math.
Max(mins[2],maxs[2]);
2965 mins = minTmp;
2966 maxs = maxTmp;
2967
2968 maxs[1] = maxs[1] + 0.35;
2969
2971 }
2972 }
2973
2976 {
2979
2980
2982 foreach (
EntityAI entity : foundEntities)
2983 {
2986 }
2987 }
2988
2989
2991 {
2993
2997 }
2998
3000 {
3002
3004 {
3006 }
3007 else
3008 {
3010 }
3011
3013 }
3014
3016 {
3018
3020 foreach (
string slotName : attachmentSlots)
3021 {
3023 }
3024
3025
3028 else
3030
3032 }
3033
3035 {
3036 string slotNameMounted = slot_name + "_Mounted";
3037 EntityAI attachment = FindAttachmentBySlotName(slot_name);
3038
3039 if (attachment)
3040 {
3041 BarbedWire barbedWire = BarbedWire.Cast(attachment);
3042 if (barbedWire && barbedWire.IsMounted())
3044 else
3046
3047 if (is_locked)
3048 {
3049 SetAnimationPhase(slotNameMounted, 0);
3050 SetAnimationPhase(slot_name, 1);
3051 }
3052 else
3053 {
3054 SetAnimationPhase(slotNameMounted, 1);
3055 SetAnimationPhase(slot_name, 0);
3056 }
3057 }
3058 else
3059 {
3060 SetAnimationPhase(slotNameMounted, 1);
3061 SetAnimationPhase(slot_name, 1);
3062
3064 }
3065 }
3066
3067
3069 {
3072
3075
3078
3079 foreach (
string slotName : attachmentSlots)
3080 {
3082 }
3083
3084
3086 {
3089
3091 }
3092 else
3093 {
3096
3098 }
3099
3102 }
3103
3105 {
3106
3108 return;
3109
3110 string slot_name_mounted = slot_name + "_Mounted";
3111 EntityAI attachment = FindAttachmentBySlotName( slot_name );
3112
3113
3115 RemoveProxyPhysics( slot_name_mounted );
3116 RemoveProxyPhysics( slot_name );
3117
3118 if ( attachment )
3119 {
3121 if ( is_locked )
3122 {
3124 AddProxyPhysics( slot_name_mounted );
3125 }
3126 else
3127 {
3129 AddProxyPhysics( slot_name );
3130 }
3131 }
3132 }
3133
3135 {
3136 SetAffectPathgraph( true, false );
3138 }
3139
3141 {
3142 return true;
3143 }
3144
3146 {
3147 return true;
3148 }
3149
3151 {
3152 if ( attachment )
3153 {
3155 attachment.GetInventory().GetCurrentInventoryLocation( inventory_location );
3156
3157 return GetInventory().GetSlotLock( inventory_location.
GetSlot() );
3158 }
3159
3160 return false;
3161 }
3162
3164 {
3166 }
3167
3168
3170 {
3171 string config_path = "CfgVehicles" + " " + entity.GetType() + " " + "attachments";
3172 if (
GetGame().ConfigIsExisting( config_path ) )
3173 {
3175 }
3176 }
3177
3179 {
3180 return true;
3181 }
3182
3184 {
3185 return true;
3186 }
3187
3189 {
3190 return true;
3191 }
3192
3193
3195 {
3197 {
3199 }
3200
3202 }
3203
3205 {
3207 }
3208
3209
3210
3212 {
3213 return super.CanReceiveAttachment(attachment, slotId);
3214 }
3215
3217 {
3218 int attachment_count = GetInventory().AttachmentCount();
3219 if ( attachment_count > 0 )
3220 {
3221 if (
HasBase() && attachment_count == 1 )
3222 {
3223 return false;
3224 }
3225
3226 return true;
3227 }
3228
3229 return false;
3230 }
3231
3233 {
3234 return true;
3235 }
3236
3238 {
3239 return false;
3240 }
3241
3242
3244 {
3245 return false;
3246 }
3247
3249 {
3250 return false;
3251 }
3252
3253
3255 {
3256 return false;
3257 }
3258
3259
3260
3262 {
3263 return true;
3264 }
3265
3267 {
3268 return true;
3269 }
3270
3273 {
3274 return false;
3275 }
3276
3277
3279 {
3280 return true;
3281 }
3282
3283
3285 {
3286 return false;
3287 }
3288
3289
3291 {
3292 return true;
3293 }
3294
3295
3297 {
3298 if (
HasBase() || GetInventory().AttachmentCount() > 0 )
3299 {
3300 return false;
3301 }
3302
3303 return true;
3304 }
3305
3307 {
3310
3311 return item;
3312 }
3313
3314
3316 {
3318 {
3319
3321
3322
3325
3327 if ( MemoryPointExists( slot_name + "_min" ) )
3328 {
3329 min_max[0] = GetMemoryPointPos( slot_name + "_min" );
3330 }
3331 if ( MemoryPointExists( slot_name + "_max" ) )
3332 {
3333 min_max[1] = GetMemoryPointPos( slot_name + "_max" );
3334 }
3335
3336
3339
3340
3343 center = ModelToWorld( center );
3344
3345
3348
3349 areaDamage.SetExtents( extents[0], extents[1] );
3350 areaDamage.SetAreaPosition( center );
3351 areaDamage.SetAreaOrientation( orientation );
3354 areaDamage.SetHitZones( { "Torso","LeftHand","LeftLeg","LeftFoot","RightHand","RightLeg","RightFoot" } );
3355 areaDamage.SetAmmoName( "BarbedWireHit" );
3356 areaDamage.Spawn();
3357
3359 }
3360 }
3361
3363 {
3364 if ( angle_deg != 0 )
3365 {
3366
3367 orientation[0] = orientation[0] - angle_deg;
3368
3369
3371 if ( MemoryPointExists( "rotate_axis" ) )
3372 {
3373 rotate_axis = ModelToWorld( GetMemoryPointPos( "rotate_axis" ) );
3374 }
3375 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];
3376 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];
3377 center[0] = r_center_x;
3378 center[2] = r_center_z;
3379 }
3380 }
3381
3383 {
3385 {
3388 {
3389 if (areaDamage)
3390 {
3391 areaDamage.Destroy();
3392 }
3393
3395 }
3396 }
3397 }
3398
3400 {
3401 return true;
3402 }
3403
3404
3405
3406
3408 {
3410 }
3411
3413 {
3415 }
3416
3418 {
3420 }
3421
3423 {
3425
3426 switch ( material_type )
3427 {
3433 }
3434
3435 return "";
3436 }
3437
3439 {
3441
3442 switch ( material_type )
3443 {
3449 }
3450
3451 return "";
3452 }
3453
3454
3456 {
3458 {
3459
3461 {
3462 SetHealth(slot_name,"Health",item.GetHealth());
3463 }
3464 }
3465 }
3466
3468 {
3469 return 111;
3470 }
3471
3473 {
3474 super.SetActions();
3475
3479 }
3480
3481
3482
3483
3485 {
3486 }
3487
3490 {
3491 return null;
3492 }
3493
3495 {
3497 }
3498
3500 {
3503
3504 Man p;
3505
3506 #ifdef SERVER
3509 if (players.Count())
3510 p = players[0];
3511 #else
3513 #endif
3514
3516 {
3517 bool excluded = false;
3519 if (excludes)
3520 {
3521 foreach (string exclude : excludes)
3522 {
3524 {
3525 excluded = true;
3526 break;
3527 }
3528 }
3529 }
3530
3531 if (!excluded)
3532 {
3534 }
3535 }
3536
3538 }
3539}
3540
3542{
3543#ifdef BSB_DEBUG
3545#else
3546
3547#endif
3548}
3550{
3551#ifdef BSB_DEBUG_SPAM
3553#else
3554
3555#endif
3556}
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.