QUOTE (ArteGordon @ Jan 24 2006, 09:21 PM) |
hmm, perhaps their backpack was full, and when the flag was placed in their pack it dropped to the ground? |
QUOTE |
if (!b.Deleted && b.Flag != null && !b.Flag.Deleted) { if (b.Flag.RootParent is Mobile) { Mobile m = b.Flag.RootParent as Mobile; // make sure a participant has it IChallengeEntry entry = GetParticipant(m); if (entry != null) { // display the flag //m.PublicOverheadMessage( MessageType.Regular, BaseChallengeGame.TeamColor(b.Team), false, b.Team.ToString()); Effects.SendTargetParticles(m, 0x375A, 35, 10, BaseChallengeGame.TeamColor(b.Team), 0x00, 9502, (EffectLayer)255, 0x100); } else { b.ReturnFlag(); } } else if (!b.HasFlag) { b.ReturnFlag(); } } |
CODE |
// check for anyone carrying flags if(HomeBases != null) { ArrayList dlist = null; foreach(CTFBase b in HomeBases) { if(b == null || b.Deleted) { if(dlist == null) dlist = new ArrayList(); dlist.Add(b); continue; } if(!b.Deleted && b.Flag != null && !b.Flag.Deleted) { if(b.Flag.RootParent is Mobile) { Mobile m = b.Flag.RootParent as Mobile; // make sure a participant has it IChallengeEntry entry = GetParticipant(m); if(entry != null) { // display the flag //m.PublicOverheadMessage( MessageType.Regular, BaseChallengeGame.TeamColor(b.Team), false, b.Team.ToString()); Effects.SendTargetParticles( m, 0x375A, 35, 10, BaseChallengeGame.TeamColor(b.Team), 0x00, 9502, (EffectLayer)255, 0x100 ); } else { b.ReturnFlag(); } } else if (!b.HasFlag) { b.ReturnFlag(); } } } if(dlist != null) |