i don't think so that you can change the range but you can know the range in pixels of the differents weapons
Yes, is possible change the weapon range, weiwen do this in poketibia, but i don't know how to do this, i've tried to copy but i don't know how. Look at the tibia and you'll see in file CONFIG.LUA
WEAPONRANGE = { -- change cs2d weapons range. e.g. [50] = 27 means wpnid 50 has range of 27 pixels. i should get around to change this to ingame ids some time
[34] = 350,
[46] = 128,
[50] = 27,
[69] = 32,
[78] = 32,
[20] = 350,
You need to create your own hit system. Messing with weapon ranges/custom hit system is very difficult to implement and it's annoying in server anyways.
You need to create your own hit system. Messing with weapon ranges/custom hit system is very difficult to implement and it's annoying in server anyways.
Thanks, I'll try to create my own hit system, I want to use claw to make a 'shotable' 2 elite! if I can do this i'll upload here..
You basically need to measure the distance between the source and the victim, then if the source let's say 2 tiles(64px) away from the victim then damage will be dealt or else it wouldn't. And of course you need to know how to find the source's rotation and everything else...
You need to create your own hit system. Messing with weapon ranges/custom hit system is very difficult to implement and it's annoying in server anyways.
Thanks, I'll try to create my own hit system, I want to use claw to make a 'shotable' 2 elite! if I can do this i'll upload here..
You might want to try and use [EngiN33R] Custom Weapons (75) if you're doing it for a mod and don't want to spend shitloads of time coding, but I'd still recommend trying to write it yourself at first. It's a very nice exercise for practicing your Lua skills.