Flan's Mod: Legacy

Flan's Mod: Legacy

2M Downloads

Customizable Recoil (center speed, conditional recoil)

Kirby859 opened this issue ยท 0 comments

commented

(enhancement, duh)

Center speed:
In Flan's Mod, when a gun recoils up, it comes back down after a while. In most first person shooter games, the time it takes for the gun to come back down is called center speed. Some games (Day of Defeat: Source, Forgotten Hope 2) have no centering at all. Center speed should be configurable with something like:

CenterSpeed 100

100 would mean that the gun would come back to its original position right when the next shot is fired (it takes 100% of the ShootDelay to come back down)

CenterSpeed 150

150 would mean that the gun would come back down to its original position after the next shot is fired (150% of the ShootDelay)

50 would mean that the gun would come back down in half of the time it takes to fire another round (50% of the ShootDelay)

In practice, if I had ShootDelay set to 2:

100 = Gun comes back down in 2 ticks (0.1 seconds)
150 = Comes back down in 3 ticks (0.15 seconds)
50 = Comes back down in 1 tick (0.05 seconds)

If CenterSpeed were set to 0, there would be no centering at all.
If CenterSpeed is not defined in the text file, the center speed should be left at whatever the default value is.

If sideways recoil is implemented (which I doubt :) ), then add SideCenterSpeed. Or don't. I don't care.


Conditional recoil:
This one is simple. Add a few fields (or more!):

Recoil -- Standing still recoil value.
WalkRecoil -- Walking recoil value.
RunRecoil -- Running recoil value.
SneakRecoil -- Sneaking recoil value (includes walking + sneaking)

If the last three aren't defined, then set them to whatever Recoil is set to.