Hey, this one is mostly for @Wulf who made Vanish.
Im trying to have a player invisible (to some players, not all) BUT that you CAN hit. So I looked at the Vanish plugin to figure out how things are done : basically you tell the players that your invisible player is destroyed, and you prevent sending them news about it until he's visible again.
So the 'invisibility' only affect clients ... but hit detection doesnt work ! So if the client cant see you, he cant hit you. I assumed that hit detection was predicted client-side and actually done server-side, but its all done client side ?
So I see Vanish uses Message.Type.EntityDestroy but the point of that plugin was to have the player not targetable by anything. So maybe theres actually another way to make a player invisible ? Telling the client to disable the entity renderers ?
(sorry I lied about less spamming -_-)
Making player invisible (Vanish) but hitable ?
Discussion in 'Rust Development' started by Yatta, Jul 29, 2016.
-
Wulf Community Admin
In Vanish, the invisible player is not networking to the other players, only the excluded entities and the server itself. Anything not excluded will have no idea that player even exists or is even connected. You should still be able to able to be hurt though while vanished as you're still a normal player to yourself, which is why there are settings (ie. CanBeHurt) to toggle that for each aspect. Other players may not see that they are hurting you, but you should be able to receive damage still.
-
Animals seem to still target you when using Vanish but do no damage.
-
Wulf Community Admin