2270{
2272
2274
2276
2278
2284
2285
2286
2292
2298
2300
2304
2305
2307 {
2309
2310
2311 RegisterNetSyncVariableInt( "m_SyncParts01" );
2312 RegisterNetSyncVariableInt( "m_SyncParts02" );
2313 RegisterNetSyncVariableInt( "m_SyncParts03" );
2314 RegisterNetSyncVariableInt( "m_InteractedPartId" );
2315 RegisterNetSyncVariableInt( "m_PerformedActionId" );
2316 RegisterNetSyncVariableBool( "m_HasBase" );
2317
2318
2320
2321 if (ConfigIsExisting("hybridAttachments"))
2322 {
2325 }
2326 if (ConfigIsExisting("mountables"))
2327 {
2330 }
2331
2333 }
2334
2336 {
2337 super.EEDelete(parent);
2338
2340 {
2341 areaDamage.Destroy();
2342 }
2343
2344 }
2345
2347 {
2348 return "disableBaseDamage";
2349 }
2350
2352 {
2353 return true;
2354 }
2355
2357 {
2358 return EInventoryIconVisibility.HIDE_VICINITY;
2359 }
2360
2362 {
2363 super.InitItemSounds();
2364
2368
2373 }
2374
2376 {
2377 return "putDown_FenceKit_SoundSet";
2378 }
2379
2381 {
2382 return "Shelter_Site_Build_Loop_SoundSet";
2383 }
2384
2385
2387 {
2389 {
2390 SetSynchDirty();
2391 }
2392 }
2393
2395 {
2397 super.OnVariablesSynchronized();
2398
2400 }
2401
2403 {
2404
2406
2407
2409
2410
2412 }
2413
2414
2416 {
2417
2418 int offset;
2419 int mask;
2420
2421 if ( part_id >= 1 && part_id <= 31 )
2422 {
2423 offset = part_id - 1;
2424 mask = 1 << offset;
2425
2427 }
2428 else if ( part_id >= 32 && part_id <= 62 )
2429 {
2430 offset = ( part_id % 32 );
2431 mask = 1 << offset;
2432
2434 }
2435 else if ( part_id >= 63 && part_id <= 93 )
2436 {
2437 offset = ( part_id % 63 );
2438 mask = 1 << offset;
2439
2441 }
2442 }
2443
2445 {
2446
2447 int offset;
2448 int mask;
2449
2450 if ( part_id >= 1 && part_id <= 31 )
2451 {
2452 offset = part_id - 1;
2453 mask = 1 << offset;
2454
2456 }
2457 else if ( part_id >= 32 && part_id <= 62 )
2458 {
2459 offset = ( part_id % 32 );
2460 mask = 1 << offset;
2461
2463 }
2464 else if ( part_id >= 63 && part_id <= 93 )
2465 {
2466 offset = ( part_id % 63 );
2467 mask = 1 << offset;
2468
2470 }
2471 }
2472
2474 {
2475
2476 int offset;
2477 int mask;
2478
2479 if ( part_id >= 1 && part_id <= 31 )
2480 {
2481 offset = part_id - 1;
2482 mask = 1 << offset;
2483
2485 {
2486 return true;
2487 }
2488 }
2489 else if ( part_id >= 32 && part_id <= 62 )
2490 {
2491 offset = ( part_id % 32 );
2492 mask = 1 << offset;
2493
2495 {
2496 return true;
2497 }
2498 }
2499 else if ( part_id >= 63 && part_id <= 93 )
2500 {
2501 offset = ( part_id % 63 );
2502 mask = 1 << offset;
2503
2505 {
2506 return true;
2507 }
2508 }
2509
2510 return false;
2511 }
2512
2514 {
2517 }
2518
2520 {
2521
2524 }
2525
2527 {
2529 {
2532
2533 switch( build_action_id )
2534 {
2538 }
2539 }
2540 }
2541
2542
2544 {
2546 bool is_base = part.
IsBase();
2549 if ( is_part_built_sync )
2550 {
2552 {
2556
2557 if (is_base)
2558 {
2561 }
2562 }
2563 }
2564 else
2565 {
2567 {
2571
2572 if (is_base)
2573 {
2576 }
2577 }
2578 }
2579
2580
2582 }
2583
2584
2586 {
2589
2590 for ( int i = 0; i < construction_parts.Count(); ++i )
2591 {
2592 string key = construction_parts.GetKey( i );
2595 }
2596
2597
2599 }
2600
2602 {
2605
2606 for ( int i = 0; i < construction_parts.Count(); ++i )
2607 {
2608 string key = construction_parts.GetKey( i );
2610
2611 if ( value.
GetId() ==
id )
2612 {
2613 return value;
2614 }
2615 }
2616
2617 return NULL;
2618 }
2619
2620
2621
2623 {
2625 }
2626
2628 {
2630 }
2631
2633 {
2634 return true;
2635 }
2636
2638 {
2639 return false;
2640 }
2641
2642
2644 {
2647 {
2649 }
2650
2651 return construction_kit;
2652 }
2653
2655 {
2658 {
2660 }
2661 }
2662
2664 {
2666 }
2667
2669 {
2670 return "";
2671 }
2672
2674 {
2677 }
2678
2679
2681 {
2684 }
2685
2686
2688 {
2689 super.OnStoreSave( ctx );
2690
2691
2695
2697 }
2698
2700 {
2701 if ( !super.OnStoreLoad( ctx, version ) )
2702 return false;
2703
2704
2705
2707 {
2709 return false;
2710 }
2712 {
2714 return false;
2715 }
2717 {
2719 return false;
2720 }
2721
2722
2724 {
2726 return false;
2727 }
2728
2729
2730 return true;
2731 }
2732
2734 {
2735 super.AfterStoreLoad();
2736
2738 {
2740 }
2741 }
2742
2744 {
2745
2747
2748
2751
2752
2754 }
2755
2757 {
2758 super.OnCreatePhysics();
2761 }
2762
2764 {
2766 return;
2767
2768 super.EEHealthLevelChanged(oldLevel,newLevel,zone);
2769
2771 return;
2772
2774 string part_name = zone;
2776
2778 {
2779 ConstructionPart construction_part = construction.GetConstructionPart( part_name );
2780
2781 if ( construction_part && construction.IsPartConstructed( part_name ) )
2782 {
2784 construction.DestroyConnectedParts(part_name);
2785 }
2786
2787
2788 if ( part_name.
Contains(
"barbed") )
2789 {
2790 BarbedWire barbed_wire = BarbedWire.Cast( FindAttachmentBySlotName( zone ) );
2791 if (barbed_wire)
2792 barbed_wire.SetMountedState( false );
2793 }
2794 }
2795 }
2796
2798 {
2800 {
2802 }
2803
2804 super.EEOnAfterLoad();
2805 }
2806
2808 {
2809 super.EEInit();
2810
2811
2813
2814
2815 #ifdef DEVELOPER
2817 #endif
2818 }
2819
2821 {
2822 super.EEItemAttached( item, slot_name );
2823
2827 }
2828
2830 {
2831 super.EEItemDetached( item, slot_name );
2832
2835 }
2836
2837 protected void OnSetSlotLock(
int slotId,
bool locked,
bool was_locked )
2838 {
2841
2844 }
2845
2846
2848 {
2849 return true;
2850 }
2851
2852
2853
2855 {
2857
2858
2859 if (construtionPart.
IsBase())
2860 {
2862
2863
2865 }
2866
2867
2869
2870
2872
2873
2875
2877
2879
2880
2882
2883
2885 }
2886
2888 {
2889
2891 }
2892
2893
2895 {
2898
2899
2901
2902
2904
2905
2907
2908
2910
2912
2913
2915
2916
2918
2919
2920 if (construtionPart.
IsBase())
2921 {
2922
2924 }
2925 }
2926
2928 {
2929
2931 }
2932
2933
2934 void OnPartDestroyedServer(Man player,
string part_name,
int action_id,
bool destroyed_by_connected_part =
false)
2935 {
2938
2939
2941
2942
2944
2945
2947
2948
2950
2952
2953
2955
2956
2958
2959
2960 if (construtionPart.
IsBase())
2961 {
2962
2964 }
2965 }
2966
2968 {
2969
2971 }
2972
2975 {
2976 bool process = false;
2977
2978
2982
2983 if (process)
2984 {
2985 if (!MemoryPointExists(part.
m_PartName +
"_min") || !MemoryPointExists(part.
m_PartName +
"_max"))
2986 {
2988 return;
2989 }
2990
2992 mins = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_min"));
2993 maxs = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_max"));
2994
2995
2997 minTmp[0] =
Math.
Min(mins[0],maxs[0]);
2998 maxTmp[0] =
Math.
Max(mins[0],maxs[0]);
2999 minTmp[1] =
Math.
Min(mins[1],maxs[1]);
3000 maxTmp[1] =
Math.
Max(mins[1],maxs[1]);
3001 minTmp[2] =
Math.
Min(mins[2],maxs[2]);
3002 maxTmp[2] =
Math.
Max(mins[2],maxs[2]);
3003 mins = minTmp;
3004 maxs = maxTmp;
3005
3006 maxs[1] = maxs[1] + 0.35;
3007
3009 }
3010 }
3011
3014 {
3017
3018
3020 foreach (
EntityAI entity : foundEntities)
3021 {
3024 }
3025 }
3026
3027
3029 {
3031
3035 }
3036
3038 {
3040
3042 {
3044 }
3045 else
3046 {
3048 }
3049
3051 }
3052
3054 {
3056
3058 foreach (
string slotName : attachmentSlots)
3059 {
3061 }
3062
3063
3066 else
3068
3070 }
3071
3073 {
3074 string slotNameMounted = slot_name + "_Mounted";
3075 EntityAI attachment = FindAttachmentBySlotName(slot_name);
3076
3077 if (attachment)
3078 {
3079 BarbedWire barbedWire = BarbedWire.Cast(attachment);
3080 if (barbedWire && barbedWire.IsMounted())
3082 else
3084
3085 if (is_locked)
3086 {
3087 SetAnimationPhase(slotNameMounted, 0);
3088 SetAnimationPhase(slot_name, 1);
3089 }
3090 else
3091 {
3092 SetAnimationPhase(slotNameMounted, 1);
3093 SetAnimationPhase(slot_name, 0);
3094 }
3095 }
3096 else
3097 {
3098 SetAnimationPhase(slotNameMounted, 1);
3099 SetAnimationPhase(slot_name, 1);
3100
3102 }
3103 }
3104
3105
3107 {
3110
3113
3116
3117 foreach (
string slotName : attachmentSlots)
3118 {
3120 }
3121
3122
3124 {
3127
3129 }
3130 else
3131 {
3134
3136 }
3137
3140 }
3141
3143 {
3144
3146 return;
3147
3148 string slot_name_mounted = slot_name + "_Mounted";
3149 EntityAI attachment = FindAttachmentBySlotName( slot_name );
3150
3151
3153 RemoveProxyPhysics( slot_name_mounted );
3154 RemoveProxyPhysics( slot_name );
3155
3156 if ( attachment )
3157 {
3159 if ( is_locked )
3160 {
3162 AddProxyPhysics( slot_name_mounted );
3163 }
3164 else
3165 {
3167 AddProxyPhysics( slot_name );
3168 }
3169 }
3170 }
3171
3173 {
3174 SetAffectPathgraph( true, false );
3176 }
3177
3179 {
3180 return true;
3181 }
3182
3184 {
3185 return true;
3186 }
3187
3189 {
3190 if ( attachment )
3191 {
3193 attachment.GetInventory().GetCurrentInventoryLocation( inventory_location );
3194
3195 return GetInventory().GetSlotLock( inventory_location.
GetSlot() );
3196 }
3197
3198 return false;
3199 }
3200
3202 {
3204 }
3205
3206
3208 {
3209 string config_path = "CfgVehicles" + " " + entity.GetType() + " " + "attachments";
3210 if (
GetGame().ConfigIsExisting( config_path ) )
3211 {
3213 }
3214 }
3215
3217 {
3218 return true;
3219 }
3220
3222 {
3223 return true;
3224 }
3225
3227 {
3228 return true;
3229 }
3230
3231
3233 {
3235 {
3237 }
3238
3240 }
3241
3243 {
3245 }
3246
3247
3248
3250 {
3251 return super.CanReceiveAttachment(attachment, slotId);
3252 }
3253
3255 {
3256 int attachment_count = GetInventory().AttachmentCount();
3257 if ( attachment_count > 0 )
3258 {
3259 if (
HasBase() && attachment_count == 1 )
3260 {
3261 return false;
3262 }
3263
3264 return true;
3265 }
3266
3267 return false;
3268 }
3269
3271 {
3272 return true;
3273 }
3274
3276 {
3277 return false;
3278 }
3279
3280
3282 {
3283 return false;
3284 }
3285
3287 {
3288 return false;
3289 }
3290
3291
3293 {
3294 return false;
3295 }
3296
3297
3298
3300 {
3301 return true;
3302 }
3303
3305 {
3306 return true;
3307 }
3308
3311 {
3312 return false;
3313 }
3314
3315
3317 {
3318 return true;
3319 }
3320
3321
3323 {
3324 return false;
3325 }
3326
3327
3329 {
3330 return true;
3331 }
3332
3333
3335 {
3336 if (
HasBase() || GetInventory().AttachmentCount() > 0 )
3337 {
3338 return false;
3339 }
3340
3341 return true;
3342 }
3343
3345 {
3348
3349 return item;
3350 }
3351
3352
3354 {
3356 {
3357
3359
3360
3363
3365 if ( MemoryPointExists( slot_name + "_min" ) )
3366 {
3367 min_max[0] = GetMemoryPointPos( slot_name + "_min" );
3368 }
3369 if ( MemoryPointExists( slot_name + "_max" ) )
3370 {
3371 min_max[1] = GetMemoryPointPos( slot_name + "_max" );
3372 }
3373
3374
3377
3378
3381 center = ModelToWorld( center );
3382
3383
3386
3387 areaDamage.SetExtents( extents[0], extents[1] );
3388 areaDamage.SetAreaPosition( center );
3389 areaDamage.SetAreaOrientation( orientation );
3392 areaDamage.SetHitZones( { "Torso","LeftHand","LeftLeg","LeftFoot","RightHand","RightLeg","RightFoot" } );
3393 areaDamage.SetAmmoName( "BarbedWireHit" );
3394 areaDamage.Spawn();
3395
3397 }
3398 }
3399
3401 {
3402 if ( angle_deg != 0 )
3403 {
3404
3405 orientation[0] = orientation[0] - angle_deg;
3406
3407
3409 if ( MemoryPointExists( "rotate_axis" ) )
3410 {
3411 rotate_axis = ModelToWorld( GetMemoryPointPos( "rotate_axis" ) );
3412 }
3413 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];
3414 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];
3415 center[0] = r_center_x;
3416 center[2] = r_center_z;
3417 }
3418 }
3419
3421 {
3423 {
3426 {
3427 if (areaDamage)
3428 {
3429 areaDamage.Destroy();
3430 }
3431
3433 }
3434 }
3435 }
3436
3438 {
3439 return true;
3440 }
3441
3442
3443
3444
3446 {
3448 }
3449
3451 {
3453 }
3454
3456 {
3458 }
3459
3461 {
3463
3464 switch ( material_type )
3465 {
3471 }
3472
3473 return "";
3474 }
3475
3477 {
3479
3480 switch ( material_type )
3481 {
3487 }
3488
3489 return "";
3490 }
3491
3492
3494 {
3496 {
3497
3499 {
3500 SetHealth(slot_name,"Health",item.GetHealth());
3501 }
3502 }
3503 }
3504
3506 {
3507 return 111;
3508 }
3509
3511 {
3512 super.SetActions();
3513
3517 }
3518
3519
3520
3521
3523 {
3524 }
3525
3528 {
3529 return null;
3530 }
3531
3533 {
3535 }
3536
3538 {
3541
3542 Man p;
3543
3544 #ifdef SERVER
3547 if (players.Count())
3548 p = players[0];
3549 #else
3551 #endif
3552
3554 {
3555 bool excluded = false;
3557 if (excludes)
3558 {
3559 foreach (string exclude : excludes)
3560 {
3562 {
3563 excluded = true;
3564 break;
3565 }
3566 }
3567 }
3568
3569 if (!excluded)
3570 {
3572 }
3573 }
3574
3576 }
3577}
3578
3580{
3581#ifdef BSB_DEBUG
3583#else
3584
3585#endif
3586}
3588{
3589#ifdef BSB_DEBUG_SPAM
3591#else
3592
3593#endif
3594}
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.