2216{
2218
2220
2222
2224
2230
2231
2232
2238
2244
2246
2250
2251
2253 {
2255
2256
2257 RegisterNetSyncVariableInt( "m_SyncParts01" );
2258 RegisterNetSyncVariableInt( "m_SyncParts02" );
2259 RegisterNetSyncVariableInt( "m_SyncParts03" );
2260 RegisterNetSyncVariableInt( "m_InteractedPartId" );
2261 RegisterNetSyncVariableInt( "m_PerformedActionId" );
2262 RegisterNetSyncVariableBool( "m_HasBase" );
2263
2264
2266
2267 if (ConfigIsExisting("hybridAttachments"))
2268 {
2271 }
2272 if (ConfigIsExisting("mountables"))
2273 {
2276 }
2277
2279 }
2280
2282 {
2283 super.EEDelete(parent);
2284
2286 {
2287 areaDamage.Destroy();
2288 }
2289
2290 }
2291
2293 {
2294 return "disableBaseDamage";
2295 }
2296
2298 {
2299 return true;
2300 }
2301
2303 {
2304 return EInventoryIconVisibility.HIDE_VICINITY;
2305 }
2306
2308 {
2309 super.InitItemSounds();
2310
2314
2319 }
2320
2322 {
2323 return "putDown_FenceKit_SoundSet";
2324 }
2325
2327 {
2328 return "Shelter_Site_Build_Loop_SoundSet";
2329 }
2330
2331
2333 {
2335 {
2336 SetSynchDirty();
2337 }
2338 }
2339
2341 {
2343 super.OnVariablesSynchronized();
2344
2346 }
2347
2349 {
2350
2352
2353
2355
2356
2358 }
2359
2360
2362 {
2363
2364 int offset;
2365 int mask;
2366
2367 if ( part_id >= 1 && part_id <= 31 )
2368 {
2369 offset = part_id - 1;
2370 mask = 1 << offset;
2371
2373 }
2374 else if ( part_id >= 32 && part_id <= 62 )
2375 {
2376 offset = ( part_id % 32 );
2377 mask = 1 << offset;
2378
2380 }
2381 else if ( part_id >= 63 && part_id <= 93 )
2382 {
2383 offset = ( part_id % 63 );
2384 mask = 1 << offset;
2385
2387 }
2388 }
2389
2391 {
2392
2393 int offset;
2394 int mask;
2395
2396 if ( part_id >= 1 && part_id <= 31 )
2397 {
2398 offset = part_id - 1;
2399 mask = 1 << offset;
2400
2402 }
2403 else if ( part_id >= 32 && part_id <= 62 )
2404 {
2405 offset = ( part_id % 32 );
2406 mask = 1 << offset;
2407
2409 }
2410 else if ( part_id >= 63 && part_id <= 93 )
2411 {
2412 offset = ( part_id % 63 );
2413 mask = 1 << offset;
2414
2416 }
2417 }
2418
2420 {
2421
2422 int offset;
2423 int mask;
2424
2425 if ( part_id >= 1 && part_id <= 31 )
2426 {
2427 offset = part_id - 1;
2428 mask = 1 << offset;
2429
2431 {
2432 return true;
2433 }
2434 }
2435 else if ( part_id >= 32 && part_id <= 62 )
2436 {
2437 offset = ( part_id % 32 );
2438 mask = 1 << offset;
2439
2441 {
2442 return true;
2443 }
2444 }
2445 else if ( part_id >= 63 && part_id <= 93 )
2446 {
2447 offset = ( part_id % 63 );
2448 mask = 1 << offset;
2449
2451 {
2452 return true;
2453 }
2454 }
2455
2456 return false;
2457 }
2458
2460 {
2463 }
2464
2466 {
2467
2470 }
2471
2473 {
2475 {
2478
2479 switch( build_action_id )
2480 {
2484 }
2485 }
2486 }
2487
2488
2490 {
2492 bool is_base = part.
IsBase();
2495 if ( is_part_built_sync )
2496 {
2498 {
2502
2503 if (is_base)
2504 {
2507 }
2508 }
2509 }
2510 else
2511 {
2513 {
2517
2518 if (is_base)
2519 {
2522 }
2523 }
2524 }
2525
2526
2528 }
2529
2530
2532 {
2535
2536 for ( int i = 0; i < construction_parts.Count(); ++i )
2537 {
2538 string key = construction_parts.GetKey( i );
2541 }
2542
2543
2545 }
2546
2548 {
2551
2552 for ( int i = 0; i < construction_parts.Count(); ++i )
2553 {
2554 string key = construction_parts.GetKey( i );
2556
2557 if ( value.
GetId() ==
id )
2558 {
2559 return value;
2560 }
2561 }
2562
2563 return NULL;
2564 }
2565
2566
2567
2569 {
2571 }
2572
2574 {
2576 }
2577
2579 {
2580 return true;
2581 }
2582
2584 {
2585 return false;
2586 }
2587
2588
2590 {
2593 {
2595 }
2596
2597 return construction_kit;
2598 }
2599
2601 {
2604 {
2606 }
2607 }
2608
2610 {
2612 }
2613
2615 {
2616 return "";
2617 }
2618
2620 {
2623 }
2624
2625
2627 {
2630 }
2631
2632
2634 {
2635 super.OnStoreSave( ctx );
2636
2637
2641
2643 }
2644
2646 {
2647 if ( !super.OnStoreLoad( ctx, version ) )
2648 return false;
2649
2650
2651
2653 {
2655 return false;
2656 }
2658 {
2660 return false;
2661 }
2663 {
2665 return false;
2666 }
2667
2668
2670 {
2672 return false;
2673 }
2674
2675
2676 return true;
2677 }
2678
2680 {
2681 super.AfterStoreLoad();
2682
2684 {
2686 }
2687 }
2688
2690 {
2691
2693
2694
2697
2698
2700 }
2701
2703 {
2704 super.OnCreatePhysics();
2707 }
2708
2710 {
2712 return;
2713
2714 super.EEHealthLevelChanged(oldLevel,newLevel,zone);
2715
2717 return;
2718
2720 string part_name = zone;
2722
2724 {
2725 ConstructionPart construction_part = construction.GetConstructionPart( part_name );
2726
2727 if ( construction_part && construction.IsPartConstructed( part_name ) )
2728 {
2730 construction.DestroyConnectedParts(part_name);
2731 }
2732
2733
2734 if ( part_name.
Contains(
"barbed") )
2735 {
2736 BarbedWire barbed_wire = BarbedWire.Cast( FindAttachmentBySlotName( zone ) );
2737 if (barbed_wire)
2738 barbed_wire.SetMountedState( false );
2739 }
2740 }
2741 }
2742
2744 {
2746 {
2748 }
2749
2750 super.EEOnAfterLoad();
2751 }
2752
2754 {
2755 super.EEInit();
2756
2757
2759
2760
2761 #ifdef DEVELOPER
2763 #endif
2764 }
2765
2767 {
2768 super.EEItemAttached( item, slot_name );
2769
2773 }
2774
2776 {
2777 super.EEItemDetached( item, slot_name );
2778
2781 }
2782
2783 protected void OnSetSlotLock(
int slotId,
bool locked,
bool was_locked )
2784 {
2787
2790 }
2791
2792
2794 {
2795 return true;
2796 }
2797
2798
2799
2801 {
2803
2804
2805 if (construtionPart.
IsBase())
2806 {
2808
2809
2811 }
2812
2813
2815
2816
2818
2819
2821
2823
2825
2826
2828
2829
2831 }
2832
2834 {
2835
2837 }
2838
2839
2841 {
2844
2845
2847
2848
2850
2851
2853
2854
2856
2858
2859
2861
2862
2864
2865
2866 if (construtionPart.
IsBase())
2867 {
2868
2870 }
2871 }
2872
2874 {
2875
2877 }
2878
2879
2880 void OnPartDestroyedServer(Man player,
string part_name,
int action_id,
bool destroyed_by_connected_part =
false)
2881 {
2884
2885
2887
2888
2890
2891
2893
2894
2896
2898
2899
2901
2902
2904
2905
2906 if (construtionPart.
IsBase())
2907 {
2908
2910 }
2911 }
2912
2914 {
2915
2917 }
2918
2921 {
2922 bool process = false;
2923
2924
2928
2929 if (process)
2930 {
2931 if (!MemoryPointExists(part.
m_PartName +
"_min") || !MemoryPointExists(part.
m_PartName +
"_max"))
2932 {
2934 return;
2935 }
2936
2938 mins = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_min"));
2939 maxs = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_max"));
2940
2941
2943 minTmp[0] =
Math.
Min(mins[0],maxs[0]);
2944 maxTmp[0] =
Math.
Max(mins[0],maxs[0]);
2945 minTmp[1] =
Math.
Min(mins[1],maxs[1]);
2946 maxTmp[1] =
Math.
Max(mins[1],maxs[1]);
2947 minTmp[2] =
Math.
Min(mins[2],maxs[2]);
2948 maxTmp[2] =
Math.
Max(mins[2],maxs[2]);
2949 mins = minTmp;
2950 maxs = maxTmp;
2951
2952 maxs[1] = maxs[1] + 0.35;
2953
2955 }
2956 }
2957
2960 {
2963
2964
2966 foreach (
EntityAI entity : foundEntities)
2967 {
2970 }
2971 }
2972
2973
2975 {
2977
2981 }
2982
2984 {
2986
2988 {
2990 }
2991 else
2992 {
2994 }
2995
2997 }
2998
3000 {
3002
3004 foreach (
string slotName : attachmentSlots)
3005 {
3007 }
3008
3009
3012 else
3014
3016 }
3017
3019 {
3020 string slotNameMounted = slot_name + "_Mounted";
3021 EntityAI attachment = FindAttachmentBySlotName(slot_name);
3022
3023 if (attachment)
3024 {
3025 BarbedWire barbedWire = BarbedWire.Cast(attachment);
3026 if (barbedWire && barbedWire.IsMounted())
3028 else
3030
3031 if (is_locked)
3032 {
3033 SetAnimationPhase(slotNameMounted, 0);
3034 SetAnimationPhase(slot_name, 1);
3035 }
3036 else
3037 {
3038 SetAnimationPhase(slotNameMounted, 1);
3039 SetAnimationPhase(slot_name, 0);
3040 }
3041 }
3042 else
3043 {
3044 SetAnimationPhase(slotNameMounted, 1);
3045 SetAnimationPhase(slot_name, 1);
3046
3048 }
3049 }
3050
3051
3053 {
3056
3059
3062
3063 foreach (
string slotName : attachmentSlots)
3064 {
3066 }
3067
3068
3070 {
3073
3075 }
3076 else
3077 {
3080
3082 }
3083
3086 }
3087
3089 {
3090
3092 return;
3093
3094 string slot_name_mounted = slot_name + "_Mounted";
3095 EntityAI attachment = FindAttachmentBySlotName( slot_name );
3096
3097
3099 RemoveProxyPhysics( slot_name_mounted );
3100 RemoveProxyPhysics( slot_name );
3101
3102 if ( attachment )
3103 {
3105 if ( is_locked )
3106 {
3108 AddProxyPhysics( slot_name_mounted );
3109 }
3110 else
3111 {
3113 AddProxyPhysics( slot_name );
3114 }
3115 }
3116 }
3117
3119 {
3120 SetAffectPathgraph( true, false );
3122 }
3123
3125 {
3126 return true;
3127 }
3128
3130 {
3131 return true;
3132 }
3133
3135 {
3136 if ( attachment )
3137 {
3139 attachment.GetInventory().GetCurrentInventoryLocation( inventory_location );
3140
3141 return GetInventory().GetSlotLock( inventory_location.
GetSlot() );
3142 }
3143
3144 return false;
3145 }
3146
3148 {
3150 }
3151
3152
3154 {
3155 string config_path = "CfgVehicles" + " " + entity.GetType() + " " + "attachments";
3156 if (
GetGame().ConfigIsExisting( config_path ) )
3157 {
3159 }
3160 }
3161
3163 {
3164 return true;
3165 }
3166
3168 {
3169 return true;
3170 }
3171
3173 {
3174 return true;
3175 }
3176
3177
3179 {
3181 {
3183 }
3184
3186 }
3187
3189 {
3191 }
3192
3193
3194
3196 {
3197 return super.CanReceiveAttachment(attachment, slotId);
3198 }
3199
3201 {
3202 int attachment_count = GetInventory().AttachmentCount();
3203 if ( attachment_count > 0 )
3204 {
3205 if (
HasBase() && attachment_count == 1 )
3206 {
3207 return false;
3208 }
3209
3210 return true;
3211 }
3212
3213 return false;
3214 }
3215
3217 {
3218 return true;
3219 }
3220
3222 {
3223 return false;
3224 }
3225
3226
3228 {
3229 return false;
3230 }
3231
3233 {
3234 return false;
3235 }
3236
3237
3239 {
3240 return false;
3241 }
3242
3243
3244
3246 {
3247 return true;
3248 }
3249
3251 {
3252 return true;
3253 }
3254
3257 {
3258 return false;
3259 }
3260
3261
3263 {
3264 return true;
3265 }
3266
3267
3269 {
3270 return false;
3271 }
3272
3273
3275 {
3276 return true;
3277 }
3278
3279
3281 {
3282 if (
HasBase() || GetInventory().AttachmentCount() > 0 )
3283 {
3284 return false;
3285 }
3286
3287 return true;
3288 }
3289
3291 {
3294
3295 return item;
3296 }
3297
3298
3300 {
3302 {
3303
3305
3306
3309
3311 if ( MemoryPointExists( slot_name + "_min" ) )
3312 {
3313 min_max[0] = GetMemoryPointPos( slot_name + "_min" );
3314 }
3315 if ( MemoryPointExists( slot_name + "_max" ) )
3316 {
3317 min_max[1] = GetMemoryPointPos( slot_name + "_max" );
3318 }
3319
3320
3323
3324
3327 center = ModelToWorld( center );
3328
3329
3332
3333 areaDamage.SetExtents( extents[0], extents[1] );
3334 areaDamage.SetAreaPosition( center );
3335 areaDamage.SetAreaOrientation( orientation );
3338 areaDamage.SetHitZones( { "Torso","LeftHand","LeftLeg","LeftFoot","RightHand","RightLeg","RightFoot" } );
3339 areaDamage.SetAmmoName( "BarbedWireHit" );
3340 areaDamage.Spawn();
3341
3343 }
3344 }
3345
3347 {
3348 if ( angle_deg != 0 )
3349 {
3350
3351 orientation[0] = orientation[0] - angle_deg;
3352
3353
3355 if ( MemoryPointExists( "rotate_axis" ) )
3356 {
3357 rotate_axis = ModelToWorld( GetMemoryPointPos( "rotate_axis" ) );
3358 }
3359 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];
3360 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];
3361 center[0] = r_center_x;
3362 center[2] = r_center_z;
3363 }
3364 }
3365
3367 {
3369 {
3372 {
3373 if (areaDamage)
3374 {
3375 areaDamage.Destroy();
3376 }
3377
3379 }
3380 }
3381 }
3382
3384 {
3385 return true;
3386 }
3387
3388
3389
3390
3392 {
3394 }
3395
3397 {
3399 }
3400
3402 {
3404 }
3405
3407 {
3409
3410 switch ( material_type )
3411 {
3417 }
3418
3419 return "";
3420 }
3421
3423 {
3425
3426 switch ( material_type )
3427 {
3433 }
3434
3435 return "";
3436 }
3437
3438
3440 {
3442 {
3443
3445 {
3446 SetHealth(slot_name,"Health",item.GetHealth());
3447 }
3448 }
3449 }
3450
3452 {
3453 return 111;
3454 }
3455
3457 {
3458 super.SetActions();
3459
3463 }
3464
3465
3466
3467
3469 {
3470 }
3471
3474 {
3475 return null;
3476 }
3477
3479 {
3481 }
3482
3484 {
3487
3488 Man p;
3489
3490 #ifdef SERVER
3493 if (players.Count())
3494 p = players[0];
3495 #else
3497 #endif
3498
3500 {
3501 bool excluded = false;
3503 if (excludes)
3504 {
3505 foreach (string exclude : excludes)
3506 {
3508 {
3509 excluded = true;
3510 break;
3511 }
3512 }
3513 }
3514
3515 if (!excluded)
3516 {
3518 }
3519 }
3520
3522 }
3523}
3524
3526{
3527#ifdef BSB_DEBUG
3529#else
3530
3531#endif
3532}
3534{
3535#ifdef BSB_DEBUG_SPAM
3537#else
3538
3539#endif
3540}
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.