.float power_sounded;\r
void PlayerPreThink (void)\r
{\r
- portrait(self); // TEMPORARY TEST\r
+ portrait(self, self); // TEMPORARY TEST\r
\r
self.stat_game_starttime = game_starttime;\r
self.stat_allow_oldnexbeam = cvar("g_allow_oldnexbeam");\r
\r
float portrait_SendEntity(entity to, float sf)\r
{\r
+ if(to != self.owner)\r
+ return FALSE;\r
+\r
WriteByte(MSG_ENTITY, ENT_CLIENT_PORTRAIT);\r
\r
string s;\r
return TRUE;\r
}\r
\r
-void portrait(entity pl)\r
+void portrait(entity pl, entity targ)\r
{\r
entity e;\r
e = spawn();\r
e.classname = "portrait";\r
setmodel(e, pl.model);\r
e.skin = pl.skin;\r
+ e.owner = targ;\r
\r
Net_LinkEntity(e, FALSE, 0.1, portrait_SendEntity);\r
}\r