Forum

> > CS2D > General > How i change one weapon shot range
ForenübersichtCS2D-ÜbersichtGeneral-ÜbersichtEinloggen, um zu antworten

Englisch How i change one weapon shot range

8 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt How i change one weapon shot range

4Vendetta
User Off Offline

Zitieren
> 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

alt Re: How i change one weapon shot range

4Vendetta
User Off Offline

Zitieren
user EP hat geschrieben
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 >

alt Re: How i change one weapon shot range

4Vendetta
User Off Offline

Zitieren
user Apache uwu hat geschrieben
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..

alt Re: How i change one weapon shot range

KenVo
User Off Offline

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

alt Re: How i change one weapon shot range

EngiN33R
Moderator Off Offline

Zitieren
user 4Vendetta hat geschrieben
user Apache uwu hat geschrieben
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.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antwortenGeneral-ÜbersichtCS2D-ÜbersichtForenübersicht