Making a model solid
hi im trying to make carmodels solid but when I used
Code:
|
Code:
Code:
Mess with sizes to figure out what u need to set your car at. |
thank you hopefully it works :D
so for example it would be like this? Code:
|
it does work. Just a matter of using it correctly.
|
You don't seem to understand how entity_set_size works:
Its runs this: pfnSetAbsBox That is the controller of the main bounding box, so running jumping or w/e this is constantly updating. How it works: It gets the origin of any given entity then adds on the mins & maxes values. So using this native you need origin + min and origin + max, else it won't work as you expected. Its how I was able to make my tripmine script on AMX forums, so that you could stand on them instead of bouncing around like a tit (original) :lol: |
Code:
Don't know EXACTLY what you are talking about Target with the whole origin + min, but incase you think I'm saying something I'm not, that is an example of creating a player model and that would set its size to the exact size of a player. Used that exact script in several of my plugins and works. |
how it should be written:
Code:
|
maybe in AMX, however the way I wrote it is how it works in AMXX.
|
Install PM Tools to trace it, the native is exactly the same. I think it also depends on the SOLID_STATE, but as I said its how the actual HL engine (pfnSetAbsBox) does this!
|
target, thats wrong.
The engine automatically does the origin addition for you, so that it DOES update each and every frame. If you simply did the origin statically like that, it would only work for one frame. The engine handles the origin addition for you. |
| All times are GMT -4. The time now is 20:22. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.