Giving a Monster the Rail Gun
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
- Galaxy_Stranger
- Posts: 1326
- Joined: Sat Aug 16, 2003 11:42 pm
- Location: Shropshire
- Contact:
Giving a Monster the Rail Gun
I know I'm gonna get smacked upside the head for asking this, but I'm just not running across the info I need. Can anyone point me to a thread that talks about giving the Rail Gun to a Monster? Also - would it be possible to give a monster the Double Rail?
Yeah, and if you get hit by one, it does the pain fade and everything, but you take no damage.
Hmm... That's a good idea. You could make a monster that shoots ridiculously fast railgun shots that do no damage, but it gives you the pain fade and blinds you. Then the other demons around can chew you up.
Hmm... That's a good idea. You could make a monster that shoots ridiculously fast railgun shots that do no damage, but it gives you the pain fade and blinds you. Then the other demons around can chew you up.

- wildweasel
- Posts: 21706
- Joined: Tue Jul 15, 2003 7:33 pm
- Preferred Pronouns: He/Him
- Operating System Version (Optional): A lot of them
- Graphics Processor: Not Listed
- Contact:
- Galaxy_Stranger
- Posts: 1326
- Joined: Sat Aug 16, 2003 11:42 pm
- Location: Shropshire
- Contact:
Eeeesh - Ok. I'd like to eventually figure out how to do it with DECORATE as well, but I need to try it with BEX first. Here's what I've got. Tell me why it won't work, heheheh:
Patch File for DeHackEd v3.0
Doom version = 21
Patch format = 6
Thing 18 (Hell Knight)
Missile Damage = 20
[CODEPTR]
Frame 84 = NULL
Frame 85 = A_GunFlash
Frame 86 = A_FireRailgunLeft
Frame 87 = A_FireRailgunRight
Frame 84
Sprite subnumber = 1
Duration = 1
Next frame = 85
Frame 85
Sprite subnumber = 1
Duration = 1
Next frame = 86
Frame 86
Sprite subnumber = 32768
Duration = 1
Next frame = 87
Frame 87
Sprite subnumber = 32768
Duration = 50
Next frame = 81
Patch File for DeHackEd v3.0
Doom version = 21
Patch format = 6
Thing 18 (Hell Knight)
Missile Damage = 20
[CODEPTR]
Frame 84 = NULL
Frame 85 = A_GunFlash
Frame 86 = A_FireRailgunLeft
Frame 87 = A_FireRailgunRight
Frame 84
Sprite subnumber = 1
Duration = 1
Next frame = 85
Frame 85
Sprite subnumber = 1
Duration = 1
Next frame = 86
Frame 86
Sprite subnumber = 32768
Duration = 1
Next frame = 87
Frame 87
Sprite subnumber = 32768
Duration = 50
Next frame = 81
- wildweasel
- Posts: 21706
- Joined: Tue Jul 15, 2003 7:33 pm
- Preferred Pronouns: He/Him
- Operating System Version (Optional): A lot of them
- Graphics Processor: Not Listed
- Contact:
You need to use the codepointer MonsterRail - the pointers you're using are intended for Decorate and ONLY Decorate. Also, I don't know if there's a BEX equivalent of GunFlash.
EDIT: Also, you need to put the CODEPTR section at the END of the file - otherwise, ZDoom interprets what comes after it as BEX code and not DeHackEd.
EDIT: Also, you need to put the CODEPTR section at the END of the file - otherwise, ZDoom interprets what comes after it as BEX code and not DeHackEd.
- Ixnatifual
- Posts: 2287
- Joined: Fri Dec 12, 2003 6:44 pm
- Contact:
- The Ultimate DooMer
- Posts: 2109
- Joined: Tue Jul 15, 2003 5:29 pm
- Location: Industrial Zone
Actually, the A_FireRailgunLeft/Right are BEX (not dehacked) codepointers, but work for a player railgun only. MonsterRail is for monsters only (damage = 100 if you want the same power as the player railgun).wildweasel wrote:You need to use the codepointer MonsterRail - the pointers you're using are intended for Decorate and ONLY Decorate. Also, I don't know if there's a BEX equivalent of GunFlash.
EDIT: Also, you need to put the CODEPTR section at the END of the file - otherwise, ZDoom interprets what comes after it as BEX code and not DeHackEd.
- wildweasel
- Posts: 21706
- Joined: Tue Jul 15, 2003 7:33 pm
- Preferred Pronouns: He/Him
- Operating System Version (Optional): A lot of them
- Graphics Processor: Not Listed
- Contact:
From Randy's original Railgun.bex
The A_ isn't needed, but there is nothing wrong with it.
Code: Select all
[CODEPTR]
Frame 77 = A_FireRailgun
Frame 78 = A_RailWait