Thread: [Solved] [H3LP] FindEntityInSphere
View Single Post
Lux
Veteran Member
Join Date: Jan 2015
Location: Cat
Old 02-11-2019 , 00:24   Re: [H3LP] FindEntityInSphere
Reply With Quote #5

Quote:
Originally Posted by Dragokas View Post
I'm sure FindEntityInSphere() do the same looping. Devs will correct me if I'm wrong.

+ sm_count
https://forums.alliedmods.net/showthread.php?p=1729015

Code:
	for( int i = 0; i < 4096; i++ )
	{
		if( IsValidEntity(i) && IsValidEdict(i) )
		{
			GetEdictClassname(i, sTemp, sizeof(sTemp));
https://github.com/ValveSoftware/sou....cpp#L685-L711

It looks that way.

Also why loop 4096 times you don't need to
you only can have 2048 entities +1 for world spawn.
__________________
Connect
My Plugins: KlickME
[My GitHub]

Commission me for L4D
Lux is offline