2 registered members (Ayumi, 1 invisible),
584
guests, and 1
spider. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: C_SCAN help please
[Re: MasterQ32]
#415565
01/20/13 14:08
01/20/13 14:08
|
Joined: Jan 2013
Posts: 30
Romin
OP
Newbie
|
OP
Newbie
Joined: Jan 2013
Posts: 30
|
you can use ent_next to go trough all entities
for(you = ent_next(NULL); you; you = ent_next(you))
{
if(vec_dist(my.x, you.x) > myDistance)
continue; // Skip unwanted entities
// DO stuff here :
set(you, FLAG1);
}
It is very costly if you have lots of entities in your level. specially in my case where all enemy entities would be using this function frequently. I don't want to go through all the entities in my level to find who is in the range i am already using cpu power with c_scan.
|
|
|
Re: C_SCAN help please
[Re: Romin]
#415669
01/22/13 03:24
01/22/13 03:24
|
Joined: Jan 2013
Posts: 41
Redoine
Newbie
|
Newbie
Joined: Jan 2013
Posts: 41
|
sometimes my antivirus delete some compiled projects or dimos (*.exe)files is it right !! can we make viruses with lite c
Last edited by Redoine; 01/22/13 03:27.
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|