Shark272
Members-
Content Count
4 -
Joined
-
Last visited
Community Reputation
1 NeutralAbout Shark272
-
Rank
On the Coast
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-
@enoanot the tool is also a good alternative Server Manager [Stable] 2.2.0.3 FREE
-
https://bytex.market/products/item/weodpphdknnzm70o0h8q/Mikero's Dos Tools
-
How to add materials to the first aid kit?
Shark272 replied to steam-76561198088513750's topic in Servers
If you want to add items in the first aid kit, the cfgspawnabletypes.xml must be edited. Search for "FirstAidKit" there and replace the code <type name="FirstAidKit"> <tag name="shelves" /> <cargo chance="1"> <item name="BandageDressing" /> </cargo> <cargo chance="1"> <item name="BloodTestKit" /> </cargo> <cargo chance="1"> <item name="BloodBagEmpty" /> </cargo> <cargo chance="1"> <item name="StartKitIV" /> </cargo> </type> for example with this one: <type name="FirstAidKit"> <tag name="shelves" /> <cargo chance="1"> <item name="BandageDressing" /> </cargo> <cargo chance="1"> <item name="BloodTestKit" /> </cargo> <cargo chance="1"> <item name="BloodBagEmpty" /> </cargo> <cargo chance="1"> <item name="StartKitIV" /> </cargo> <cargo chance="0.5"> <item name="Morphine" /> </cargo> <cargo chance="0.5"> <item name="Epinephrine" /> </cargo> </type> In the example, epinephrine and morphine have been added. But theoretically you can also add other items. -
So for everyone who wants to have a functioning weather system on their server: The weather must come after the hive. It is a mistake on Bohemia's part to put it before the hive. As an example, it should look like this for you: //INIT ECONOMY-------------------------------------- Hive ce = CreateHive(); if ( ce ) ce.InitOffline(); //INIT WEATHER AFTER ECONOMY INIT------------------------ Weather weather = g_Game.GetWeather(); weather.MissionWeather(true); // false = use weather controller from Weather.c weather.GetOvercast().SetLimits( 0.0 , 0.9 ); weather.GetRain().SetLimits( 0.0 , 0.0 ); weather.GetFog().SetLimits( 0.0 , 0.1 ); weather.GetOvercast().Set( Math.RandomFloatInclusive(0.02, 0.9), 1, 0); //weather.GetRain().Set( 0, 0, 0); weather.GetRain().Set( Math.RandomFloatInclusive(0.0, 0.1), 1, 0); weather.GetFog().Set( Math.RandomFloatInclusive(0.0, 0.1), 1, 0); weather.GetOvercast().SetForecastTimeLimits( 1800 , 1800 ); weather.GetRain().SetForecastTimeLimits( 600 , 600 ); weather.GetFog().SetForecastTimeLimits( 600 , 600 ); weather.SetWindMaximumSpeed( 20 ); weather.SetWindFunctionParams( 0, 0, 1 ); the rain value is now 0 - weather.GetRain (). SetLimits (0.0, 0.0); the next line would be from nothing to maximum weather.GetRain (). SetLimits (0.0, 1.0); If you only want 50% heavy rain, use the weather.GetRain (). SetLimits (0.0, 0.5); With the line: weather.GetRain (). Set (Math.RandomFloatInclusive (0.0, 0.1), 1, 0); gives her the chance of chance when it rains how strong he is. So if weather.GetRain (). SetLimits (0.0, 0.5); only 10% of the 50% will rain. Best regards, your Shark272 https://discord.gg/mYhq3jt