Home » MODDING HQ 1.13 » v1.13 Idea Incubation Lab » A Small Compilation of New Features
A Small Compilation of New Features[message #308884]
|
Fri, 10 August 2012 01:01
|
|
Sandro |
|
Messages:420
Registered:November 2008 Location: Mars |
|
|
Sandro's Compilation of New (Small) Features
Here is a small "feature pack", from my recent days.
I have finally brought the firing from hip to release state (that one is not really "small" feature amongst the others). And together with it made some other rather random stuff. No big deal though.
Here is a list:- Dual Burst/Autofire Enabled
- Alternative Weapon Holding (firing from hip + pistol with one hand)
- Energy Cost on Weapon Manipulation (holding it shouldered, firing)
- Suppression Effectiveness Modified by Caliber and Gun Loudness
- No Enemy Auto-ready Weapon Option
- Fancy Big Merc Rifle Holding Animations
- More Random Idle Animations
- Kick in HtH Implemented
- Jumping Implemented
- (Included Fix for IIS with Martial Arts Bonus)
Because the forum does not allow me to post more than 10 pics in one post, I had to split it into two.
(Note: If needed I may open separate thread for the alternative weapon holding, but so far I haven't felt it.)
And excuse my imperfect English.
-------------------------------------------------------------------------------------------
Dual Burst/Autofire
Double burst/autofire when shooting from two guns at once is now possible.
To be able to shoot double bursts, both weapons must have the same burst sizes. To fire double autofire, both must be be able to use autofire mode (so no burst on one and autofire on second).
The "BRST"/"AUTO" is shown on the second gun as well, so you know you are gonna shoot from both.
The amount of bullets you choose to fire on auto-fire is PER hand, meaning you will shoot double the amount total, since you shoot from two weapons.
The recoil control is harder by 20% (unless you have Ambidextrous trait).
And btw. under NCTH, the recoil is handled for each hand separately, which is cool.. (under OCTH that is not possible without heavy changes to the autofire behavior)
-------------------------------------------------------------------------------------------
Alternative Weapon Holding
With this feature active, you can now fire from alternative weapon holding - rifle-type guns fired from hip or pistol-type guns fired one-handed (making standard being two-handed).
In this alternative mode, we ignore scopes completely, and attempt to make the shot faster, with quick aiming just "by an eye". This result in paying less APs for readying the gun and less APs to shoot, however the accuracy is penalized.
This feature is only available in standing position (for now... I lack animations for crouched stance).
There are currently several ways how to set (in the ini) the feature to behave:
1) Default is "Scope Mode" behaviour. It means, that this alternative weapon holding is selected via scope mode change ('.' key). If you select the alternative holding this way, your shots will simply be fired the alternative way. Furthermore, readying gun by the 'L' hotkey will ready the gun to the alternative stance. This as said, is only available in standing position though.
2) Another option is to set it to be used only on non-aimed (no aim clicks) shots, making it just a small rather aesthetic feature.
3) And there is also an option to set its behaviour to "hybrid" one, when there are SOME aimclicks allowed, and when you fire within these, the alternative stance is automatically used. If you fire with more aimclicks, the standard stance is used. You can always use the 'L' to raise your gun to shoulder, then the alternative stance is ignored regardless of aim clicks.[/list]
To determine the alternative stance in game, different animation sets are used. Here are two pics, with comparison of the two holding modes:
For firing from hip: .......... And for firing pistol one handed:
You must right-click it and select view image to see it in full detail, because it goddamn resizes my image at its own will here.
Apart from that, the NCTH cursor says that you are going to shoot from the alternative stance, by yellow-colored aiming dots (currently only on NCTH, I haven't been able to figure how to change the OCTH cursor color yet, honestly).Toggle Spoiler
(The second one is for the "hybrid" behavior, showing how many aiming levels are for alternative holding.
__
New INI settings (I've just cut it out from the ini with the description as well):Toggle Spoiler
;------------------------------------------------------------------------------------------------------------------------------
; Alternative Weapon Holding settings
;------------------------------------------------------------------------------------------------------------------------------
; This feature allows us to fire weapons in a different way: we can fire rifles (meaning any two handed guns) from hip, and
; pistols (meaning any one-handed guns) holding in hand (making standard pistol holding be with two hands).
; The benefit of such holding is speed (reduced AP cost to ready, faster target acquiring), the drawback is limited accuracy and
; no use of scopes.
; Here is the basic switch of the feature, it also controls how the feature behaves in game - the setting can go from 0-3, and
; here is explanation of each:
; 0 - Turned off entirely.
; 1 - The alternative holding will be used only if you use NO aim clicks on a shots and you don't have your weapon raised up yet.
; 2 - This behaviour allows several aim levels to be treated as "alternative weapon holding", based on total aiming levels
; allowed for the gun. The number of alternative aim levels is always lesser than standard aim levels, and they are displayed
; as YELLOW dots under NCTH. If you do not have your gun raised yet (rifle to shoulder, pistol with two hands), you may fire
; from the alternative holding by simply aiming within the yellow aim levels limit (usually 33-66% of standard aim levels).
; If you use at least one aim click above the indicated alternative levels, your merc will automatically raise the weapon to
; the standard holding before the shot.
; 3 - "Scope Mode" behaviour (default). This simply makes the alternative mode a "scope" mode. To fire rifle from hip or pistol
; one-handed, just press '.' key to cycle to the apropriate mode (currently indicated by an "eye" symbol). No matter if you
; have your rifle shouldered/pistol held two-handed, you will use the alternative mod anytime you select this mode. With this
; setting, if you use the 'L' to raise your weapon, then it will be raised to a stance based on the scope mode selected.
; Of course, Scope Modes has to be allowed for this to work (they are as default).
; Note that by now, this feature is only available in standing position (hopefully, in the future, I'll be able to finish
; animations for crouched stance). Also, by now it is unavailable for pistols when standing in water.
; Last thing to mention: There is a new flag in Weapons.xml - "Heavygun" which says that weapon cannot be shouldered in standing
; position at all, and must be fired from hip then. It is only used for two-handed guns, supposedly for a rather too heavy LMGs.
;
ALLOW_ALTERNATIVE_WEAPON_HOLDING = 3
; This says how many APs are charged to raise the weapon to alternative holdng (rifles to hip, pistols with one hand), based on
; standard weapon ready APs. Setting 25 here means 25% of the APs are charged to raise weapon to hip/one-handed, so a weapon with
; 12 APs to ready would charge 3 APs to raise to hip/one-handed. Default is 25% by now.
; (Note that this is also AP cost to go from shoulder to hip / from two-handed to one-handed grip.)
;
RAISE_TO_ALTWEAPHOLD_READY_APS_PERC = 25
; This determines how many APs from regular weapon ready APs are charged when going from alternative holding to standard holding.
; This settings with the above one should put 100% together, as the alternative holding is supposed to be something like
; semi-raised gun (quarter-raised by now actullay).
; This will not affect standard cost for raising weapons (when gun is lowered and we choose to raise it fully).
;
RAISE_FROM_ALTWEAPHOLD_READY_APS_PERCENTAGE = 75
; This makes the shots from alternative holding to cost less APs to make up for not being able to aim and use scopes. 10 here
; means -10% APs to shoot from hip / one-handed grip.
;
FASTER_SHOT_FROM_ALTWEAPHOLD_PERC = 10
; The base (N)CtH penalty when firing from alternative weapon holding.
CTH_PENALTY_FROM_ALTWEAPHOLD = 30
; The base penalty when aiming from alternative weapon holding, if aiming from it is allowed. (This modifier is DOUBLED under NCTH,
since its calculation is different, and it balances the reduction of aiming levels.)
AIMING_PENALY_FROM_ALTWEAPHOLD = 30
; Aiming levels of the gun are reduced percentually by this number on alternative weapon holding. So 50 here means only half aiming
; levels will be available when using alternative holding (keep in mind that is a positive thing in NCTH).
AIMING_LEVELS_REDUCTION_ON_ALTWEAPHOLD = 50;
__
New tag in Weapons.xml:
"HeavyGun" (boolean, 0/1 only, only applies to twohanded guns)
-> if this is declared, the gun cannot be shouldered, it will always be fired from hip.
__
For this feature new animations were made. By me.. so target me when you don't like them. It was the most tedious, time consuming and motivation-killing thing I ever made for JA2. I've made them frame by frame, and even that a lot of it was a copy-paste job, I had to draw many things by hand. The result... doesn't look as good as all the other JA2 animations... in my opinion. Oh well.
-------------------------------------------------------------------------------------------
Energy cost on shooting
This "feature" makes weapon manipulating to cost some energy points in certain cases.
It consists from two parts - the effort on keeping the weapon up based on its weight, and the weapon recoil kick impact during fire.
This feature actually comes in par with alternative weapon holding. Firing gun from hip is not as much effort as from shoulder, especially when it is rather heavy gun, like most LMGs. This means, some guns become more suitable to fire from hip (like those LMGs). You can still shoulder them (unless they are tagged as "HeavyGun" in xml), but you may soon recognize it is rather difficult to fire them like that. The similar goes to sniper rifles/anti-material rifles. They are not supposed to casualy walk with them shouldered and head-shooting people. For them, not only the weight, but also the recoil kick, makes you suffer pretty fast, thus you are advise to rest them on bipod or something when shooting.
You may also notice, that if you place every possible attachment on your weapon lightweight AR of choice, the gun becomes so heavy, that you can see some energy drop when using it. Well.. tell me if that's not logical, heh.
The energy costs are mainly significant when standing or crouched (without support of bippod or an obstacle), and of course your gun is of the heavier sort.
The two separate ini settings:
Weapon weight:
The calculation of the cost is non-linear, so on lightweight guns, there is nearly no energy cost, while on very heavy guns,
the effect may become rather high. This is mainly important when trying to shoulder heavy weaponry (LMGs, anti-material SNs),
as those are more likely adviced to be fired from hip (LMGs) or on bipod.
Strugling with the weapon weight is reduced greatly in crouching position, and it is almost or totaly erased when the weapon is resting on something or you are in prone position, best with a bipod. The effect is also strongly reduced if holding rifle-type guns on hip rather than shoulder, however for pistols, holding them in one hand is somewhat more exhausting (however most pistols are so light, that there is almost no effect anyway).
The setting here represents percentual modifier to the final cost, so you can tweak it up or down as you like.
0 = disabled. 100 = default. Max is 250 (rather excessive).
ENERGY_COST_FOR_WEAPON_WEIGHT = 100
Weapon recoil kick:
This is a little different from struggling with weapon weight, it is about how much the gun "kicks" our shoulder (or hand).
Single shots may not prove much effect, but on autofire this may incure some nasty energy loss with certain guns.
The formula is based on weapon impact and weight, where weight actually help us out here, since it absorbs the back force of the recoil. Again, the cost is reduced by stance (nearly erased by bipod and/or weapon resting, greatly reduced when firing from hip), foregrip etc.
The ini setting represents percentual modifier to the final cost, so you can tweak it up or down as you like.
0 = disabled. 100 = default. Max is 250 (rather excessive).
ENERGY_COST_FOR_WEAPON_RECOIL_KICK = 100
Some tests, I've made during the coding:
Toggle Spoiler
(Note: the points here are not the final merc energy points (0-100), but points divided by "BP_RATIO_RED_PTS_TO_NORMAL" (default 100). I.e. the 100 of these = 1 merc energy point loss.)
// ::: Gun weight effect overview :::
// << a merc with 85 strength shouldering a gun while standing... >>
// 1) a gun weighting 3 kilos (lightweight ARs), generates cca 25 points = 1 BP per AP = 100 BPs per full turn = pretty much nothing
// 2) a gun weighting 5 kilos (ARs with some attachments), generates cca 71 points = 3 BPs per AP = 300 BPs per full turn = still ok, similar to climb down a roof once
// 3) a gun weighting 8 kilos (heavier ARs with lots of attachments), generates cca 183 points = 7 BPs per AP = 700 BPs per full turn = you can handle it, its just like climb roof up and then down once
// 4) a gun weighting 11 kilos (some LMGs), generates cca 346 points = 13 BPs per AP = 1300 BPs per full turn = starts to feel rather heavy soon
// 5) s gun weighting 15 kilos (you trying to shoulder Barrett? While standing?), generates cca 643 points = 26 BPs per AP = 2600 BPs per turn = uhh
// after testing, a gun weighting 12 kilos, shouldered in standing position, with 85 strength, together with recoil kick (small one on this one though)...
// took 5-6 whole turns to totaly exhaust the merc, if one turn is equal 20-30 seconds, then it is 2-3 minutes... I think that's reasonable
// ::: Gun recoil kick effect overview :::
// << a merc with 85 strength, normal weapon holding, standing position... >>
// 1) Glock 17 generates cca 16 points per shot
// 2) Colt M4 (with some attachemnts) generates cca 22 points
// 3) .50 Beowulf (with some attachments) generates cca 36 points
// 4) OSV-96 generates cca 103 points
// Even the OSV does not prove too much pain for one shot, since 100 is just one point of energy. Still, if you fire more bullets like that, the effect may become significant.
Now, if someone would want more precise values for the recoil kick part (since calculating it like that ain't perfect), there could be made a new xml tag to weapons.xml (something like RecoilZ or RecoilBack), specifying how powerful recoil back power the gun has. But that's very modder-unfriendly, and I haven't found it so important.
(There are values for recoil X and Y, but those are not exactly what I needed. Besides, basing the calculation on them would be a pain, so I decided to base it on impact, which makes everything much simplier.)
-------------------------------------------------------------------------------------------
Suppression Effectiveness Modified by Caliber and Gun Loudness
A small tweak to differenciate guns suppression effectivness. It is good for making large caliber LMGs more meaningful over the smaller caliber variants. So if you hold something BIG in your hands, it shows "some" (small at least) benefits on suppression.
1) To make it simple, I've used gun damage as the way to track down caliber size. The larger caliber = more damage, so I've made the bonus based on (unmodified) gun impact value. To make it really based on caliber would require new tag in weapons.xml, which I find unneccessary and unpleasant for moders out there.
The bonus is scaled like:
For each point of damage above 20, 1% more suppression effectiveness is added (up to 30).
For each point of damage above 30, 2% more suppression effectiveness are added (up to 40).
For each point of damage above 40, 3% more suppression effectiveness are added (up to 50).
For each point of damage above 50, 4% more suppression effectiveness are added. (Some crazy guns here.)
So for example a gun with 40 damage, is 30% more effective on suppression than a gun with 20 or lower damage.
A gun with 55 damage (uh... some future stationary machineguns maybe) would be 80% more effective at suppression, but that's rather extreme.
The differents between most pistols (cca 25 impact) and most ARs (cca 30 impact) is just +- 5%, which is not really much, so don't worry.
(Note: The INI bonus to all guns damage, is not considered towards this, only the basic Impact value specified in Weapons.xml.)
2) A small (rather tiny) modifier was also implemented for gun loudness. It may go up to +25% at 100 weapon loudness, but there is no gun like this in the current 1.13. The most noisy weapons currently have 85 loudness top (excluding some GLs with 90), which gives +10% suppression effectiveness over guns with 50 or lower loudness. So this is really tiny.
If someone likes it, I may fiddle with it more later.
I haven't made any INI settings for this, as it is really a small thing. But if someone sees a point in it, I may expand this so it makes larger differences, include more factors, and make an INI setting for it.
-------------------------------------------------------------------------------------------
No Enemy Auto-ready Weapon + "I see you" Taunts + Being Spot Marker
This was in JA2 for eternity - enemies automatically raise their weapons when they see our mercs (even if they don't have enough APs for it). However, there are probably several reasons, why we may not actually want this to be happening anymore. With IIS, enemies acting within our turn, that is something we don't really want, because their APs spent are counted towards our reaction timer (but only within their actual turn). With the alternative weapon holding (but not only), it is also unwelcomed, because the guy may not know how, on whom and if he wants to fire yet, so why would he raise the weapon.
Generally, there is little logic in it. Our mercs do not do automatic things when see an enemy either. You can act, as soon as you get an interrupt, or your turn.
The only thing it is good for, is to let us (the players) know, that we have been spotted, mostly during our sneakiness. So to compensate this, when an enemy sees us unexpectadly, an indicator (the radio locator - i.e. several red circles over him) is shown, and the guy most probably yell some quote ("Enemy!!!" etc.) - if Taunts are enabled.
I've made an ini setting:
NO_ENEMY_AUTOMATIC_WEAPON_READYING = 0/1/2
...which either disables it (1), or (if someone prefers) it makes enemies to only TURN towards our direction, not raise their weapons (2).
-------------------------------------------------------------------------------------------
Fancy ("Badass") Big Merc Rifle Holding Animations
This alternative animation set for big merc is present inside JA2. There are also some parts scattered around the code regarding it, but someone messed it up, resulting it to never show up in game. It was probably intended to be used for the badass mercs.
I have reenabled this animation set, and made it to be used at specific situations, so you can meet both animation sets in game.- If the big merc is not in combat and his morale is at least above avarage, he will use the alternative stance
- If in combat but morale is at least nearly at top, he will use the alternative stance
- Badass merc will ALWAYS use the alternative stance
- In all other situations the standard stance is used
This is purely cosmetical and does not do anything to gameplay. All transitions from this stance to another are covered - raise/lower gun, ready weapon to shoulder/hip, being hit, crouch etc. I've made some new STIs for that.
-------------------------------------------------------------------------------------------
Report message to a moderator
|
|
|
|
|
|
A Small Compilation of New Features
By: Sandro on Fri, 10 August 2012 01:01
|
|
|
Re: A Small Compilation of New Features
By: Sandro on Fri, 10 August 2012 01:02
|
|
|
Re: A Small Compilation of New Features
By: Slax on Fri, 10 August 2012 02:01
|
|
|
Re: A Small Compilation of New Features
|
|
|
Re: A Small Compilation of New Features
By: Sandro on Fri, 10 August 2012 02:11
|
|
|
Re: A Small Compilation of New Features
|
|
|
Re: A Small Compilation of New Features
By: JMich on Fri, 10 August 2012 09:58
|
|
|
Re: A Small Compilation of New Features
|
|
|
Re: A Small Compilation of New Features
By: lockie on Fri, 10 August 2012 18:55
|
|
|
Re: A Small Compilation of New Features
By: Wil473 on Fri, 10 August 2012 19:58
|
|
|
Re: A Small Compilation of New Features
|
|
|
Re: A Small Compilation of New Features
|
|
|
Re: A Small Compilation of New Features
By: Flugente on Sat, 11 August 2012 15:47
|
|
|
Re: A Small Compilation of New Features
By: Sandro on Sat, 11 August 2012 21:53
|
|
|
Re: A Small Compilation of New Features
|
|
|
Re: A Small Compilation of New Features
By: Sandro on Tue, 14 August 2012 01:11
|
|
|
Re: A Small Compilation of New Features
|
|
|
Re: A Small Compilation of New Features
|
|
|
Re: A Small Compilation of New Features
By: madwolf on Wed, 15 August 2012 23:51
|
|
|
Re: A Small Compilation of New Features
|
|
|
Re: A Small Compilation of New Features
|
|
|
Re: A Small Compilation of New Features
By: madwolf on Fri, 17 August 2012 11:12
|
|
|
Re: A Small Compilation of New Features
|
|
|
Re: A Small Compilation of New Features
By: Sandro on Sun, 19 August 2012 19:28
|
|
|
Re: A Small Compilation of New Features
By: Wil473 on Mon, 20 August 2012 18:24
|
|
|
Re: A Small Compilation of New Features
|
|
|
Re: A Small Compilation of New Features
By: Sandro on Tue, 13 November 2012 00:59
|
|
|
Re: A Small Compilation of New Features
By: K0ukku on Mon, 26 November 2012 15:45
|
|
|
Re: A Small Compilation of New Features
By: krux on Mon, 26 November 2012 16:56
|
|
|
Re: A Small Compilation of New Features
By: Uriens on Mon, 26 November 2012 17:22
|
|
|
Re: A Small Compilation of New Features
By: Sandro on Mon, 26 November 2012 19:09
|
|
|
Re: A Small Compilation of New Features
By: Hazapuza on Thu, 29 November 2012 16:00
|
|
|
Re: A Small Compilation of New Features
By: RuiZiuR on Thu, 13 December 2012 23:26
|
|
|
Re: A Small Compilation of New Features
By: Sandro on Fri, 14 December 2012 01:25
|
|
|
Re: A Small Compilation of New Features
By: Clarkew on Fri, 14 December 2012 03:25
|
|
|
Re: A Small Compilation of New Features
By: Uriens on Fri, 14 December 2012 11:08
|
|
|
Re: A Small Compilation of New Features
By: Sandro on Fri, 14 December 2012 11:42
|
|
|
Re: A Small Compilation of New Features
By: Sandro on Mon, 17 December 2012 15:23
|
|
|
Re: A Small Compilation of New Features
|
|
|
Re: A Small Compilation of New Features
By: Clarkew on Tue, 18 December 2012 02:42
|
|
|
Re: A Small Compilation of New Features
By: Flugente on Mon, 31 December 2012 19:12
|
|
|
Re: A Small Compilation of New Features
|
|
|
Re: A Small Compilation of New Features
|
|
|
Re: A Small Compilation of New Features
By: Sandro on Thu, 03 January 2013 18:09
|
|
|
Re: A Small Compilation of New Features
By: Flugente on Thu, 03 January 2013 18:43
|
|
|
Re: A Small Compilation of New Features
|
|
|
Re: A Small Compilation of New Features
By: Sandro on Sun, 06 January 2013 17:16
|
|
|
Re: A Small Compilation of New Features
By: krux on Mon, 07 January 2013 14:31
|
|
|
Re: A Small Compilation of New Features
|
|
|
Re: A Small Compilation of New Features
|
|
|
Re: A Small Compilation of New Features
By: Sandro on Sun, 20 January 2013 20:49
|
|
|
Re: A Small Compilation of New Features
|
|
|
Re: A Small Compilation of New Features
|
|
|
Re: A Small Compilation of New Features
By: merc05 on Tue, 02 April 2013 16:11
|
|
|
Re: A Small Compilation of New Features
By: Flugente on Wed, 03 April 2013 00:00
|
|
|
Re: A Small Compilation of New Features
By: merc05 on Wed, 03 April 2013 00:24
|
|
|
Re: A Small Compilation of New Features
By: Flugente on Wed, 03 April 2013 00:38
|
|
|
Re: A Small Compilation of New Features
By: merc05 on Wed, 03 April 2013 14:28
|
|
|
Re: A Small Compilation of New Features
|
|
|
Re: A Small Compilation of New Features
By: Flugente on Wed, 03 April 2013 21:36
|
|
|
Re: A Small Compilation of New Features
|
|
|
Re: A Small Compilation of New Features
|
|
|
Re: A Small Compilation of New Features
|
Goto Forum:
Current Time: Thu Feb 13 22:31:17 GMT+2 2025
Total time taken to generate the page: 0.02615 seconds
|