Page 1 of 2
New realistic aiming
Posted: 2007-06-02 13:01
by Flan
i found a very clever way of aiming when playing the mod "Smod:Tactical" for half-life 2 the other day and i instantly thought of Project reality. The basic concept is that the gun model moves slightly independantly from the main view so that you shoot at what your gun is aiming at and not the unrealistic middle of the view but you can also go into iron sights for more solid, accurate aim.
heres a link to some youtube movies of it in action:
http://www.youtube.com/results?search_q ... rch=Search
but i would definately suggest that you play it for yourself as it is hard to see here. If this could be coded into PR then i think it would realy help with the realistic feel the mod.

Posted: 2007-06-02 13:04
by Bob_Marley
Due to the way shooting works in BF2 "free aim" is impossible.
With the BF2 engine bullets come out of the centre of the screen, not the end of the gun model.

Posted: 2007-06-02 13:04
by Katarn
Unfortunately we have no control of the angle or position in which the projectile leaves the player. It is fixed to the center of the screen - sorry.
Posted: 2007-06-02 13:08
by Rhino
ye basicly in BF2, the bullets come out of the center of the screen of the player firing the weapon, not out of where the gun is pointing. It takes a little time to get over it that that is how BF2 works, but ye its kinda silly
Why you see ppl prone diving and shoot in vBF2 where there gun is basicly pointing the floor and is shooting and you still die

Posted: 2007-06-02 13:09
by Flan
hmm well that sucks. but is it any different in half-life 2? there must be some way of coding it in. but yeah if its going against one of the basic designs of the game it would probably be a nightmare to incorperate.
Thing is its not the player model that the bullets fire from but the in view model in smod.
Posted: 2007-06-02 13:10
by Top_Cat_AxJnAt
On slightl topic and to give thread for life:
IS it possible, using a hihgly skilled animator (lol) to have in game characters when reloding to throw there empty magazines on to the ground.
After watching a video of a firefight of Royal marines chucking there mags on the ground, rather than carefully placing them back in their pouches, for obvious reasons, such behaviour seems realistic.
So coudl the BF2 engine allow this, with magazines havign similar physical properties to bullet casings. With the character apparently holding at magazine, then droping it, then with an empty hand moving to a pouch, a new mag appearing in his hand and then his hand moving to slot the mag into the gun.
Not saying, please or can you do this, just is it posssible????????
Posted: 2007-06-02 13:18
by Flan
ok well i guess thats a no then. One quick question. What is PR coded in and where can i start learning it?
Posted: 2007-06-02 13:24
by Rhino
Flan wrote:hmm well that sucks. but is it any different in half-life 2? there must be some way of coding it in. but yeah if its going against one of the basic designs of the game it would probably be a nightmare to incorperate.
Thing is its not the player model that the bullets fire from but the in view model in smod.
HL2 is a very advanced engine that can do anything almost you want it to do. It is very flexible where as in BF2, most of it is hard coded and very inflixible.
Posted: 2007-06-02 13:24
by Top_Cat_AxJnAt
Flan wrote:ok well i guess thats a no then. One quick question. What is PR coded in and where can i start learning it?
macaroni......................................................no seriously, it is JN-25...

Posted: 2007-06-02 13:26
by Top_Cat_AxJnAt
'[R-DEV wrote:Rhino'], most of it is hard coded and very inflixible.
What is the advantage to the DICE DEVS (EA or whoever made the damn and blasted thing or clicked the
make hardcoded box if alot of the features are hardcoded?
I mean, is hacking more difficult, does it save developement time becuase they dont have to spend time making it easy to change for modders, they make it once and then it is locked for good - done, minimal effort.
Why WHY WHY
Posted: 2007-06-02 13:47
by Flan
I think that they believe that this will make their mods unbeatable as they are the only ones that can access the code which is blatently wrong they have never liked modders or custom content, you cant even change 1 skin in the origional game without PB going Skitz.

Anyway cheers for the replies guys, shame it cant be done but i wont hold it against a superb, albeit incredibly difficult mod.

Posted: 2007-06-02 13:50
by Flan
.
Posted: 2007-06-02 14:03
by Flan
Top _Cat the great wrote:macaroni......................................................no seriously, it is JN-25...
hmm japanese naval code? somehow i think coding a mod using that might be quite difficult

Posted: 2007-06-02 14:12
by Expendable Grunt
No, it eventually all ends up as machine code but that's not what you interface with.
The engine itself is written in C++, but all modifyable assets are done in Python. As for learning it I recommend getting some previous programming experience, especially with objects. A good text book will help.
Posted: 2007-06-02 14:18
by El_Vikingo
I thought you had to have the Enigma machine to code succesfully in BF2.
Posted: 2007-06-02 15:32
by {GD}Ghost
ROFL!
The Enigma couldn't even help.
Posted: 2007-06-02 15:47
by daranz
BF2 was indeed written by a horde of monkeys working directly with machine code. EA wasn't able to obtain monkeys that actually know how to use a keyboard, so they instead placed 8 large buttons in front of each monkey, and when the monkey hit one of the buttons, it changed from 0 to 1, therefore enabling a monkey to contribute one byte to executable.
As you can see, there's no sourcecode and no documentation.