Multiple TraceHull
Using a TraceHull is very cool but can we detect multiple targets with it?
For example more than one player stant between the points and I want to print their names. With TraceLine we can create multiple lines from the last endpoint to a new one but it is not possible here. Any solution? |
Re: Multiple TraceHull
we sure can, such an issue already was mentioned, you need to call tracehull multiplie times.
|
Re: Multiple TraceHull
The solution working with traceline cause you can set the ignored ent with the last targeted ent and the new startpoint with the last endpoint.
In this case if I set the ignored ent to the last targeted ent nothing will change except that one will be ignored. But if you have at least 3 players in the range you won't be able to detect the 3rd one cause you only can ignore one ent. That's why I think it doesn't work here. |
Re: Multiple TraceHull
https://forums.alliedmods.net/showthread.php?t=292114
PHP Code:
|
Re: Multiple TraceHull
Super Cool! Thank you a lot. :)
Here is my code based on yours: PHP Code:
|
Re: Multiple TraceHull
For documentation
This can be done hooking RG_CBaseEntity_FireBullets3 with ReAPI and modifying iPenetration parameter. Or if it isn't a weapon (a turret for example), just use rg_fire_bullets3/rg_fire_bullets native on ReAPI too. |
All times are GMT -4. The time now is 13:30. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.