Team Spartan Cookies & Milk Forums
Suggestions - Printable Version

+- Team Spartan Cookies & Milk Forums (https://teamscm.co.uk)
+-- Forum: Garry's Mod (https://teamscm.co.uk/forum-4.html)
+--- Forum: Starfall (https://teamscm.co.uk/forum-7.html)
+--- Thread: Suggestions (/thread-2541.html)



Suggestions - Yuri6037 - 12-12-2017

Hi

These are just a few ideas I got to improve Starfall :

- A stargate.dial(ply, addr, mode) function which would dial nearest gate to player ply, would permit portable dhd like kinoremote. Maybe add a permission...

- A function to get the name and author of a Starfall entity.

- I'm not sure if it's a bug or intended but CheckTricorderOverride does only get called on the calling Starfall entity not for all owned entities.

- Maybe allowing SF emitters to work when used by a player inside the owner's ship when cloaked (player pos is always null vector when in a cloaked ship).

Thanks,
Yuri6037


RE: Suggestions - Red The Blue Color - 12-12-2017

You can create a function yourself that does this but obviously world gates will not work due to how easy it would be to abuse.
(12-12-2017, 01:43 AM)Yuri6037 Wrote: - A stargate.dial(ply, addr, mode) function which would dial nearest gate to player ply, would permit portable dhd like kinoremote. Maybe add a permission...

I'm semi-sure you can still get the position of players inside of your own cloaked ship but not positive.
(12-12-2017, 01:43 AM)Yuri6037 Wrote: - Maybe allowing SF emitters to work when used by a player inside the owner's ship when cloaked (player pos is always null vector when in a cloaked ship).



RE: Suggestions - Yuri6037 - 12-12-2017

(12-12-2017, 04:54 AM)Red The Blue Color Wrote: You can create a function yourself that does this but obviously world gates will not work due to how easy it would be to abuse.
(12-12-2017, 01:43 AM)Yuri6037 Wrote: - A stargate.dial(ply, addr, mode) function which would dial nearest gate to player ply, would permit portable dhd like kinoremote. Maybe add a permission...

I'm semi-sure you can still get the position of players inside of your own cloaked ship but not positive.
(12-12-2017, 01:43 AM)Yuri6037 Wrote: - Maybe allowing SF emitters to work when used by a player inside the owner's ship when cloaked (player pos is always null vector when in a cloaked ship).

For the first problem, well my solution was actually allowing dialing like kinoremote in a way that it could not be abusive (if player that is passed did not allow dialing near gates then do not dial, could be usefull in a HUD)...
For the second problem, I actualy tested that and it does only work when you cloak the ship being outside of it and then enter it, but if you're already inside cloaking fails all SF emitters due to position = null vector.


RE: Suggestions - Person8880 - 13-12-2017

(12-12-2017, 01:43 AM)Yuri6037 Wrote: - A stargate.dial(ply, addr, mode) function which would dial nearest gate to player ply, would permit portable dhd like kinoremote. Maybe add a permission...
This is already possible to implement with the functions provided.

(12-12-2017, 01:43 AM)Yuri6037 Wrote: - A function to get the name and author of a Starfall entity.
See starfall.getName( Entity ) and starfall.getAuthor( Entity ).

(12-12-2017, 01:43 AM)Yuri6037 Wrote: - I'm not sure if it's a bug or intended but CheckTricorderOverride does only get called on the calling Starfall entity not for all owned entities.
This is not a bug. The hook is for interacting with the Starfall entity only.

(12-12-2017, 01:43 AM)Yuri6037 Wrote: - Maybe allowing SF emitters to work when used by a player inside the owner's ship when cloaked (player pos is always null vector when in a cloaked ship).
This should be fixed after the next restart.


RE: Suggestions - Yuri6037 - 13-12-2017

(13-12-2017, 05:12 PM)Person8880 Wrote:
(12-12-2017, 01:43 AM)Yuri6037 Wrote: - A stargate.dial(ply, addr, mode) function which would dial nearest gate to player ply, would permit portable dhd like kinoremote. Maybe add a permission...
This is already possible to implement with the functions provided.

(12-12-2017, 01:43 AM)Yuri6037 Wrote: - A function to get the name and author of a Starfall entity.
See starfall.getName( Entity ) and starfall.getAuthor( Entity ).

(12-12-2017, 01:43 AM)Yuri6037 Wrote: - I'm not sure if it's a bug or intended but CheckTricorderOverride does only get called on the calling Starfall entity not for all owned entities.
This is not a bug. The hook is for interacting with the Starfall entity only.

(12-12-2017, 01:43 AM)Yuri6037 Wrote: - Maybe allowing SF emitters to work when used by a player inside the owner's ship when cloaked (player pos is always null vector when in a cloaked ship).
This should be fixed after the next restart.

Thank you.
About the first suggestion. I know it is possible to use existing functions, otherwise I would not have asked. What I meant is that the existing functions do not permit to dial any gate like the kinoremote permits...

About CheckTricorderOverride, what is the point of deactivating tricorder for the SF entity only ?

Thanks,
Yuri6037


RE: Suggestions - Kosmos - 13-12-2017

It seems that starfall can't interact with world gates at all anymore. If it could, you could easily filter the list of existing gates for the one closest to the player, and then dial the target. The point being, if you can't dial world gates with normal functions why should you be able to with a simple combination of existing functions?
Every entity handles usage of the tricorder differently, stargates open the dial menu, kinos get what they deserve and starfall... calls the handler you made.


RE: Suggestions - Yuri6037 - 14-12-2017

Well, world gates are dialable by kinoremote... I just wanted to make a custom portable DHD.

What I wanted about the tricorder is a way to disable it on all ship entities... I know you can remove use permission, but I'd like to restrict certain doors while still being able to press some buttons...


RE: Suggestions - Kosmos - 15-12-2017

I believe typically the "disable use" input also acts as a "disable tricorder" input.


RE: Suggestions - Yuri6037 - 15-12-2017

(15-12-2017, 11:34 AM)Kosmos Wrote: I believe typically the "disable use" input also acts as a "disable tricorder" input.

It works only for Stargazer entities, SBEP doors are still affected by tricorder. Tested with Starfall Emitter "DoorIndicator" and wire constant value.
"Disable Use" disables the use key on SBEP doors, but not the tricorder.