2222{
2224
2226
2228
2230
2236
2237
2238
2244
2250
2252
2256
2257
2259 {
2261
2262
2263 RegisterNetSyncVariableInt( "m_SyncParts01" );
2264 RegisterNetSyncVariableInt( "m_SyncParts02" );
2265 RegisterNetSyncVariableInt( "m_SyncParts03" );
2266 RegisterNetSyncVariableInt( "m_InteractedPartId" );
2267 RegisterNetSyncVariableInt( "m_PerformedActionId" );
2268 RegisterNetSyncVariableBool( "m_HasBase" );
2269
2270
2272
2273 if (ConfigIsExisting("hybridAttachments"))
2274 {
2277 }
2278 if (ConfigIsExisting("mountables"))
2279 {
2282 }
2283
2285 }
2286
2288 {
2289 super.EEDelete(parent);
2290
2292 {
2293 areaDamage.Destroy();
2294 }
2295
2296 }
2297
2299 {
2300 return "disableBaseDamage";
2301 }
2302
2304 {
2305 return true;
2306 }
2307
2309 {
2310 return EInventoryIconVisibility.HIDE_VICINITY;
2311 }
2312
2314 {
2315 super.InitItemSounds();
2316
2320
2325 }
2326
2328 {
2329 return "putDown_FenceKit_SoundSet";
2330 }
2331
2333 {
2334 return "Shelter_Site_Build_Loop_SoundSet";
2335 }
2336
2337
2339 {
2341 {
2342 SetSynchDirty();
2343 }
2344 }
2345
2347 {
2349 super.OnVariablesSynchronized();
2350
2352 }
2353
2355 {
2356
2358
2359
2361
2362
2364 }
2365
2366
2368 {
2369
2370 int offset;
2371 int mask;
2372
2373 if ( part_id >= 1 && part_id <= 31 )
2374 {
2375 offset = part_id - 1;
2376 mask = 1 << offset;
2377
2379 }
2380 else if ( part_id >= 32 && part_id <= 62 )
2381 {
2382 offset = ( part_id % 32 );
2383 mask = 1 << offset;
2384
2386 }
2387 else if ( part_id >= 63 && part_id <= 93 )
2388 {
2389 offset = ( part_id % 63 );
2390 mask = 1 << offset;
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 return true;
2439 }
2440 }
2441 else if ( part_id >= 32 && part_id <= 62 )
2442 {
2443 offset = ( part_id % 32 );
2444 mask = 1 << offset;
2445
2447 {
2448 return true;
2449 }
2450 }
2451 else if ( part_id >= 63 && part_id <= 93 )
2452 {
2453 offset = ( part_id % 63 );
2454 mask = 1 << offset;
2455
2457 {
2458 return true;
2459 }
2460 }
2461
2462 return false;
2463 }
2464
2466 {
2469 }
2470
2472 {
2473
2476 }
2477
2479 {
2481 {
2484
2485 switch( build_action_id )
2486 {
2490 }
2491 }
2492 }
2493
2494
2496 {
2498 bool is_base = part.
IsBase();
2501 if ( is_part_built_sync )
2502 {
2504 {
2508
2509 if (is_base)
2510 {
2513 }
2514 }
2515 }
2516 else
2517 {
2519 {
2523
2524 if (is_base)
2525 {
2528 }
2529 }
2530 }
2531
2532
2534 }
2535
2536
2538 {
2541
2542 for ( int i = 0; i < construction_parts.Count(); ++i )
2543 {
2544 string key = construction_parts.GetKey( i );
2547 }
2548
2549
2551 }
2552
2554 {
2557
2558 for ( int i = 0; i < construction_parts.Count(); ++i )
2559 {
2560 string key = construction_parts.GetKey( i );
2562
2563 if ( value.
GetId() ==
id )
2564 {
2565 return value;
2566 }
2567 }
2568
2569 return NULL;
2570 }
2571
2572
2573
2575 {
2577 }
2578
2580 {
2582 }
2583
2585 {
2586 return true;
2587 }
2588
2590 {
2591 return false;
2592 }
2593
2594
2596 {
2599 {
2601 }
2602
2603 return construction_kit;
2604 }
2605
2607 {
2610 {
2612 }
2613 }
2614
2616 {
2618 }
2619
2621 {
2622 return "";
2623 }
2624
2626 {
2629 }
2630
2631
2633 {
2636 }
2637
2638
2640 {
2641 super.OnStoreSave( ctx );
2642
2643
2647
2649 }
2650
2652 {
2653 if ( !super.OnStoreLoad( ctx, version ) )
2654 return false;
2655
2656
2657
2659 {
2661 return false;
2662 }
2664 {
2666 return false;
2667 }
2669 {
2671 return false;
2672 }
2673
2674
2676 {
2678 return false;
2679 }
2680
2681
2682 return true;
2683 }
2684
2686 {
2687 super.AfterStoreLoad();
2688
2690 {
2692 }
2693 }
2694
2696 {
2697
2699
2700
2703
2704
2706 }
2707
2709 {
2710 super.OnCreatePhysics();
2713 }
2714
2716 {
2718 return;
2719
2720 super.EEHealthLevelChanged(oldLevel,newLevel,zone);
2721
2723 return;
2724
2726 string part_name = zone;
2728
2730 {
2731 ConstructionPart construction_part = construction.GetConstructionPart( part_name );
2732
2733 if ( construction_part && construction.IsPartConstructed( part_name ) )
2734 {
2736 construction.DestroyConnectedParts(part_name);
2737 }
2738
2739
2740 if ( part_name.
Contains(
"barbed") )
2741 {
2742 BarbedWire barbed_wire = BarbedWire.Cast( FindAttachmentBySlotName( zone ) );
2743 if (barbed_wire)
2744 barbed_wire.SetMountedState( false );
2745 }
2746 }
2747 }
2748
2750 {
2752 {
2754 }
2755
2756 super.EEOnAfterLoad();
2757 }
2758
2760 {
2761 super.EEInit();
2762
2763
2765
2766
2767 #ifdef DEVELOPER
2769 #endif
2770 }
2771
2773 {
2774 super.EEItemAttached( item, slot_name );
2775
2779 }
2780
2782 {
2783 super.EEItemDetached( item, slot_name );
2784
2787 }
2788
2789 protected void OnSetSlotLock(
int slotId,
bool locked,
bool was_locked )
2790 {
2793
2796 }
2797
2798
2800 {
2801 return true;
2802 }
2803
2804
2805
2807 {
2809
2810
2811 if (construtionPart.
IsBase())
2812 {
2814
2815
2817 }
2818
2819
2821
2822
2824
2825
2827
2829
2831
2832
2834
2835
2837 }
2838
2840 {
2841
2843 }
2844
2845
2847 {
2850
2851
2853
2854
2856
2857
2859
2860
2862
2864
2865
2867
2868
2870
2871
2872 if (construtionPart.
IsBase())
2873 {
2874
2876 }
2877 }
2878
2880 {
2881
2883 }
2884
2885
2886 void OnPartDestroyedServer(Man player,
string part_name,
int action_id,
bool destroyed_by_connected_part =
false)
2887 {
2890
2891
2893
2894
2896
2897
2899
2900
2902
2904
2905
2907
2908
2910
2911
2912 if (construtionPart.
IsBase())
2913 {
2914
2916 }
2917 }
2918
2920 {
2921
2923 }
2924
2927 {
2928 bool process = false;
2929
2930
2934
2935 if (process)
2936 {
2937 if (!MemoryPointExists(part.
m_PartName +
"_min") || !MemoryPointExists(part.
m_PartName +
"_max"))
2938 {
2940 return;
2941 }
2942
2944 mins = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_min"));
2945 maxs = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_max"));
2946
2947
2949 minTmp[0] =
Math.
Min(mins[0],maxs[0]);
2950 maxTmp[0] =
Math.
Max(mins[0],maxs[0]);
2951 minTmp[1] =
Math.
Min(mins[1],maxs[1]);
2952 maxTmp[1] =
Math.
Max(mins[1],maxs[1]);
2953 minTmp[2] =
Math.
Min(mins[2],maxs[2]);
2954 maxTmp[2] =
Math.
Max(mins[2],maxs[2]);
2955 mins = minTmp;
2956 maxs = maxTmp;
2957
2958 maxs[1] = maxs[1] + 0.35;
2959
2961 }
2962 }
2963
2966 {
2969
2970
2972 foreach (
EntityAI entity : foundEntities)
2973 {
2976 }
2977 }
2978
2979
2981 {
2983
2987 }
2988
2990 {
2992
2994 {
2996 }
2997 else
2998 {
3000 }
3001
3003 }
3004
3006 {
3008
3010 foreach (
string slotName : attachmentSlots)
3011 {
3013 }
3014
3015
3018 else
3020
3022 }
3023
3025 {
3026 string slotNameMounted = slot_name + "_Mounted";
3027 EntityAI attachment = FindAttachmentBySlotName(slot_name);
3028
3029 if (attachment)
3030 {
3031 BarbedWire barbedWire = BarbedWire.Cast(attachment);
3032 if (barbedWire && barbedWire.IsMounted())
3034 else
3036
3037 if (is_locked)
3038 {
3039 SetAnimationPhase(slotNameMounted, 0);
3040 SetAnimationPhase(slot_name, 1);
3041 }
3042 else
3043 {
3044 SetAnimationPhase(slotNameMounted, 1);
3045 SetAnimationPhase(slot_name, 0);
3046 }
3047 }
3048 else
3049 {
3050 SetAnimationPhase(slotNameMounted, 1);
3051 SetAnimationPhase(slot_name, 1);
3052
3054 }
3055 }
3056
3057
3059 {
3062
3065
3068
3069 foreach (
string slotName : attachmentSlots)
3070 {
3072 }
3073
3074
3076 {
3079
3081 }
3082 else
3083 {
3086
3088 }
3089
3092 }
3093
3095 {
3096
3098 return;
3099
3100 string slot_name_mounted = slot_name + "_Mounted";
3101 EntityAI attachment = FindAttachmentBySlotName( slot_name );
3102
3103
3105 RemoveProxyPhysics( slot_name_mounted );
3106 RemoveProxyPhysics( slot_name );
3107
3108 if ( attachment )
3109 {
3111 if ( is_locked )
3112 {
3114 AddProxyPhysics( slot_name_mounted );
3115 }
3116 else
3117 {
3119 AddProxyPhysics( slot_name );
3120 }
3121 }
3122 }
3123
3125 {
3126 SetAffectPathgraph( true, false );
3128 }
3129
3131 {
3132 return true;
3133 }
3134
3136 {
3137 return true;
3138 }
3139
3141 {
3142 if ( attachment )
3143 {
3145 attachment.GetInventory().GetCurrentInventoryLocation( inventory_location );
3146
3147 return GetInventory().GetSlotLock( inventory_location.
GetSlot() );
3148 }
3149
3150 return false;
3151 }
3152
3154 {
3156 }
3157
3158
3160 {
3161 string config_path = "CfgVehicles" + " " + entity.GetType() + " " + "attachments";
3162 if (
GetGame().ConfigIsExisting( config_path ) )
3163 {
3165 }
3166 }
3167
3169 {
3170 return true;
3171 }
3172
3174 {
3175 return true;
3176 }
3177
3179 {
3180 return true;
3181 }
3182
3183
3185 {
3187 {
3189 }
3190
3192 }
3193
3195 {
3197 }
3198
3199
3200
3202 {
3203 return super.CanReceiveAttachment(attachment, slotId);
3204 }
3205
3207 {
3208 int attachment_count = GetInventory().AttachmentCount();
3209 if ( attachment_count > 0 )
3210 {
3211 if (
HasBase() && attachment_count == 1 )
3212 {
3213 return false;
3214 }
3215
3216 return true;
3217 }
3218
3219 return false;
3220 }
3221
3223 {
3224 return true;
3225 }
3226
3228 {
3229 return false;
3230 }
3231
3232
3234 {
3235 return false;
3236 }
3237
3239 {
3240 return false;
3241 }
3242
3243
3245 {
3246 return false;
3247 }
3248
3249
3250
3252 {
3253 return true;
3254 }
3255
3257 {
3258 return true;
3259 }
3260
3263 {
3264 return false;
3265 }
3266
3267
3269 {
3270 return true;
3271 }
3272
3273
3275 {
3276 return false;
3277 }
3278
3279
3281 {
3282 return true;
3283 }
3284
3285
3287 {
3288 if (
HasBase() || GetInventory().AttachmentCount() > 0 )
3289 {
3290 return false;
3291 }
3292
3293 return true;
3294 }
3295
3297 {
3300
3301 return item;
3302 }
3303
3304
3306 {
3308 {
3309
3311
3312
3315
3317 if ( MemoryPointExists( slot_name + "_min" ) )
3318 {
3319 min_max[0] = GetMemoryPointPos( slot_name + "_min" );
3320 }
3321 if ( MemoryPointExists( slot_name + "_max" ) )
3322 {
3323 min_max[1] = GetMemoryPointPos( slot_name + "_max" );
3324 }
3325
3326
3329
3330
3333 center = ModelToWorld( center );
3334
3335
3338
3339 areaDamage.SetExtents( extents[0], extents[1] );
3340 areaDamage.SetAreaPosition( center );
3341 areaDamage.SetAreaOrientation( orientation );
3344 areaDamage.SetHitZones( { "Torso","LeftHand","LeftLeg","LeftFoot","RightHand","RightLeg","RightFoot" } );
3345 areaDamage.SetAmmoName( "BarbedWireHit" );
3346 areaDamage.Spawn();
3347
3349 }
3350 }
3351
3353 {
3354 if ( angle_deg != 0 )
3355 {
3356
3357 orientation[0] = orientation[0] - angle_deg;
3358
3359
3361 if ( MemoryPointExists( "rotate_axis" ) )
3362 {
3363 rotate_axis = ModelToWorld( GetMemoryPointPos( "rotate_axis" ) );
3364 }
3365 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];
3366 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];
3367 center[0] = r_center_x;
3368 center[2] = r_center_z;
3369 }
3370 }
3371
3373 {
3375 {
3378 {
3379 if (areaDamage)
3380 {
3381 areaDamage.Destroy();
3382 }
3383
3385 }
3386 }
3387 }
3388
3390 {
3391 return true;
3392 }
3393
3394
3395
3396
3398 {
3400 }
3401
3403 {
3405 }
3406
3408 {
3410 }
3411
3413 {
3415
3416 switch ( material_type )
3417 {
3423 }
3424
3425 return "";
3426 }
3427
3429 {
3431
3432 switch ( material_type )
3433 {
3439 }
3440
3441 return "";
3442 }
3443
3444
3446 {
3448 {
3449
3451 {
3452 SetHealth(slot_name,"Health",item.GetHealth());
3453 }
3454 }
3455 }
3456
3458 {
3459 return 111;
3460 }
3461
3463 {
3464 super.SetActions();
3465
3469 }
3470
3471
3472
3473
3475 {
3476 }
3477
3480 {
3481 return null;
3482 }
3483
3485 {
3487 }
3488
3490 {
3493
3494 Man p;
3495
3496 #ifdef SERVER
3499 if (players.Count())
3500 p = players[0];
3501 #else
3503 #endif
3504
3506 {
3507 bool excluded = false;
3509 if (excludes)
3510 {
3511 foreach (string exclude : excludes)
3512 {
3514 {
3515 excluded = true;
3516 break;
3517 }
3518 }
3519 }
3520
3521 if (!excluded)
3522 {
3524 }
3525 }
3526
3528 }
3529}
3530
3532{
3533#ifdef BSB_DEBUG
3535#else
3536
3537#endif
3538}
3540{
3541#ifdef BSB_DEBUG_SPAM
3543#else
3544
3545#endif
3546}
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.