[Code] Deployable Mortar (M252 81mm)

Making or wanting help making your own asset? Check in here
Sniperdog
Retired PR Developer
Posts: 1177
Joined: 2009-02-27 00:06

[Code] Deployable Mortar (M252 81mm)

Post by Sniperdog »


As of recently I've been working on the Deployable Mortar, a project that has been very long in the running. When I started working on it a good deal of work had been done on it by the following folks:

Model: [R-DEV]Wybl (retired)
Skinning: [R-DEV]Matrox
Initial Coding: [R-DEV]Guedoe
Ballistics Calculator: [R-DEV]Mosquill

The max and min angles of the weapon to be 88.4 and 45 degrees. To be scaled properly for PR maps the maximum range for the weapon will be 1500 meters with a travel time of ~14 seconds while the minimum range will be 83 meters with a travel time of ~20 seconds

All the content you see here is subject to possible change. Currently you are able to pick from firing HE Point Det, Air burst, Or Smoke rounds.

The precise configuration of the weapons and the targeting screens is still a bit up in the air but it will be good and easy to use.

Also I'd like to give a personal thanks to [R-CON]Rudd as he provided the map being used for testing and has been helping me test it out himself :D . ( he'll also be helping me with some target practice soon enough ;) ). Also special thanks to [R-DEV]Mosquill for both making the calculator and providing insight with some of the coding I've had to do.

Cheers,
Sniperdog
Last edited by Sniperdog on 2010-06-28 15:29, edited 4 times in total.
Image

Image

Will Stahl aka "Merlin" in the Squad community
Tte.oteo
Posts: 302
Joined: 2008-03-11 12:19

re: [Code] Deployable Mortar (M252 81mm)

Post by Tte.oteo »

awsome work.... and please sell me ur car :)
AcornBeing
Posts: 105
Joined: 2009-08-18 23:00

re: [Code] Deployable Mortar (M252 81mm)

Post by AcornBeing »

Outstanding work - absolutely love the jet car, well, and the mortar too!!!! :D :D :D
KiNg828
Posts: 172
Joined: 2009-12-02 19:45

re: [Code] Deployable Mortar (M252 81mm)

Post by KiNg828 »

Im guessing theres going to be a proper mortar round sound when it fires and not the artillery one lol :D
sweedensniiperr
Posts: 2784
Joined: 2009-09-18 10:27

re: [Code] Deployable Mortar (M252 81mm)

Post by sweedensniiperr »

will militia have have this?

oh i forgot gj.. :)
Image
Zimmer
Posts: 2069
Joined: 2008-01-12 00:21

re: [Code] Deployable Mortar (M252 81mm)

Post by Zimmer »

WIll there be a smaller deviation on the round, so you dont get pin point accuracy everytime, I am not only thinking realism, but with the pointing method we have now with a symbol who gives you 100% accuray on the actual target I guess some randomness to the round would not hurt? But I guess the long travel time makes up for it.

But I really like this good work :)
People don't realize that autism doesn't mean they're "stupid". Just socially inept. Like rhino... > > or in a worst case scenario... Wicca. =)- Lithium fox
Image

I found this sentence quite funny and since this is a war game forum I will put it here. No offense to the french just a good laugh.
"Going to war without France is like going deer hunting without an accordion. All you do is leave behind a lot of noisy baggage."
Wilkinson
Posts: 1916
Joined: 2008-08-18 21:55

re: [Code] Deployable Mortar (M252 81mm)

Post by Wilkinson »

What was your Bf2 Equation? For the Greater good of the community ;)

Excellent work SniperDog, from CA's work to this, a tremendous help I'm sure to the PR Team. Great work.
Image
Image
Sniperdog
Retired PR Developer
Posts: 1177
Joined: 2009-02-27 00:06

Re: [Code] Deploayble Mortar (M252 81mm)

Post by Sniperdog »

KiNg828 wrote:Im guessing theres going to be a proper mortar round sound when it fires and not the artillery one lol :D
Yep
Zimmer wrote:WIll there be a smaller deviation on the round, so you dont get pin point accuracy everytime, I am not only thinking realism, but with the pointing method we have now with a symbol who gives you 100% accuray on the actual target I guess some randomness to the round would not hurt? But I guess the long travel time makes up for it.

But I really like this good work :)
Adding devation is very easy and its really up to the devs. You have a good point, IRL the M252 is actually extremely accurate, but then again IRL it is no where near as easy to get range with an accuracy of 1m, not to mention things like wind.
Wilkinson wrote:What was your Bf2 Equation?
The actual physics equation came out to:
Angle = 90 - sin^-1 (-14.70235*Range/(projectile velocity)^2)/2.
Where -14.7 is the acceleration due to gravity in BF2 (with the gravity modifier set to 1)

This allowed me to compute the maximum range just fine but for some reason it didn't work correctly with some of the other angles.

The equation I modeled after doing some measurements is:

Range = -8.869232072*10^(-22)*x^8 + 5.863078464*10^(-1 8) *x^7 - 1.645660969*10^(-14)*x^6 + 2.552955503*10^(-11)*x^5 - 2.385872722*10^(- 8) *x^4 + 1.370373343*10^(-5)*x^3 - 4.712480004*10^(-3)*x^2 + 8.691949397*10^(-1)*x + 19.70789909

where x is the range. This equation worked to an accuracy of within about 2 meters.

This equation is only really useful to angles for this weapon though :p
Image

Image

Will Stahl aka "Merlin" in the Squad community
Sniper77shot
Posts: 509
Joined: 2009-12-24 04:46

Re: [Code] Deployable Mortar (M252 81mm)

Post by Sniper77shot »

Looks sweet good job.
Image
Amok@ndy
Retired PR Developer
Posts: 5144
Joined: 2008-11-27 22:13

Re: [Code] Deployable Mortar (M252 81mm)

Post by Amok@ndy »

nice battleracer :)
will you also include this one for pr pleaaaaaseeeeeeeee <3
Image
Hotrod525
Posts: 2215
Joined: 2006-12-10 13:28

Re: [Code] Deployable Mortar (M252 81mm)

Post by Hotrod525 »

holy ****, this is AWESOME !
Image
Foxxy
Posts: 349
Joined: 2010-04-27 00:47

Re: [Code] Deployable Mortar (M252 81mm)

Post by Foxxy »

DAMN ,nice dude keep up the good work.
Image

[TMP] FoxxyFrost
|TG-Irr| FoxxyFrost
|UO|FoxxyFrost
Jordanb716
Posts: 186
Joined: 2008-04-10 22:58

Re: [Code] Deployable Mortar (M252 81mm)

Post by Jordanb716 »

Damn nice work I cant wait to try one out! :D
Colonelcool: I'd gladly pony up some tax dollars to send a JDAM over there just to kill that rooster.
OkitaMakoto: Talking squad level tactics in bed is actually a little known aphrodisiac.
Jigsaw: saying "lock please" accomplishes just about the square root of fuck all
Jigsaw
Posts: 4498
Joined: 2008-09-15 02:31

Re: [Code] Deployable Mortar (M252 81mm)

Post by Jigsaw »

Very good work Sniper_Dog, mighty impressive.
http://www.youtube.com/watch?v=8CKjNcSUNt8
"I love the smell of napalm in the morning. You know, one time we had a hill bombed, for 12 hours. When it was all over, I walked up. We didn't find one of 'em, not one stinkin' dink body. The smell, you know that gasoline smell, the whole hill. Smelled like... victory. Someday this war's gonna end... "
ReadMenace
Posts: 2567
Joined: 2007-01-16 20:05

Re: [Code] Deployable Mortar (M252 81mm)

Post by ReadMenace »

*rubs chin*

A new "Gary" variant -- mobile mortar for insurgency? ;)

You're the man now, Dog.

-REad
Oskar
Posts: 481
Joined: 2009-09-27 11:36

Re: [Code] Deployable Mortar (M252 81mm)

Post by Oskar »

Great job, I'm sure this will be awesome once it gets in-game. I've always dreamed about having a mortar squad!
RememberTheAlamo
Posts: 173
Joined: 2009-02-12 00:58

Re: [Code] Deployable Mortar (M252 81mm)

Post by RememberTheAlamo »

Who needs mortars when u can have a jet car? :D
Great job man! I love it
Jaymz
Retired PR Developer
Posts: 9138
Joined: 2006-04-29 10:03

Re: [Code] Deployable Mortar (M252 81mm)

Post by Jaymz »

Nothing short of amazing work, mate! I can't wait to try them out!
Sniper_dog14 wrote: I still have yet to fix some of the other bundles on the mortar, fix the mortar projectile to have proper damage values
The current in-game (off-map) mortars that are on small map layers have damage directly representative of an 81mm HE round so use them :-)

Can you adjust the minimum/maximum ranges at all? I'd say 80m - 2000m +
"Clear the battlefield and let me see, All the profit from our victory." - Greg Lake
BloodBane611
Posts: 6576
Joined: 2007-11-14 23:31

Re: [Code] Deployable Mortar (M252 81mm)

Post by BloodBane611 »

Wow Sniper, that's just sexy
[R-CON]creepin - "because on the internet 0=1"
dunem666
Posts: 559
Joined: 2009-06-02 13:04

Re: [Code] Deployable Mortar (M252 81mm)

Post by dunem666 »

nice! all we need now is a laser targetted Javelin and i think PR has complete collection of weapons lol
dunem
ImageImage
ImageImage
Post Reply

Return to “PR:BF2 Community Modding”