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).
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).
"with it's superior software, i have no doubt it will succeed in finding fuck all" - T-17, 2016
[Super Member] [ENCOM] т-ѕсм.Red The Blue Color™: server do you support Hitler?
[Server] srcds_linux: The probabilty is about 99.99%, so interpret that how you want to.
(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.
(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).
(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 ?
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.
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...
(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.