View Single Post
caphao1101
Member
Join Date: Aug 2023
Old 04-12-2024 , 09:36   Re: [L4D2] How to remove melee weapons at the start of the map and safe room
Reply With Quote #4

Quote:
Originally Posted by Silvers View Post
You should add pos[2] += 5.0 or 10.0 before calling the natives because the updated natives L4D_IsPositionIn* in Left4DHooks require line of sight to the nearest NavArea which on certain maps are blocked by a table etc.

You also need to reset entity to -1 before doing the next while loop in plugin start.

Maybe RemoveEntity is safer to use in these instances.
I don't know what you mentioned but it works fine in my server
caphao1101 is offline