A_CustomRailgun
From ZDoom Wiki
A_CustomRailgun (int damage [, int offset [, color ringcolor [, color corecolor [, bool silent [, bool aim [, float maxdiff]]]]]])
A customizable railgun attack.
- damage should be self-explanatory.
- offset determines the horizontal offset (from the actor's center) where the railgun will emerge from. Negative values shift the beam to the actor's left, positive values shift it right.
- ringcolor determines the color of the particles that form the spiral "ring" of the beam.
- corecolor determines the color of the particles that form the central "core" of the beam.
- silent supresses the sound of the railgun firing.
- aim determines which aiming mode to use:
- 0: The monster shoots in the direction it is looking.
- 1: The monster aims at its target.
- 0: The monster shoots in the direction it is looking.
The colors (for ringcolor and corecolor) can be specified as RRGGBB or as a color name such as Blue or Green
Examples
| Note: This article lists no examples. If you make use of this feature in your own project(s) or know of any basic examples that could be shared, please add them. This will make it easier to understand for future authors seeking assistance. Your contibutions are greatly appreciated. |

