Player between a Rectangle
1 Attachment(s)
This Snippet checks if a player is between a rectangular area specified by two opposite corners
Picture (; http://forums.alliedmods.net/attachm...1&d=1288698870 PHP Code:
|
Re: Player between a Rectangle
Define: between a rectangle.
|
Re: Player between a Rectangle
Which rectancle?
|
Re: Player between a Rectangle
Oh sry, i updated my first post
"Checks if a player is between a rectangular area specified by two opposite corners" And also add a Picture ^^ |
Re: Player between a Rectangle
Why not make it Vector instead of client?
|
Re: Player between a Rectangle
Ok, i updated the first post, where both is possible (;
|
Re: Player between a Rectangle
Shouldn't that be check if a client is within a box (cube)? A rectangle is 2 dimensional shape.
|
Re: Player between a Rectangle
"rectangular area" means "cuboid"
|
Re: Player between a Rectangle
Not in English, a rectangle is the surface of one side of a cube.
|
Re: Player between a Rectangle
Mh, ok ;D
|
Re: Player between a Rectangle
it should note it uses abs-origin, not eye-pos
nice job, if only it can be used to detect player stuck *cough check hull doesnt capture everything*? |
Re: Player between a Rectangle
PHP Code:
|
Re: Player between a Rectangle
This uses too big assumptions to be useful.
It assumes that the cube is parallel with the axis in every direction. 2 points is not enough to define a cube without those assumptions, though. |
Re: Player between a Rectangle
Quote:
|
Re: Player between a Rectangle
This is awesome. Lets modders set up special areas in a map without trigger_multiple.
|
Re: Player between a Rectangle
...but trigger_multiple will save many CPU cycles.
|
| All times are GMT -4. The time now is 18:09. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.