Hi! I'm here to ask a simple question, is it possible to modify a weapon's attack speed and or range.
That's it.
--untested wpn_range = { [1] = 32, [2] = 64 } currWpn = {} currX = {} curr Y = {} addhook("attack","GetWeapon") function GetWeapon(id) 	currWpn[id] = player(id,"weapontype") 	currX[id] = player(id,"x") 	currY[id] = player(id,"y") end addhook("hit","Hit") function Hit(vic,src,wpn) 	local dX = player(vic,"x") 	dX = dX*dX 	dX = dX + (currX[src] * currX[src]) 	local dY = player(vic,"y") 	dY = dY*dY 	dY = dY + (currY[src] * currY[src]) 	local dRange = math.sqrt(dx+dy) 	 	if (dRange > wpn_range[wpn]) then 		return 1 	end end
[10]=51into wpn_range table? It basically won't work because the bullets of that weapon don't even go on that far. It stops at 50th pixel through the way and your hit hook doesn't come into action when the enemy is actually on the 51st pixel.