Forum

> > CS2D > Scripts > Clientdata(x,y)&player(x,y) distance calculation?
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Clientdata(x,y)&player(x,y) distance calculation?

12 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Re: Clientdata(x,y)&player(x,y) distance calculation?

Apache uwu
User Off Offline

Zitieren
Try this:

Click to reveal code:
Mehr >


IMG:https://img189.imageshack.us/img189/7428/dedust00003i.jpg


IMG:https://img21.imageshack.us/img21/1035/dedust00004.jpg


Here's another step further:
     When a player says "teleport" they will only teleport to their mouse if it is a clear path.

Click to reveal code:
Mehr >
1× editiert, zuletzt 31.01.12 08:19:33

alt Re: Clientdata(x,y)&player(x,y) distance calculation?

KenVo
User Off Offline

Zitieren
Ah ok I'll wait 2 more years to understand those stuffs

BTW, I don't like to use 'always' hook because I don't know if it would cause high traffic...?, so I added the 'reqcld' to a skill function. The 'reqcld' only runs only when I use the skill or other skills that need pointer's x and y.

(It's not the whole script because I'm editing Weiwen's script.)

Code >


EDIT: Question: Do you think there is a way to make my "dmg" calculations in EXPpointer shorter ? If there is then would the longer calculations slower or the same as the shorten ones.

Also, my English is not completely good because I have only been in US for 2 years
1× editiert, zuletzt 01.02.12 03:18:31

alt Re: Clientdata(x,y)&player(x,y) distance calculation?

Apache uwu
User Off Offline

Zitieren
user Alistaire hat geschrieben
Sinus, Cosinus and Tangens aren't that hard to learn.. If you're really into scripting you should know about them.


lmao, reminds me of thread cs2d tile(x/32,y/32,'walkable) error lol @ user Infinite Rain

& no, even if you were into scripting that doesn't mean you would need to know it or even use it.

Here is an example: you are creating an accounting page, you would need to know all the aspects of banking.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht