|
Post by bizarrosephiroth on May 2, 2007 21:08:02 GMT -5
I've created a formula that I'm trying to morph to the actual physics of gunbound. I was thinking of using mauvecow's gunbound physics. He provided that gravity is 98 for most bots (I'm taking it that this is a constant on some scale relative to the real world which has a gravity of 9.8). I'll use his gravity constants according to the bot I'll be using. But before my formula will yeild anything useful to the game, I will need to get another variable which is the "Wind Effect." This is obviously the effect of wind on a particular mobile's projectile. Mauvecow provided 3 things......Speed, Gravity, and Weight. I'll be very generous to the person or people that aid in this matter (should my formula work).
|
|
|
Post by sketchkoopa on May 31, 2007 14:01:50 GMT -5
So what you need is a the effect that the wind has on both speed and gravity, correct? Not sure you one would stumble upon this info. It's my understanding that gravity is the downward component of a shot and speed is the horizontal for your purposes?
|
|
|
Post by bizarrosephiroth on Jun 1, 2007 14:42:30 GMT -5
eheheheh
|
|
|
Post by M3ZzeE on Jun 2, 2007 12:01:42 GMT -5
I think the main problem is that wind affects the shot every 'tick' (smallest time unit in a game) that it is in the air, so you need to know the way it can make in the first tick and adjust that way for wind, then for the 2nd tick and so on, that would be 100% accurate and that is the way aimbots calculate the power, but thats not possible to calculate in head in your 20 seconds^^ Im using formulas this way: I use a fixed base angle (70 for ice and 80 for kal) and windcharts (the very accurate one of that lord guy) to adjust my angle according to the wind. Then I calculate the power, ignoring the wind because its allready included in my angle and just check for the distance i would need with my base angle. Thats not 100% accurate but it's enough to hit with every shot as long as you can get the desired angle. The distance formula (without wind) is the following: 4*Sqrt((gravity*dist*1.00)/(4*(bulletspeed)^2*Sin(Rad(2*angle)))) = power So you see this will give you the power if you know: the distance (in pixels) the angle the bulletspeed -> depending on bot and the gravity -> depending on bot If you used fixed angle, you can calculate all the constant things and make the formula much easier, then you just find out how much pixels 1cm on your screen is and there you go: nearly 100% accuate shots with a ruler and a calculator (sorry for my bad english, but im from germany)
|
|