AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Model always in 15 units after eyes (https://forums.alliedmods.net/showthread.php?t=75419)

draft 08-05-2008 06:18

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.

Vet 08-05-2008 19:13

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.

draft 08-06-2008 06:06

Re: Model always in 15 units after eyes
 
How does it matter? Ok, lets say it player model, just for example

Vet 08-06-2008 08:50

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.

draft 08-06-2008 10:48

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

Vet 08-06-2008 10:59

Re: Model always in 15 units after eyes
 
Evidently you don't understand the philosophy of designing a model with an origin offset.

draft 08-07-2008 04:38

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

Vet 08-07-2008 10:46

Re: Model always in 15 units after eyes
 
Quote:

Originally Posted by draft (Post 665790)
lol, u are great philosoph but not real coder as i see

Hmmm, lets see...
Approved plugins:
Draft - 1
Vet - 11

I can see now why nobody else is bothering to help you. GL/HF

danielkza 08-07-2008 12:19

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.

draft 08-08-2008 03:32

Re: Model always in 15 units after eyes
 
Quote:

Originally Posted by Vet (Post 665919)
Hmmm, lets see...
Approved plugins:
Draft - 1
Vet - 11

I can see now why nobody else is bothering to help you. GL/HF

Man, ive made about 50 plugins for my own needs and didnt post them here, so u talk like a little child. If u cant help me, then dont post here anything plz. If u are a greatest coder, then give me working solution and i will say thanks, cause this deal is for my anticheat, that will be useful for all people (especially, this one is anti wallhack section)


All times are GMT -4. The time now is 05:35.

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