Home » Renegade Discussions » Mod Forum » Question...
Re: Question... [message #466392 is a reply to message #465856] |
Thu, 19 April 2012 17:44 |
|
Whitedragon
Messages: 832 Registered: February 2003 Location: California
Karma:
|
Colonel |
|
|
int Get_Object_Count_In_Zone(GameObject *obj,int Team) {
if (!obj || !Commands->Get_ID(obj)) {
return 0;
}
ScriptZoneGameObj *Zone = obj->As_ScriptZoneGameObj();
if (!Zone) {
return 0;
}
int Return = 0;
for (SLNode<SmartGameObj> *z = GameObjManager::SmartGameObjList.Head();z;z = z->Next()) {
if ((Get_Object_Type(z->Data()) == Team || Team == 2) && Zone->Inside_Me(z->Data())) {
Return++;
}
}
return Return;
}
int Get_Player_Count_In_Zone(GameObject *obj,int Team) {
if (!obj || !Commands->Get_ID(obj)) {
return 0;
}
ScriptZoneGameObj *Zone = obj->As_ScriptZoneGameObj();
if (!Zone) {
return 0;
}
int Return = 0;
for (SLNode<SoldierGameObj> *z = GameObjManager::StarGameObjList.Head();z;z = z->Next()) {
if ((Get_Object_Type(z->Data()) == Team || Team == 2) && Zone->Inside_Me(z->Data())) {
Return++;
}
}
return Return;
}
Black-Cell.net
Network Administrator (2003 - )
DragonServ, Renegade's first IRC interface bot
Creator and lead coder (2002 - )
Dragonade, Renegade's first server side modification
Lead coder (2005 - )
[Updated on: Thu, 19 April 2012 17:48] Report message to a moderator
|
|
|
|
|
Question...
By: FeaR on Tue, 10 April 2012 01:18
|
|
|
Re: Question...
|
|
|
Re: Question...
By: FeaR on Tue, 10 April 2012 01:42
|
|
|
Re: Question...
|
|
|
Re: Question...
By: robbyke on Tue, 10 April 2012 08:16
|
|
|
Re: Question...
By: Ethenal on Tue, 10 April 2012 16:56
|
|
|
Re: Question...
|
|
|
Re: Question...
By: FeaR on Wed, 11 April 2012 01:27
|
|
|
Re: Question...
By: FeaR on Wed, 11 April 2012 09:03
|
|
|
Re: Question...
By: jlhill17 on Wed, 11 April 2012 13:40
|
|
|
Re: Question...
|
|
|
Re: Question...
By: FeaR on Thu, 12 April 2012 13:40
|
|
|
Re: Question...
By: robbyke on Wed, 18 April 2012 02:31
|
|
|
Re: Question...
|
|
|
Re: Question...
By: robbyke on Wed, 18 April 2012 08:18
|
|
|
Re: Question...
|
|
|
Re: Question...
By: robbyke on Wed, 18 April 2012 17:55
|
|
|
Re: Question...
|
|
|
Re: Question...
By: robbyke on Thu, 19 April 2012 15:31
|
|
|
Re: Question...
By: robbyke on Sat, 28 April 2012 16:19
|
|
|
Re: Question...
By: Omar007 on Wed, 18 April 2012 15:07
|
|
|
Re: Question...
|
|
|
Re: Question...
By: robbyke on Thu, 19 April 2012 18:53
|
|
|
Re: Question...
|
|
|
Re: Question...
By: robbyke on Fri, 20 April 2012 05:52
|
|
|
Re: Question...
|
|
|
Re: Question...
By: jonwil on Fri, 20 April 2012 07:14
|
|
|
Re: Question...
By: robbyke on Fri, 20 April 2012 11:07
|
Goto Forum:
Current Time: Mon Dec 23 05:57:46 MST 2024
Total time taken to generate the page: 0.01049 seconds
|