Raised This Month: $ Target: $400
 0% 

[HELP] Recoil-effect


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ujjl
Senior Member
Join Date: Jul 2009
Location: Hungary
Old 11-12-2009 , 09:10   [HELP] Recoil-effect
Reply With Quote #1

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.)
ujjl is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 11-12-2009 , 10:58   Re: [HELP] Recoil-effect
Reply With Quote #2

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 );
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-12-2009 , 11:33   Re: [HELP] Recoil-effect
Reply With Quote #3

Would not it pev_punchangle instead ?
__________________
Arkshine is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 11-12-2009 , 13:36   Re: [HELP] Recoil-effect
Reply With Quote #4

Quote:
Originally Posted by Arkshine View Post
Would not it pev_punchangle instead ?
That works, too.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
ujjl
Senior Member
Join Date: Jul 2009
Location: Hungary
Old 11-12-2009 , 13:47   Re: [HELP] Recoil-effect
Reply With Quote #5

Quote:
Originally Posted by Exolent[jNr] View Post
That works, too.
so... how does this pev_punchangle work?
ujjl is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-12-2009 , 13:54   Re: [HELP] Recoil-effect
Reply With Quote #6

Test yourself. It's angle too. Try for example to set -5.0 on x and see.
__________________
Arkshine is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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