The project's repository is archived as part of the GitHub Archive Program. RogueLibs' code and the documentation will no longer be updated.
Melee Weapons*
Melee weapons are realy complicated. But, thankfully, RogueLibs takes care of the most difficult part — patching. So, all you have to do is to create a class deriving from CustomWeaponMelee
. I've spent hundreds of hours patching the melee weapons code, and managed to condense all of it into a single class. It's ridiculous how overcomplicated and wet Matt's code is.
Work-In-Progress
Vanilla Weapons Reference
The vanilla weapon stats can be summarized in the table below:
Type | CD | Speed | Animation | (offset), (size)* | Knock force | Sound |
---|---|---|---|---|---|---|
Fist-based | 1 | 5 | Melee-Punch | (0, 0), (0.16, 0.16) | 20 (40 fist) | SwingWeaponFist |
1-handed stab | 1 | 5 | Melee-Knife | (0, -0.02), (0.16, 0.36) | 40 | SwingWeaponSmall |
1-handed swing | 1 | 5 | Melee-SwingShort | (0, -0.02), (0.16, 0.36) | 80 | SwingWeaponLarge |
2-handed swing | 1 | 4 | Melee-SwingShort | (0, -0.02), (0.16, 0.36) | 80 | SwingWeaponLarge |
Duster (1-Swing) | 0 | 2 | Melee-Dust | (0, 0), (0, 0) | 0 | ButlerBotClean |
* The hitboxes may vary with a weapon, see below.
Type | Weapon | (offset), (size) |
---|---|---|
Fist-based | Fist | (0, 0), (0.16, 0.16) |
Fist-based | Chloroform Hankie | (0, 0), (0.16, 0.16) |
Fist-based | Sticky Glove | (0, 0), (0.16, 0.16) |
1-handed stab | Knife | (0, -0.02), (0.16, 0.36) |
1-handed swing | PoliceBaton | (0, -0.02), (0.16, 0.36) |
1-handed swing | Wrench | (0, -0.04), (0.16, 0.32) |
2-handed swing | Sledgehammer | (0, -0.02), (0.16, 0.36) |
2-handed swing | Crowbar | (0, -0.02), (0.16, 0.36) |
2-handed swing | PlasmaSword | (0, -0.02), (0.16, 0.36) |
2-handed swing | Axe | (0, -0.02), (0.16, 0.36) |
2-handed swing | Baseball Bat | (0, -0.03), (0.16, 0.36) |
2-handed swing | Sword | (0, -0.03), (0.16, 0.36) |
The project's repository is archived as part of the GitHub Archive Program. RogueLibs' code and the documentation will no longer be updated.