Ludeon Forums

RimWorld => Mods => Help => Topic started by: InfiniteRemnant on October 31, 2014, 08:53:49 PM

Title: Has anyone tried this yet?
Post by: InfiniteRemnant on October 31, 2014, 08:53:49 PM
has anyone tried making bayoneted weapons?

As in, they work as both ranged and melee? how would one go about it, or can it even be done?

Reason i ask is i want to make a mod that allows characters to carry a second weapon, so they don't have to put down the hammer and go find a gun if they get caught on the wrong side of the barricade with only their tools, or have something a little better than just their fists if they get charged by an enraged muffalo they were shooting at.
Thing is i couldn't find a way to have two weapons, so next best thing is one weapon that counts as both.
Title: Re: Has anyone tried this yet?
Post by: Rikiki on November 02, 2014, 02:29:18 AM
Weapons can have several fire modes.
So a workaround would be to add a second projectile type which has a ridiculous range (1-2).
I believe you would have the colonist to be in melee to force him use this second attack (the "melee attack pirateXXX" order would still use the fists attack).
Title: Re: Has anyone tried this yet?
Post by: InfiniteRemnant on November 02, 2014, 11:13:57 PM
that might work, but don't melee attacks interrupt ranged attacks? You'd effectively be fighting at a worse disadvantage than going hand to hand...
Title: Re: Has anyone tried this yet?
Post by: Rikiki on November 03, 2014, 02:42:02 AM
All melee attacks have a warmup = 0 and a cooldownTicks!= 0.
So not interruptible. :)
Title: Re: Has anyone tried this yet?
Post by: skullywag on November 03, 2014, 02:43:29 AM
Hm you could probably do this via dll but it wouldnt be trivial.