Raised This Month: $51 Target: $400
 12% 

MOVETYPE_FOLLOW offsets


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 04-17-2009 , 15:17   MOVETYPE_FOLLOW offsets
Reply With Quote #1

Is it possible to set offsets between the origin/angles of a follower and a followed?
__________________
joaquimandrade is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 04-17-2009 , 15:55   Re: MOVETYPE_FOLLOW offsets
Reply With Quote #2

You can save them in the follower (if not a player) in pev_vuser[1|2] and then when you set the angles/origin, just add those to the origins you want.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 04-17-2009 , 15:56   Re: MOVETYPE_FOLLOW offsets
Reply With Quote #3

Quote:
Originally Posted by Exolent[jNr] View Post
You can save them in the follower (if not a player) in pev_vuser[1|2] and then when you set the angles/origin, just add those to the origins you want.
But that would require to hook player_prethink (To keep the offsets when the followed moves)
__________________
joaquimandrade is offline
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 04-17-2009 , 16:04   Re: MOVETYPE_FOLLOW offsets
Reply With Quote #4

Basically what i'm asking if there is a non expensive and native way of making a entity following another but having the origins/angles separated by offsets. I found a nice way of doing that but not for half-life. http://pastebin.com/m635fc165 I was wondering if there is something similar to this in half-life.
__________________
joaquimandrade is offline
PartialCloning
Senior Member
Join Date: Dec 2015
Old 12-23-2015 , 19:25   Re: MOVETYPE_FOLLOW offsets
Reply With Quote #5

Does anyone happen to know what way he was talking about? The pastebin has been removed.
PartialCloning 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 20:18.


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