[ STOCK/INC ] Find player in box
1 Attachment(s)
.: Find player in box :. Hello, I've made this simple stock to find alive players in a imaginary box. Box color is white as default. Usage: Code:
There are several ways to customize this code, such as store all players in an array, get entities instead of players, get players on a specific team... but I'm lazy now, maybe later. |
Re: [ STOCK/INC ] Find player in box
Quote:
|
Re: [ STOCK/INC ] Find player in box
Basically this intersects vectors. I've updated the code, since I did wrong in that part, more precisely like c++.
|
Re: [ STOCK/INC ] Find player in box
Quote:
|
Re: [ STOCK/INC ] Find player in box
What if the player is just touching the box? I mean half body inside, half outside of the box.
Check code for hull collisions on sdk to understand. |
Re: [ STOCK/INC ] Find player in box
Code doesn't detect when player touch the box, instead check if player absmin/absmax is inside of the box mins/maxs. You can start a TE_BOX message based on player's vectors to see what I'm trying to explain.
|
All times are GMT -4. The time now is 04:01. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.