Ent flying x units over player
Hi there!
Iv'e been searching the forums for over 2 hours now (yes, I said hours), but can find how to make an ent(camera) follow another ent (player), x units over the ent(player). And don't post some crap about topdown view. BTW the ent(camera) wont have any function, except that the player will attach its view to it (attach_view(id,cameraent[id])). |
Re: Ent flying x units over player
Code:
After updating your position, it finds the space 128 units above you, and sets your camera's origin to that. If you want to make sure it doesn't go through the roof, you'll want to do a trace line upwards and see if it hits anything before 128 units. |
Re: Ent flying x units over player
Quote:
+karma. |
Re: Ent flying x units over player
Tested it, although I dont know if it works.
When I do attach_view(id,cameraent[id]) the display fucks up. When I shoot, I can hear the sounds of the gun. I think it's becouse the ent doesn't have any angles, how do I fix it? |
Re: Ent flying x units over player
I've never actually been able to get attach_view to work. I don't know why. It always sets my view to the origin of 0,0,0.
|
Re: Ent flying x units over player
Quote:
I can post a copy if you want. |
Re: Ent flying x units over player
I'm also trying to do something similar, please post it if you have it working. Thanks.
|
Re: Ent flying x units over player
attach_view() only works with entities that have a model set. Don't ask me why, HL is just weird. If in the case you don't want your entity to have a model, you can just set the correct rendering on it.
|
Re: Ent flying x units over player
this will work:
http://forums.alliedmods.net/showthread.php?t=29637 the only thin you have to do is change the coordinates. But, if you are going to use this as a check to see if the player has a wallhack, it won't work. A wallhack is a hook to the client's video memory, so it won't change the halflife view. If you want to create a 'wallhack check' you will have to make a clientside program, that makes a 'windows' screenshot, and send it via socket. |
Re: Ent flying x units over player
Quote:
Otherwise every wallhack there is would probably be detected by VAC... |
| All times are GMT -4. The time now is 22:22. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.