Raised This Month: $ Target: $400
 0% 

Model always in 15 units after eyes


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
draft
Senior Member
Join Date: Jul 2007
Location: Russia, Saint-Petersburg
Old 08-05-2008 , 06:18   Model always in 15 units after eyes
Reply With Quote #1

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.
__________________
draft is offline
Vet
Veteran Member
Join Date: Jul 2006
Location: I|O wa
Old 08-05-2008 , 19:13   Re: Model always in 15 units after eyes
Reply With Quote #2

What model are you talking about? The player model? A weapon model? A custom model? You'll have to be more specific.
__________________
=====================================
- My Plugins -
=====================================
Vet is offline
Send a message via MSN to Vet
draft
Senior Member
Join Date: Jul 2007
Location: Russia, Saint-Petersburg
Old 08-06-2008 , 06:06   Re: Model always in 15 units after eyes
Reply With Quote #3

How does it matter? Ok, lets say it player model, just for example
__________________
draft is offline
Vet
Veteran Member
Join Date: Jul 2006
Location: I|O wa
Old 08-06-2008 , 08:50   Re: Model always in 15 units after eyes
Reply With Quote #4

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.
__________________
=====================================
- My Plugins -
=====================================
Vet is offline
Send a message via MSN to Vet
draft
Senior Member
Join Date: Jul 2007
Location: Russia, Saint-Petersburg
Old 08-06-2008 , 10:48   Re: Model always in 15 units after eyes
Reply With Quote #5

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
__________________
draft is offline
Vet
Veteran Member
Join Date: Jul 2006
Location: I|O wa
Old 08-06-2008 , 10:59   Re: Model always in 15 units after eyes
Reply With Quote #6

Evidently you don't understand the philosophy of designing a model with an origin offset.
__________________
=====================================
- My Plugins -
=====================================
Vet is offline
Send a message via MSN to Vet
draft
Senior Member
Join Date: Jul 2007
Location: Russia, Saint-Petersburg
Old 08-07-2008 , 04:38   Re: Model always in 15 units after eyes
Reply With Quote #7

lol, u are great philosoph but not real coder as i see
try to read attentivily my first post about origin offset
__________________
draft is offline
Vet
Veteran Member
Join Date: Jul 2006
Location: I|O wa
Old 08-07-2008 , 10:46   Re: Model always in 15 units after eyes
Reply With Quote #8

Quote:
Originally Posted by draft View Post
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
__________________
=====================================
- My Plugins -
=====================================
Vet is offline
Send a message via MSN to Vet
danielkza
AMX Mod X Plugin Approver
Join Date: May 2007
Location: São Paulo - Brasil
Old 08-07-2008 , 12:19   Re: Model always in 15 units after eyes
Reply With Quote #9

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.
danielkza is offline
draft
Senior Member
Join Date: Jul 2007
Location: Russia, Saint-Petersburg
Old 08-08-2008 , 03:32   Re: Model always in 15 units after eyes
Reply With Quote #10

Quote:
Originally Posted by Vet View Post
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)
__________________
draft is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:12.


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