Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on gun shoot:
- set {_projectile} to event-projectile
- add {_projectile} to {gun::crackshotBullets::*}
- set {gun::lastLoc::%{_projectile}%} to {_projectile}'s location
- every tick:
- set {_uuidList} to "%all entities' uuid%"
- loop {gun::crackshotBullets::*}:
- if {_uuidList} contains loop-value's uuid:
- blueline(loop-value's location, {gun::lastLoc::%loop-value%}, 1)
- set {gun::lastLoc::%loop-value%} to loop-value's location
- else:
- delete {gun::crackshotBullets::%loop-index%}
- delete {gun::lastLoc::%loop-value%}
- function blue(a:location, b:location, n:number):
- if {_n} isn't 1:
- loop {_n} times:
- set {_v} to vector from {_a} to {_b}
- set vector length of {_v} to vector length of {_v} / ({_n}-1) * (loop-number - 1)
- show crit on {_a} ~ {_v}
- else:
- show crit on {_a}
- function blueline(a:location, b:location, i:number):
- set {_d} to distance between {_a} and {_b}
- set {_n} to round({_d} / {_i})
- blue({_a}, {_b}, {_n} + 1)
Add Comment
Please, Sign In to add comment