Team Spartan Cookies & Milk Forums
Starfall Function Request - 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: Starfall Function Request (/thread-1955.html)



Starfall Function Request - Salira - 05-10-2016

Would it be possible to add a Starfall function, like this one?
LifeSupport:playSound("insert sound path here", other sound variables)
Basically, it would play a sound that would be heard in the entire life support environment. The sound volume is the same throughout the whole ship, and if someone leaves the ship, they stop hearing the sound. This would let people greatly optimize their chips depending on what they do.


RE: Starfall Function Request - TheOneAndOnlyTee - 05-10-2016

Currently LS settings are defined via the console because it's easier i guess than networking them to everyone from the LS core's variables and if they do get added to the LS Core then you'll likely be able to change them via input anyway.


RE: Starfall Function Request - Salira - 05-10-2016

Let me rephrase. I'm suggesting something like a self destruct alarm, or an Enterprise red alert sound, that I can start or stop at any time and I dont have to specify each individual player. Kind of like the ambient ship sound, but controlled by Starfall.

(05-10-2016, 01:01 AM)Codyworlds Wrote: Let me rephrase. I'm suggesting something like a self destruct alarm, or an Enterprise red alert sound, that I can start or stop at any time and I dont have to specify each individual player. Kind of like the ambient ship sound, but controlled by Starfall.

Oh and other players hear it too unless they choose to opt out (optional).


RE: Starfall Function Request - Person8880 - 09-10-2016

This has been added as:
local Volume = 1
local Pitch = 100
-- Set the environment sound for the ship core's environment (anywhere inside the ship basically, does not need an active LS core).
ShipCoreConfusedetEnvironmentSound( "path/to/sound.wav", Volume, Pitch )
-- Stop the environment sound.
ShipCoreConfusedtopEnvironmentSound()

To enable/disable hearing for yourself:
ship_core_playenvsound 1/0


RE: Starfall Function Request - Salira - 09-10-2016

(09-10-2016, 03:58 PM)Person8880 Wrote: To enable/disable hearing for yourself:
ship_core_playenvsound 1/0

Is this enabled by default?

Oh, and [SF - ERROR] SF:fsatech/jarvis2/Jarvis_2.0.txt:455: attempt to call method 'setEnvironmentSound' (a nil value)


RE: Starfall Function Request - Person8880 - 10-10-2016

Yes it's enabled by default, and the server had to restart to load it so it wasn't loaded when you tried.