AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Disable recoil for players in 'no clip' mode (https://forums.alliedmods.net/showthread.php?t=146604)

t3hNox 12-29-2010 18:54

Disable recoil for players in 'no clip' mode
 
Hello,
I know two methods how to manipulate with player's recoil when shooting but none of them is effective when player is in 'no clip' mode. I'd like to ask for a piece of code that would disable any recoil for any weapon.

When I searched I found this method:
PHP Code:

public Player_PostThinkid 

    
set_pev(idpev_flagspev(idpev_flags) | FL_ONGROUND


It didn't seem to work properly when a player was with no clip.

And the other one was with pev_punchangle. I didn't manage to find a proper example how to use it to work as I want so I don't have any code..

Thanks in advance.

fezh 12-31-2010 11:51

Re: Disable recoil for players in 'no clip' mode
 
Quote:

Originally Posted by t3hNox (Post 1382044)
And the other one was with pev_punchangle. I didn't manage to find a proper example how to use it to work as I want so I don't have any code..

As far as I know pev_punchangle method works perfectly only on LAN. If you use that method you will be having a weird recoil if you have a ping higher than 0.

t3hNox 01-02-2011 15:35

Re: Disable recoil for players in 'no clip' mode
 
fezh, thanks for clarifying.

I'm still looking for solution.


All times are GMT -4. The time now is 01:58.

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