Page 1 of 1
Is implimenting Sway possible?
Posted: 2005-08-24 22:10
by Scribble
As the question title says, IS it possible to impliment sawy in BF2's engine?
And, if possible would it be a consideration to tie sway quantity to the stamina bar? (ie sway increases the more exhausted the soldier)
Posted: 2005-08-26 13:45
by thugnasty
yeah that would be good but make sure it moves the whole screen as the gun moves so that the bullets will still hit where its pointed like in Americas Army
Posted: 2005-08-26 21:25
by GABBA
All those who have no idea what he is talking about raise your hand.....*raises hand*
Posted: 2005-08-26 21:30
by Jeeves
Sway wouldnt be that bad, but what I want to see is LEANING. I hate running around a corner without being able to peak first. I personaly think for a realism mod this is a must.
Posted: 2005-08-28 03:16
by Paladin-X
I would imagine it's possible to add sway. I believe it's an animation related thing. However, I don't think it can be tied with the stamina bar. Then again, I haven't really looked too much at it, so who knows.
Posted: 2005-08-28 15:42
by Figisaacnewton
Sway is a very important thing to figure out, even if it cant be tied to the stamina bar, if you have sway, you have different amounts of recoil per stance.
whats all the sway code from bf42 and mods? copy paste some of that and see if it works maybe...
Posted: 2005-08-28 17:12
by Paladin-X
In BF42 sway is an animation.
Posted: 2005-08-28 21:45
by FBX
it might be possible by manipulating the "shaking" that you experience when you fly fast in an airplane to be something infantry experience and to slow it down so its a sway and not a shake.
Posted: 2005-08-29 04:02
by Figisaacnewton
[R-DEV wrote:Paladin-X]In BF42 sway is an animation.
BF editor has built in animation editor.... does that help? (like can the bf editor change the animations easy?) can you just code it so that the animation that would normally be tottaly fixed sway back and forth a bit...?
Posted: 2005-08-29 04:07
by Paladin-X
To be honest, I don't know. From what I've seen, animations need to be done in a modelling program then exported. I think animation editor is for timing and such, but I could be wrong.
Posted: 2005-08-29 05:53
by FBX
ok *raises hand* I dont know what sway is now.
Posted: 2005-08-29 06:28
by Paladin-X
I'm thinking of sniper zooms in DC, where the scope would sway from side to side and slow down to a stop after a few seconds.
Posted: 2005-08-29 16:52
by Figisaacnewton
i think in 42 there were two sway states per weapon per stance, ther was an 'excited' state that lasted for a bit right after firing, and then a 'calmed' state where the sway was less intense, but kicked up if you started firing or moving.
if that system can be taken out of 42 and used in bf2, we can have MUCH more realistic weapons and we can have recoil that changes per stance, which is really a needed thing...
dammit i wish i knew how to actually code instead of just having vague ideas of how everything is supposed to work...!
FBX, ya play FH. sway is what happens whne you hold an anittank rifle while standing up (and standing still). THAT is sway.
Posted: 2005-08-30 06:47
by FBX
there isn't much to coding actually. Open up server_objects.zip and you'll find .tweak files that change attributes to parts of the game. They're pretty simple to figure out, as its in an "attribute value" format with one attribute per line.
The only difficult part is trying to figure out what sub-attribute your changing because it re-uses names a lot and depending on what object template was most recently declared your changing different things.
I opened up the BF2 executiable and discovered the following references:
cameraSwayRodLength
cameraSwaySensitivity
cameraSwayDofMin
cameraSwayDofMax
cameraSwayRightMin
cameraSwayRightMax
cameraSwaySpringStrength
cameraSwaySpringDamping
cameraShakeSensitivity
cameraShakeStartSpeed
cameraShakeMaxSpeed
you might see how they did "shaking" for the airplanes and see if any of those sway commands work when done in a similar fashion for infantry
Posted: 2005-08-30 06:53
by Paladin-X
FBX wrote:
The only difficult part is trying to figure out what sub-attribute your changing because it re-uses names a lot and depending on what object template was most recently declared your changing different things.
Which is where grep comes in handy.
http://www.wingrep.com
Posted: 2005-08-30 06:59
by Eglaerinion
It would definately be a nice touch, even if it isn't completely functional it would still look much better.
Posted: 2005-08-30 16:36
by Figisaacnewton
Ok then, so i think the answer is: YES sway is possible to implement.
YAY!
Posted: 2005-08-30 21:39
by Scribble
Outstanding, if implimented I think It'd add a great deal to gameplay. For a start removing the CS point and click to kill horrableness.