AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Entity angels and sizes mins/max (https://forums.alliedmods.net/showthread.php?t=188064)

Diegorkable 06-21-2012 18:36

Entity angels and sizes mins/max
 
hey

Lets say I got an entity, I set its angels to be like that '\', so I set X to 45.0, and Y & Z to 0.0. right?
If I want to fit the entity size to that '\' shape, how can I do that? sizes of mins and max create me a box as I can see, and it can not make a shape of '\', so player will see a model standing like that '\' but when he'll try to stand on it he'll sense that the object is that way ' | '.

Any advice? (on how can I make the entity size to be fit like that '\')

ConnorMcLeod 06-22-2012 01:06

Re: Entity angels and sizes mins/max
 
If what you say works, then the default model you use should be '|', because if you set 45° on '\' you may see '-'

roymor 06-22-2012 07:05

Re: Entity angels and sizes mins/max
 
Quote:

Originally Posted by ConnorMcLeod (Post 1733629)
If what you say works, then the default model you use should be '|', because if you set 45° on '\' you may see '-'

He ment the he set the angle of the model to be like this '\' but the solid part which you stand on stayed like this '|' or this '_'

Diegorkable 06-22-2012 07:32

Re: Entity angels and sizes mins/max
 
Connor, If I do entity_set_vector(ent, EV_VEC_angles, angles);
when angles = { 45.0, 0.0, 0.0 }, then entity would look like this -> ' \ '.

The problem is that when you try to stand on that block, you sense like its ' | ' (an invisible box which you stand on). Well I believe these are the mins and max sizes:

PHP Code:

entity_get_vector(entEV_VEC_minssize_min);
    
entity_get_vector(entEV_VEC_maxssize_max); 

My question is, whenever I supply parameters to size_min and size_max then I re-set it with entity_set_vector, it will always create me a box, means I can not create the invisible box to be like that ' \ ', only its angels to be set like that. Because when I give parameters in size_min and size_max, I give X, Y and Z. means I give parameters to making a box, and a box can not be like that ' \ ' (atleast with size_min and size_max, probably I am missing some function that does that).

My main point is that I see from the angles set the object standing like this ' \ ', but when trying to stand on it you sense that its like this ' | '.

How do I set the actual box to be like this ' \ ' the same as it is viewed?

SpeeDeeR 02-02-2014 12:08

Re: Entity angels and sizes mins/max
 
I have to bump that old thread. I was wondering the same thing for some time now.

SpeeDeeR 05-12-2014 09:11

Re: Entity angels and sizes mins/max
 
Bump.

Backstabnoob 05-12-2014 09:26

Re: Entity angels and sizes mins/max
 
I don't think you can do that with scripting.

meTaLiCroSS 05-12-2014 21:18

Re: Entity angels and sizes mins/max
 
Have you tried with this?

.Dare Devil. 05-13-2014 08:35

Re: Entity angels and sizes mins/max
 
Quote:

Originally Posted by meTaLiCroSS (Post 2136977)
Have you tried with this?

You can make ghost entities with that.
Those bmod things only collide with the word, not with the ohter entities sadly.

meTaLiCroSS 05-13-2014 16:46

Re: Entity angels and sizes mins/max
 
Quote:

Originally Posted by .Dare Devil. (Post 2137146)
You can make ghost entities with that.
Those bmod things only collide with the word, not with the ohter entities sadly.

Hmm, so I think there's no solution for this, this has been discussed many times


All times are GMT -4. The time now is 06:13.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.