Forum

> > CS2D > General > How i change one weapon shot range
Forums overviewCS2D overviewGeneral overviewLog in to reply

English How i change one weapon shot range

8 replies
To the start Previous 1 Next To the start

old How i change one weapon shot range

4Vendetta
User Off Offline

Quote
> How i change one weapon shot range?

• For example, increase the range of m3 shot or reduce the range of the awp, and if is possible change the weapons shot particle like this.
IMG:https://img269.imageshack.us/img269/7088/26786783.png

old Re: How i change one weapon shot range

4Vendetta
User Off Offline

Quote
user EP has written
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
Spoiler >

old Re: How i change one weapon shot range

4Vendetta
User Off Offline

Quote
user Apache uwu has written
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..

old Re: How i change one weapon shot range

KenVo
User Off Offline

Quote
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...

old Re: How i change one weapon shot range

EngiN33R
Moderator Off Offline

Quote
user 4Vendetta has written
user Apache uwu has written
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 file cs2d [EngiN33R] Custom Weapons 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.
To the start Previous 1 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview