mob/Akimichi
verb
NikudanSensha()
set category = "Jutsus"
set name = "Nikudan Sensha"
if(usr.inbaika == 0)
usr<<"<font size=1><font face=verdana><b><font color=white> Você precisa usar Baika no Jutsu primeiro!"
return
if(usr.ingat == 1||usr.Kaiten == 1||usr.intank == 1||usr.firing)
return
else
var/list/O = usr.overlays.Copy()
view()<<"<font size=1><font face=verdana><b><font color=white>[usr]<font color=green> Says: Nikudan Sensha!"
usr.MN += 1
//usr.step_size = 64
usr.bound_height = 64
usr.bound_width = 64
usr.intank = 1
usr.overlays = usr.overlays.Remove(usr.overlays)
usr.icon='sensha.dmi'
if(usr.inchobaika)
var/matrix/M = matrix()
M.Scale(2)
animate(src, transform = M, time = 0)
usr.Move_Delay = 0
usr.firing = 1
var/cont = 300
while(cont > 0 && usr.intank)
//step(usr,usr.dir)
sleep(1)
cont -= 1
if(usr.inchobaika)
var/matrix/M = matrix()
M.Scale(3)
animate(src, transform = M, time = 0)
usr.icon='white.dmi'
usr.step_size = 32
usr.bound_height = 32
usr.bound_width = 32
usr.overlays = O.Copy()
usr.intank = 0
usr.Move_Delay = 1.2
usr.firing = 0
mob/Bump(mob/src)
..()
if(istype(src,/turf))
return
if(istype(src,/obj))
return
if(usr.intank)
usr.loc = locate(src.x,src.y,src.z)
var/Damage = round(usr.tai*20)
view()<<"[usr] acerta [src] com o Nikudan Sensha por [Damage]!"
src.health -= Damage
src.Death(usr)
else if(usr.inspike)
usr.loc = locate(src.x,src.y,src.z)
var/Damage = round(usr.tai*25)
view()<<"[usr] acerta [src] com o Nikudan Hari Sensha por [Damage]!"
src.health -= Damage
src.Death(usr)
Problem description:
When i use this skill, it turns my bound height/width to 64, and when i bump into someone, it damages then and move me to that person loc.
My problem is: if i bump two people at one time, depending on the position that i bump then, it goes kinda glitchy and warps me somewhere that i don't want it to go.
Here's a video:
https://youtu.be/Su1VTyT5QHI
Hope someone can help me ;-;