AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   thirdperson without set_view (https://forums.alliedmods.net/showthread.php?t=19296)

watch 10-13-2005 14:15

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

XxAvalanchexX 10-13-2005 15:36

Change the following:

Code:
#include <amxmod> #include <amxmisc> #include <VexdUM> #include <VexdUM_stock>

into:

Code:
#include <amxmodx> #include <amxmisc> #include <engine>

watch 10-13-2005 16:02

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 :(

Zenith77 10-13-2005 20:53

1 Attachment(s)
This is a way to get third person with out set_view

Hawk552 10-13-2005 21:21

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.

watch 10-14-2005 14:23

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

bahr 10-14-2005 18:58

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!

watch 10-14-2005 20:44

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 ?

watch 10-15-2005 11:35

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/

Zenith77 10-15-2005 15:11

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.