AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   about alive player's view (https://forums.alliedmods.net/showthread.php?t=19454)

Enigmaya 10-17-2005 05:43

about alive player's view
 
how to set an alive player's view follow another alive player's view?

i used engfunc(EngFunc_SetView, id, id) ...
but the view doesn't follow
and the position is not very suit...

created a cam(entity) and used engfunc(EngFunc_SetView, id, entid)...
could set the position.
but the view doesn't follow also.

tried entity_set_int(id,EV_INT_iuser3,id)
//just know Iuser3 can set the camera endpos to the killer!
but nothing appear...

how to .....??

PS: what's EV_INT_iuser3,EV_INT_iuser2,EV_INT_iuser4,EV_ INT_iuser1?

XxAvalanchexX 10-17-2005 16:51

You will have to make a camera and constantly update its position, or set it to follow the person by setting its movetype to MOVETYPE_FOLLOW and it's EV_ENT_aiment to the ent it should follow, and then update the camera's angles to that of the player's as well I believe.

EV_INT_user1-4 are just custom variables put in by Valve so mod-makers had more space to easily store data.

Enigmaya 10-18-2005 02:44

Quote:

Originally Posted by XxAvalanchexX
You will have to make a camera and constantly update its position, or set it to follow the person by setting its movetype to MOVETYPE_FOLLOW and it's EV_ENT_aiment to the ent it should follow, and then update the camera's angles to that of the player's as well I believe.

EV_INT_user1-4 are just custom variables put in by Valve so mod-makers had more space to easily store data.


i tried it.
can follow the target player. so cool...
but doesn't change the position of view.
on half of the body.not head.

EV_INT_user1-4 。。。what‘s their difference?
just know Iuser3 can set the camera endpos to the kille.


All times are GMT -4. The time now is 23:59.

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