I would like somone to create a demo on turning beam proc for a dbz games a actual homing beam, although i'm not to particular to math this factor bewilders me.
sequances beam finds usr Y.axis stops turns usr.X axis stops when aligned proceeds usr.dir contact dmg.
------
i
i
i
-------[X].dmg
all dir.
ID:162432
Jan 8 2008, 4:23 pm
|
|
In response to Tubutas
|
|
:) ty
|
In response to Tubutas
|
|
Your new statement needs parenthesis.
var/obj/beam/b = new() Your while statements are checking the beams location against the 'src'. I am pretty sure you should be checking it against 'm'. You need some sort of sleep statement in the while statements. Also you should close your html tag. Perhaps something like this: mob/verb/US_Beam(mob/m in oview()) |
In response to Asielen
|
|
Oh yeah good point i rushed it, that'd make a single beam thats no where, if your a decent coder you can figure it out though.
**edit** wth is <dmb.dir=(d&(d-1))^d</dm> |
In response to Tubutas
|
|
Tubutas wrote:
wth is b.dir=(d&(d-1))^d</dm> d if d is a cardinal direction, or the NORTH/SOUTH component of d if it isn't. |
=p