Author Topic: Instant reload fix and other patches by Tropical Gaming/Paradise  (Read 205 times)

0 Members and 1 Guest are viewing this topic.

Offline WoM_Jordan_White

  • First Sergeant
  • *
  • Posts: 122
  • Jordan W.K. White
    • View Profile
    • Tropical Gaming
  • Side: Confederacy
Hello,

Over the years we've encountered many bugs, exploits (unblockable attack if anyone remembers) and issues in NW and have patched them. We've decided to start posting the newer fixes here for the benefit of the wider community.

1. Wemans/Bird Mode Reload Glitch Fix (Server-Side)
Thank you to Kumpu, our NW developer for making this patch.
Spoiler

This glitch is when a user with the Wemans mod, or Bird Mod or any other mod that has the bird animation uses it to near instantly reload. The fix is a simple script where it unwields the weapon when the animation is used.

module_scripts.py, search this line:   (eq,":action_type",player_action_surrender),

If you have WSE, add:
  (agent_cancel_current_animation, ":player_agent", 1),

after
  (eq,":action",music_type_stop)


If you don't have WSE, you could add this:
  (try_begin),
    (agent_get_attack_action, ":aa", ":player_agent"),
    (eq, ":aa", 5), #reloading

    (agent_set_wielded_item,":player_agent",-1),
  (try_end),

It just unwields the weapon, not very elegant, but it works
[close]

For any support adding these to your server, please join our Discord and message Kumpu or myself, le fabulous unicorn. https://tropicalgaming.org/discord

We will be updating this thread over time as and when we patch new issues.
« Last Edit: April 02, 2024, 05:42:27 pm by WoM_Jordan_White »

Offline Caesim

  • Second Lieutenant
  • *
  • Posts: 21
  • With the edge of the sword.
    • View Profile
  • Nick: Caesim
  • Side: Neutral
Re: Instant reload fix and other patches by Tropical Gaming/Paradise
« Reply #1 on: April 02, 2024, 06:53:08 pm »
I feel like this is a more elegant solution to the reload exploit:
https://gitlab.com/nwpublic/minisiege/minisiege/-/commit/9e8fc1429f2a523814a1dd09917f6bad13d59eee
« Last Edit: April 02, 2024, 07:05:32 pm by Caesim »

Offline WoM_Jordan_White

  • First Sergeant
  • *
  • Posts: 122
  • Jordan W.K. White
    • View Profile
    • Tropical Gaming
  • Side: Confederacy
Re: Instant reload fix and other patches by Tropical Gaming/Paradise
« Reply #2 on: April 02, 2024, 10:00:29 pm »
I feel like this is a more elegant solution to the reload exploit:
https://gitlab.com/nwpublic/minisiege/minisiege/-/commit/9e8fc1429f2a523814a1dd09917f6bad13d59eee

If I'm correct that disables bird animation in it's entirety, whereas aim of ours is to keep the animation in but remove the glitch, but both options are doable depending on the desired outcome, thanks for sharing!