Model always in 15 units after eyes
I need code to make the model seenable always on the front of player. It is like pev_aiment, but i need to set my model always in 15 units on front of eye direction (15 units after eye position). Using set_origin in postthink doesnt work correctly cause this function is called slower than player moves and he always moves through my model.
|
Re: Model always in 15 units after eyes
What model are you talking about? The player model? A weapon model? A custom model? You'll have to be more specific.
|
Re: Model always in 15 units after eyes
How does it matter? Ok, lets say it player model, just for example
|
Re: Model always in 15 units after eyes
It matters because if it was your own custom model, then you could imbed an offset into the model and simply set the pev_aiment and let the engine do all the work.
|
Re: Model always in 15 units after eyes
omg, aiment is not solution because the model is following the player at backside but i need to see it in front of my eye position
|
Re: Model always in 15 units after eyes
Evidently you don't understand the philosophy of designing a model with an origin offset.
|
Re: Model always in 15 units after eyes
lol, u are great philosoph but not real coder as i see
try to read attentivily my first post about origin offset |
Re: Model always in 15 units after eyes
Quote:
Approved plugins: Draft - 1 Vet - 11 I can see now why nobody else is bothering to help you. GL/HF |
Re: Model always in 15 units after eyes
I never tested it and i have no time to write the code,but i suppose using and angle vector from the player's eye position will do the job.
|
Re: Model always in 15 units after eyes
Quote:
|
| All times are GMT -4. The time now is 05:35. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.