Game Development Community

Selective Client-Side Rendering

by Scott Doerrfeld · in Torque Game Engine · 06/18/2007 (7:57 pm) · 4 replies

I am trying to implement a cloaking feature that makes my player invisible, but only to certain clients. (i.e. Only members of my team can see me.) Anyone have any suggestions?

#1
06/18/2007 (8:06 pm)
In Player::PackUpdate(),
when player X is being packed up for client/player Y,
you can test if they're on the same team.

using that you should be able to modify the standard invisible flag s.t. you're always visible to team-members.
#2
06/18/2007 (8:07 pm)
Alternatively, ghost down the player's team as part of Player::PackUpdate(),
and have each client filter the visibility of other players based on whether they're on the same team.
#3
07/26/2007 (9:06 am)
What is the function/variable that will toggle a player's visibility?
#4
07/26/2007 (3:42 pm)
ShapeBase defines setCloaked, isCloaked and canCloak as console methods.
It also defines a cloakedTexture in the datablock.