Creating truly solid entity
I've had a lot of trouble trying to create a solid entity. I've repetitively tried using code from other topics but my entity just won't be solid (shoot at/can't walk through). Here's the code I'm at now:
EDIT: This is the full code of the plugin. I've redundantly declared the entity a solid but it was just to confirm I was using it. PHP Code:
PHP Code:
I'm probably missing/doing something stupid, but I can't seem to figure out what it is that's wrong. Any help is appreciated. |
Re: Creating truly solid entity
Check out this plugin for good example code. That's what I did when I wanted to create a solid entity and it worked great:
http://forums.alliedmods.net/showthread.php?t=52927 |
Re: Creating truly solid entity
The problem appears to be with the entity size or solid state. I can break my boxes but i'm unable to shoot or be blocked by them I've revised some of my code and got this:
Quote:
|
Re: Creating truly solid entity
if using engine set this
entity_set_int(EntBlock,EV_INT_solid,SOLID_BB OX) for future there are solid constants (already defined) PHP Code:
|
Re: Creating truly solid entity
I've declared the entity as a solid plenty of times and i've tried all the different solid forms. doesn't seem to work. it might be the sizes but its pretty well defined at Float:{-32.0,-32.0,-32.0},Float:{32.0,32.0,32.0} for mins and maxes
|
Re: Creating truly solid entity
Like I said, try copying and pasting the entity information form pallets with bags and changing the specifics from there to locate your error. Have you tried that?
|
Re: Creating truly solid entity
I'm trying but it was a lot of stuff that is unrelated.
|
Re: Creating truly solid entity
Yeah, but if you actually read the code, rather than just look at it as someone banging their head on a keyboard and outputting a bunch of random characters, you'll see an amazingly concise and to the point function that perfectly pronounces the point of my suggestion;
Code:
Now, that works. Use that and alter the simple stuff like the model, for example. Bit by bit, until you find out where you went wrong. |
Re: Creating truly solid entity
I know it works, but I'm going to mainly using engine and not fakemeta, which pellets is using. I'm looking for a way to make the engine one work first. I've already gotten it to work now in both and it had to do with the order of setting the size of the entity.
|
Re: Creating truly solid entity
I am done with you.
|
| All times are GMT -4. The time now is 16:14. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.