当前位置:首页>>魔兽单机>>正文
Mangos单机端服务端。让玩家死亡后,团队成员可见
2013-04-08 16:39:38 作者:网络 来源: 浏览次数:0
摘要:仿官方M服务端。让玩家死亡后,团队成员可见
让玩家死亡后,团队成员可见,顾名思义,就是死亡后,你的团队成员照样可以看见你。。适用于mangos端。。比较老的代码,作为参考使用


diff - git a / src / game / Player . cpp b / src / game / Player . cpp 
index d187d68 . f9509e .1 100644 
--- a / src / game / Player . cpp 
+ + + b / src / game / Player . cpp 
@ @ - 19564 , 6 + 19 564 , 20 @ @ bool Player :: IsVisibleInGridForPlayer ( Player * pl  ) const 
         Return true ; 
     } 
  
+    / / See Dead Live Player Player Only in this Group 
+ If (const Group * pGroup = GetGroup ()) 
+ { 
+ If ( pGroup ) 
+ { 
+            Unit * target = (( Player *) pl ); 
+ If ( target -> GetTypeId () == TYPEID_PLAYER & & pGroup -> IsMember ((( Player *) target ) -> GetObjectGuid ())) 
+ { 
+ If (! ( IsAlive () | | m_deathTimer > 0 ) & & IsFriendlyTo ( pl )) 
+ Return true ; 
+} 
+} 
+} 
     / / Live player see live player or dead player with not realized corpse 
     if ( pl -> IsAlive () | | pl -> m_deathTimer > 0 ) 
     {  


相关报道:

[关闭] [返回顶部]


  返回首页 | 最新资讯 | 资源下载 | 魔兽图片 | 单机文档 | 技术攻略 | 玩家视频
备案号:蜀ICP备2024062380号-1
免责声明:本网站为热爱怀旧WOW的玩家们建立的魔兽世界资料网站,仅供交流和学习使用,非盈利和商用.如有侵权之处,请联系我们,我们会在24小时内确认删除侵权内容,谢谢合作。
Copyright © 2024 - 2024 WOWAII.COM Corporation, All Rights Reserved

机器人国度