Playerclips!!


(whoosaaa) #1

Hi

was wondering if some1 could explain how so set mins and maxs on playerclips to prevent trickjumping or kind of cheating in a game…
I know the possition to start, but dont know what the mins and maxs does.
Well i know that they are (x,y,z) coordinates, but on what scale.

My idea is putting up a playerclip on adlerhorst to prevent allies to nade jump on roof and then steal obj. Kind off lame.

greets whooSaaa


(Avoc) #2

Uhm… you just use the “clip” texture found in common folder and add brushes to the areas you do not wish the players to abuse.

Maxs and mins are values used for the command map, not to stop players from TJ’ing.


(whoosaaa) #3

Hi

I ws talking about adding playerclips in script not in map…

example
create
{
scriptName “fueljump1”
classname “func_fakebrush”
origin “-8762 -5157 648”
contents 65536 // CONTENTS_PLAYERCLIP // high fueljump
mins “-250 -50 -50”
maxs “50 50 150”
}


(TomTom7777) #4

The mins and maxs are relative values that create the 2 diagonally opposite corners of the func_fakebrush box i.e. the vector additions:

Corner1(x,y,z) = origin(x,y,z) + mins(x,y,z)
and
Corner2(x,y,z) = origin(x,y,z) + maxs(x,y,z).

In my experience using such in FritzBot the following is required
Corner1(x) < Corner2(x)
Corner1(y) < Corner2(y)
Corner1(z) < Corner2(z)
The fake brush sides only align parallel to the 3 axises never at an angle.
If you mix up a min for a max the func_fakebrush either is not placed or it does not function correctly.


(whoosaaa) #5

sorry im a bit confused.

If my origin is…

x 1120
y 1216
z 272

the size off brush
x 32
y 4720
z 200

How do i fill in the mins and maxs.


(dutchmeat) #6

Aren’t mins and maxs the physical boundry of an entity? ( playerMins = {-18, -18, -24}; playerMaxs = {18, 18, 48}:wink:


(TomTom7777) #7

[QUOTE=whoosaaa;178438]sorry im a bit confused.

If my origin is…

x 1120
y 1216
z 272

the size off brush
x 32
y 4720
z 200

How do i fill in the mins and maxs.[/QUOTE]

if your origin is in the center of mass (homogeneous);

origin “1120 1216 272”
mins “-16 -2360 -100”
maxs “16 2360 100”

if say your origin is your position when standing (in the center x-y) and it is to extend down to the floor then
origin “1120 1216 272”
mins “-16 -2360 -48”
maxs “16 2360 152”

might be a first approximation


(whoosaaa) #8

Thx Tom got it now…

Easy to remmember, always from center.

Thx


(nUllSkillZ) #9

Depends on the origin.
For me it’s easier to think of the origin as one of the edges.
So for example mins would for be “0 0 0” and maxs would be “32 4720 200”.