2072{
2074
2076
2078
2080
2086
2087
2088
2094
2100
2102
2106
2107
2109 {
2111
2112
2113 RegisterNetSyncVariableInt( "m_SyncParts01" );
2114 RegisterNetSyncVariableInt( "m_SyncParts02" );
2115 RegisterNetSyncVariableInt( "m_SyncParts03" );
2116 RegisterNetSyncVariableInt( "m_InteractedPartId" );
2117 RegisterNetSyncVariableInt( "m_PerformedActionId" );
2118 RegisterNetSyncVariableBool( "m_HasBase" );
2119
2120
2122
2123 if (ConfigIsExisting("hybridAttachments"))
2124 {
2127 }
2128 if (ConfigIsExisting("mountables"))
2129 {
2132 }
2133
2135 }
2136
2138 {
2139 super.EEDelete(parent);
2140
2142 {
2143 areaDamage.Destroy();
2144 }
2145
2146 }
2147
2149 {
2150 return "disableBaseDamage";
2151 }
2152
2154 {
2155 return true;
2156 }
2157
2159 {
2160 return EInventoryIconVisibility.HIDE_VICINITY;
2161 }
2162
2164 {
2165 super.InitItemSounds();
2166
2170
2175 }
2176
2178 {
2179 return "putDown_FenceKit_SoundSet";
2180 }
2181
2183 {
2184 return "Shelter_Site_Build_Loop_SoundSet";
2185 }
2186
2187
2189 {
2191 {
2192 SetSynchDirty();
2193 }
2194 }
2195
2197 {
2199 super.OnVariablesSynchronized();
2200
2202 }
2203
2205 {
2206
2208
2209
2211
2212
2214 }
2215
2216
2218 {
2219
2220 int offset;
2221 int mask;
2222
2223 if ( part_id >= 1 && part_id <= 31 )
2224 {
2225 offset = part_id - 1;
2226 mask = 1 << offset;
2227
2229 }
2230 else if ( part_id >= 32 && part_id <= 62 )
2231 {
2232 offset = ( part_id % 32 );
2233 mask = 1 << offset;
2234
2236 }
2237 else if ( part_id >= 63 && part_id <= 93 )
2238 {
2239 offset = ( part_id % 63 );
2240 mask = 1 << offset;
2241
2243 }
2244 }
2245
2247 {
2248
2249 int offset;
2250 int mask;
2251
2252 if ( part_id >= 1 && part_id <= 31 )
2253 {
2254 offset = part_id - 1;
2255 mask = 1 << offset;
2256
2258 }
2259 else if ( part_id >= 32 && part_id <= 62 )
2260 {
2261 offset = ( part_id % 32 );
2262 mask = 1 << offset;
2263
2265 }
2266 else if ( part_id >= 63 && part_id <= 93 )
2267 {
2268 offset = ( part_id % 63 );
2269 mask = 1 << offset;
2270
2272 }
2273 }
2274
2276 {
2277
2278 int offset;
2279 int mask;
2280
2281 if ( part_id >= 1 && part_id <= 31 )
2282 {
2283 offset = part_id - 1;
2284 mask = 1 << offset;
2285
2287 {
2288 return true;
2289 }
2290 }
2291 else if ( part_id >= 32 && part_id <= 62 )
2292 {
2293 offset = ( part_id % 32 );
2294 mask = 1 << offset;
2295
2297 {
2298 return true;
2299 }
2300 }
2301 else if ( part_id >= 63 && part_id <= 93 )
2302 {
2303 offset = ( part_id % 63 );
2304 mask = 1 << offset;
2305
2307 {
2308 return true;
2309 }
2310 }
2311
2312 return false;
2313 }
2314
2316 {
2319 }
2320
2322 {
2323
2326 }
2327
2329 {
2331 {
2334
2335 switch( build_action_id )
2336 {
2340 }
2341 }
2342 }
2343
2344
2346 {
2348 bool is_base = part.
IsBase();
2351 if ( is_part_built_sync )
2352 {
2354 {
2358
2359 if (is_base)
2360 {
2363 }
2364 }
2365 }
2366 else
2367 {
2369 {
2373
2374 if (is_base)
2375 {
2378 }
2379 }
2380 }
2381
2382
2384 }
2385
2386
2388 {
2391
2392 for ( int i = 0; i < construction_parts.Count(); ++i )
2393 {
2394 string key = construction_parts.GetKey( i );
2397 }
2398
2399
2401 }
2402
2404 {
2407
2408 for ( int i = 0; i < construction_parts.Count(); ++i )
2409 {
2410 string key = construction_parts.GetKey( i );
2412
2413 if ( value.
GetId() ==
id )
2414 {
2415 return value;
2416 }
2417 }
2418
2419 return NULL;
2420 }
2421
2422
2423
2425 {
2427 }
2428
2430 {
2432 }
2433
2435 {
2436 return true;
2437 }
2438
2440 {
2441 return false;
2442 }
2443
2444
2446 {
2449 {
2451 }
2452
2453 return construction_kit;
2454 }
2455
2457 {
2460 {
2462 }
2463 }
2464
2466 {
2468 }
2469
2471 {
2472 return "";
2473 }
2474
2476 {
2479 }
2480
2481
2483 {
2486 }
2487
2488
2490 {
2491 super.OnStoreSave( ctx );
2492
2493
2497
2499 }
2500
2502 {
2503 if ( !super.OnStoreLoad( ctx, version ) )
2504 return false;
2505
2506
2507
2509 {
2511 return false;
2512 }
2514 {
2516 return false;
2517 }
2519 {
2521 return false;
2522 }
2523
2524
2526 {
2528 return false;
2529 }
2530
2531
2532 return true;
2533 }
2534
2536 {
2537 super.AfterStoreLoad();
2538
2540 {
2542 }
2543 }
2544
2546 {
2547
2549
2550
2553
2554
2556 }
2557
2559 {
2560 super.OnCreatePhysics();
2563 }
2564
2566 {
2568 return;
2569
2570 super.EEHealthLevelChanged(oldLevel,newLevel,zone);
2571
2573 return;
2574
2576 string part_name = zone;
2578
2580 {
2581 ConstructionPart construction_part = construction.GetConstructionPart( part_name );
2582
2583 if ( construction_part && construction.IsPartConstructed( part_name ) )
2584 {
2586 construction.DestroyConnectedParts(part_name);
2587 }
2588
2589
2590 if ( part_name.
Contains(
"barbed") )
2591 {
2592 BarbedWire barbed_wire = BarbedWire.Cast( FindAttachmentBySlotName( zone ) );
2593 if (barbed_wire)
2594 barbed_wire.SetMountedState( false );
2595 }
2596 }
2597 }
2598
2600 {
2602 {
2604 }
2605
2606 super.EEOnAfterLoad();
2607 }
2608
2610 {
2611 super.EEInit();
2612
2613
2615
2616
2617 #ifdef DEVELOPER
2619 #endif
2620 }
2621
2623 {
2624 super.EEItemAttached( item, slot_name );
2625
2629 }
2630
2632 {
2633 super.EEItemDetached( item, slot_name );
2634
2637 }
2638
2639 protected void OnSetSlotLock(
int slotId,
bool locked,
bool was_locked )
2640 {
2643
2646 }
2647
2648
2650 {
2651 return true;
2652 }
2653
2654
2655
2657 {
2659
2660
2661 if (construtionPart.
IsBase())
2662 {
2664
2665
2667 }
2668
2669
2671
2672
2674
2675
2677
2679
2681
2682
2684
2685
2687 }
2688
2690 {
2691
2693 }
2694
2695
2697 {
2700
2701
2703
2704
2706
2707
2709
2710
2712
2714
2715
2717
2718
2720
2721
2722 if (construtionPart.
IsBase())
2723 {
2724
2726 }
2727 }
2728
2730 {
2731
2733 }
2734
2735
2736 void OnPartDestroyedServer(Man player,
string part_name,
int action_id,
bool destroyed_by_connected_part =
false)
2737 {
2740
2741
2743
2744
2746
2747
2749
2750
2752
2754
2755
2757
2758
2760
2761
2762 if (construtionPart.
IsBase())
2763 {
2764
2766 }
2767 }
2768
2770 {
2771
2773 }
2774
2777 {
2778 bool process = false;
2779
2780
2784
2785 if (process)
2786 {
2787 if (!MemoryPointExists(part.
m_PartName +
"_min") || !MemoryPointExists(part.
m_PartName +
"_max"))
2788 {
2790 return;
2791 }
2792
2794 mins = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_min"));
2795 maxs = ModelToWorld(GetMemoryPointPos(part.
m_PartName +
"_max"));
2796
2797
2799 minTmp[0] =
Math.
Min(mins[0],maxs[0]);
2800 maxTmp[0] =
Math.
Max(mins[0],maxs[0]);
2801 minTmp[1] =
Math.
Min(mins[1],maxs[1]);
2802 maxTmp[1] =
Math.
Max(mins[1],maxs[1]);
2803 minTmp[2] =
Math.
Min(mins[2],maxs[2]);
2804 maxTmp[2] =
Math.
Max(mins[2],maxs[2]);
2805 mins = minTmp;
2806 maxs = maxTmp;
2807
2808 maxs[1] = maxs[1] + 0.35;
2809
2811 }
2812 }
2813
2816 {
2819
2820
2822 foreach (
EntityAI entity : foundEntities)
2823 {
2826 }
2827 }
2828
2829
2831 {
2833
2837 }
2838
2840 {
2842
2844 {
2846 }
2847 else
2848 {
2850 }
2851
2853 }
2854
2856 {
2858
2860 foreach (
string slotName : attachmentSlots)
2861 {
2863 }
2864
2865
2868 else
2870
2872 }
2873
2875 {
2876 string slotNameMounted = slot_name + "_Mounted";
2877 EntityAI attachment = FindAttachmentBySlotName(slot_name);
2878
2879 if (attachment)
2880 {
2881 BarbedWire barbedWire = BarbedWire.Cast(attachment);
2882 if (barbedWire && barbedWire.IsMounted())
2884 else
2886
2887 if (is_locked)
2888 {
2889 SetAnimationPhase(slotNameMounted, 0);
2890 SetAnimationPhase(slot_name, 1);
2891 }
2892 else
2893 {
2894 SetAnimationPhase(slotNameMounted, 1);
2895 SetAnimationPhase(slot_name, 0);
2896 }
2897 }
2898 else
2899 {
2900 SetAnimationPhase(slotNameMounted, 1);
2901 SetAnimationPhase(slot_name, 1);
2902
2904 }
2905 }
2906
2907
2909 {
2912
2915
2918
2919 foreach (
string slotName : attachmentSlots)
2920 {
2922 }
2923
2924
2926 {
2929
2931 }
2932 else
2933 {
2936
2938 }
2939
2942 }
2943
2945 {
2946
2948 return;
2949
2950 string slot_name_mounted = slot_name + "_Mounted";
2951 EntityAI attachment = FindAttachmentBySlotName( slot_name );
2952
2953
2955 RemoveProxyPhysics( slot_name_mounted );
2956 RemoveProxyPhysics( slot_name );
2957
2958 if ( attachment )
2959 {
2961 if ( is_locked )
2962 {
2964 AddProxyPhysics( slot_name_mounted );
2965 }
2966 else
2967 {
2969 AddProxyPhysics( slot_name );
2970 }
2971 }
2972 }
2973
2975 {
2976 SetAffectPathgraph( true, false );
2978 }
2979
2981 {
2982 return true;
2983 }
2984
2986 {
2987 return true;
2988 }
2989
2991 {
2992 if ( attachment )
2993 {
2995 attachment.GetInventory().GetCurrentInventoryLocation( inventory_location );
2996
2997 return GetInventory().GetSlotLock( inventory_location.
GetSlot() );
2998 }
2999
3000 return false;
3001 }
3002
3004 {
3006 }
3007
3008
3010 {
3011 string config_path = "CfgVehicles" + " " + entity.GetType() + " " + "attachments";
3012 if (
GetGame().ConfigIsExisting( config_path ) )
3013 {
3015 }
3016 }
3017
3019 {
3020 return true;
3021 }
3022
3024 {
3025 return true;
3026 }
3027
3029 {
3030 return true;
3031 }
3032
3033
3035 {
3037 {
3039 }
3040
3042 }
3043
3045 {
3047 }
3048
3049
3050
3052 {
3053 return super.CanReceiveAttachment(attachment, slotId);
3054 }
3055
3057 {
3058 int attachment_count = GetInventory().AttachmentCount();
3059 if ( attachment_count > 0 )
3060 {
3061 if (
HasBase() && attachment_count == 1 )
3062 {
3063 return false;
3064 }
3065
3066 return true;
3067 }
3068
3069 return false;
3070 }
3071
3073 {
3074 return true;
3075 }
3076
3078 {
3079 return false;
3080 }
3081
3082
3084 {
3085 return false;
3086 }
3087
3089 {
3090 return false;
3091 }
3092
3093
3095 {
3096 return false;
3097 }
3098
3099
3100
3102 {
3103 return true;
3104 }
3105
3107 {
3108 return true;
3109 }
3110
3113 {
3114 return false;
3115 }
3116
3117
3119 {
3120 return true;
3121 }
3122
3123
3125 {
3126 return false;
3127 }
3128
3129
3131 {
3132 return true;
3133 }
3134
3135
3137 {
3138 if (
HasBase() || GetInventory().AttachmentCount() > 0 )
3139 {
3140 return false;
3141 }
3142
3143 return true;
3144 }
3145
3147 {
3150
3151 return item;
3152 }
3153
3154
3156 {
3158 {
3159
3161
3162
3165
3167 if ( MemoryPointExists( slot_name + "_min" ) )
3168 {
3169 min_max[0] = GetMemoryPointPos( slot_name + "_min" );
3170 }
3171 if ( MemoryPointExists( slot_name + "_max" ) )
3172 {
3173 min_max[1] = GetMemoryPointPos( slot_name + "_max" );
3174 }
3175
3176
3179
3180
3183 center = ModelToWorld( center );
3184
3185
3188
3189 areaDamage.SetExtents( extents[0], extents[1] );
3190 areaDamage.SetAreaPosition( center );
3191 areaDamage.SetAreaOrientation( orientation );
3194 areaDamage.SetHitZones( { "Torso","LeftHand","LeftLeg","LeftFoot","RightHand","RightLeg","RightFoot" } );
3195 areaDamage.SetAmmoName( "BarbedWireHit" );
3196 areaDamage.Spawn();
3197
3199 }
3200 }
3201
3203 {
3204 if ( angle_deg != 0 )
3205 {
3206
3207 orientation[0] = orientation[0] - angle_deg;
3208
3209
3211 if ( MemoryPointExists( "rotate_axis" ) )
3212 {
3213 rotate_axis = ModelToWorld( GetMemoryPointPos( "rotate_axis" ) );
3214 }
3215 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];
3216 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];
3217 center[0] = r_center_x;
3218 center[2] = r_center_z;
3219 }
3220 }
3221
3223 {
3225 {
3228 {
3229 if (areaDamage)
3230 {
3231 areaDamage.Destroy();
3232 }
3233
3235 }
3236 }
3237 }
3238
3240 {
3241 return true;
3242 }
3243
3244
3245
3246
3248 {
3250 }
3251
3253 {
3255 }
3256
3258 {
3260 }
3261
3263 {
3265
3266 switch ( material_type )
3267 {
3273 }
3274
3275 return "";
3276 }
3277
3279 {
3281
3282 switch ( material_type )
3283 {
3289 }
3290
3291 return "";
3292 }
3293
3294
3296 {
3298 {
3299
3301 {
3302 SetHealth(slot_name,"Health",item.GetHealth());
3303 }
3304 }
3305 }
3306
3308 {
3309 return 111;
3310 }
3311
3313 {
3314 super.SetActions();
3315
3319 }
3320
3321
3322
3323
3325 {
3326 }
3327
3330 {
3331 return null;
3332 }
3333
3335 {
3337 }
3338
3340 {
3343
3344 Man p;
3345
3346 #ifdef SERVER
3349 if (players.Count())
3350 p = players[0];
3351 #else
3353 #endif
3354
3356 {
3357 bool excluded = false;
3359 if (excludes)
3360 {
3361 foreach (string exclude : excludes)
3362 {
3364 {
3365 excluded = true;
3366 break;
3367 }
3368 }
3369 }
3370
3371 if (!excluded)
3372 {
3374 }
3375 }
3376
3378 }
3379}
3380
3382{
3383#ifdef BSB_DEBUG
3385#else
3386
3387#endif
3388}
3390{
3391#ifdef BSB_DEBUG_SPAM
3393#else
3394
3395#endif
3396}
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.