SO! I'm at work creating a realism mod, and have been working hardest on the projectiles. Now we all know BF2 can't be the most realistic game out there for a number of reasons, but we can try as hard as we can, right?
Now lets take a look at the most important aspect of the small arms you're using, the projectile. Now we know how to add a gravity modifier to the projectile, so it drops over a long, long distance, but according to our preset 'velocity', the projectile will be moving the same speed over the course of its lifetime. This means, it won't drop like it should, the weight of the projectile would bring it down faster the slower the projectile went, correct? Well i'm working on ways to do this. I would assume 1g of gravity in BF2 would be a gravity modifier of 1.5, though i'm not completely sure (this is the gravity modifier vehicles use)
proper projectile flight can greatly impact gameplay, especially on the use of sniper weapons and long range rifles, so here's some code I figured I would try out, and i'd like to hear your theories and ideas to go along with this, this is the projectile template of an Ak-47 rifle
Keep note, this is the 'insurgent' Ak-47, so it's not like the original, well kept Chinese type-56, I wrote notes in the tweak to explain stuff at the time of coding.
Thats the basic, the velocity of the bullet, the real velocity of the round should be 710, but as I wrote in my rem tags that is why it's lower. According to this, the projectile will move at a constant 690 meters per second
Now this is where you can put stuff in, but will any of this work?
So technically, due to the drag of the bullet, and the mass, and the gravity modifier, the further it goes, the more it will slow down (due to drag), and because of the mass and gravity modifier, it will fall. Correct? I'm not sure, i'd like some quality feedback
Now lets take a look at the most important aspect of the small arms you're using, the projectile. Now we know how to add a gravity modifier to the projectile, so it drops over a long, long distance, but according to our preset 'velocity', the projectile will be moving the same speed over the course of its lifetime. This means, it won't drop like it should, the weight of the projectile would bring it down faster the slower the projectile went, correct? Well i'm working on ways to do this. I would assume 1g of gravity in BF2 would be a gravity modifier of 1.5, though i'm not completely sure (this is the gravity modifier vehicles use)
proper projectile flight can greatly impact gameplay, especially on the use of sniper weapons and long range rifles, so here's some code I figured I would try out, and i'd like to hear your theories and ideas to go along with this, this is the projectile template of an Ak-47 rifle
Keep note, this is the 'insurgent' Ak-47, so it's not like the original, well kept Chinese type-56, I wrote notes in the tweak to explain stuff at the time of coding.
ObjectTemplate.projectileTemplate insurg_ak47_Projectile
rem ---poor boor, not oiled, or lubed, poorly cleaned = lower velocity
ObjectTemplate.velocity 690
ObjectTemplate.itemIndex 3
ObjectTemplate.delayToUse 1.2
rem ---poor boor, not oiled, or lubed, poorly cleaned = lower velocity
ObjectTemplate.velocity 690
ObjectTemplate.itemIndex 3
ObjectTemplate.delayToUse 1.2
Now this is where you can put stuff in, but will any of this work?
rem ---123gr(roughly)FMJ 7.62x39 round, 8 grams, low quality, steel core
ObjectTemplate.mass 0.5
ObjectTemplate.drag 1
ObjectTemplate.floaterMod 0
ObjectTemplate.GravityModifier 1.5
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.physicsType Point
ObjectTemplate.material 38
rem -------------------------------------
ObjectTemplate.mass 0.5
ObjectTemplate.drag 1
ObjectTemplate.floaterMod 0
ObjectTemplate.GravityModifier 1.5
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.physicsType Point
ObjectTemplate.material 38
rem -------------------------------------

Comment