Team Spartan Cookies & Milk Forums
[Improvement] Life Support, Starfall - Printable Version

+- Team Spartan Cookies & Milk Forums (https://teamscm.co.uk)
+-- Forum: Feedback (https://teamscm.co.uk/forum-9.html)
+--- Forum: Suggestions and improvements (https://teamscm.co.uk/forum-11.html)
+--- Thread: [Improvement] Life Support, Starfall (/thread-1182.html)

Pages: 1 2


[Improvement] Life Support, Starfall - Salira - 03-08-2015

I think there should be an actual reason to keep oxygen reserves after your ship fills with oxygen. Over time, everyone inside a ship will use a certain amount of oxygen inside the ship, and that will add up with more people inside the ship. The life support replenishes the oxygen from the reserves, and outputs the percentage of oxygen that is in the ship. If it reaches 0%, everyone in the ship will begin using oxygen from their personal reserves, and will eventually suffocate unless the life support is fed more oxygen to put into the ship. Both gravity and oxygen replenishment takes energy, but oxygen replenishing will only take energy if it is replenishing.
Also, there is a new life support mode, gravity only. In this mode, oxygen will stay in the ship but will not replenish. Gravity generation will still take energy. In completely offline mode, oxygen will also stay in the ship and gravity will not be generated.

As for the Starfall improvements, there is a new function:
ShipCore:getInsidePlayers()
It returns an array of all players that are inside the ship (using the same thing that determines if the ambient ship sound is played, if a player is included in warp and life support, etc). There is also an array output with the same thing on the ship core.
EDIT: If you're thinking about adding one or the other, the SF function is for the simplicity of SF users, and the wire output is for the simplicity of E2 wirelink users.
EDIT 2: Just another function:
ShipCoreConfuseday()/botSay()
These are exactly the same as before, but when a ship core entity is put in front of them, they print the message to everyone inside the ship belonging to that ship core.

Thank you for reading.


RE: [Improvement] Life Support, Starfall - Veegi - 03-08-2015

I recommend "ShipCore:getPlayersInside()" rather than "ShipCore:getInsidePlayers()"


RE: [Improvement] Life Support, Starfall - Skeleton - 03-08-2015

Nice idea, I think the oxygen don't have any interests at this moment.


RE: [Improvement] Life Support, Starfall - Person8880 - 03-08-2015

What you've described is how it already works. Every player consumes oxygen while onboard the ship. The reason you don't see much oxygen usage is because:
  • The amount used per player is quite small.
  • The LS core recycles CO2 back into oxygen.
I could always increase player oxygen usage and make CO2 scrubbing not replenish oxygen, but then that's a little less "realistic".

As for the Starfall stuff, I'm not sure I want Starfall to do that much work for you. I think the only thing missing is the ability to get the entity tied to the current environment a player is in, then you can make the rest yourself quite easily.


RE: [Improvement] Life Support, Starfall - SuperPlayer - 03-08-2015

I think the described SF function would be great. The rest would be very then.


RE: [Improvement] Life Support, Starfall - LocInt - 03-08-2015

I agree with person that would give way too much advantage on players who can code over those who can not. If you want to make something like this you can but Starfall shouldn't help you out too much.


RE: [Improvement] Life Support, Starfall - Red The Blue Color - 03-08-2015

The functions would make starfall too easy Big Grin

You can easily do everything those functions do in code basically what everyone else said starfall can't do all the work because then there's no point in coding Big Grin


RE: [Improvement] Life Support, Starfall - rouing - 04-08-2015

Starfall should be something we can pull information from and do basic functions such as weld and such. It shouldnt do everything for us. That would be to easy.
This request is basically asking person to code a chip for you.


RE: [Improvement] Life Support, Starfall - Salira - 05-08-2015

(03-08-2015, 06:11 PM)Person8880 Wrote: What you've described is how it already works. Every player consumes oxygen while onboard the ship. The reason you don't see much oxygen usage is because:
  • The amount used per player is quite small.
  • The LS core recycles CO2 back into oxygen.
I could always increase player oxygen usage and make CO2 scrubbing not replenish oxygen, but then that's a little less "realistic".

As for the Starfall stuff, I'm not sure I want Starfall to do that much work for you. I think the only thing missing is the ability to get the entity tied to the current environment a player is in, then you can make the rest yourself quite easily.

Then how would I make a ship AI that says stuff to everyone on board, and only everyone on board, even if they're not in your faction's alliance?


RE: [Improvement] Life Support, Starfall - SuperPlayer - 05-08-2015

Use:
chat.tell(Ply,Message)
And to find people which are on board Person kindly added a new function which makes finding players in your ship very very easy.