#  ![](https://www.realm667.com/media/kunena/topic_icons/realm667_repo/user/rep_approved.png) \[UPDATE\] Plasma Pipebomb

##

- **DeVloek**
- ![DeVloek's Avatar](https://www.realm667.com/media/kunena/avatars/resized/size144/users/avatar11145.png?1542216928) Topic Author
- Arachnotron
- ![Arachnotron](https://www.realm667.com/media/kunena/ranks/rank_10_arachno.png)

 Less More- Posts: 416
-
-

   1 year 10 months ago - 1 year 10 months ago [\#12527](#12527) by DeVloek  *[\[UPDATE\] Plasma Pipebomb](https://www.realm667.com/forum/closed-submissions/2158-update-plasma-pipebomb#12527 "Update: 

* adjusted arm movement for the primary fire mode (it looked kinda awkward how it moved to the middle, now it moves more to the side. It's still not perfect but now it should look more like how a real person would lob a grenade)
* added more pickup checks, now the player will only switch to the plasma pipebomb if the current weapon is weak (has the WIMPY_WEAPON flag). This prevents the weapon from always being selected when picking it up, as well as when using cheats that give ammo or weapons (such as 'give all')

* changed SlotNumber from 5 to 9, the 5 slot should be kept to actual rocketlaunchers
* changed SelectionOrder to 1850 so it's selected before the pistol when ammo runs out

edit: turns out the code to detect cheats isn't working as expected. It only works when the player is using cheats like godmode or noclip, inventory cheats like 'IDFA' and 'give all' are apparentely handled differently so player.cheats doesn't detect it. I'll try to find a solution but if nothing works, I'll remove that part entirely.")* was created by *DeVloek*

 Update: - adjusted arm movement for the primary fire mode (it looked kinda awkward how it moved to the middle, now it moves more to the side. It's still not perfect but now it should look more like how a real person would lob a grenade)
- added more pickup checks, now the player will only switch to the plasma pipebomb if the current weapon is weak (has the WIMPY\_WEAPON flag). This prevents the weapon from always being selected when picking it up, as well as when using cheats that give ammo or weapons (such as 'give all')
- changed SlotNumber from 5 to 9, the 5 slot should be kept to actual rocketlaunchers
- changed SelectionOrder to 1850 so it's selected before the pistol when ammo runs out

[ https://drive.google.com/file/d/1WocIu1r9Jr50H8Ov0T5-FF4JlploWhwo/view?usp=sharing](https://drive.google.com/file/d/1WocIu1r9Jr50H8Ov0T5-FF4JlploWhwo/view?usp=sharing)

edit: turns out the code to detect cheats isn't working as expected. It only works when the player is using cheats like godmode or noclip, inventory cheats like 'IDFA' and 'give all' are apparentely handled differently so **player.cheats** doesn't detect it. I'll try to find a solution but if nothing works, I'll remove that part entirely.

 Last edit: 1 year 10 months ago by DeVloek.

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

- **DeVloek**
- ![DeVloek's Avatar](https://www.realm667.com/media/kunena/avatars/resized/size144/users/avatar11145.png?1542216928) Topic Author
- Arachnotron
- ![Arachnotron](https://www.realm667.com/media/kunena/ranks/rank_10_arachno.png)

 Less More- Posts: 416
-
-

   1 year 10 months ago [\#12528](#12528) by DeVloek  Replied by *DeVloek* on topic *[\[UPDATE\] Plasma Pipebomb](https://www.realm667.com/forum/closed-submissions/2158-update-plasma-pipebomb#12528 "Update: 

* adjusted arm movement for the primary fire mode (it looked kinda awkward how it moved to the middle, now it moves more to the side. It's still not perfect but now it should look more like how a real person would lob a grenade)
* added more pickup checks, now the player will only switch to the plasma pipebomb if the current weapon is weak (has the WIMPY_WEAPON flag). This prevents the weapon from always being selected when picking it up, as well as when using cheats that give ammo or weapons (such as 'give all')

* changed SlotNumber from 5 to 9, the 5 slot should be kept to actual rocketlaunchers
* changed SelectionOrder to 1850 so it's selected before the pistol when ammo runs out

edit: turns out the code to detect cheats isn't working as expected. It only works when the player is using cheats like godmode or noclip, inventory cheats like 'IDFA' and 'give all' are apparentely handled differently so player.cheats doesn't detect it. I'll try to find a solution but if nothing works, I'll remove that part entirely.")*

 I ended up removing those extra checks altogther, it's not really important anyway. I only tried this to prevent auto-selecting the weapon everytime I give myself all items for testing purposes, but writing a CheatGive() override just for this purpose is a bit too much.

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

- **Gothic**
- ![Gothic's Avatar](https://www.realm667.com/media/kunena/avatars/resized/size144/users/avatar320.png?1619787674)
- Moderator
- ![Moderator](https://www.realm667.com/media/kunena/ranks/rank_20_barrel.png)

 Less More- Posts: 1329
-
-
-

   1 year 10 months ago [\#12532](#12532) by Gothic  Replied by *Gothic* on topic *[\[UPDATE\] Plasma Pipebomb](https://www.realm667.com/forum/closed-submissions/2158-update-plasma-pipebomb#12532 "Update: 

* adjusted arm movement for the primary fire mode (it looked kinda awkward how it moved to the middle, now it moves more to the side. It's still not perfect but now it should look more like how a real person would lob a grenade)
* added more pickup checks, now the player will only switch to the plasma pipebomb if the current weapon is weak (has the WIMPY_WEAPON flag). This prevents the weapon from always being selected when picking it up, as well as when using cheats that give ammo or weapons (such as 'give all')

* changed SlotNumber from 5 to 9, the 5 slot should be kept to actual rocketlaunchers
* changed SelectionOrder to 1850 so it's selected before the pistol when ammo runs out

edit: turns out the code to detect cheats isn't working as expected. It only works when the player is using cheats like godmode or noclip, inventory cheats like 'IDFA' and 'give all' are apparentely handled differently so player.cheats doesn't detect it. I'll try to find a solution but if nothing works, I'll remove that part entirely.")*

 [ Updated](https://www.realm667.com/index.php?option=com_content&view=article&id=2640)

Please [Log in](https://www.realm667.com/component/users/login?return=aHR0cHM6Ly93d3cucmVhbG02NjcuY29tL2ZvcnVtL2Nsb3NlZC1zdWJtaXNzaW9ucy8yMTU4LXVwZGF0ZS1wbGFzbWEtcGlwZWJvbWI=&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)
