Jump to content
SubSpace Forum Network

Recommended Posts

Posted

field cooldown is a nice addition, but the message could be more useful

 

current message

Your Field Launcher is currently recharging!

 

better message

Your Field Launcher is currently recharging! It will be ready in xx seconds.

 

 

also the recharge time should be based on field, a chaos field should recharge faster than a coffin.

Posted

adding the cooldown time remaining to the message should be very easy to do.

 

Just went through an if where checked the cooldown time, so info is available to put in the message to user.

 

My guess is everytime a field is launched the timestamp is saved, then do a check of current time minus field lanuch time. and check if result is > then field cooldown time. the time we need is then just field cooldown time - that result.

Posted
I haven't looked at the code but it's probably not that simple. It's most likely being done with a timer callback so the module won't actually know when the cooldown will be over. It would just get told later, "Okay, this guy is ready to go again."

Join the conversation

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

Guest
Reply to this topic...

×   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...
×
×
  • Create New...