thirdperson without set_view
Im trying to find an alternative to using set_view(id, CAMERA_3RDPERSON) im not too fond of the tranlucentcy it gives the model (I guess thats so you can see where your aiming?)
i was wondering if there is a method create the thirdperson view by creating an entity that follows the player around which you attach your view too. ive found KRoT@L's amx thirdperson plugin http://djeyl.net/forum/index.php?showtopic=41283 but im not entirely sure how to port it and my attempt just created a camera that didnt follow the player. I just want it for my server ive got no plans to release the code in a plugin Any help appreciated, thanks |
Change the following:
Code:
into: Code:
|
sorry forgot to mention i did that when i attempted.
It doesnt work it always makes a camera about waist height always facing in the same direction inside the player and doesnt follow them :( |
1 Attachment(s)
This is a way to get third person with out set_view
|
client_PreThink is the same thing as set_task really, it's called every client frame which is even worse than most set_task's.
|
thanks Zenith but it doesnt seem to work :(
It stays in firstperson when i do the command, its installed right because it does the client_print |
Watch:
Just in case you didnt notice, the code from Zenith is not complete...In showThird(id) you have to add the attach_view() somewhere! |
ops sorry my bad
I tried adding attach_view in both showthird and prethink, they create the camera view at 0,0,0 have i missed something else ? |
would another option be to enable sv_cheats and then block the other cheat commands? then people could use thirdperson
http://cheats.gamespy.com/pc-cheats/half-life/ |
Ok sorry i cant fix this right now, i'm at a friends house, lol, i cant belive i forgot the most important part XD
But i will upload it when i get home. |
| All times are GMT -4. The time now is 23:39. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.