|
Post by beerus197171 on Feb 22, 2016 0:39:55 GMT -5
Hey Den (or anyone else),
I'm trying to make a balanced mod for CoD4 with skill based weapon recoil. Basically taking out the random values such as positive and negative pitch and yaw so that the recoil doesn't choose to go any direction it pleases which is almost impossible to predict.
I've chosen recoils that force the guns to react in a certain way each time. Unfortunately for some guns the more difficult I make them with more viewkick the quicker the vertical & horizontal limit is reached.
What I mean is if the viewkick value is set to too high, the recoil on the ak47 for example hits a limit whereby the recoil cuts out and becomes non-existent. This tends to happen at about 10-15 bullets, usually between 10-13. It's much easier to work around this when guns have a much lower firetime such as the mp44 which I managed to create a decent recoil pattern for without hitting the upper limit. For a gun like the AK47 with a higher rate of fire it simply isn't possible without learning what else I have to change.
Is there a value I can change inside the weapon file that allows the recoil both vertically and horizontally to continually be in effect without cutting out, i.e. surpasses its limits or if at the very least you drag it down from its upper limit (which the gun would reach if you do not pull against it), the recoil just keeps working?
Any help in regards to this would be much appreciated!
|
|
banana
True Banana
Zoro > Law
Posts: 1,577
|
Post by banana on Feb 22, 2016 9:51:08 GMT -5
|
|
|
Post by beerus197171 on Feb 22, 2016 12:26:08 GMT -5
Ah yes it does. ViewKick has an invisible boundary set to 10 degrees for both yaw and pitch. Does anyone know how to lift this boundary or whether it's possible?
|
|
probaddie
True Bro
You're triggering my intelligence
Posts: 11,043
|
Post by probaddie on Feb 22, 2016 16:45:52 GMT -5
Ah yes it does. ViewKick has an invisible boundary set to 10 degrees for both yaw and pitch. Does anyone know how to lift this boundary or whether it's possible? As far as I know, that ten degree boundary is hard-coded into the client - it is definitely not a weapon parameter, like gunMaxYaw and gunMaxPitch. The only other possibility is that it's controlled by a hidden cvar, but I don't have the coding chops to dig that deep. The only option at that point, as far as your mod goes, would be to hack the client directly.
|
|
|
Post by beerus197171 on Feb 22, 2016 17:58:18 GMT -5
Ah unfortunately I'm unwillingly to tamper with code and reverse engineer so I'll have to see if it can be done via mod tools. Doesn't allow for much of a skill gap if the weapon recoils are capped and have boundaries given the weapon rate of fire. I think it was initially made for WW2 guns that had lower firing rates and so it made sense, but now those limits are easily hit with the weapons of today.
Arghh!
|
|
banana
True Banana
Zoro > Law
Posts: 1,577
|
Post by banana on Feb 23, 2016 9:56:14 GMT -5
beerus197171 I like that your name matches when you said "surpasses its limits"
|
|
|
Post by beerus197171 on Feb 23, 2016 10:13:52 GMT -5
@banana - Haha
|
|