2186{
2188
2190
2192
2194
2200
2201
2202
2208
2214
2216
2220
2221
2223 {
2225
2226
2227 RegisterNetSyncVariableInt( "m_SyncParts01" );
2228 RegisterNetSyncVariableInt( "m_SyncParts02" );
2229 RegisterNetSyncVariableInt( "m_SyncParts03" );
2230 RegisterNetSyncVariableInt( "m_InteractedPartId" );
2231 RegisterNetSyncVariableInt( "m_PerformedActionId" );
2232 RegisterNetSyncVariableBool( "m_HasBase" );
2233
2234
2236
2237 if (ConfigIsExisting("hybridAttachments"))
2238 {
2241 }
2242 if (ConfigIsExisting("mountables"))
2243 {
2246 }
2247
2249 }
2250
2252 {
2253 super.EEDelete(parent);
2254
2256 {
2257 areaDamage.Destroy();
2258 }
2259
2260 }
2261
2263 {
2264 return "disableBaseDamage";
2265 }
2266
2268 {
2269 return true;
2270 }
2271
2273 {
2274 return EInventoryIconVisibility.HIDE_VICINITY;
2275 }
2276
2278 {
2279 super.InitItemSounds();
2280
2284
2289 }
2290
2292 {
2293 return "putDown_FenceKit_SoundSet";
2294 }
2295
2297 {
2298 return "Shelter_Site_Build_Loop_SoundSet";
2299 }
2300
2301
2303 {
2305 {
2306 SetSynchDirty();
2307 }
2308 }
2309
2311 {
2313 super.OnVariablesSynchronized();
2314
2316 }
2317
2319 {
2320
2322
2323
2325
2326
2328 }
2329
2330
2332 {
2333
2334 int offset;
2335 int mask;
2336
2337 if ( part_id >= 1 && part_id <= 31 )
2338 {
2339 offset = part_id - 1;
2340 mask = 1 << offset;
2341
2343 }
2344 else if ( part_id >= 32 && part_id <= 62 )
2345 {
2346 offset = ( part_id % 32 );
2347 mask = 1 << offset;
2348
2350 }
2351 else if ( part_id >= 63 && part_id <= 93 )
2352 {
2353 offset = ( part_id % 63 );
2354 mask = 1 << offset;
2355
2357 }
2358 }
2359
2361 {
2362
2363 int offset;
2364 int mask;
2365
2366 if ( part_id >= 1 && part_id <= 31 )
2367 {
2368 offset = part_id - 1;
2369 mask = 1 << offset;
2370
2372 }
2373 else if ( part_id >= 32 && part_id <= 62 )
2374 {
2375 offset = ( part_id % 32 );
2376 mask = 1 << offset;
2377
2379 }
2380 else if ( part_id >= 63 && part_id <= 93 )
2381 {
2382 offset = ( part_id % 63 );
2383 mask = 1 << offset;
2384
2386 }
2387 }
2388
2390 {
2391
2392 int offset;
2393 int mask;
2394
2395 if ( part_id >= 1 && part_id <= 31 )
2396 {
2397 offset = part_id - 1;
2398 mask = 1 << offset;
2399
2401 {
2402 return true;
2403 }
2404 }
2405 else if ( part_id >= 32 && part_id <= 62 )
2406 {
2407 offset = ( part_id % 32 );
2408 mask = 1 << offset;
2409
2411 {
2412 return true;
2413 }
2414 }
2415 else if ( part_id >= 63 && part_id <= 93 )
2416 {
2417 offset = ( part_id % 63 );
2418 mask = 1 << offset;
2419
2421 {
2422 return true;
2423 }
2424 }
2425
2426 return false;
2427 }
2428
2430 {
2433 }
2434
2436 {
2437
2440 }
2441
2443 {
2445 {
2448
2449 switch( build_action_id )
2450 {
2454 }
2455 }
2456 }
2457
2458
2460 {
2462 bool is_base = part.
IsBase();
2465 if ( is_part_built_sync )
2466 {
2468 {
2472
2473 if (is_base)
2474 {
2477 }
2478 }
2479 }
2480 else
2481 {
2483 {
2487
2488 if (is_base)
2489 {
2492 }
2493 }
2494 }
2495
2496
2498 }
2499
2500
2502 {
2505
2506 for ( int i = 0; i < construction_parts.Count(); ++i )
2507 {
2508 string key = construction_parts.GetKey( i );
2511 }
2512
2513
2515 }
2516
2518 {
2521
2522 for ( int i = 0; i < construction_parts.Count(); ++i )
2523 {
2524 string key = construction_parts.GetKey( i );
2526
2527 if ( value.
GetId() ==
id )
2528 {
2529 return value;
2530 }
2531 }
2532
2533 return NULL;
2534 }
2535
2536
2537
2539 {
2541 }
2542
2544 {
2546 }
2547
2549 {
2550 return true;
2551 }
2552
2554 {
2555 return false;
2556 }
2557
2558
2560 {
2563 {
2565 }
2566
2567 return construction_kit;
2568 }
2569
2571 {
2574 {
2576 }
2577 }
2578
2580 {
2582 }
2583
2585 {
2586 return "";
2587 }
2588
2590 {
2593 }
2594
2595
2597 {
2600 }
2601
2602
2604 {
2605 super.OnStoreSave( ctx );
2606
2607
2611
2613 }
2614
2616 {
2617 if ( !super.OnStoreLoad( ctx, version ) )
2618 return false;
2619
2620
2621
2623 {
2625 return false;
2626 }
2628 {
2630 return false;
2631 }
2633 {
2635 return false;
2636 }
2637
2638
2640 {
2642 return false;
2643 }
2644
2645
2646 return true;
2647 }
2648
2650 {
2651 super.AfterStoreLoad();
2652
2654 {
2656 }
2657 }
2658
2660 {
2661
2663
2664
2667
2668
2670 }
2671
2673 {
2674 super.OnCreatePhysics();
2677 }
2678
2680 {
2682 return;
2683
2684 super.EEHealthLevelChanged(oldLevel,newLevel,zone);
2685
2687 return;
2688
2690 string part_name = zone;
2692
2694 {
2695 ConstructionPart construction_part = construction.GetConstructionPart( part_name );
2696
2697 if ( construction_part && construction.IsPartConstructed( part_name ) )
2698 {
2700 construction.DestroyConnectedParts(part_name);
2701 }
2702
2703
2704 if ( part_name.
Contains(
"barbed") )
2705 {
2706 BarbedWire barbed_wire = BarbedWire.Cast( FindAttachmentBySlotName( zone ) );
2707 if (barbed_wire)
2708 barbed_wire.SetMountedState( false );
2709 }
2710 }
2711 }
2712
2714 {
2716 {
2718 }
2719
2720 super.EEOnAfterLoad();
2721 }
2722
2724 {
2725 super.EEInit();
2726
2727
2729
2730
2731 #ifdef DEVELOPER
2733 #endif
2734 }
2735
2737 {
2738 super.EEItemAttached( item, slot_name );
2739
2743 }
2744
2746 {
2747 super.EEItemDetached( item, slot_name );
2748
2751 }
2752
2753 protected void OnSetSlotLock(
int slotId,
bool locked,
bool was_locked )
2754 {
2757
2760 }
2761
2762
2764 {
2765 return true;
2766 }
2767
2768
2769
2771 {
2773
2774
2775 if (construtionPart.
IsBase())
2776 {
2778
2779
2781 }
2782
2783
2785
2786
2788
2789
2791
2793
2795
2796
2798
2799
2801 }
2802
2804 {
2805
2807 }
2808
2809
2811 {
2814
2815
2817
2818
2820
2821
2823
2824
2826
2828
2829
2831
2832
2834
2835
2836 if (construtionPart.
IsBase())
2837 {
2838
2840 }
2841 }
2842
2844 {
2845
2847 }
2848
2849
2850 void OnPartDestroyedServer(Man player,
string part_name,
int action_id,
bool destroyed_by_connected_part =
false)
2851 {
2854
2855
2857
2858
2860
2861
2863
2864
2866
2868
2869
2871
2872
2874
2875
2876 if (construtionPart.
IsBase())
2877 {
2878
2880 }
2881 }
2882
2884 {
2885
2887 }
2888
2891 {
2892 bool process = false;
2893
2894
2898
2899 if (process)
2900 {
2901 if (!MemoryPointExists(part.
m_PartName +
"_min") || !MemoryPointExists(part.
m_PartName +
"_max"))
2902 {
2904 return;
2905 }
2906
2908 mins = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_min"));
2909 maxs = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_max"));
2910
2911
2913 minTmp[0] =
Math.
Min(mins[0],maxs[0]);
2914 maxTmp[0] =
Math.
Max(mins[0],maxs[0]);
2915 minTmp[1] =
Math.
Min(mins[1],maxs[1]);
2916 maxTmp[1] =
Math.
Max(mins[1],maxs[1]);
2917 minTmp[2] =
Math.
Min(mins[2],maxs[2]);
2918 maxTmp[2] =
Math.
Max(mins[2],maxs[2]);
2919 mins = minTmp;
2920 maxs = maxTmp;
2921
2922 maxs[1] = maxs[1] + 0.35;
2923
2925 }
2926 }
2927
2930 {
2933
2934
2936 foreach (
EntityAI entity : foundEntities)
2937 {
2940 }
2941 }
2942
2943
2945 {
2947
2951 }
2952
2954 {
2956
2958 {
2960 }
2961 else
2962 {
2964 }
2965
2967 }
2968
2970 {
2972
2974 foreach (
string slotName : attachmentSlots)
2975 {
2977 }
2978
2979
2982 else
2984
2986 }
2987
2989 {
2990 string slotNameMounted = slot_name + "_Mounted";
2991 EntityAI attachment = FindAttachmentBySlotName(slot_name);
2992
2993 if (attachment)
2994 {
2995 BarbedWire barbedWire = BarbedWire.Cast(attachment);
2996 if (barbedWire && barbedWire.IsMounted())
2998 else
3000
3001 if (is_locked)
3002 {
3003 SetAnimationPhase(slotNameMounted, 0);
3004 SetAnimationPhase(slot_name, 1);
3005 }
3006 else
3007 {
3008 SetAnimationPhase(slotNameMounted, 1);
3009 SetAnimationPhase(slot_name, 0);
3010 }
3011 }
3012 else
3013 {
3014 SetAnimationPhase(slotNameMounted, 1);
3015 SetAnimationPhase(slot_name, 1);
3016
3018 }
3019 }
3020
3021
3023 {
3026
3029
3032
3033 foreach (
string slotName : attachmentSlots)
3034 {
3036 }
3037
3038
3040 {
3043
3045 }
3046 else
3047 {
3050
3052 }
3053
3056 }
3057
3059 {
3060
3062 return;
3063
3064 string slot_name_mounted = slot_name + "_Mounted";
3065 EntityAI attachment = FindAttachmentBySlotName( slot_name );
3066
3067
3069 RemoveProxyPhysics( slot_name_mounted );
3070 RemoveProxyPhysics( slot_name );
3071
3072 if ( attachment )
3073 {
3075 if ( is_locked )
3076 {
3078 AddProxyPhysics( slot_name_mounted );
3079 }
3080 else
3081 {
3083 AddProxyPhysics( slot_name );
3084 }
3085 }
3086 }
3087
3089 {
3090 SetAffectPathgraph( true, false );
3092 }
3093
3095 {
3096 return true;
3097 }
3098
3100 {
3101 return true;
3102 }
3103
3105 {
3106 if ( attachment )
3107 {
3109 attachment.GetInventory().GetCurrentInventoryLocation( inventory_location );
3110
3111 return GetInventory().GetSlotLock( inventory_location.
GetSlot() );
3112 }
3113
3114 return false;
3115 }
3116
3118 {
3120 }
3121
3122
3124 {
3125 string config_path = "CfgVehicles" + " " + entity.GetType() + " " + "attachments";
3126 if (
GetGame().ConfigIsExisting( config_path ) )
3127 {
3129 }
3130 }
3131
3133 {
3134 return true;
3135 }
3136
3138 {
3139 return true;
3140 }
3141
3143 {
3144 return true;
3145 }
3146
3147
3149 {
3151 {
3153 }
3154
3156 }
3157
3159 {
3161 }
3162
3163
3164
3166 {
3167 return super.CanReceiveAttachment(attachment, slotId);
3168 }
3169
3171 {
3172 int attachment_count = GetInventory().AttachmentCount();
3173 if ( attachment_count > 0 )
3174 {
3175 if (
HasBase() && attachment_count == 1 )
3176 {
3177 return false;
3178 }
3179
3180 return true;
3181 }
3182
3183 return false;
3184 }
3185
3187 {
3188 return true;
3189 }
3190
3192 {
3193 return false;
3194 }
3195
3196
3198 {
3199 return false;
3200 }
3201
3203 {
3204 return false;
3205 }
3206
3207
3209 {
3210 return false;
3211 }
3212
3213
3214
3216 {
3217 return true;
3218 }
3219
3221 {
3222 return true;
3223 }
3224
3227 {
3228 return false;
3229 }
3230
3231
3233 {
3234 return true;
3235 }
3236
3237
3239 {
3240 return false;
3241 }
3242
3243
3245 {
3246 return true;
3247 }
3248
3249
3251 {
3252 if (
HasBase() || GetInventory().AttachmentCount() > 0 )
3253 {
3254 return false;
3255 }
3256
3257 return true;
3258 }
3259
3261 {
3264
3265 return item;
3266 }
3267
3268
3270 {
3272 {
3273
3275
3276
3279
3281 if ( MemoryPointExists( slot_name + "_min" ) )
3282 {
3283 min_max[0] = GetMemoryPointPos( slot_name + "_min" );
3284 }
3285 if ( MemoryPointExists( slot_name + "_max" ) )
3286 {
3287 min_max[1] = GetMemoryPointPos( slot_name + "_max" );
3288 }
3289
3290
3293
3294
3297 center = ModelToWorld( center );
3298
3299
3302
3303 areaDamage.SetExtents( extents[0], extents[1] );
3304 areaDamage.SetAreaPosition( center );
3305 areaDamage.SetAreaOrientation( orientation );
3308 areaDamage.SetHitZones( { "Torso","LeftHand","LeftLeg","LeftFoot","RightHand","RightLeg","RightFoot" } );
3309 areaDamage.SetAmmoName( "BarbedWireHit" );
3310 areaDamage.Spawn();
3311
3313 }
3314 }
3315
3317 {
3318 if ( angle_deg != 0 )
3319 {
3320
3321 orientation[0] = orientation[0] - angle_deg;
3322
3323
3325 if ( MemoryPointExists( "rotate_axis" ) )
3326 {
3327 rotate_axis = ModelToWorld( GetMemoryPointPos( "rotate_axis" ) );
3328 }
3329 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];
3330 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];
3331 center[0] = r_center_x;
3332 center[2] = r_center_z;
3333 }
3334 }
3335
3337 {
3339 {
3342 {
3343 if (areaDamage)
3344 {
3345 areaDamage.Destroy();
3346 }
3347
3349 }
3350 }
3351 }
3352
3354 {
3355 return true;
3356 }
3357
3358
3359
3360
3362 {
3364 }
3365
3367 {
3369 }
3370
3372 {
3374 }
3375
3377 {
3379
3380 switch ( material_type )
3381 {
3387 }
3388
3389 return "";
3390 }
3391
3393 {
3395
3396 switch ( material_type )
3397 {
3403 }
3404
3405 return "";
3406 }
3407
3408
3410 {
3412 {
3413
3415 {
3416 SetHealth(slot_name,"Health",item.GetHealth());
3417 }
3418 }
3419 }
3420
3422 {
3423 return 111;
3424 }
3425
3427 {
3428 super.SetActions();
3429
3433 }
3434
3435
3436
3437
3439 {
3440 }
3441
3444 {
3445 return null;
3446 }
3447
3449 {
3451 }
3452
3454 {
3457
3458 Man p;
3459
3460 #ifdef SERVER
3463 if (players.Count())
3464 p = players[0];
3465 #else
3467 #endif
3468
3470 {
3471 bool excluded = false;
3473 if (excludes)
3474 {
3475 foreach (string exclude : excludes)
3476 {
3478 {
3479 excluded = true;
3480 break;
3481 }
3482 }
3483 }
3484
3485 if (!excluded)
3486 {
3488 }
3489 }
3490
3492 }
3493}
3494
3496{
3497#ifdef BSB_DEBUG
3499#else
3500
3501#endif
3502}
3504{
3505#ifdef BSB_DEBUG_SPAM
3507#else
3508
3509#endif
3510}
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.