搜索
查看: 2052|回复: 5

求助——如何知道正在观察哪个人?

[复制链接]
发表于 2007-10-3 09:08:03 | 显示全部楼层 |阅读模式 来自 中国–广东–中山
在游戏中,已经阵亡的玩家和观察者都可以以第一人称观战。我想让观察者知道当前正在观察的人的资料。
比如说玩家A死了,现在在看玩家B的第一人称,我想在玩家A的屏幕显示玩家B的资料,例如护甲数值、金钱、武器剩余弹药数量等平常不会显示出来的东西。
请问应该怎么写?
谢谢指导了!

BTW:怎么最近老是无法访问哦?
发表于 2007-10-3 21:03:46 | 显示全部楼层 来自 中国–上海–上海–松江区

回复: 求助——如何知道正在观察哪个人?

希望这个插件源码能够帮得到你:

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注个册吧

×
回复

使用道具 举报

发表于 2007-10-3 23:43:36 | 显示全部楼层 来自 中国–广东–深圳

回复: 求助——如何知道正在观察哪个人?

landyhsu真是个大好人
回复

使用道具 举报

 楼主| 发表于 2007-10-4 08:45:14 | 显示全部楼层 来自 中国–广东–中山

回复: 求助——如何知道正在观察哪个人?

谢谢二楼的朋友帮助!
回复

使用道具 举报

发表于 2007-10-7 21:42:22 | 显示全部楼层 来自 中国–广东–潮州–湘桥区

回复: 求助——如何知道正在观察哪个人?

event:


StatusValue

Sends/updates the status values. For the Flag 1 the Value is TeamRelation, for 2 is PlayerID, for 3 is Health. For TeamRelation, 1 is Teammate player, 2 is Non-Teammate player, 3 is Hostage. If TeamRelation is Hostage, PlayerID will be 0 or will be not sent at all.

Usually is fired as a triple message, for example:
{1,  2}  -  non-teammate player{2, 17}  -  player index is 17{3, 59}  -  player health is 59Name: StatusValue Structure: byte Flag short Value
回复

使用道具 举报

 楼主| 发表于 2007-10-8 15:33:18 | 显示全部楼层 来自 中国–广东–中山

回复: 求助——如何知道正在观察哪个人?

Post by Ryu2877
event:


StatusValue

Sends/updates the status values. For the Flag 1 the Value is TeamRelation, for 2 is PlayerID, for 3 is Health. For TeamRelation, 1 is Teammate player, 2 is Non-Teammate player, 3 is Hostage. If TeamRelation is Hostage, PlayerID will be 0 or will be not sent at all.

Usually ...
这个我看过的,只是不知道具体如何应用.还在研究中!
回复

使用道具 举报

游客
回复
您需要登录后才可以回帖 登录 | 注个册吧

快速回复 返回顶部 返回列表