2150{
2152
2154
2156
2158
2164
2165
2166
2172
2178
2180
2184
2185
2187 {
2189
2190
2191 RegisterNetSyncVariableInt( "m_SyncParts01" );
2192 RegisterNetSyncVariableInt( "m_SyncParts02" );
2193 RegisterNetSyncVariableInt( "m_SyncParts03" );
2194 RegisterNetSyncVariableInt( "m_InteractedPartId" );
2195 RegisterNetSyncVariableInt( "m_PerformedActionId" );
2196 RegisterNetSyncVariableBool( "m_HasBase" );
2197
2198
2200
2201 if (ConfigIsExisting("hybridAttachments"))
2202 {
2205 }
2206 if (ConfigIsExisting("mountables"))
2207 {
2210 }
2211
2213 }
2214
2216 {
2217 super.EEDelete(parent);
2218
2220 {
2221 areaDamage.Destroy();
2222 }
2223
2224 }
2225
2227 {
2228 return "disableBaseDamage";
2229 }
2230
2232 {
2233 return true;
2234 }
2235
2237 {
2238 return EInventoryIconVisibility.HIDE_VICINITY;
2239 }
2240
2242 {
2243 super.InitItemSounds();
2244
2248
2253 }
2254
2256 {
2257 return "putDown_FenceKit_SoundSet";
2258 }
2259
2261 {
2262 return "Shelter_Site_Build_Loop_SoundSet";
2263 }
2264
2265
2267 {
2269 {
2270 SetSynchDirty();
2271 }
2272 }
2273
2275 {
2277 super.OnVariablesSynchronized();
2278
2280 }
2281
2283 {
2284
2286
2287
2289
2290
2292 }
2293
2294
2296 {
2297
2298 int offset;
2299 int mask;
2300
2301 if ( part_id >= 1 && part_id <= 31 )
2302 {
2303 offset = part_id - 1;
2304 mask = 1 << offset;
2305
2307 }
2308 else if ( part_id >= 32 && part_id <= 62 )
2309 {
2310 offset = ( part_id % 32 );
2311 mask = 1 << offset;
2312
2314 }
2315 else if ( part_id >= 63 && part_id <= 93 )
2316 {
2317 offset = ( part_id % 63 );
2318 mask = 1 << offset;
2319
2321 }
2322 }
2323
2325 {
2326
2327 int offset;
2328 int mask;
2329
2330 if ( part_id >= 1 && part_id <= 31 )
2331 {
2332 offset = part_id - 1;
2333 mask = 1 << offset;
2334
2336 }
2337 else if ( part_id >= 32 && part_id <= 62 )
2338 {
2339 offset = ( part_id % 32 );
2340 mask = 1 << offset;
2341
2343 }
2344 else if ( part_id >= 63 && part_id <= 93 )
2345 {
2346 offset = ( part_id % 63 );
2347 mask = 1 << offset;
2348
2350 }
2351 }
2352
2354 {
2355
2356 int offset;
2357 int mask;
2358
2359 if ( part_id >= 1 && part_id <= 31 )
2360 {
2361 offset = part_id - 1;
2362 mask = 1 << offset;
2363
2365 {
2366 return true;
2367 }
2368 }
2369 else if ( part_id >= 32 && part_id <= 62 )
2370 {
2371 offset = ( part_id % 32 );
2372 mask = 1 << offset;
2373
2375 {
2376 return true;
2377 }
2378 }
2379 else if ( part_id >= 63 && part_id <= 93 )
2380 {
2381 offset = ( part_id % 63 );
2382 mask = 1 << offset;
2383
2385 {
2386 return true;
2387 }
2388 }
2389
2390 return false;
2391 }
2392
2394 {
2397 }
2398
2400 {
2401
2404 }
2405
2407 {
2409 {
2412
2413 switch( build_action_id )
2414 {
2418 }
2419 }
2420 }
2421
2422
2424 {
2426 bool is_base = part.
IsBase();
2429 if ( is_part_built_sync )
2430 {
2432 {
2436
2437 if (is_base)
2438 {
2441 }
2442 }
2443 }
2444 else
2445 {
2447 {
2451
2452 if (is_base)
2453 {
2456 }
2457 }
2458 }
2459
2460
2462 }
2463
2464
2466 {
2469
2470 for ( int i = 0; i < construction_parts.Count(); ++i )
2471 {
2472 string key = construction_parts.GetKey( i );
2475 }
2476
2477
2479 }
2480
2482 {
2485
2486 for ( int i = 0; i < construction_parts.Count(); ++i )
2487 {
2488 string key = construction_parts.GetKey( i );
2490
2491 if ( value.
GetId() ==
id )
2492 {
2493 return value;
2494 }
2495 }
2496
2497 return NULL;
2498 }
2499
2500
2501
2503 {
2505 }
2506
2508 {
2510 }
2511
2513 {
2514 return true;
2515 }
2516
2518 {
2519 return false;
2520 }
2521
2522
2524 {
2527 {
2529 }
2530
2531 return construction_kit;
2532 }
2533
2535 {
2538 {
2540 }
2541 }
2542
2544 {
2546 }
2547
2549 {
2550 return "";
2551 }
2552
2554 {
2557 }
2558
2559
2561 {
2564 }
2565
2566
2568 {
2569 super.OnStoreSave( ctx );
2570
2571
2575
2577 }
2578
2580 {
2581 if ( !super.OnStoreLoad( ctx, version ) )
2582 return false;
2583
2584
2585
2587 {
2589 return false;
2590 }
2592 {
2594 return false;
2595 }
2597 {
2599 return false;
2600 }
2601
2602
2604 {
2606 return false;
2607 }
2608
2609
2610 return true;
2611 }
2612
2614 {
2615 super.AfterStoreLoad();
2616
2618 {
2620 }
2621 }
2622
2624 {
2625
2627
2628
2631
2632
2634 }
2635
2637 {
2638 super.OnCreatePhysics();
2641 }
2642
2644 {
2646 return;
2647
2648 super.EEHealthLevelChanged(oldLevel,newLevel,zone);
2649
2651 return;
2652
2654 string part_name = zone;
2656
2658 {
2659 ConstructionPart construction_part = construction.GetConstructionPart( part_name );
2660
2661 if ( construction_part && construction.IsPartConstructed( part_name ) )
2662 {
2664 construction.DestroyConnectedParts(part_name);
2665 }
2666
2667
2668 if ( part_name.
Contains(
"barbed") )
2669 {
2670 BarbedWire barbed_wire = BarbedWire.Cast( FindAttachmentBySlotName( zone ) );
2671 if (barbed_wire)
2672 barbed_wire.SetMountedState( false );
2673 }
2674 }
2675 }
2676
2678 {
2680 {
2682 }
2683
2684 super.EEOnAfterLoad();
2685 }
2686
2688 {
2689 super.EEInit();
2690
2691
2693
2694
2695 #ifdef DEVELOPER
2697 #endif
2698 }
2699
2701 {
2702 super.EEItemAttached( item, slot_name );
2703
2707 }
2708
2710 {
2711 super.EEItemDetached( item, slot_name );
2712
2715 }
2716
2717 protected void OnSetSlotLock(
int slotId,
bool locked,
bool was_locked )
2718 {
2721
2724 }
2725
2726
2728 {
2729 return true;
2730 }
2731
2732
2733
2735 {
2737
2738
2739 if (construtionPart.
IsBase())
2740 {
2742
2743
2745 }
2746
2747
2749
2750
2752
2753
2755
2757
2759
2760
2762
2763
2765 }
2766
2768 {
2769
2771 }
2772
2773
2775 {
2778
2779
2781
2782
2784
2785
2787
2788
2790
2792
2793
2795
2796
2798
2799
2800 if (construtionPart.
IsBase())
2801 {
2802
2804 }
2805 }
2806
2808 {
2809
2811 }
2812
2813
2814 void OnPartDestroyedServer(Man player,
string part_name,
int action_id,
bool destroyed_by_connected_part =
false)
2815 {
2818
2819
2821
2822
2824
2825
2827
2828
2830
2832
2833
2835
2836
2838
2839
2840 if (construtionPart.
IsBase())
2841 {
2842
2844 }
2845 }
2846
2848 {
2849
2851 }
2852
2855 {
2856 bool process = false;
2857
2858
2862
2863 if (process)
2864 {
2865 if (!MemoryPointExists(part.
m_PartName +
"_min") || !MemoryPointExists(part.
m_PartName +
"_max"))
2866 {
2868 return;
2869 }
2870
2872 mins = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_min"));
2873 maxs = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_max"));
2874
2875
2877 minTmp[0] =
Math.
Min(mins[0],maxs[0]);
2878 maxTmp[0] =
Math.
Max(mins[0],maxs[0]);
2879 minTmp[1] =
Math.
Min(mins[1],maxs[1]);
2880 maxTmp[1] =
Math.
Max(mins[1],maxs[1]);
2881 minTmp[2] =
Math.
Min(mins[2],maxs[2]);
2882 maxTmp[2] =
Math.
Max(mins[2],maxs[2]);
2883 mins = minTmp;
2884 maxs = maxTmp;
2885
2886 maxs[1] = maxs[1] + 0.35;
2887
2889 }
2890 }
2891
2894 {
2897
2898
2900 foreach (
EntityAI entity : foundEntities)
2901 {
2904 }
2905 }
2906
2907
2909 {
2911
2915 }
2916
2918 {
2920
2922 {
2924 }
2925 else
2926 {
2928 }
2929
2931 }
2932
2934 {
2936
2938 foreach (
string slotName : attachmentSlots)
2939 {
2941 }
2942
2943
2946 else
2948
2950 }
2951
2953 {
2954 string slotNameMounted = slot_name + "_Mounted";
2955 EntityAI attachment = FindAttachmentBySlotName(slot_name);
2956
2957 if (attachment)
2958 {
2959 BarbedWire barbedWire = BarbedWire.Cast(attachment);
2960 if (barbedWire && barbedWire.IsMounted())
2962 else
2964
2965 if (is_locked)
2966 {
2967 SetAnimationPhase(slotNameMounted, 0);
2968 SetAnimationPhase(slot_name, 1);
2969 }
2970 else
2971 {
2972 SetAnimationPhase(slotNameMounted, 1);
2973 SetAnimationPhase(slot_name, 0);
2974 }
2975 }
2976 else
2977 {
2978 SetAnimationPhase(slotNameMounted, 1);
2979 SetAnimationPhase(slot_name, 1);
2980
2982 }
2983 }
2984
2985
2987 {
2990
2993
2996
2997 foreach (
string slotName : attachmentSlots)
2998 {
3000 }
3001
3002
3004 {
3007
3009 }
3010 else
3011 {
3014
3016 }
3017
3020 }
3021
3023 {
3024
3026 return;
3027
3028 string slot_name_mounted = slot_name + "_Mounted";
3029 EntityAI attachment = FindAttachmentBySlotName( slot_name );
3030
3031
3033 RemoveProxyPhysics( slot_name_mounted );
3034 RemoveProxyPhysics( slot_name );
3035
3036 if ( attachment )
3037 {
3039 if ( is_locked )
3040 {
3042 AddProxyPhysics( slot_name_mounted );
3043 }
3044 else
3045 {
3047 AddProxyPhysics( slot_name );
3048 }
3049 }
3050 }
3051
3053 {
3054 SetAffectPathgraph( true, false );
3056 }
3057
3059 {
3060 return true;
3061 }
3062
3064 {
3065 return true;
3066 }
3067
3069 {
3070 if ( attachment )
3071 {
3073 attachment.GetInventory().GetCurrentInventoryLocation( inventory_location );
3074
3075 return GetInventory().GetSlotLock( inventory_location.
GetSlot() );
3076 }
3077
3078 return false;
3079 }
3080
3082 {
3084 }
3085
3086
3088 {
3089 string config_path = "CfgVehicles" + " " + entity.GetType() + " " + "attachments";
3090 if (
GetGame().ConfigIsExisting( config_path ) )
3091 {
3093 }
3094 }
3095
3097 {
3098 return true;
3099 }
3100
3102 {
3103 return true;
3104 }
3105
3107 {
3108 return true;
3109 }
3110
3111
3113 {
3115 {
3117 }
3118
3120 }
3121
3123 {
3125 }
3126
3127
3128
3130 {
3131 return super.CanReceiveAttachment(attachment, slotId);
3132 }
3133
3135 {
3136 int attachment_count = GetInventory().AttachmentCount();
3137 if ( attachment_count > 0 )
3138 {
3139 if (
HasBase() && attachment_count == 1 )
3140 {
3141 return false;
3142 }
3143
3144 return true;
3145 }
3146
3147 return false;
3148 }
3149
3151 {
3152 return true;
3153 }
3154
3156 {
3157 return false;
3158 }
3159
3160
3162 {
3163 return false;
3164 }
3165
3167 {
3168 return false;
3169 }
3170
3171
3173 {
3174 return false;
3175 }
3176
3177
3178
3180 {
3181 return true;
3182 }
3183
3185 {
3186 return true;
3187 }
3188
3191 {
3192 return false;
3193 }
3194
3195
3197 {
3198 return true;
3199 }
3200
3201
3203 {
3204 return false;
3205 }
3206
3207
3209 {
3210 return true;
3211 }
3212
3213
3215 {
3216 if (
HasBase() || GetInventory().AttachmentCount() > 0 )
3217 {
3218 return false;
3219 }
3220
3221 return true;
3222 }
3223
3225 {
3228
3229 return item;
3230 }
3231
3232
3234 {
3236 {
3237
3239
3240
3243
3245 if ( MemoryPointExists( slot_name + "_min" ) )
3246 {
3247 min_max[0] = GetMemoryPointPos( slot_name + "_min" );
3248 }
3249 if ( MemoryPointExists( slot_name + "_max" ) )
3250 {
3251 min_max[1] = GetMemoryPointPos( slot_name + "_max" );
3252 }
3253
3254
3257
3258
3261 center = ModelToWorld( center );
3262
3263
3266
3267 areaDamage.SetExtents( extents[0], extents[1] );
3268 areaDamage.SetAreaPosition( center );
3269 areaDamage.SetAreaOrientation( orientation );
3272 areaDamage.SetHitZones( { "Torso","LeftHand","LeftLeg","LeftFoot","RightHand","RightLeg","RightFoot" } );
3273 areaDamage.SetAmmoName( "BarbedWireHit" );
3274 areaDamage.Spawn();
3275
3277 }
3278 }
3279
3281 {
3282 if ( angle_deg != 0 )
3283 {
3284
3285 orientation[0] = orientation[0] - angle_deg;
3286
3287
3289 if ( MemoryPointExists( "rotate_axis" ) )
3290 {
3291 rotate_axis = ModelToWorld( GetMemoryPointPos( "rotate_axis" ) );
3292 }
3293 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];
3294 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];
3295 center[0] = r_center_x;
3296 center[2] = r_center_z;
3297 }
3298 }
3299
3301 {
3303 {
3306 {
3307 if (areaDamage)
3308 {
3309 areaDamage.Destroy();
3310 }
3311
3313 }
3314 }
3315 }
3316
3318 {
3319 return true;
3320 }
3321
3322
3323
3324
3326 {
3328 }
3329
3331 {
3333 }
3334
3336 {
3338 }
3339
3341 {
3343
3344 switch ( material_type )
3345 {
3351 }
3352
3353 return "";
3354 }
3355
3357 {
3359
3360 switch ( material_type )
3361 {
3367 }
3368
3369 return "";
3370 }
3371
3372
3374 {
3376 {
3377
3379 {
3380 SetHealth(slot_name,"Health",item.GetHealth());
3381 }
3382 }
3383 }
3384
3386 {
3387 return 111;
3388 }
3389
3391 {
3392 super.SetActions();
3393
3397 }
3398
3399
3400
3401
3403 {
3404 }
3405
3408 {
3409 return null;
3410 }
3411
3413 {
3415 }
3416
3418 {
3421
3422 Man p;
3423
3424 #ifdef SERVER
3427 if (players.Count())
3428 p = players[0];
3429 #else
3431 #endif
3432
3434 {
3435 bool excluded = false;
3437 if (excludes)
3438 {
3439 foreach (string exclude : excludes)
3440 {
3442 {
3443 excluded = true;
3444 break;
3445 }
3446 }
3447 }
3448
3449 if (!excluded)
3450 {
3452 }
3453 }
3454
3456 }
3457}
3458
3460{
3461#ifdef BSB_DEBUG
3463#else
3464
3465#endif
3466}
3468{
3469#ifdef BSB_DEBUG_SPAM
3471#else
3472
3473#endif
3474}
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.