AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [HELP] Recoil-effect (https://forums.alliedmods.net/showthread.php?t=109026)

ujjl 11-12-2009 09:10

[HELP] Recoil-effect
 
Hi! How can i do some recoil-effect to a player? Like forcing his look to an other direction.

(I want him not to aim properly with a specific weapon.)

Exolent[jNr] 11-12-2009 10:58

Re: [HELP] Recoil-effect
 
You can mess with the player's v_angle.

Code:
entity_set_vector( iPlayer, EV_VEC_v_angle, Float:vAngle[ 3 ] ); entity_set_int( iPlayer, EV_INT_fixangle, 1 );

Arkshine 11-12-2009 11:33

Re: [HELP] Recoil-effect
 
Would not it pev_punchangle instead ?

Exolent[jNr] 11-12-2009 13:36

Re: [HELP] Recoil-effect
 
Quote:

Originally Posted by Arkshine (Post 987946)
Would not it pev_punchangle instead ?

That works, too. :P

ujjl 11-12-2009 13:47

Re: [HELP] Recoil-effect
 
Quote:

Originally Posted by Exolent[jNr] (Post 988074)
That works, too. :P

so... how does this pev_punchangle work?

Arkshine 11-12-2009 13:54

Re: [HELP] Recoil-effect
 
Test yourself. It's angle too. Try for example to set -5.0 on x and see.


All times are GMT -4. The time now is 13:43.

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