AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Camera effect (https://forums.alliedmods.net/showthread.php?t=220137)

dFF 07-07-2013 12:26

Camera effect
 
Hi, i want to create a camera effect like in First Person Death by MPNumB.
I tried to call pev_iuser1 with 0 but it's work only when player is dead and I need the same effect also for alive players.
It's there a way to reproduce this ? an offest .. anything ?

~Ice*shOt 07-07-2013 13:00

Re: Camera effect
 
PHP Code:

    set_pev(idpev_health0.0


dFF 07-07-2013 13:39

Re: Camera effect
 
Thanks, it's work.

But i have another problem, if i want to reset to normal camera (normal view) i used: pev_health 100, pev_iuser1 0 but it's a problem: player is ducking and i need to press manually duck button (ctrl) to reset to normal.
I tried to set pev_button | IN_DUCK but it's not work. Is a way to reset player camera to normal ?

~Ice*shOt 07-07-2013 16:12

Re: Camera effect
 
Yes I faced this problem too, don't know how to fix it. Maybe someone will write.

dFF 07-07-2013 16:21

Re: Camera effect
 
I tried to set:

PHP Code:

pev_button IN_DUCK
pev_flags 
FL_DUCKING [set/remove]
m_afButtonPressed IN_DUCK 

and fail .. not work.

Another way i think is to create a custom entity and attach view/camera, but i don't think if it work .. wait for another solutions.

a7811311622 07-08-2013 03:59

Re: Camera effect
 
Try pev_oldbuttons?

dFF 07-08-2013 07:51

Re: Camera effect
 
Tried and not work.


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

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