Laser Sentry/Beamos
Overview
Creator:
MoscowModder
Added: 29 Apr 2014
Tags:
Enemy,
FFC
|
View Script |
Information
The laser sentry is nearly identical to the LttP beamos, but... different. It uses a laser pointer to mark its range and direction, and then shoots a beam that can be dodged (depending on its delay settings).
Description Setup Reviews Comments
1. Find sound effects for the sentry detecting and shooting Link, and set the SFX_ constants at the top to their IDs
2. Compile the script and remember the FFC script slot you put it in
3. (Optional) Make a combo for the sentry's graphics. It can be an animated, spinning head, an eyeball, or whatever you want
4. Make a new enemy, and set the following data:
Type: Other
Sprite: Even if using the combo for its graphics, choose the right CSet here
HP and Weapon damage: Whatever you please
Misc Attribute 1: Rotation speed in degrees per frame (Recommended 3)
Misc Attribute 2: Sight radius in pixels (Recommend 70)
Misc Attribute 3: Delay between sighting and shooting (0 for instant shot)
Misc Attribute 4: Cooldown between shooting and looking again (Highly recommend more than 0, like 120)
Misc Attribute 5: Laser color (CSet# * 16 + color number in CSet)
Misc Attribute 11: Either the combo from step 3, or -1 to use the enemy's graphics
NOTE: If your version of ghost.zh doesn't have __GH_INVISIBLE_ALT, set this to the value of GH_INVISIBLE_COMBO to use the enemy graphics
Misc Attribute 12: The FFC script slot number from step 2
Resources
ghost.zh
string.zh (Included in recent builds of ZC)
2. Compile the script and remember the FFC script slot you put it in
3. (Optional) Make a combo for the sentry's graphics. It can be an animated, spinning head, an eyeball, or whatever you want
4. Make a new enemy, and set the following data:
Type: Other
Sprite: Even if using the combo for its graphics, choose the right CSet here
HP and Weapon damage: Whatever you please
Misc Attribute 1: Rotation speed in degrees per frame (Recommended 3)
Misc Attribute 2: Sight radius in pixels (Recommend 70)
Misc Attribute 3: Delay between sighting and shooting (0 for instant shot)
Misc Attribute 4: Cooldown between shooting and looking again (Highly recommend more than 0, like 120)
Misc Attribute 5: Laser color (CSet# * 16 + color number in CSet)
Misc Attribute 11: Either the combo from step 3, or -1 to use the enemy's graphics
NOTE: If your version of ghost.zh doesn't have __GH_INVISIBLE_ALT, set this to the value of GH_INVISIBLE_COMBO to use the enemy graphics
Misc Attribute 12: The FFC script slot number from step 2
Resources
ghost.zh
string.zh (Included in recent builds of ZC)



