Aller au contenu

Photo

HCR2 Bleed System


  • Veuillez vous connecter pour répondre
2 réponses à ce sujet

#1
Gawain_VIII

Gawain_VIII
  • Members
  • 14 messages

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]?



#2
henesua

henesua
  • Members
  • 3 858 messages

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.



#3
Gawain_VIII

Gawain_VIII
  • Members
  • 14 messages

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.