No, the weapon doesn't affect the ending, although one specific weapon is very much recommended if you go for the best ending.
I'll keep it spoiler free. The steps are the following:
spoiler
- In the "Labyrinth" level, do a sidequest for a doctor.
- Again in the "Labyrinth" level, there's a very brief cutscene of a friendly NPC falling down into a pit. Jumping down and talking to him leads to his death, so you MUST ignore him and proceed forward. This is the "bullshit" step, because there's no reason for a normal player to ignore him, but it is what it is. Instead, save your game (in case you fail the subsequent jump) and jump over the pit. It's a difficult jump, but it's doable.
- Before the "Core" boss battle, you must grab the "Rope" item lying somewhere in the arena BEFORE triggering the boss battle, which then leads to the room be filled with water.
- Immediately after the previous step, there's a map filled with water and water currents. Amidst the currents, there's a very difficult to reach door that requires a very precise jump. If you fail the jump, the currents lead you further into the level, so you must reload and try again.
- If you did the previous steps, you should find a friendly NPC in the "Plantation" level. Do a sidequest to help this NPC, which involves getting a Mushroom.
- If you did all of the above, at the end of the game do NOT get to the choppa.
Optional, but highly recommended to do for the last dungeon and the last boss battles:
spoiler
- Refuse both Curly and a second NPC's offer to trade in your starting gun.
- Trade the Sword for the Nemesis after an optional side quest at the end of the game.


