2251{
2253
2255
2257
2259
2265
2266
2267
2273
2279
2281
2285
2286
2288 {
2290
2291
2292 RegisterNetSyncVariableInt( "m_SyncParts01" );
2293 RegisterNetSyncVariableInt( "m_SyncParts02" );
2294 RegisterNetSyncVariableInt( "m_SyncParts03" );
2295 RegisterNetSyncVariableInt( "m_InteractedPartId" );
2296 RegisterNetSyncVariableInt( "m_PerformedActionId" );
2297 RegisterNetSyncVariableBool( "m_HasBase" );
2298
2299
2301
2302 if (ConfigIsExisting("hybridAttachments"))
2303 {
2306 }
2307 if (ConfigIsExisting("mountables"))
2308 {
2311 }
2312
2314 }
2315
2317 {
2318 super.EEDelete(parent);
2319
2321 {
2322 areaDamage.Destroy();
2323 }
2324
2325 }
2326
2328 {
2329 return "disableBaseDamage";
2330 }
2331
2333 {
2334 return true;
2335 }
2336
2338 {
2339 return EInventoryIconVisibility.HIDE_VICINITY;
2340 }
2341
2343 {
2344 super.InitItemSounds();
2345
2349
2354 }
2355
2357 {
2358 return "putDown_FenceKit_SoundSet";
2359 }
2360
2362 {
2363 return "Shelter_Site_Build_Loop_SoundSet";
2364 }
2365
2366
2368 {
2370 {
2371 SetSynchDirty();
2372 }
2373 }
2374
2376 {
2378 super.OnVariablesSynchronized();
2379
2381 }
2382
2384 {
2385
2387
2388
2390
2391
2393 }
2394
2395
2397 {
2398
2399 int offset;
2400 int mask;
2401
2402 if ( part_id >= 1 && part_id <= 31 )
2403 {
2404 offset = part_id - 1;
2405 mask = 1 << offset;
2406
2408 }
2409 else if ( part_id >= 32 && part_id <= 62 )
2410 {
2411 offset = ( part_id % 32 );
2412 mask = 1 << offset;
2413
2415 }
2416 else if ( part_id >= 63 && part_id <= 93 )
2417 {
2418 offset = ( part_id % 63 );
2419 mask = 1 << offset;
2420
2422 }
2423 }
2424
2426 {
2427
2428 int offset;
2429 int mask;
2430
2431 if ( part_id >= 1 && part_id <= 31 )
2432 {
2433 offset = part_id - 1;
2434 mask = 1 << offset;
2435
2437 }
2438 else if ( part_id >= 32 && part_id <= 62 )
2439 {
2440 offset = ( part_id % 32 );
2441 mask = 1 << offset;
2442
2444 }
2445 else if ( part_id >= 63 && part_id <= 93 )
2446 {
2447 offset = ( part_id % 63 );
2448 mask = 1 << offset;
2449
2451 }
2452 }
2453
2455 {
2456
2457 int offset;
2458 int mask;
2459
2460 if ( part_id >= 1 && part_id <= 31 )
2461 {
2462 offset = part_id - 1;
2463 mask = 1 << offset;
2464
2466 {
2467 return true;
2468 }
2469 }
2470 else if ( part_id >= 32 && part_id <= 62 )
2471 {
2472 offset = ( part_id % 32 );
2473 mask = 1 << offset;
2474
2476 {
2477 return true;
2478 }
2479 }
2480 else if ( part_id >= 63 && part_id <= 93 )
2481 {
2482 offset = ( part_id % 63 );
2483 mask = 1 << offset;
2484
2486 {
2487 return true;
2488 }
2489 }
2490
2491 return false;
2492 }
2493
2495 {
2498 }
2499
2501 {
2502
2505 }
2506
2508 {
2510 {
2513
2514 switch( build_action_id )
2515 {
2519 }
2520 }
2521 }
2522
2523
2525 {
2527 bool is_base = part.
IsBase();
2530 if ( is_part_built_sync )
2531 {
2533 {
2537
2538 if (is_base)
2539 {
2542 }
2543 }
2544 }
2545 else
2546 {
2548 {
2552
2553 if (is_base)
2554 {
2557 }
2558 }
2559 }
2560
2561
2563 }
2564
2565
2567 {
2570
2571 for ( int i = 0; i < construction_parts.Count(); ++i )
2572 {
2573 string key = construction_parts.GetKey( i );
2576 }
2577
2578
2580 }
2581
2583 {
2586
2587 for ( int i = 0; i < construction_parts.Count(); ++i )
2588 {
2589 string key = construction_parts.GetKey( i );
2591
2592 if ( value.
GetId() ==
id )
2593 {
2594 return value;
2595 }
2596 }
2597
2598 return NULL;
2599 }
2600
2601
2602
2604 {
2606 }
2607
2609 {
2611 }
2612
2614 {
2615 return true;
2616 }
2617
2619 {
2620 return false;
2621 }
2622
2623
2625 {
2628 {
2630 }
2631
2632 return construction_kit;
2633 }
2634
2636 {
2639 {
2641 }
2642 }
2643
2645 {
2647 }
2648
2650 {
2651 return "";
2652 }
2653
2655 {
2658 }
2659
2660
2662 {
2665 }
2666
2667
2669 {
2670 super.OnStoreSave( ctx );
2671
2672
2676
2678 }
2679
2681 {
2682 if ( !super.OnStoreLoad( ctx, version ) )
2683 return false;
2684
2685
2686
2688 {
2690 return false;
2691 }
2693 {
2695 return false;
2696 }
2698 {
2700 return false;
2701 }
2702
2703
2705 {
2707 return false;
2708 }
2709
2710
2711 return true;
2712 }
2713
2715 {
2716 super.AfterStoreLoad();
2717
2719 {
2721 }
2722 }
2723
2725 {
2726
2728
2729
2732
2733
2735 }
2736
2738 {
2739 super.OnCreatePhysics();
2742 }
2743
2745 {
2747 return;
2748
2749 super.EEHealthLevelChanged(oldLevel,newLevel,zone);
2750
2752 return;
2753
2755 string part_name = zone;
2757
2759 {
2760 ConstructionPart construction_part = construction.GetConstructionPart( part_name );
2761
2762 if ( construction_part && construction.IsPartConstructed( part_name ) )
2763 {
2765 construction.DestroyConnectedParts(part_name);
2766 }
2767
2768
2769 if ( part_name.
Contains(
"barbed") )
2770 {
2771 BarbedWire barbed_wire = BarbedWire.Cast( FindAttachmentBySlotName( zone ) );
2772 if (barbed_wire)
2773 barbed_wire.SetMountedState( false );
2774 }
2775 }
2776 }
2777
2779 {
2781 {
2783 }
2784
2785 super.EEOnAfterLoad();
2786 }
2787
2789 {
2790 super.EEInit();
2791
2792
2794
2795
2796 #ifdef DEVELOPER
2798 #endif
2799 }
2800
2802 {
2803 super.EEItemAttached( item, slot_name );
2804
2808 }
2809
2811 {
2812 super.EEItemDetached( item, slot_name );
2813
2816 }
2817
2818 protected void OnSetSlotLock(
int slotId,
bool locked,
bool was_locked )
2819 {
2822
2825 }
2826
2827
2829 {
2830 return true;
2831 }
2832
2833
2834
2836 {
2838
2839
2840 if (construtionPart.
IsBase())
2841 {
2843
2844
2846 }
2847
2848
2850
2851
2853
2854
2856
2858
2860
2861
2863
2864
2866 }
2867
2869 {
2870
2872 }
2873
2874
2876 {
2879
2880
2882
2883
2885
2886
2888
2889
2891
2893
2894
2896
2897
2899
2900
2901 if (construtionPart.
IsBase())
2902 {
2903
2905 }
2906 }
2907
2909 {
2910
2912 }
2913
2914
2915 void OnPartDestroyedServer(Man player,
string part_name,
int action_id,
bool destroyed_by_connected_part =
false)
2916 {
2919
2920
2922
2923
2925
2926
2928
2929
2931
2933
2934
2936
2937
2939
2940
2941 if (construtionPart.
IsBase())
2942 {
2943
2945 }
2946 }
2947
2949 {
2950
2952 }
2953
2956 {
2957 bool process = false;
2958
2959
2963
2964 if (process)
2965 {
2966 if (!MemoryPointExists(part.
m_PartName +
"_min") || !MemoryPointExists(part.
m_PartName +
"_max"))
2967 {
2969 return;
2970 }
2971
2973 mins = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_min"));
2974 maxs = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_max"));
2975
2976
2978 minTmp[0] =
Math.
Min(mins[0],maxs[0]);
2979 maxTmp[0] =
Math.
Max(mins[0],maxs[0]);
2980 minTmp[1] =
Math.
Min(mins[1],maxs[1]);
2981 maxTmp[1] =
Math.
Max(mins[1],maxs[1]);
2982 minTmp[2] =
Math.
Min(mins[2],maxs[2]);
2983 maxTmp[2] =
Math.
Max(mins[2],maxs[2]);
2984 mins = minTmp;
2985 maxs = maxTmp;
2986
2987 maxs[1] = maxs[1] + 0.35;
2988
2990 }
2991 }
2992
2995 {
2998
2999
3001 foreach (
EntityAI entity : foundEntities)
3002 {
3005 }
3006 }
3007
3008
3010 {
3012
3016 }
3017
3019 {
3021
3023 {
3025 }
3026 else
3027 {
3029 }
3030
3032 }
3033
3035 {
3037
3039 foreach (
string slotName : attachmentSlots)
3040 {
3042 }
3043
3044
3047 else
3049
3051 }
3052
3054 {
3055 string slotNameMounted = slot_name + "_Mounted";
3056 EntityAI attachment = FindAttachmentBySlotName(slot_name);
3057
3058 if (attachment)
3059 {
3060 BarbedWire barbedWire = BarbedWire.Cast(attachment);
3061 if (barbedWire && barbedWire.IsMounted())
3063 else
3065
3066 if (is_locked)
3067 {
3068 SetAnimationPhase(slotNameMounted, 0);
3069 SetAnimationPhase(slot_name, 1);
3070 }
3071 else
3072 {
3073 SetAnimationPhase(slotNameMounted, 1);
3074 SetAnimationPhase(slot_name, 0);
3075 }
3076 }
3077 else
3078 {
3079 SetAnimationPhase(slotNameMounted, 1);
3080 SetAnimationPhase(slot_name, 1);
3081
3083 }
3084 }
3085
3086
3088 {
3091
3094
3097
3098 foreach (
string slotName : attachmentSlots)
3099 {
3101 }
3102
3103
3105 {
3108
3110 }
3111 else
3112 {
3115
3117 }
3118
3121 }
3122
3124 {
3125
3127 return;
3128
3129 string slot_name_mounted = slot_name + "_Mounted";
3130 EntityAI attachment = FindAttachmentBySlotName( slot_name );
3131
3132
3134 RemoveProxyPhysics( slot_name_mounted );
3135 RemoveProxyPhysics( slot_name );
3136
3137 if ( attachment )
3138 {
3140 if ( is_locked )
3141 {
3143 AddProxyPhysics( slot_name_mounted );
3144 }
3145 else
3146 {
3148 AddProxyPhysics( slot_name );
3149 }
3150 }
3151 }
3152
3154 {
3155 SetAffectPathgraph( true, false );
3157 }
3158
3160 {
3161 return true;
3162 }
3163
3165 {
3166 return true;
3167 }
3168
3170 {
3171 if ( attachment )
3172 {
3174 attachment.GetInventory().GetCurrentInventoryLocation( inventory_location );
3175
3176 return GetInventory().GetSlotLock( inventory_location.
GetSlot() );
3177 }
3178
3179 return false;
3180 }
3181
3183 {
3185 }
3186
3187
3189 {
3190 string config_path = "CfgVehicles" + " " + entity.GetType() + " " + "attachments";
3191 if (
GetGame().ConfigIsExisting( config_path ) )
3192 {
3194 }
3195 }
3196
3198 {
3199 return true;
3200 }
3201
3203 {
3204 return true;
3205 }
3206
3208 {
3209 return true;
3210 }
3211
3212
3214 {
3216 {
3218 }
3219
3221 }
3222
3224 {
3226 }
3227
3228
3229
3231 {
3232 return super.CanReceiveAttachment(attachment, slotId);
3233 }
3234
3236 {
3237 int attachment_count = GetInventory().AttachmentCount();
3238 if ( attachment_count > 0 )
3239 {
3240 if (
HasBase() && attachment_count == 1 )
3241 {
3242 return false;
3243 }
3244
3245 return true;
3246 }
3247
3248 return false;
3249 }
3250
3252 {
3253 return true;
3254 }
3255
3257 {
3258 return false;
3259 }
3260
3261
3263 {
3264 return false;
3265 }
3266
3268 {
3269 return false;
3270 }
3271
3272
3274 {
3275 return false;
3276 }
3277
3278
3279
3281 {
3282 return true;
3283 }
3284
3286 {
3287 return true;
3288 }
3289
3292 {
3293 return false;
3294 }
3295
3296
3298 {
3299 return true;
3300 }
3301
3302
3304 {
3305 return false;
3306 }
3307
3308
3310 {
3311 return true;
3312 }
3313
3314
3316 {
3317 if (
HasBase() || GetInventory().AttachmentCount() > 0 )
3318 {
3319 return false;
3320 }
3321
3322 return true;
3323 }
3324
3326 {
3329
3330 return item;
3331 }
3332
3333
3335 {
3337 {
3338
3340
3341
3344
3346 if ( MemoryPointExists( slot_name + "_min" ) )
3347 {
3348 min_max[0] = GetMemoryPointPos( slot_name + "_min" );
3349 }
3350 if ( MemoryPointExists( slot_name + "_max" ) )
3351 {
3352 min_max[1] = GetMemoryPointPos( slot_name + "_max" );
3353 }
3354
3355
3358
3359
3362 center = ModelToWorld( center );
3363
3364
3367
3368 areaDamage.SetExtents( extents[0], extents[1] );
3369 areaDamage.SetAreaPosition( center );
3370 areaDamage.SetAreaOrientation( orientation );
3373 areaDamage.SetHitZones( { "Torso","LeftHand","LeftLeg","LeftFoot","RightHand","RightLeg","RightFoot" } );
3374 areaDamage.SetAmmoName( "BarbedWireHit" );
3375 areaDamage.Spawn();
3376
3378 }
3379 }
3380
3382 {
3383 if ( angle_deg != 0 )
3384 {
3385
3386 orientation[0] = orientation[0] - angle_deg;
3387
3388
3390 if ( MemoryPointExists( "rotate_axis" ) )
3391 {
3392 rotate_axis = ModelToWorld( GetMemoryPointPos( "rotate_axis" ) );
3393 }
3394 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];
3395 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];
3396 center[0] = r_center_x;
3397 center[2] = r_center_z;
3398 }
3399 }
3400
3402 {
3404 {
3407 {
3408 if (areaDamage)
3409 {
3410 areaDamage.Destroy();
3411 }
3412
3414 }
3415 }
3416 }
3417
3419 {
3420 return true;
3421 }
3422
3423
3424
3425
3427 {
3429 }
3430
3432 {
3434 }
3435
3437 {
3439 }
3440
3442 {
3444
3445 switch ( material_type )
3446 {
3452 }
3453
3454 return "";
3455 }
3456
3458 {
3460
3461 switch ( material_type )
3462 {
3468 }
3469
3470 return "";
3471 }
3472
3473
3475 {
3477 {
3478
3480 {
3481 SetHealth(slot_name,"Health",item.GetHealth());
3482 }
3483 }
3484 }
3485
3487 {
3488 return 111;
3489 }
3490
3492 {
3493 super.SetActions();
3494
3498 }
3499
3500
3501
3502
3504 {
3505 }
3506
3509 {
3510 return null;
3511 }
3512
3514 {
3516 }
3517
3519 {
3522
3523 Man p;
3524
3525 #ifdef SERVER
3528 if (players.Count())
3529 p = players[0];
3530 #else
3532 #endif
3533
3535 {
3536 bool excluded = false;
3538 if (excludes)
3539 {
3540 foreach (string exclude : excludes)
3541 {
3543 {
3544 excluded = true;
3545 break;
3546 }
3547 }
3548 }
3549
3550 if (!excluded)
3551 {
3553 }
3554 }
3555
3557 }
3558}
3559
3561{
3562#ifdef BSB_DEBUG
3564#else
3565
3566#endif
3567}
3569{
3570#ifdef BSB_DEBUG_SPAM
3572#else
3573
3574#endif
3575}
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.