Jump to content
  • 0
zulu

Body temperature , ambient temperature

Question

Hi, i'd like to show the body and ambient temperature in my custom debug monitor,
but i can only find "dayz_temeperature" as variable, which seems to be the bodytemperature, because when using a heatpack it raises.

My question is how to show both, body and ambient temperatue.
Zulu

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

are you using a custom hud? T.B.H. I would recommend you use a hud instead of a debug monitor but thats just me. You can always download someone elses too if you want, if you wanna see my hud im using it was custom made by me & cen, original creator cen but I worked it around a bit for my earplugs scripts. if you wanna see what it looks like: http://epochmod.com/forum/index.php?/topic/16448-release-cens-custom-gui-for-epochoverpoch/

Share this post


Link to post
Share on other sites
  • 0

Hi rentiger, sorry for latte reply, didnt saw your answer.

What is the difference between a custom debug-monitor and a custom hud?
I thought it would be as easy as showing ie humanity or bandit kills.

After searching around i havent found anything related to ambient nor budy temperature.

Looking forward to some help.
 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Similar Content

    • By NetShark
      Modify Server Temperature with Snowstorm
       
      Hello Epoch Forums,
      This is my first post and I hope I wrote it on the right area.
       
      This is just a way to achieve this, or at least the way I did it. Im sure there should be other ways to get this same effect so you should look at this guide as a suggested way.
       
      What's this?
       This post is meant to help everyone to modify a dayz epoch server temperature for any reason and add a snowstorm(optional). This process should work on all "Normal Dayz Epoch Maps", if you have an additional mod with a different map, then this guide might not work.
       
      Why would I change this?
       Well, this is just a personal decision. In my case, I wanted to give to introduce my server to the christmas spirit. So I decided to use a third part script to add snow and modify the server temperature to create that immersing effect during this season.
       
      Disclaimer
      1. I didn't create any new script. And the scripts mention below are just a suggestion, so you are free to choose another one.
      2. Before changing anything, create backups. Specially if this change will be during christmas season only and after that you'll need to go back.
      3. Try all these modificactions on a local server first. I do not recommend to try this guide on your actual server, because this might need a lot of restarts until you get the desired effect. I can suggest a good guide on how to create a dayz epoch local server
       
       
      Process
      This guide has 2 parts, first I added a snow script, so that my server will have a great permanent snowstorm. After adding the snow script, then I modified the server temperature to create the immersing effect. If you don't want to add the snowstorm script you can skip that part and go directly to the temperature process.
       
      SnowStorm
      Install a Snowstorm Script. I used a Snowstorm Script created by GaspArt. You can go and check the installation process in his I wont explain how to install that script because everything is well explained there. Also if you have any problem with that, go and ask him in his post.
       
      Modifing Server Temperature
      What we're going to do now is bring all the needed files to our Mission PBO so we can modify them without problems.

      1. Go to your dayz_code.pbo file, open it and extract the file compiles.sqf that is inside a folder called init.
      2. Put that file inside your Mission PBO in a folder called custom. If you already have a folder with that name you can use it.
      3. Open the init.sqf file that is in the root of your Mission PBO, and find the line:
      call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf"; Modify that line this way:
      call compile preprocessFileLineNumbers "custom\compiles.sqf"; NOTE: You could also comment out the original line and add the one I suggest.
       
      4. Go to your dayz_code.pbo file, open it and extract the file variables.sqf that is inside a folder called init.
      5. Put that file inside your Mission PBO in the same custom folder you created.
      6. Open the init.sqf file that is in the root of your Mission PBO, and find the line:
      call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\variables.sqf"; Modify the line this way:
      call compile preprocessFileLineNumbers "custom\variables.sqf"; NOTE: You could also comment out the original line and add the one I suggest.
       
      7. Go to your dayz_code.pbo file, open it and extract the file fn_temperatur.sqf that is inside a folder called compile.
      8. Put that file inside your Mission PBO in the same custom folder you created.
      9. Open the compiles.sqf you moved to your custom folder inside your Mission PBO, and find the line:
      player_temp_calculation    =        compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fn_temperatur.sqf"; Modify the line this way:
      player_temp_calculation    = compile preprocessFileLineNumbers "custom\fn_temperatur.sqf";  
      Adjusting Temperature
      Now it's time to adjust the server temperature. First off, I want to say that the temperatures I used are for an Artic Environment. I will add some statistics  so you can adjust the temperature according to your likings.
       
      1. Go to the file variables.sqf you have in your custom folder inside your Mission PBO, and find this:
      dayz_temperatur        =     36;        //TeeChange dayz_temperaturnormal  =     36;        //TeeChange dayz_temperaturmax     =     42;        //TeeChange dayz_temperaturmin     =     27;        //TeeChang Modify those lines this way:
      dayz_temperatur       =     25;        //Default 36 dayz_temperaturnormal =     25;        //Default 36 dayz_temperaturmax    =     40;        //Default 42 dayz_temperaturmin    =     10;        //Default 27 2. Go to the fn_temperatur.sqf file you have in your custom folder inside your Mission PBO, and find this:
      _vehicle_factor     =   4; _moving_factor      =   7; _fire_factor        =  15;   _building_factor    =   7; _sun_factor         =   4; _water_factor       =  -8; _rain_factor       =   -3; _night_factor       =  -1.5; _wind_factor        =  -1; Modify those lines this way:
      _vehicle_factor   =   30; _moving_factor    =  15; _fire_factor     =   300; _building_factor  =  35; _sun_factor       =  -20;      _water_factor     =  -100; _rain_factor      =   -80; _night_factor     =   -30; _wind_factor      =   -20; Statistics (minutes:seconds)
      Out in the sun = From the highest to the lowest temperature 5:20
      At night = From the highest to the lowest temperature 3:20
      In the water = From the highest to the lowest temperature 0:15
      Inside a Vehicle = From the lowest to the highest temperature 5:20
      Inside a Building = From the lowest to the highest temperature 3:00
       
      Important Info:
      a. The _fire_factor is crucial, it should be always higher than _rain_factor + _night_factor + _wind_factor absolute values. In my case I decided to add a very high value.
      b. _building_factor and _vehicle_factor should always be higher than _night_factor or _sun_factor. Otherwise you'll be cold even inside a building or a car at night.
      c. Be careful with the _rain_factor, it can multiply the _wind_factor and _sun_factor effect.
       
      Adjusting Heatpacks
      Since you have modified the server temperature, Heatpacks will not have the same warming effect they were used to have. So that's why I decide to adjust them so the can be useful in my Artic Environment.
      1. Go to your dayz_code.pbo file, open it and extract the file player_useMeds.sqf that is inside a folder called actions.
      2. Put that file inside your Mission PBO in the same custom folder you created.
      3. Open the compiles.sqf you moved to your custom folder inside your Mission PBO, and find the line:
      player_useMeds =            compile preprocessFileLineNumbers "\z\addons\dayz_code\actions\player_useMeds.sqf"; Modify the line this way:
      player_useMeds = compile preprocessFileLineNumbers "custom\player_useMeds.sqf";  
      4. Open the player_useMeds.sqf you just moved to your custom folder inside your Mission PBO, and look for the next line around line 29:
      dayz_temperatur = (dayz_temperatur + 5) min dayz_temperaturmax; Modify the line this way:
      dayz_temperatur = (dayz_temperatur + 30) min dayz_temperaturmax; NOTE: What I did was modify the 5 for a 30 to adjust its warming effect. You could adjust it also according to your likings.
       
       
       
       
       
      I hope this post can be useful for someone, Im not an expert on this but I had to spend some time testing and searching until I understood it. Then I decided to share it so anyone can give to his server a very nice christmas look. :)
       
      Special Thanks to jahangir13 who gave me a hand on this.
       
      Best Regards,
       
      NetShark
    • By NetShark
      Hi,
       
      I've been for hours trying to understand the way it works, but I havent been able to.
       
      I need to make my server colder, cold as hell :D ... and I can't.
       
      I made a copy of the file "fn_temperatur.sqf" originally located at dayz_code.pbo to my mission file. Of course modifing the call from "compiles.sqf" file.
       
      Im using this factors to modify the temperature but it doesnt have any effect on the server.



       
      I even tried to put all values at -100 and nothing happens...
       
      Can someone tell me how this factors work? I want my players to find shelter, or a car or a fire to be safe, otherwise they die by hypothermia.
       
      How to do it?
       
      Thanks.
    • By yani9o
      Helly everybody =)
       
      I have a problem with my HUD:
      From time to time (couldn't really figure out when exactly because it's somewhat random) the temperature and thirst icons disappear (just a black icon...), and i can't tell if they change: i added a temperature info-text, so my players can see their body-temp - i'm not sure if the temperature is changing after the icons disappeared...
       
       
      I installed namalsk cold weather ( changed files mentioned here - took my own files from the .pbos ) and Enhanced Waterbottle ( here ) as well as Cen's Custom GUI ( ) which have any relation to those two icons... (others are some custom .sqfs, menus, actions, bots, etc...
       
      To be clear:
      I had the problem BEFORE the installation of Cen's Custom GUI aswell...
       
      Does anybody know what problem achieves this? Or could give me a direction where i could find something? ^^
       
       
      Help would be appreciated :D
       
      greetings
      yani
    • By Pete
      Hello :) I've got few questions about the in-game temperature and how it affects the character in game:
       
       
      Is there any way to change the display temperature from Fahrenheit to Celsius? (if so - how?)
       
      Also - What do those numbers actually mean/do? At which point should I be worried?
      Are there any consequences of going over lower or upper boundaries? Are there any symptoms?
      I know there are cold and heat packs.. just not quite sure when to use them.
       
       
      I know that's a lot of questions.. but I would appreciate if someone could answer at least some of them ;p
      Thanks!
  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...