Thread: Weapon Accuracy
View Single Post
Re: Weapon Accuracy
Old
  (#5)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: Weapon Accuracy - 17-03-2004

This is not a problem, you can very well make a plugin that will affect the accuracy of the gun for everyone and not just a bot.

Make your plugin hook the TraceLine function. Then, do a check on pentToSkip to know if it's a player (having the FL_CLIENT flag set), and if so, to know which gun model he's carrying (check for pentToSkip->v.weaponmodel). Once you know it's a player with a Mac10 in hand, just modify the return results of the TraceLine yourself the way we described and make the function exit with your modified TraceResult



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote