s_missile

by Spuzzum
The s_missile library is a projectile system that is designed to be a supplement to the BYOND-provided missile() proc; if you have any projectiles or graphical effects, use this to shoot them! [More]
To download this library for your Linux/Mac installation, enter this on your command line:

DreamDownload byond://Spuzzum.s_missile##version=0

Emulator users, in the BYOND pager go to File | Open Location and enter this URL:

byond://Spuzzum.s_missile##version=0

4091 downloads
Latest Version
Date added: May 5 2001
Last updated: Jul 29 2009
3 fans
The s_missile library includes the following functions designed for players' use:

s_missile(..., trg, homing = 1, speed = 1)
  • Fires a projectile of the specified sort at the [trg]; if [homing] is equal to 1, it will adjust its flight path to follow [trg], should [trg] change locations. Otherwise, it will not. Between steps, it will wait [speed] x 1/10 seconds. (A speed of zero would mean that the projectile would not be seen, and it would fly directly to its target and delete itself instantaneously; you can probably conceive of a use for that behaviour!)

    walk_line(ref,trg,lag)
  • Moves [ref] on a straight path towards [trg], not taking obstacles into account, preceding each successive step with [lag] seconds of inactivity.


    Though the library includes other functions, those functions are designed to provide the internal calculations necessary for the library, and it is doubtful that they will be of any use to the user.