2265{
2267
2269
2271
2273
2279
2280
2281
2287
2293
2295
2299
2300
2302 {
2304
2305
2306 RegisterNetSyncVariableInt( "m_SyncParts01" );
2307 RegisterNetSyncVariableInt( "m_SyncParts02" );
2308 RegisterNetSyncVariableInt( "m_SyncParts03" );
2309 RegisterNetSyncVariableInt( "m_InteractedPartId" );
2310 RegisterNetSyncVariableInt( "m_PerformedActionId" );
2311 RegisterNetSyncVariableBool( "m_HasBase" );
2312
2313
2315
2316 if (ConfigIsExisting("hybridAttachments"))
2317 {
2320 }
2321 if (ConfigIsExisting("mountables"))
2322 {
2325 }
2326
2328 }
2329
2331 {
2332 super.EEDelete(parent);
2333
2335 {
2336 areaDamage.Destroy();
2337 }
2338
2339 }
2340
2342 {
2343 return "disableBaseDamage";
2344 }
2345
2347 {
2348 return true;
2349 }
2350
2352 {
2353 return EInventoryIconVisibility.HIDE_VICINITY;
2354 }
2355
2357 {
2358 super.InitItemSounds();
2359
2363
2368 }
2369
2371 {
2372 return "putDown_FenceKit_SoundSet";
2373 }
2374
2376 {
2377 return "Shelter_Site_Build_Loop_SoundSet";
2378 }
2379
2380
2382 {
2384 {
2385 SetSynchDirty();
2386 }
2387 }
2388
2390 {
2392 super.OnVariablesSynchronized();
2393
2395 }
2396
2398 {
2399
2401
2402
2404
2405
2407 }
2408
2409
2411 {
2412
2413 int offset;
2414 int mask;
2415
2416 if ( part_id >= 1 && part_id <= 31 )
2417 {
2418 offset = part_id - 1;
2419 mask = 1 << offset;
2420
2422 }
2423 else if ( part_id >= 32 && part_id <= 62 )
2424 {
2425 offset = ( part_id % 32 );
2426 mask = 1 << offset;
2427
2429 }
2430 else if ( part_id >= 63 && part_id <= 93 )
2431 {
2432 offset = ( part_id % 63 );
2433 mask = 1 << offset;
2434
2436 }
2437 }
2438
2440 {
2441
2442 int offset;
2443 int mask;
2444
2445 if ( part_id >= 1 && part_id <= 31 )
2446 {
2447 offset = part_id - 1;
2448 mask = 1 << offset;
2449
2451 }
2452 else if ( part_id >= 32 && part_id <= 62 )
2453 {
2454 offset = ( part_id % 32 );
2455 mask = 1 << offset;
2456
2458 }
2459 else if ( part_id >= 63 && part_id <= 93 )
2460 {
2461 offset = ( part_id % 63 );
2462 mask = 1 << offset;
2463
2465 }
2466 }
2467
2469 {
2470
2471 int offset;
2472 int mask;
2473
2474 if ( part_id >= 1 && part_id <= 31 )
2475 {
2476 offset = part_id - 1;
2477 mask = 1 << offset;
2478
2480 {
2481 return true;
2482 }
2483 }
2484 else if ( part_id >= 32 && part_id <= 62 )
2485 {
2486 offset = ( part_id % 32 );
2487 mask = 1 << offset;
2488
2490 {
2491 return true;
2492 }
2493 }
2494 else if ( part_id >= 63 && part_id <= 93 )
2495 {
2496 offset = ( part_id % 63 );
2497 mask = 1 << offset;
2498
2500 {
2501 return true;
2502 }
2503 }
2504
2505 return false;
2506 }
2507
2509 {
2512 }
2513
2515 {
2516
2519 }
2520
2522 {
2524 {
2527
2528 switch( build_action_id )
2529 {
2533 }
2534 }
2535 }
2536
2537
2539 {
2541 bool is_base = part.
IsBase();
2544 if ( is_part_built_sync )
2545 {
2547 {
2551
2552 if (is_base)
2553 {
2556 }
2557 }
2558 }
2559 else
2560 {
2562 {
2566
2567 if (is_base)
2568 {
2571 }
2572 }
2573 }
2574
2575
2577 }
2578
2579
2581 {
2584
2585 for ( int i = 0; i < construction_parts.Count(); ++i )
2586 {
2587 string key = construction_parts.GetKey( i );
2590 }
2591
2592
2594 }
2595
2597 {
2600
2601 for ( int i = 0; i < construction_parts.Count(); ++i )
2602 {
2603 string key = construction_parts.GetKey( i );
2605
2606 if ( value.
GetId() ==
id )
2607 {
2608 return value;
2609 }
2610 }
2611
2612 return NULL;
2613 }
2614
2615
2616
2618 {
2620 }
2621
2623 {
2625 }
2626
2628 {
2629 return true;
2630 }
2631
2633 {
2634 return false;
2635 }
2636
2637
2639 {
2642 {
2644 }
2645
2646 return construction_kit;
2647 }
2648
2650 {
2653 {
2655 }
2656 }
2657
2659 {
2661 }
2662
2664 {
2665 return "";
2666 }
2667
2669 {
2672 }
2673
2674
2676 {
2679 }
2680
2681
2683 {
2684 super.OnStoreSave( ctx );
2685
2686
2690
2692 }
2693
2695 {
2696 if ( !super.OnStoreLoad( ctx, version ) )
2697 return false;
2698
2699
2700
2702 {
2704 return false;
2705 }
2707 {
2709 return false;
2710 }
2712 {
2714 return false;
2715 }
2716
2717
2719 {
2721 return false;
2722 }
2723
2724
2725 return true;
2726 }
2727
2729 {
2730 super.AfterStoreLoad();
2731
2733 {
2735 }
2736 }
2737
2739 {
2740
2742
2743
2746
2747
2749 }
2750
2752 {
2753 super.OnCreatePhysics();
2756 }
2757
2759 {
2761 return;
2762
2763 super.EEHealthLevelChanged(oldLevel,newLevel,zone);
2764
2766 return;
2767
2769 string part_name = zone;
2771
2773 {
2774 ConstructionPart construction_part = construction.GetConstructionPart( part_name );
2775
2776 if ( construction_part && construction.IsPartConstructed( part_name ) )
2777 {
2779 construction.DestroyConnectedParts(part_name);
2780 }
2781
2782
2783 if ( part_name.
Contains(
"barbed") )
2784 {
2785 BarbedWire barbed_wire = BarbedWire.Cast( FindAttachmentBySlotName( zone ) );
2786 if (barbed_wire)
2787 barbed_wire.SetMountedState( false );
2788 }
2789 }
2790 }
2791
2793 {
2795 {
2797 }
2798
2799 super.EEOnAfterLoad();
2800 }
2801
2803 {
2804 super.EEInit();
2805
2806
2808
2809
2810 #ifdef DEVELOPER
2812 #endif
2813 }
2814
2816 {
2817 super.EEItemAttached( item, slot_name );
2818
2822 }
2823
2825 {
2826 super.EEItemDetached( item, slot_name );
2827
2830 }
2831
2832 protected void OnSetSlotLock(
int slotId,
bool locked,
bool was_locked )
2833 {
2836
2839 }
2840
2841
2843 {
2844 return true;
2845 }
2846
2847
2848
2850 {
2852
2853
2854 if (construtionPart.
IsBase())
2855 {
2857
2858
2860 }
2861
2862
2864
2865
2867
2868
2870
2872
2874
2875
2877
2878
2880 }
2881
2883 {
2884
2886 }
2887
2888
2890 {
2893
2894
2896
2897
2899
2900
2902
2903
2905
2907
2908
2910
2911
2913
2914
2915 if (construtionPart.
IsBase())
2916 {
2917
2919 }
2920 }
2921
2923 {
2924
2926 }
2927
2928
2929 void OnPartDestroyedServer(Man player,
string part_name,
int action_id,
bool destroyed_by_connected_part =
false)
2930 {
2933
2934
2936
2937
2939
2940
2942
2943
2945
2947
2948
2950
2951
2953
2954
2955 if (construtionPart.
IsBase())
2956 {
2957
2959 }
2960 }
2961
2963 {
2964
2966 }
2967
2970 {
2971 bool process = false;
2972
2973
2977
2978 if (process)
2979 {
2980 if (!MemoryPointExists(part.
m_PartName +
"_min") || !MemoryPointExists(part.
m_PartName +
"_max"))
2981 {
2983 return;
2984 }
2985
2987 mins = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_min"));
2988 maxs = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_max"));
2989
2990
2992 minTmp[0] =
Math.
Min(mins[0],maxs[0]);
2993 maxTmp[0] =
Math.
Max(mins[0],maxs[0]);
2994 minTmp[1] =
Math.
Min(mins[1],maxs[1]);
2995 maxTmp[1] =
Math.
Max(mins[1],maxs[1]);
2996 minTmp[2] =
Math.
Min(mins[2],maxs[2]);
2997 maxTmp[2] =
Math.
Max(mins[2],maxs[2]);
2998 mins = minTmp;
2999 maxs = maxTmp;
3000
3001 maxs[1] = maxs[1] + 0.35;
3002
3004 }
3005 }
3006
3009 {
3012
3013
3015 foreach (
EntityAI entity : foundEntities)
3016 {
3019 }
3020 }
3021
3022
3024 {
3026
3030 }
3031
3033 {
3035
3037 {
3039 }
3040 else
3041 {
3043 }
3044
3046 }
3047
3049 {
3051
3053 foreach (
string slotName : attachmentSlots)
3054 {
3056 }
3057
3058
3061 else
3063
3065 }
3066
3068 {
3069 string slotNameMounted = slot_name + "_Mounted";
3070 EntityAI attachment = FindAttachmentBySlotName(slot_name);
3071
3072 if (attachment)
3073 {
3074 BarbedWire barbedWire = BarbedWire.Cast(attachment);
3075 if (barbedWire && barbedWire.IsMounted())
3077 else
3079
3080 if (is_locked)
3081 {
3082 SetAnimationPhase(slotNameMounted, 0);
3083 SetAnimationPhase(slot_name, 1);
3084 }
3085 else
3086 {
3087 SetAnimationPhase(slotNameMounted, 1);
3088 SetAnimationPhase(slot_name, 0);
3089 }
3090 }
3091 else
3092 {
3093 SetAnimationPhase(slotNameMounted, 1);
3094 SetAnimationPhase(slot_name, 1);
3095
3097 }
3098 }
3099
3100
3102 {
3105
3108
3111
3112 foreach (
string slotName : attachmentSlots)
3113 {
3115 }
3116
3117
3119 {
3122
3124 }
3125 else
3126 {
3129
3131 }
3132
3135 }
3136
3138 {
3139
3141 return;
3142
3143 string slot_name_mounted = slot_name + "_Mounted";
3144 EntityAI attachment = FindAttachmentBySlotName( slot_name );
3145
3146
3148 RemoveProxyPhysics( slot_name_mounted );
3149 RemoveProxyPhysics( slot_name );
3150
3151 if ( attachment )
3152 {
3154 if ( is_locked )
3155 {
3157 AddProxyPhysics( slot_name_mounted );
3158 }
3159 else
3160 {
3162 AddProxyPhysics( slot_name );
3163 }
3164 }
3165 }
3166
3168 {
3169 SetAffectPathgraph( true, false );
3171 }
3172
3174 {
3175 return true;
3176 }
3177
3179 {
3180 return true;
3181 }
3182
3184 {
3185 if ( attachment )
3186 {
3188 attachment.GetInventory().GetCurrentInventoryLocation( inventory_location );
3189
3190 return GetInventory().GetSlotLock( inventory_location.
GetSlot() );
3191 }
3192
3193 return false;
3194 }
3195
3197 {
3199 }
3200
3201
3203 {
3204 string config_path = "CfgVehicles" + " " + entity.GetType() + " " + "attachments";
3205 if (
GetGame().ConfigIsExisting( config_path ) )
3206 {
3208 }
3209 }
3210
3212 {
3213 return true;
3214 }
3215
3217 {
3218 return true;
3219 }
3220
3222 {
3223 return true;
3224 }
3225
3226
3228 {
3230 {
3232 }
3233
3235 }
3236
3238 {
3240 }
3241
3242
3243
3245 {
3246 return super.CanReceiveAttachment(attachment, slotId);
3247 }
3248
3250 {
3251 int attachment_count = GetInventory().AttachmentCount();
3252 if ( attachment_count > 0 )
3253 {
3254 if (
HasBase() && attachment_count == 1 )
3255 {
3256 return false;
3257 }
3258
3259 return true;
3260 }
3261
3262 return false;
3263 }
3264
3266 {
3267 return true;
3268 }
3269
3271 {
3272 return false;
3273 }
3274
3275
3277 {
3278 return false;
3279 }
3280
3282 {
3283 return false;
3284 }
3285
3286
3288 {
3289 return false;
3290 }
3291
3292
3293
3295 {
3296 return true;
3297 }
3298
3300 {
3301 return true;
3302 }
3303
3306 {
3307 return false;
3308 }
3309
3310
3312 {
3313 return true;
3314 }
3315
3316
3318 {
3319 return false;
3320 }
3321
3322
3324 {
3325 return true;
3326 }
3327
3328
3330 {
3331 if (
HasBase() || GetInventory().AttachmentCount() > 0 )
3332 {
3333 return false;
3334 }
3335
3336 return true;
3337 }
3338
3340 {
3343
3344 return item;
3345 }
3346
3347
3349 {
3351 {
3352
3354
3355
3358
3360 if ( MemoryPointExists( slot_name + "_min" ) )
3361 {
3362 min_max[0] = GetMemoryPointPos( slot_name + "_min" );
3363 }
3364 if ( MemoryPointExists( slot_name + "_max" ) )
3365 {
3366 min_max[1] = GetMemoryPointPos( slot_name + "_max" );
3367 }
3368
3369
3372
3373
3376 center = ModelToWorld( center );
3377
3378
3381
3382 areaDamage.SetExtents( extents[0], extents[1] );
3383 areaDamage.SetAreaPosition( center );
3384 areaDamage.SetAreaOrientation( orientation );
3387 areaDamage.SetHitZones( { "Torso","LeftHand","LeftLeg","LeftFoot","RightHand","RightLeg","RightFoot" } );
3388 areaDamage.SetAmmoName( "BarbedWireHit" );
3389 areaDamage.Spawn();
3390
3392 }
3393 }
3394
3396 {
3397 if ( angle_deg != 0 )
3398 {
3399
3400 orientation[0] = orientation[0] - angle_deg;
3401
3402
3404 if ( MemoryPointExists( "rotate_axis" ) )
3405 {
3406 rotate_axis = ModelToWorld( GetMemoryPointPos( "rotate_axis" ) );
3407 }
3408 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];
3409 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];
3410 center[0] = r_center_x;
3411 center[2] = r_center_z;
3412 }
3413 }
3414
3416 {
3418 {
3421 {
3422 if (areaDamage)
3423 {
3424 areaDamage.Destroy();
3425 }
3426
3428 }
3429 }
3430 }
3431
3433 {
3434 return true;
3435 }
3436
3437
3438
3439
3441 {
3443 }
3444
3446 {
3448 }
3449
3451 {
3453 }
3454
3456 {
3458
3459 switch ( material_type )
3460 {
3466 }
3467
3468 return "";
3469 }
3470
3472 {
3474
3475 switch ( material_type )
3476 {
3482 }
3483
3484 return "";
3485 }
3486
3487
3489 {
3491 {
3492
3494 {
3495 SetHealth(slot_name,"Health",item.GetHealth());
3496 }
3497 }
3498 }
3499
3501 {
3502 return 111;
3503 }
3504
3506 {
3507 super.SetActions();
3508
3512 }
3513
3514
3515
3516
3518 {
3519 }
3520
3523 {
3524 return null;
3525 }
3526
3528 {
3530 }
3531
3533 {
3536
3537 Man p;
3538
3539 #ifdef SERVER
3542 if (players.Count())
3543 p = players[0];
3544 #else
3546 #endif
3547
3549 {
3550 bool excluded = false;
3552 if (excludes)
3553 {
3554 foreach (string exclude : excludes)
3555 {
3557 {
3558 excluded = true;
3559 break;
3560 }
3561 }
3562 }
3563
3564 if (!excluded)
3565 {
3567 }
3568 }
3569
3571 }
3572}
3573
3575{
3576#ifdef BSB_DEBUG
3578#else
3579
3580#endif
3581}
3583{
3584#ifdef BSB_DEBUG_SPAM
3586#else
3587
3588#endif
3589}
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.