2260{
2262
2264
2266
2268
2274
2275
2276
2282
2288
2290
2294
2295
2297 {
2299
2300
2301 RegisterNetSyncVariableInt( "m_SyncParts01" );
2302 RegisterNetSyncVariableInt( "m_SyncParts02" );
2303 RegisterNetSyncVariableInt( "m_SyncParts03" );
2304 RegisterNetSyncVariableInt( "m_InteractedPartId" );
2305 RegisterNetSyncVariableInt( "m_PerformedActionId" );
2306 RegisterNetSyncVariableBool( "m_HasBase" );
2307
2308
2310
2311 if (ConfigIsExisting("hybridAttachments"))
2312 {
2315 }
2316 if (ConfigIsExisting("mountables"))
2317 {
2320 }
2321
2323 }
2324
2326 {
2327 super.EEDelete(parent);
2328
2330 {
2331 areaDamage.Destroy();
2332 }
2333
2334 }
2335
2337 {
2338 return "disableBaseDamage";
2339 }
2340
2342 {
2343 return true;
2344 }
2345
2347 {
2348 return EInventoryIconVisibility.HIDE_VICINITY;
2349 }
2350
2352 {
2353 super.InitItemSounds();
2354
2358
2363 }
2364
2366 {
2367 return "putDown_FenceKit_SoundSet";
2368 }
2369
2371 {
2372 return "Shelter_Site_Build_Loop_SoundSet";
2373 }
2374
2375
2377 {
2379 {
2380 SetSynchDirty();
2381 }
2382 }
2383
2385 {
2387 super.OnVariablesSynchronized();
2388
2390 }
2391
2393 {
2394
2396
2397
2399
2400
2402 }
2403
2404
2406 {
2407
2408 int offset;
2409 int mask;
2410
2411 if ( part_id >= 1 && part_id <= 31 )
2412 {
2413 offset = part_id - 1;
2414 mask = 1 << offset;
2415
2417 }
2418 else if ( part_id >= 32 && part_id <= 62 )
2419 {
2420 offset = ( part_id % 32 );
2421 mask = 1 << offset;
2422
2424 }
2425 else if ( part_id >= 63 && part_id <= 93 )
2426 {
2427 offset = ( part_id % 63 );
2428 mask = 1 << offset;
2429
2431 }
2432 }
2433
2435 {
2436
2437 int offset;
2438 int mask;
2439
2440 if ( part_id >= 1 && part_id <= 31 )
2441 {
2442 offset = part_id - 1;
2443 mask = 1 << offset;
2444
2446 }
2447 else if ( part_id >= 32 && part_id <= 62 )
2448 {
2449 offset = ( part_id % 32 );
2450 mask = 1 << offset;
2451
2453 }
2454 else if ( part_id >= 63 && part_id <= 93 )
2455 {
2456 offset = ( part_id % 63 );
2457 mask = 1 << offset;
2458
2460 }
2461 }
2462
2464 {
2465
2466 int offset;
2467 int mask;
2468
2469 if ( part_id >= 1 && part_id <= 31 )
2470 {
2471 offset = part_id - 1;
2472 mask = 1 << offset;
2473
2475 {
2476 return true;
2477 }
2478 }
2479 else if ( part_id >= 32 && part_id <= 62 )
2480 {
2481 offset = ( part_id % 32 );
2482 mask = 1 << offset;
2483
2485 {
2486 return true;
2487 }
2488 }
2489 else if ( part_id >= 63 && part_id <= 93 )
2490 {
2491 offset = ( part_id % 63 );
2492 mask = 1 << offset;
2493
2495 {
2496 return true;
2497 }
2498 }
2499
2500 return false;
2501 }
2502
2504 {
2507 }
2508
2510 {
2511
2514 }
2515
2517 {
2519 {
2522
2523 switch( build_action_id )
2524 {
2528 }
2529 }
2530 }
2531
2532
2534 {
2536 bool is_base = part.
IsBase();
2539 if ( is_part_built_sync )
2540 {
2542 {
2546
2547 if (is_base)
2548 {
2551 }
2552 }
2553 }
2554 else
2555 {
2557 {
2561
2562 if (is_base)
2563 {
2566 }
2567 }
2568 }
2569
2570
2572 }
2573
2574
2576 {
2579
2580 for ( int i = 0; i < construction_parts.Count(); ++i )
2581 {
2582 string key = construction_parts.GetKey( i );
2585 }
2586
2587
2589 }
2590
2592 {
2595
2596 for ( int i = 0; i < construction_parts.Count(); ++i )
2597 {
2598 string key = construction_parts.GetKey( i );
2600
2601 if ( value.
GetId() ==
id )
2602 {
2603 return value;
2604 }
2605 }
2606
2607 return NULL;
2608 }
2609
2610
2611
2613 {
2615 }
2616
2618 {
2620 }
2621
2623 {
2624 return true;
2625 }
2626
2628 {
2629 return false;
2630 }
2631
2632
2634 {
2637 {
2639 }
2640
2641 return construction_kit;
2642 }
2643
2645 {
2648 {
2650 }
2651 }
2652
2654 {
2656 }
2657
2659 {
2660 return "";
2661 }
2662
2664 {
2667 }
2668
2669
2671 {
2674 }
2675
2676
2678 {
2679 super.OnStoreSave( ctx );
2680
2681
2685
2687 }
2688
2690 {
2691 if ( !super.OnStoreLoad( ctx, version ) )
2692 return false;
2693
2694
2695
2697 {
2699 return false;
2700 }
2702 {
2704 return false;
2705 }
2707 {
2709 return false;
2710 }
2711
2712
2714 {
2716 return false;
2717 }
2718
2719
2720 return true;
2721 }
2722
2724 {
2725 super.AfterStoreLoad();
2726
2728 {
2730 }
2731 }
2732
2734 {
2735
2737
2738
2741
2742
2744 }
2745
2747 {
2748 super.OnCreatePhysics();
2751 }
2752
2754 {
2756 return;
2757
2758 super.EEHealthLevelChanged(oldLevel,newLevel,zone);
2759
2761 return;
2762
2764 string part_name = zone;
2766
2768 {
2769 ConstructionPart construction_part = construction.GetConstructionPart( part_name );
2770
2771 if ( construction_part && construction.IsPartConstructed( part_name ) )
2772 {
2774 construction.DestroyConnectedParts(part_name);
2775 }
2776
2777
2778 if ( part_name.
Contains(
"barbed") )
2779 {
2780 BarbedWire barbed_wire = BarbedWire.Cast( FindAttachmentBySlotName( zone ) );
2781 if (barbed_wire)
2782 barbed_wire.SetMountedState( false );
2783 }
2784 }
2785 }
2786
2788 {
2790 {
2792 }
2793
2794 super.EEOnAfterLoad();
2795 }
2796
2798 {
2799 super.EEInit();
2800
2801
2803
2804
2805 #ifdef DEVELOPER
2807 #endif
2808 }
2809
2811 {
2812 super.EEItemAttached( item, slot_name );
2813
2817 }
2818
2820 {
2821 super.EEItemDetached( item, slot_name );
2822
2825 }
2826
2827 protected void OnSetSlotLock(
int slotId,
bool locked,
bool was_locked )
2828 {
2831
2834 }
2835
2836
2838 {
2839 return true;
2840 }
2841
2842
2843
2845 {
2847
2848
2849 if (construtionPart.
IsBase())
2850 {
2852
2853
2855 }
2856
2857
2859
2860
2862
2863
2865
2867
2869
2870
2872
2873
2875 }
2876
2878 {
2879
2881 }
2882
2883
2885 {
2888
2889
2891
2892
2894
2895
2897
2898
2900
2902
2903
2905
2906
2908
2909
2910 if (construtionPart.
IsBase())
2911 {
2912
2914 }
2915 }
2916
2918 {
2919
2921 }
2922
2923
2924 void OnPartDestroyedServer(Man player,
string part_name,
int action_id,
bool destroyed_by_connected_part =
false)
2925 {
2928
2929
2931
2932
2934
2935
2937
2938
2940
2942
2943
2945
2946
2948
2949
2950 if (construtionPart.
IsBase())
2951 {
2952
2954 }
2955 }
2956
2958 {
2959
2961 }
2962
2965 {
2966 bool process = false;
2967
2968
2972
2973 if (process)
2974 {
2975 if (!MemoryPointExists(part.
m_PartName +
"_min") || !MemoryPointExists(part.
m_PartName +
"_max"))
2976 {
2978 return;
2979 }
2980
2982 mins = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_min"));
2983 maxs = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_max"));
2984
2985
2987 minTmp[0] =
Math.
Min(mins[0],maxs[0]);
2988 maxTmp[0] =
Math.
Max(mins[0],maxs[0]);
2989 minTmp[1] =
Math.
Min(mins[1],maxs[1]);
2990 maxTmp[1] =
Math.
Max(mins[1],maxs[1]);
2991 minTmp[2] =
Math.
Min(mins[2],maxs[2]);
2992 maxTmp[2] =
Math.
Max(mins[2],maxs[2]);
2993 mins = minTmp;
2994 maxs = maxTmp;
2995
2996 maxs[1] = maxs[1] + 0.35;
2997
2999 }
3000 }
3001
3004 {
3007
3008
3010 foreach (
EntityAI entity : foundEntities)
3011 {
3014 }
3015 }
3016
3017
3019 {
3021
3025 }
3026
3028 {
3030
3032 {
3034 }
3035 else
3036 {
3038 }
3039
3041 }
3042
3044 {
3046
3048 foreach (
string slotName : attachmentSlots)
3049 {
3051 }
3052
3053
3056 else
3058
3060 }
3061
3063 {
3064 string slotNameMounted = slot_name + "_Mounted";
3065 EntityAI attachment = FindAttachmentBySlotName(slot_name);
3066
3067 if (attachment)
3068 {
3069 BarbedWire barbedWire = BarbedWire.Cast(attachment);
3070 if (barbedWire && barbedWire.IsMounted())
3072 else
3074
3075 if (is_locked)
3076 {
3077 SetAnimationPhase(slotNameMounted, 0);
3078 SetAnimationPhase(slot_name, 1);
3079 }
3080 else
3081 {
3082 SetAnimationPhase(slotNameMounted, 1);
3083 SetAnimationPhase(slot_name, 0);
3084 }
3085 }
3086 else
3087 {
3088 SetAnimationPhase(slotNameMounted, 1);
3089 SetAnimationPhase(slot_name, 1);
3090
3092 }
3093 }
3094
3095
3097 {
3100
3103
3106
3107 foreach (
string slotName : attachmentSlots)
3108 {
3110 }
3111
3112
3114 {
3117
3119 }
3120 else
3121 {
3124
3126 }
3127
3130 }
3131
3133 {
3134
3136 return;
3137
3138 string slot_name_mounted = slot_name + "_Mounted";
3139 EntityAI attachment = FindAttachmentBySlotName( slot_name );
3140
3141
3143 RemoveProxyPhysics( slot_name_mounted );
3144 RemoveProxyPhysics( slot_name );
3145
3146 if ( attachment )
3147 {
3149 if ( is_locked )
3150 {
3152 AddProxyPhysics( slot_name_mounted );
3153 }
3154 else
3155 {
3157 AddProxyPhysics( slot_name );
3158 }
3159 }
3160 }
3161
3163 {
3164 SetAffectPathgraph( true, false );
3166 }
3167
3169 {
3170 return true;
3171 }
3172
3174 {
3175 return true;
3176 }
3177
3179 {
3180 if ( attachment )
3181 {
3183 attachment.GetInventory().GetCurrentInventoryLocation( inventory_location );
3184
3185 return GetInventory().GetSlotLock( inventory_location.
GetSlot() );
3186 }
3187
3188 return false;
3189 }
3190
3192 {
3194 }
3195
3196
3198 {
3199 string config_path = "CfgVehicles" + " " + entity.GetType() + " " + "attachments";
3200 if (
GetGame().ConfigIsExisting( config_path ) )
3201 {
3203 }
3204 }
3205
3207 {
3208 return true;
3209 }
3210
3212 {
3213 return true;
3214 }
3215
3217 {
3218 return true;
3219 }
3220
3221
3223 {
3225 {
3227 }
3228
3230 }
3231
3233 {
3235 }
3236
3237
3238
3240 {
3241 return super.CanReceiveAttachment(attachment, slotId);
3242 }
3243
3245 {
3246 int attachment_count = GetInventory().AttachmentCount();
3247 if ( attachment_count > 0 )
3248 {
3249 if (
HasBase() && attachment_count == 1 )
3250 {
3251 return false;
3252 }
3253
3254 return true;
3255 }
3256
3257 return false;
3258 }
3259
3261 {
3262 return true;
3263 }
3264
3266 {
3267 return false;
3268 }
3269
3270
3272 {
3273 return false;
3274 }
3275
3277 {
3278 return false;
3279 }
3280
3281
3283 {
3284 return false;
3285 }
3286
3287
3288
3290 {
3291 return true;
3292 }
3293
3295 {
3296 return true;
3297 }
3298
3301 {
3302 return false;
3303 }
3304
3305
3307 {
3308 return true;
3309 }
3310
3311
3313 {
3314 return false;
3315 }
3316
3317
3319 {
3320 return true;
3321 }
3322
3323
3325 {
3326 if (
HasBase() || GetInventory().AttachmentCount() > 0 )
3327 {
3328 return false;
3329 }
3330
3331 return true;
3332 }
3333
3335 {
3338
3339 return item;
3340 }
3341
3342
3344 {
3346 {
3347
3349
3350
3353
3355 if ( MemoryPointExists( slot_name + "_min" ) )
3356 {
3357 min_max[0] = GetMemoryPointPos( slot_name + "_min" );
3358 }
3359 if ( MemoryPointExists( slot_name + "_max" ) )
3360 {
3361 min_max[1] = GetMemoryPointPos( slot_name + "_max" );
3362 }
3363
3364
3367
3368
3371 center = ModelToWorld( center );
3372
3373
3376
3377 areaDamage.SetExtents( extents[0], extents[1] );
3378 areaDamage.SetAreaPosition( center );
3379 areaDamage.SetAreaOrientation( orientation );
3382 areaDamage.SetHitZones( { "Torso","LeftHand","LeftLeg","LeftFoot","RightHand","RightLeg","RightFoot" } );
3383 areaDamage.SetAmmoName( "BarbedWireHit" );
3384 areaDamage.Spawn();
3385
3387 }
3388 }
3389
3391 {
3392 if ( angle_deg != 0 )
3393 {
3394
3395 orientation[0] = orientation[0] - angle_deg;
3396
3397
3399 if ( MemoryPointExists( "rotate_axis" ) )
3400 {
3401 rotate_axis = ModelToWorld( GetMemoryPointPos( "rotate_axis" ) );
3402 }
3403 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];
3404 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];
3405 center[0] = r_center_x;
3406 center[2] = r_center_z;
3407 }
3408 }
3409
3411 {
3413 {
3416 {
3417 if (areaDamage)
3418 {
3419 areaDamage.Destroy();
3420 }
3421
3423 }
3424 }
3425 }
3426
3428 {
3429 return true;
3430 }
3431
3432
3433
3434
3436 {
3438 }
3439
3441 {
3443 }
3444
3446 {
3448 }
3449
3451 {
3453
3454 switch ( material_type )
3455 {
3461 }
3462
3463 return "";
3464 }
3465
3467 {
3469
3470 switch ( material_type )
3471 {
3477 }
3478
3479 return "";
3480 }
3481
3482
3484 {
3486 {
3487
3489 {
3490 SetHealth(slot_name,"Health",item.GetHealth());
3491 }
3492 }
3493 }
3494
3496 {
3497 return 111;
3498 }
3499
3501 {
3502 super.SetActions();
3503
3507 }
3508
3509
3510
3511
3513 {
3514 }
3515
3518 {
3519 return null;
3520 }
3521
3523 {
3525 }
3526
3528 {
3531
3532 Man p;
3533
3534 #ifdef SERVER
3537 if (players.Count())
3538 p = players[0];
3539 #else
3541 #endif
3542
3544 {
3545 bool excluded = false;
3547 if (excludes)
3548 {
3549 foreach (string exclude : excludes)
3550 {
3552 {
3553 excluded = true;
3554 break;
3555 }
3556 }
3557 }
3558
3559 if (!excluded)
3560 {
3562 }
3563 }
3564
3566 }
3567}
3568
3570{
3571#ifdef BSB_DEBUG
3573#else
3574
3575#endif
3576}
3578{
3579#ifdef BSB_DEBUG_SPAM
3581#else
3582
3583#endif
3584}
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.