SA-MP Forums Archive
[FilterScript] Unsteady Sniper Aim (Realistic) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Unsteady Sniper Aim (Realistic) (/showthread.php?tid=329273)



Unsteady Sniper Aim (Realistic) - Matz - 27.03.2012

Hi. I made this for share, in short;

Video:
[ame="http://www.youtube.com/watch?v=B1JaSb9SF8Q"]http://www.youtube.com/watch?v=B1JaSb9SF8Q[/ame]

Installation:

On top
pawn Код:
#define PRESSED(%0) \
    (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
   
#define KEY_AIM     (128)
This one for OnPlayerUpdate
pawn Код:
if(GetPlayerWeapon(playerid) != 34) return SetPlayerDrunkLevel(playerid,2000);
And this one for OnPlayerKeyStateChange
pawn Код:
if(PRESSED(KEY_AIM))
    {
        if(loggedin[playerid] == 1) //replace with what you're using
        {
            if(GetPlayerWeapon(playerid) == 34)
            {
                SendClientMessage(playerid,-1,"aiming"); //
                SetPlayerDrunkLevel(playerid,4999);
                return 1;
            }
            return 1;
        }
        return 1;
    }
* Enjoy


Re: Unsteady Sniper Aim (Realistic) - Juninho_Oakley - 27.03.2012

Good Job man


Re: Unsteady Sniper Aim (Realistic) - Kar - 27.03.2012

why not just check if the player released KEY_AIM and reset the drunk level instead of onplayerupdate?

Nice job, cod servers would love this :P


Re: Unsteady Sniper Aim (Realistic) - xXitsgodzillaXx - 27.03.2012

well i can tell you play call of duty. (sadly) but you should also make it go up and down. that way its a little more realistic. :P


Re: Unsteady Sniper Aim (Realistic) - Mark_Weston - 27.03.2012

Not realistic at all. moving too fast. There are different ways to hold a gun to have less recoil. meh over all its okay since in samp


Re: Unsteady Sniper Aim (Realistic) - cessil - 28.03.2012

very nice idea, makes me jealous that I didn't think of it first


Re: Unsteady Sniper Aim (Realistic) - Matz - 28.03.2012

Quote:
Originally Posted by xXitsgodzillaXx
Посмотреть сообщение
well i can tell you play call of duty. (sadly) but you should also make it go up and down. that way its a little more realistic. :P
Up/Down impossible :P

Quote:
Originally Posted by Mark_Weston
Посмотреть сообщение
Not realistic at all. moving too fast. There are different ways to hold a gun to have less recoil. meh over all its okay since in samp
Too fast but you can reduce it with changing SetPlayerDrunkLevel(playerid,4999);


Re: Unsteady Sniper Aim (Realistic) - Jack_Wilson - 28.03.2012

This is not realistic, the drunk level is the worst way to use but only way possible sadly.
If you shoot in a certain direction, you will hit a certain point instead of a random one.
It does not work, try aiming at a wall, and shooting while holding the scope in the same position.


Re: Unsteady Sniper Aim (Realistic) - Reklez - 28.03.2012

Nice job and simple! recommended for deathmatch servers


Re: Unsteady Sniper Aim (Realistic) - Matz - 28.03.2012

Quote:
Originally Posted by Jack_Wilson
Посмотреть сообщение
This is not realistic, the drunk level is the worst way to use but only way possible sadly.
If you shoot in a certain direction, you will hit a certain point instead of a random one.
It does not work, try aiming at a wall, and shooting while holding the scope in the same position.
At the end, hard to hitting players than normal.