Home » MODDING HQ 1.13 » v1.13 Coding Talk » Using bipod in any stance and etc
Using bipod in any stance and etc[message #294315] Wed, 30 November 2011 14:07 Go to next message
MarchHare

 
Messages:9
Registered:January 2011
Excuse me I just started to explore the C++ code of 1.13. I need some advice from the experienced people here who can probably give me a right direction.

1. It seems to me that bipod attached to the weapon is only useful when the merc is lying on the ground. I would like to make it work also in some specific situations when the merc is sitting behind the big stones or standing near the open window.

In my humble opinion in the situations the accuracy should also benefit from attached bipod.

Could someone tell me in which game file I can find/edit the calculations of the accuracy of gun-fire?

2. Also in my opinion the existing version of the path-generator is not always produces the best result when your mercenary walks among ground obstacles. I would like to try to improve the path-finding algorithm, but can't find it in the code.

Could please someone help me?
Re: Using bipod in any stance and etc[message #294317] Wed, 30 November 2011 14:33 Go to previous messageGo to next message
DepressivesBrot

 
Messages:3805
Registered:July 2009
1) Tactical\Weapons.cpp, CalcChanceToHitGun
2) Tactical\PATHAI.cpp

Good luck with your changes


Re: Using bipod in any stance and etc[message #294318] Wed, 30 November 2011 14:35 Go to previous messageGo to next message
MarchHare

 
Messages:9
Registered:January 2011
Thanks a lot!
Re: Using bipod in any stance and etc[message #294319] Wed, 30 November 2011 16:16 Go to previous messageGo to next message
Sam Hotte

 
Messages:2020
Registered:March 2009
Location: Middle of Germany
MarchHare
1. It seems to me that bipod attached to the weapon is only useful when the merc is lying on the ground. I would like to make it work also in some specific situations when the merc is sitting behind the big stones or standing near the open window.

IMVHO the latter would make more sense if it was "crouched behind the window".
Anyway i 2nd this. Smile

BTW when you are looking into this: Since shooting with rested rifle is also a bit more accurate than shooting "freehand" (at least with long arms like Battle Rifle) would it be possible to also add a smaller accuracy bonus in the said situations even without bipod?
Re: Using bipod in any stance and etc[message #294336] Wed, 30 November 2011 23:48 Go to previous messageGo to next message
MarchHare

 
Messages:9
Registered:January 2011
Sorry for my English, saying "rested rifle" you mean rested on bipod?

I think it is very good idea, and I'm happy to receive any kind of response:-)

In my VERY HUMBLE opinion the effect of the bipod or some kind of support (like windowsill, as you said) is underestimated in the game mechanics. In terms of the tactics the positions behind stones/sandbags, near windows or fences(anywhere you can rest your rifle) could become crucial during combat. From one hand side in the existing version of 1.13 I like them VERY MUCH because I have chance to hide behind the obstacle when the situation becomes critical, but from another hand I cant use a bipod there:-(

Why?!

It doesn't seem for me too difficult to commit the change, just check the tile in front of the shooter.

If the shooter is sitting, and there is the window in front of him, or wall of sandbags why not to give him full support of bipod?

I realize that I'm just started to study the source code and at the moment working with the stupid path-finding. But if there are something what I should know or any kinds of ideas I'll be happy to receive any advice.
Re: Using bipod in any stance and etc[message #294339] Thu, 01 December 2011 00:51 Go to previous messageGo to next message
Sam Hotte

 
Messages:2020
Registered:March 2009
Location: Middle of Germany
By "rested" i mean without a bipod attached to the rifle - but the barrel/handguard is laid on top of something (like sandbag, window frame, ...); its not resting on bipod but resting on the obstacle in front of you. So your gun gets supported from below making the shot a bit more accurate and aiding in controlling recoil (bursts).

So i suport your idea of making bipod usable with big rocks, windows, sand bags etc.
And i added the idea that in the case of being behind the said obstacles aiming could be a little bit more accurate even without a bipod attached to the gun.
Smile

Unfortunately I cannot help you in coding nor in telling you where to search in particular ... Sad
Re: Using bipod in any stance and etc[message #294351] Thu, 01 December 2011 13:49 Go to previous messageGo to next message
Inkompetent

 
Messages:31
Registered:November 2011
Location: Sweden
Having a weapon "rested" could possibly even work against corners or against trees (i.e. you push the weapon to the side, against the tree/building corner, to make it more stable).

Really awesome someone's taking a serious look at it, though Smile
Re: Using bipod in any stance and etc[message #294353] Thu, 01 December 2011 14:11 Go to previous messageGo to next message
Slax

 
Messages:1445
Registered:July 2006
Location: People riding polar bears...
Shouldn't be too difficult to get this working, I imagine.
More progress. Very nice. Smile

Re: Using bipod in any stance and etc[message #302437] Mon, 26 March 2012 22:28 Go to previous message
Flugente

 
Messages:3407
Registered:April 2009
Location: Germany
I don't want to brag about it, but this feature is implemented in the trunk, so this thread could propably be closed? Don't want people putting work into coding something that is already implemented...


Previous Topic: Help! My SVN doesn't accept me!
Next Topic: Idea for Ammo Purchasing & Crates -- Feedback Requested
Goto Forum:
  


Current Time: Sun Sep 23 01:59:24 EEST 2018

Total time taken to generate the page: 0.00959 seconds