View Single Post
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-19-2011 , 19:25   Re: Weapon Max Shot Distance
Reply With Quote #16

That's something you will do one time in the plugin_init for example.
You work with memory address. You need to loop using the method from the link (2 first line in plugin_init) with all the weapon, and for each weapon replacing the default distance with the cvar value.

Well, will show you a basic example tomorrow, since you don't know much about orpheu, better to show you a concrete example. Plus you need to know the default distance for all weapons.
__________________
Arkshine is offline