#  ![](https://www.realm667.com/media/kunena/topic_icons/realm667/user/weapon.png) The Port of the brutal doom revenant launchers

##

- **BFG Major Mike**
- ![BFG Major Mike's Avatar](https://www.realm667.com/media/kunena/avatars/resized/size144/users/avatar12159.jpg?1767167089) Topic Author
- BFG Commando
- ![BFG Commando](https://www.realm667.com/media/kunena/ranks/rank_8_bfgcommando.png)

 Less More- Posts: 163
-
-
-
-

   3 years 3 months ago [\#10474](#10474) by BFG Major Mike  *[The Port of the brutal doom revenant launchers](https://www.realm667.com/forum/the-workshop/1856-the-port-of-the-brutal-doom-revenant-launchers#10474 "Hello everyone I'm trying to make a port of the hellish revenant launchers from realm667, i've got the normal firing state done and working, but I want to add a third alt fire state where you can fly...")* was created by *BFG Major Mike*

 Hello everyone I'm trying to make a port of the hellish revenant launchers from realm667, i've got the normal firing state done and working, but I want to add a third alt fire state where you can fly and still shoot, and the normal alt fire wont work, does anyone want to help

Also here's the wad file:
https://drive.google.com/file/d/1iSA4gkMqdcI3LfrPkLbWAF6aYp_ZppKd/view?usp=sharing

(This is not a submission)

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL3RoZS13b3Jrc2hvcC8xODU2LXRoZS1wb3J0LW9mLXRoZS1icnV0YWwtZG9vbS1yZXZlbmFudC1sYXVuY2hlcnM=&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

- **WimpyDoomguy**
- ![WimpyDoomguy's Avatar](https://www.realm667.com/media/kunena/core/svg/person.svg)
- Wraith
- ![Wraith](https://www.realm667.com/media/kunena/ranks/rank_41_wraith.png)

 Less More- Posts: 15
-
-

   3 years 3 weeks ago - 3 years 3 weeks ago [\#10728](#10728) by WimpyDoomguy  Replied by *WimpyDoomguy* on topic *[The Port of the brutal doom revenant launchers](https://www.realm667.com/forum/the-workshop/1856-the-port-of-the-brutal-doom-revenant-launchers#10728 "Hello everyone I'm trying to make a port of the hellish revenant launchers from realm667, i've got the normal firing state done and working, but I want to add a third alt fire state where you can fly...")*

 Hey, I created an account so I could try to help. You could try making altfire switch modes, and have the primary fire do the shooting, like this example I made with the pistol (only uses vanilla stuff, so you can just copy it):
Code:

ACTOR MultitoolPistol : DoomWeapon { Weapon.SlotNumber 2 Weapon.SelectionOrder 1900 Weapon.AmmoUse 1 Weapon.AmmoGive 20 Weapon.AmmoType "Clip" Obituary "$OB_MPPISTOL" Inventory.Pickupmessage "fly away" Tag "bfg revenant thing" States { Ready: TNT1 A 0 A_JumpIfInventory("FireStateFly",1,"FlyReady") PISG A 1 A_WeaponReady Loop FlyReady: PISG A 0 A_ChangeVelocity(0,0,1,CVF_RELATIVE) PISG A 1 A_WeaponReady Loop Deselect: PISG A 1 A_Lower Loop Select: PISG A 1 A_Raise Loop Fire: TNT1 A 0 A_JumpIfInventory("FireStateFly",1,"FireFly") TNT1 A 0 A_JumpIfInventory("FireStateShotgun",1,"FireShotty") PISG A 4 PISG B 6 A_FirePistol PISG C 4 PISG B 5 A_ReFire Goto Ready FireFly: PISG A 0 PISG A 4 PISG B 6 A_FirePistol PISG C 4 A_ChangeVelocity(0,0,1,CVF_RELATIVE) PISG B 5 A_ReFire("FireFly") Goto FlyReady FireShotty: PISG A 4 PISG B 6 A_FireBullets(50,50,50,50,"bulletpuff") PISG C 4 PISG B 5 A_ReFire("FireShotty") Goto Ready AltFire: TNT1 A 0 A_JumpIfInventory("FireStateFly",1,"ChangeToShotgun") TNT1 A 0 A_JumpIfInventory("FireStateShotgun",1,"ChangeToNormal") PISG A 12 A_Print("Fire state: Flying") TNT1 A 0 A_GiveInventory("FireStateFly",1) Goto Ready ChangeToShotgun: PISG A 35 A_Print("Fire state: Shotgun") TNT1 A 0 A_GiveInventory("FireStateShotgun",1) TNT1 A 0 A_TakeInventory("FireStateFly",1) Goto Ready ChangeToNormal: PISG A 35 A_Print("Fire state: Default") TNT1 A 0 A_TakeInventory("FireStateShotgun",1) Goto Ready Flash: PISF A 7 Bright A_Light1 Goto LightDone PISF A 7 Bright A_Light1 Goto LightDone Spawn: PIST A -1 Stop } } Actor FireStateFly : Inventory { inventory.maxamount 1 } Actor FireStateShotgun : Inventory { inventory.maxamount 1 }

Hope this helps! I really liked your Auto Cannon.

Edit: I just realized just how screwed up this code is. Well, uh... I can't delete this post now. Sorry.

 Last edit: 3 years 3 weeks ago by WimpyDoomguy.

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL3RoZS13b3Jrc2hvcC8xODU2LXRoZS1wb3J0LW9mLXRoZS1icnV0YWwtZG9vbS1yZXZlbmFudC1sYXVuY2hlcnM=&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

- **BFG Major Mike**
- ![BFG Major Mike's Avatar](https://www.realm667.com/media/kunena/avatars/resized/size144/users/avatar12159.jpg?1767167089) Topic Author
- BFG Commando
- ![BFG Commando](https://www.realm667.com/media/kunena/ranks/rank_8_bfgcommando.png)

 Less More- Posts: 163
-
-
-
-

   3 years 3 weeks ago [\#10734](#10734) by BFG Major Mike  Replied by *BFG Major Mike* on topic *[The Port of the brutal doom revenant launchers](https://www.realm667.com/forum/the-workshop/1856-the-port-of-the-brutal-doom-revenant-launchers#10734 "Hello everyone I'm trying to make a port of the hellish revenant launchers from realm667, i've got the normal firing state done and working, but I want to add a third alt fire state where you can fly...")*

 Back, thank you!

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL3RoZS13b3Jrc2hvcC8xODU2LXRoZS1wb3J0LW9mLXRoZS1icnV0YWwtZG9vbS1yZXZlbmFudC1sYXVuY2hlcnM=&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

- **YourAverageMoron**
- ![YourAverageMoron's Avatar](https://www.realm667.com/media/kunena/avatars/resized/size144/users/avatar12194.png?1689894577)
- Demon
- ![Demon](https://www.realm667.com/media/kunena/ranks/rank_5_demon.png)

 Less More- Posts: 32
-
-

   3 years 3 weeks ago [\#10736](#10736) by YourAverageMoron  Replied by *YourAverageMoron* on topic *[The Port of the brutal doom revenant launchers](https://www.realm667.com/forum/the-workshop/1856-the-port-of-the-brutal-doom-revenant-launchers#10736 "Hello everyone I'm trying to make a port of the hellish revenant launchers from realm667, i've got the normal firing state done and working, but I want to add a third alt fire state where you can fly...")*

 The code does actually make sense, but WimpyDoomguy didn't make A_ChangeVelocity have a high enough z value, so it gets cancelled out very quickly. I'd say this is a good alternative. One flaw would be that you can't use the regular alt fire while flying, so that's a problem.

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL3RoZS13b3Jrc2hvcC8xODU2LXRoZS1wb3J0LW9mLXRoZS1icnV0YWwtZG9vbS1yZXZlbmFudC1sYXVuY2hlcnM=&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

- **DoctorBleed**
- ![DoctorBleed's Avatar](https://www.realm667.com/media/kunena/avatars/resized/size144/users/avatar12161.jpg?1698180706)
- Wraith
- ![Wraith](https://www.realm667.com/media/kunena/ranks/rank_41_wraith.png)

 Less More- Posts: 17
-
-

   2 years 9 months ago [\#11069](#11069) by DoctorBleed  Replied by *DoctorBleed* on topic *[The Port of the brutal doom revenant launchers](https://www.realm667.com/forum/the-workshop/1856-the-port-of-the-brutal-doom-revenant-launchers#11069 "Hello everyone I'm trying to make a port of the hellish revenant launchers from realm667, i've got the normal firing state done and working, but I want to add a third alt fire state where you can fly...")*

 Hey mike, did you ever get this working? If so, can you share it here?

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL3RoZS13b3Jrc2hvcC8xODU2LXRoZS1wb3J0LW9mLXRoZS1icnV0YWwtZG9vbS1yZXZlbmFudC1sYXVuY2hlcnM=&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

- **BFG Major Mike**
- ![BFG Major Mike's Avatar](https://www.realm667.com/media/kunena/avatars/resized/size144/users/avatar12159.jpg?1767167089) Topic Author
- BFG Commando
- ![BFG Commando](https://www.realm667.com/media/kunena/ranks/rank_8_bfgcommando.png)

 Less More- Posts: 163
-
-
-
-

   2 years 9 months ago [\#11070](#11070) by BFG Major Mike  Replied by *BFG Major Mike* on topic *[The Port of the brutal doom revenant launchers](https://www.realm667.com/forum/the-workshop/1856-the-port-of-the-brutal-doom-revenant-launchers#11070 "Hello everyone I'm trying to make a port of the hellish revenant launchers from realm667, i've got the normal firing state done and working, but I want to add a third alt fire state where you can fly...")*

 I didn't ![:(](https://www.realm667.com/frown.gif ":(")

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL3RoZS13b3Jrc2hvcC8xODU2LXRoZS1wb3J0LW9mLXRoZS1icnV0YWwtZG9vbS1yZXZlbmFudC1sYXVuY2hlcnM=&Itemid=2662) or [Create an account](https://www.realm667.com/component/users/registration?Itemid=2662) to join the conversation.

[Powered by](https://www.realm667.com/forum/credits) [Kunena Forum](https://www.kunena.org)
