Author Topic: HCR2 Bleed System  (Read 708 times)

Legacy_Gawain_VIII

  • Newbie
  • *
  • Posts: 28
  • Karma: +0/-0
HCR2 Bleed System
« on: April 15, 2016, 04:16:23 am »


               

I'm setting up HCR2 (v1.5)... In the Bleed subsystem config script, h2_bleedsystem_c, there is a line I don't quite understand:


 


float H2_STABLE_DELAY = HoursToSeconds(1);


 


The comments say to adjust this based on the module's Real-Minutes-Per-Game-Hour setting (default: 2min/hr) based on the formula: [Minutes per hour] * 60 seconds = HoursToSeconds(1)


 


Since I've adjusted the default module's time from 2 to 4 mins per game hour, should I set this line to read HoursToSeconds(240) [4 * 60], or should it be HoursToSeconds(2) [double the default], or HoursToSeconds(4) [the Min/Hr setting I've chosen]?



               
               

               
            

Legacy_henesua

  • Hero Member
  • *****
  • Posts: 6519
  • Karma: +0/-0
HCR2 Bleed System
« Reply #1 on: April 15, 2016, 06:12:49 pm »


               

without seeing how the code actually works, its hard to guess how that number needs to be adjusted.


 


Since HoursToSeconds() adjusts dynamically to the module's time settings I also do not see why you should have to adjust anything at all.


 


NWN Lexicon is your friend.



               
               

               
            

Legacy_Gawain_VIII

  • Newbie
  • *
  • Posts: 28
  • Karma: +0/-0
HCR2 Bleed System
« Reply #2 on: April 16, 2016, 12:12:40 am »


               

Thanks. That's what I needed to know. I knew the Lexicon existed, but couldn't remember the name... and my Google-fu failed me, so I didn't find it again.


 


It looks like I don't have to adjust anything--the (1) integer automatically returns the correct number of seconds based on the module's time setting... I would only have to change it (regardless of time setting) if I wanted a bleeding PC to stabilize and recover faster or slower than (time adjusted) default rules.