AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Deflect shots. (https://forums.alliedmods.net/showthread.php?t=183434)

fearAR 04-21-2012 17:07

Deflect shots.
 
Well, Sorry for my english D:

I am making a plugin which blocks the ATTACK2 button from the sniper weapons, like AWP. Doing this I am avoiding the FOVs or "SCOPEs".

It is working perfect because I return a previous constant when the forward FM_CmdStart is called and I set the button without the IN_ATTACK2 bitsum.

I've made that because If I block only the FOV the properties which are applied to the Player like Max. velocity, couldn't be avoided.

Well my problem is: If, He press IN_ATTACK2 button, the player takes a great accuracy, which I don't want, and It can't be removed, the accuracy is the same when the player is with FOV < 90, with sniper weapons.

I was thinking on a way, which deflects the shots, using the functions "set_tr2" like in I aim good, but I am not sure.

Could anyone helps me with an idea?

Greetings.

PD: The plugin "I aim good" uses the forward FM_TraceLine, and It changes the direction of the shots.


All times are GMT -4. The time now is 07:50.

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