Surprise! What is theasl99 doing here? This is my first post
I do not know if someone has already made a post of this, but I who have been reading the wiki and this page to make my roleplay server have not seen any script that allows the possibility of pointing while firing a sniper rifle
this is a small fix for users who shoot with sniper, since when you shoot with sniper, the player does not generate any animation and in my opinion it is quite annoying
I am just starting out in scripting and I saw this piece of useful script, if you have ideas to improve it with pleasure I accept them, I am an old user of the community as of 2011, some should already know me, greetings to all.

:::THE SCRIPT:::
local sniper = 0;
local snipershoot = 0;
function onPlayerWeaponChange( player, oldwep, newwep, ammo )
{
if ( newwep == WEP_SNIPER ) {
sniper = 1;
//MessagePlayer ( "You have a SniperRifle! (sniper=1)", player );
} else {
sniper = 0;
}
}
function onPlayerKeyStateChange ( pPlayer, key, down ) {
if ( ( key == KEY_ONFOOT_AIM ) && ( down ) ) {
if (sniper == 1) {
snipershoot = 1;
//MessagePlayer ( "You has shooted the SniperRifle (snipershoot=1)", pPlayer );
if (snipershoot == 1){
//MessagePlayer ( "Generate the SniperRifle Animation", pPlayer );
pPlayer.SetAnim (50);
}
}
}
}
COPY AND PASTE, THIS IS A CLIENT SCRIPT!