Home » MODDING HQ 1.13 » Flugente's Magika Workshop » New feature: Overheating Weapons
New feature: Overheating Weapons[message #295171] Wed, 14 December 2011 23:53 Go to next message
Flugente

 
Messages:3509
Registered:April 2009
Location: Germany
Overheating weapons

Hi, as I felt the feature was missing, I've implemented the feature of overheating weapons. Basically, every shot fired from a gun increases its temperature. On higher temperatures, the gun jams more frequently. Above a certain threshold, the gun also degrades much faster. The temperature is lowered every turn (turnbased)/5 seconds (realtime).

The increasing/decreasing of temperature works for all weapons in a game, both for mercs and soldiers. It also works for weapons in the sector inventory, in any sector, regardless of merc presence (so a weapon dropped by an enemy will cool down).

You can edit a gun's heat generation and its jam and damage thresholds via Weapons.XML:

...
<usOverheatingJamThreshold>4700.0</usOverheatingJamThreshold>
<usOverheatingDamageThreshold>5300.0</usOverheatingDamageThreshold>
<usOverheatingSingleShotTemperature>50.0</usOverheatingSingleShotTemperature>
...
As there is now a replacable barrel, the speed of cooldown can be set in Items.XML:

...
<barrel>0</barrel>
<usOverheatingCooldownFactor>125.0</usOverheatingCooldownFactor>	
...
Different ammunition types can modify heat generation in AmmoTypes.XML:

...
<temperatureModificator>1.03</temperatureModificator>	
...
A gun's barrel can be replaced with a new barrel if you allow it in Merge.XML (1377 is the item-number of the replacable barrel):

...
<MERGE>
<firstItemIndex>1377</firstItemIndex>
<secondItemIndex>1075</secondItemIndex>
<firstResultingItemIndex>1075</firstResultingItemIndex>
<secondResultingItemIndex>1377</secondResultingItemIndex>
<mergeType>8</mergeType>
<APCost>50</APCost>
</MERGE>
...
I've added a section to the Data-1.13/Ja2_Options.INI where one can set global values (note that now attachments can alter cooling properties):

...

[Tactical Weapon Overheating Settings]

;******************************************************************************************************************************
; In this section you can modify global settings for weapon overheating.
;******************************************************************************************************************************

; Maximum 'temperature' a gun can have
OVERHEATING_MAX_TEMPERATURE = 40000

; Should a 'thermometer' for guns and replacable barrels be displayed?
OVERHEATING_DISPLAY_THERMOMETER = TRUE

; A weapon's cooldown factor is multiplied with this, accounting for worse heat reduction due to attachments
OVERHEATING_COOLDOWN_MODIFICATOR_SILENCER         = 0.8
OVERHEATING_COOLDOWN_MODIFICATOR_BARRELEXTENDER   = 0.85
OVERHEATING_COOLDOWN_MODIFICATOR_FLASHSUPPRESSOR  = 0.97

; If a barrel is not in someone's inventory, it cools down a little bit better
OVERHEATING_COOLDOWN_MODIFICATOR_LONELYBARREL = 1.15
...
The XML-Files are needed for playing.

I have also edited the INIEditorJa2Options.xml for descriptions.

I tested this feature, it was built upon the currently newest source in the trunk, revision 4946.

Temperature is displayed via a thermometer on the left side of a weapon. Temperature is additionally shown in the description window, in the same colour as the thermometer.

This feature can be turned on and off in the 'Preferences' menu.

Due to code changes, there is no savegame compatibility, as I have made changes to the OBJECTTYPE class.


Changes in version 1.2.1:
- I've changed a few weapon values, no more stock values.
- The thermometer is now deep red while the temperature rises, and becomes brighter as the jam threshold is violated
- I've added caliber-specific replacable barrels for all machineguns (so, 5 different barrels)

Update on 6.3.12:

Changes in version 1.2.2:
- icons for everything overheating-specific added

[Updated on: Thu, 07 September 2023 11:15] by Moderator

Report message to a moderator

Captain

Re: Feature: Overheating Weapons[message #295172] Thu, 15 December 2011 00:02 Go to previous messageGo to next message
DepressivesBrot is currently offline DepressivesBrot

 
Messages:3658
Registered:July 2009
I opened this thread expecting yet another request ... must say it was a very nice surprise. Good job, that looks like a sound system.

Report message to a moderator

Captain

Re: Feature: Overheating Weapons[message #295245] Thu, 15 December 2011 22:28 Go to previous messageGo to next message
Off_Topic is currently offline Off_Topic

 
Messages:1000
Registered:January 2009
Cool, i've wanted this ever since i saw it in Night Ops.Is it gun specific, or are all guns subject to the same level of overheating?

Report message to a moderator

Sergeant Major

Re: Feature: Overheating Weapons[message #295261] Fri, 16 December 2011 02:41 Go to previous messageGo to next message
Flugente

 
Messages:3509
Registered:April 2009
Location: Germany
Thanks for your praise Smile I hope it will be useful.

@ Off Topic:???

You mean this was actually implemented before?????

What???

ARGH!
.
.
.
:yikes:
.
:roulette:
sigh.
Oh well. Never mind.

Hmm. Why wasn't that merged to 1.13 base then?


Well, no it isn't gun specific. You can fill in specific values for every gun in Weapons.xml, like in the file referred to in the first post. So for example you could raise the temperature of a single shot for heavy sniper rifles, or let some guns cool down much faster. Or lower the usOverheatingDamageThreshold, so that a gun will degrade much faster.

However, I haven't yet played a campaign with it, so i am at the moment unsure about the best values for each and every weapon. I also do not have that much knowledge about firearms, but I'm sure some people around here do Smile

Feel free to suggest ideas for weapon specifics.

I'd very much like to also these values to the UDB-Box, so one can actually see them ingame. However, all space in there seems to be already occupied. As the code there is not the easiest, I'll have to ask to Headrock about some tips for it sometime.


Report message to a moderator

Captain

Re: Feature: Overheating Weapons[message #295270] Fri, 16 December 2011 05:19 Go to previous messageGo to next message
Headrock

 
Messages:1762
Registered:March 2006
Location: Jerusalem
I was hoping to implement this feature too. You beat me to it - and not by much. Saves me a lot of work though, that's always good. Smile

Quote:
I'd very much like to also these values to the UDB-Box, so one can actually see them ingame. However, all space in there seems to be already occupied. As the code there is not the easiest, I'll have to ask to Headrock about some tips for it sometime.


Oh dear. Now THAT I didn't think about. UDB is currently full, and is unlikely to become any less full anytime soon (or ever). To make room you'd need to make it larger - and there isn't really any room for that. The only thing I can think about is adding a fourth tab to it - but that may make comparing weapons even more difficult.

I don't know what to tell you.

Report message to a moderator

Sergeant Major

Re: Feature: Overheating Weapons[message #295272] Fri, 16 December 2011 05:35 Go to previous messageGo to next message
Wil473

 
Messages:2815
Registered:September 2004
Location: Canada
Night Ops, was Russian mod project started a long time ago, before the source code was released if I remember correctly. In addition to overheating, they also had optional moving enemy Tanks and Humvee's.

Now since Headrock is involved here, should I be delaying AFS v3.60 RC2 HAM 5 Optimized? Overheating has been on my wish list for a while as well, and I think people are are little wary or my use of simple lack of durability to portray one of the (usually cited) weaknesses of direct impingement (AR-15) rifles - heat building up/being dumped into places where it does damage.

Report message to a moderator

Lieutenant

Re: Feature: Overheating Weapons[message #295273] Fri, 16 December 2011 05:49 Go to previous messageGo to next message
Headrock

 
Messages:1762
Registered:March 2006
Location: Jerusalem
I'm not involved, I'm just giving my opinion. I'm afraid I don't have the time to actually inspect this any closer.

Report message to a moderator

Sergeant Major

Re: Feature: Overheating Weapons[message #295275] Fri, 16 December 2011 08:06 Go to previous messageGo to next message
knightofni is currently offline knightofni

 
Messages:96
Registered:August 2011
Flugente

I'd very much like to also these values to the UDB-Box, so one can actually see them ingame. However, all space in there seems to be already occupied. As the code there is not the easiest, I'll have to ask to Headrock about some tips for it sometime.



Couldn't this be added to the 3rd tab (advanced) ? There's a scrolling bar, so we can put as much data as we want, can't we ?

Report message to a moderator

Corporal 1st Class
Re: Feature: Overheating Weapons[message #295282] Fri, 16 December 2011 11:23 Go to previous messageGo to next message
Flugente

 
Messages:3509
Registered:April 2009
Location: Germany
I had experimented with displaying under the 'General' tab, unfortunately there isn't enough space there, and i shy away from implementing a scrolling bar there.

But knightofni's idea is good. What I didn't like about the 'Advanced' tab at first were those icons for prone/crouching/standing, I'd rather have the ones for '0', '+/-' and '=' like in the General tab. But (idea): it should be possible just put in a new header line, I guess. Hmm. Not a bad idea. I guess I'll try it out. Good man.

BTW: how do you design these small symbols for UDB? I know they are read from .STIs, and I can actually see those with STIedit... but how do you add a symbol correctly? I tried it once, but the transparency was broken. Is there any guide or something?

Concerning integration into some other project: I'd be very happy to. However, I don't know if anyone else besides me has tested this yet.

The one thing I would really like to know is if there is any slowdown in lategame. Currently, all weapons in inventories are cooled down, this includes your mercs and any militia/enemies loaded. But also, all weapons in sectors (those that have been created - so those you can actually see in any sector) are cooled down too. This happens in HandleEndTacticalTurn - which is also called in real time (about every 5 seconds). So I basically check for every item if it is a gun ( and some other checks) and if it is, its temperature gets lowered. I don't know if this could be a problem (speedwise) in late game, when there are thousands of items (and hundreds of guns) lying around. If it is I might have to simplify that function.


But I built it so that once you disable the feature, it is completely deactivated (weapons neither gain or lose any temperature, nothing concerning temperature more gets displayed, and the jamming-code is back at 'classic' behaviour. I basically made a

if ( gGameSettings.fOptions[TOPTION_WEAPON_OVERHEATING] )
{
...
}


around all new code. In that case the only difference are to 'normal' behaviour are some new weapon stats, those 'if'-checks and a slightly longer OBJECTTYPE. So i don't think there should problem - after all, one can simply turn this off until I find a solution, should there be a problem.

I guess the very first step to integration, wether in AFS or any other mod, would be me checking this into an svn branch. Whom should I contact in this regard?

Report message to a moderator

Captain

Re: Feature: Overheating Weapons[message #295283] Fri, 16 December 2011 11:38 Go to previous messageGo to next message
DepressivesBrot is currently offline DepressivesBrot

 
Messages:3658
Registered:July 2009
You should just make a .patch file from your working dir and post it. Assuming you have been working on a versioned folder (You Should!), you can just select 'create patch' from the SVN context menu.

Report message to a moderator

Captain

Re: Feature: Overheating Weapons[message #295295] Fri, 16 December 2011 14:51 Go to previous messageGo to next message
Flugente

 
Messages:3509
Registered:April 2009
Location: Germany
Hi Monade,

I had thought about replacable barrels. However, I've never made attachments before. I have no idea how that works. But I don't see why it wouldn't be possible, yes.

Problem1: Even if the heat would be displayed at the barrel, you'd still have to give some sort of indicator on the weapon itself. Otherwise the player would be scratching his head about why his 99%-status M16 is jamming all the time. Displaying something like that only in the EDB-Box won't do (it is annoying if you constantly have to open a soldier's inventory and check the weapon stats while in a firefight).

But yeah, I had thought about replacable barrels: You would change a barrel and the weapon would inherit the temperature of the new barrel.

Problem 2: In that case the attachment 'barrel' needs to have a temperaure too, and cool down too. I think in that case all attachments would have to get a new variable 'temperature' (currently only weapons have that). You cannot use the status, in case you would use that status for weapon reliability. Propably not a problem, but worth mentioning.

Problem 3: I do not think that one could change barrels in the field for all weapons. From my time in the Bundeswehr I remember that the MG3 had an easily replacable barrel (the machinegunner always had a spare one in the field). The P1's barrel could also be easily replaced. But the G36? Nah, that barrel was fixed inside the stock. You'd have to replace half the weapon. In the field of course. I guess there has to be some way for the mechanics...
So, I think only a few weapons (mostly MGs) would have replacable barrels.

I think one could solve that by adding a flag 'HasReplacableBarrel' to all weapons. By exchanging, the temperature would then 'move' to the barrel.

Quote:
Its faster to change (if you add certain barrel types and combine them with the weapon system) for a modder than alter every single weapons heat/cooldown mechanism.


Hmm. That would mean kinda 'universal' barrels, like one for all 7.62x51mm weapons, and the like. Wouldn't be realistic (but then, the universal barrel extender/silencer/Flash Suppressor isn't either). Not a bad idea. But even if I'd do that, it would take some time, as I have no clue about attachments.

Quote:
If the weapon overheats are those merc better visible/spottable at night?


No. Would that really be applicable? I mean, do firearms glow in the dark when they are fired long enough?

Quote:
Instead of a jam can you integrate a simple blowup (status decrease to 1%) of the weapon system? :>


That is already implemented. Once the temperature is above usOverheatingDamageThreshold, it degrades much faster. If you want that, but don't want it to jam more often, set usOverheatingJamThreshold to a really high value.

Report message to a moderator

Captain

Re: Feature: Overheating Weapons[message #295296] Fri, 16 December 2011 15:02 Go to previous messageGo to next message
Sam Hotte

 
Messages:1966
Registered:March 2009
Location: Middle of Germany
Flugente
Quote:
If the weapon overheats are those merc better visible/spottable at night?


No. Would that really be applicable? I mean, do firearms glow in the dark when they are fired long enough?


At least a Minigun does. If this also happens when you fire the up to 200 rds MGs have in the game - dunno, but i doubt it.

I don't think that's applicable here.

Report message to a moderator

Sergeant Major
Re: Feature: Overheating Weapons[message #295297] Fri, 16 December 2011 15:04 Go to previous messageGo to next message
DepressivesBrot is currently offline DepressivesBrot

 
Messages:3658
Registered:July 2009
Flugente
No. Would that really be applicable? I mean, do firearms glow in the dark when they are fired long enough?
IF the barrel is allowed to build up enough heat, it'll go through the usual colors of hot steel, beginning with a faint, dark red somewhere near 700

Report message to a moderator

Captain

Re: Feature: Overheating Weapons[message #295301] Fri, 16 December 2011 15:28 Go to previous messageGo to next message
Sam Hotte

 
Messages:1966
Registered:March 2009
Location: Middle of Germany
In very darkness the adapted human eye is capable of seeing the "gray glow" of about 400

Report message to a moderator

Sergeant Major
Re: Feature: Overheating Weapons[message #295303] Fri, 16 December 2011 15:37 Go to previous messageGo to next message
Headhunter is currently offline Headhunter

 
Messages:265
Registered:November 2009
Location: Sweden
Flugente
I had experimented with displaying under the 'General' tab, unfortunately there isn't enough space there, and i shy away from implementing a scrolling bar there.


Couldn't there just be a "Barrel Temperature: xx%" just below "Weight" with like green or blue numbers for a cool barrel and red for a hot barrel?

[Updated on: Fri, 16 December 2011 15:38] by Moderator

Report message to a moderator

Master Sergeant
Re: Feature: Overheating Weapons[message #295305] Fri, 16 December 2011 16:07 Go to previous messageGo to next message
Flugente

 
Messages:3509
Registered:April 2009
Location: Germany
@ Headhunter: Already implemented:

http://imageshack.us/photo/my-images/64/descriptionbox2.jpg/

I think the picture in the first post was too small to see it...

Edit: Argh, how do you post pictures correctly???

[Updated on: Fri, 16 December 2011 16:08] by Moderator

Report message to a moderator

Captain

Re: Feature: Overheating Weapons[message #295307] Fri, 16 December 2011 16:34 Go to previous messageGo to next message
Flugente

 
Messages:3509
Registered:April 2009
Location: Germany
Monade
Flugente
I had thought about replacable barrels. However, I've never made attachments before. I have no idea how that works. But I don't see why it wouldn't be possible, yes.

ITs not really difficult you need a barrel picture for a wrok-a-round take the "extended barrel" and add a new entry in the attachmentslot.xml as far as i know with the responsible cooridnates. Some explainations can be found in Warmsteels attachment modification.
Thanks to smeagol:
http://img148.imageshack.us/img148/3596/newgunbox.gif


Flugente
Problem1: Even if the heat would be displayed at the barrel, you'd still have to give some sort of indicator on the weapon itself. Otherwise the player would be scratching his head about why his 99%-status M16 is jamming all the time. Displaying something like that only in the EDB-Box won't do (it is annoying if you constantly have to open a soldier's inventory and check the weapon stats while in a firefight).

Hm yes sure. But otherwise if you explain how your systems work with this notification i think players wont have so much problems to figure out why the weapon refuses to work. At the point did you choose Gun Jams as a work-a-round?


At first didn't jam the guns. They would just overheat:
- they would not fire (like jammed guns)
- they could not be unjammed, you'd have to wait for them to cool down
- a red sign saying 'OVERHEATED' was displayed, similar to the current 'JAMMED'

But I changed that, because I thought that a gun not working because of excessive heat kinda was what a jam was in the first place.

Monade
Flugente
But yeah, I had thought about replacable barrels: You would change a barrel and the weapon would inherit the temperature of the new barrel.
Keep on doing it! Wink

Flugente
Problem 2: In that case the attachment 'barrel' needs to have a temperaure too, and cool down too. I think in that case all attachments would have to get a new variable 'temperature' (currently only weapons have that). You cannot use the status, in case you would use that status for weapon reliability. Propably not a problem, but worth mentioning.
I'm not a coder or have any experience in coding stuff so this question is maybe a bit retarded. Is it so hard to add an xml tag or whatever tag for a barrel attachment/item which is combined with the status bar? Further more will set when the weapon refuses to work or maybe blowup if a critique point is reached.


You can't add an xml-tag ingame. What I meant was simply that you'd have to add a variable for temperature for all attachments, so propably all items. At the moment, it is just there for weapons. It is not a problem, its just that, well, memory needed for all items gets bigger. I don't know how much of an issue that is at the moment.

Adding such a variable is easy. I just wanted to raise awareness to the memory-issue Smile

Monade
Flugente
Problem 3: I do not think that one could change barrels in the field for all weapons. From my time in the Bundeswehr I remember that the MG3 had an easily replacable barrel (the machinegunner always had a spare one in the field). The P1's barrel could also be easily replaced. But the G36? Nah, that barrel was fixed inside the stock. You'd have to replace half the weapon. In the field of course. I guess there has to be some way for the mechanics...
So, I think only a few weapons (mostly MGs) would have replacable barrels.

Even the MG3 needs some time and the barrel replacement time can simply set in the attachments.xml xxx.


I guess the APcost would just be the basic cost for changing an attachment. Differentiating that would be quite complicated, I guess.

Monade

Additional this barrel "overheating" make more sense for automatic weapons only even if single fire weapon can theoretical overheat its different to automatic weapons but thats just my opinion.


You mean additional heat for firing in automatic mode? Will have to think about that.

Monade
Flugente

Hmm. That would mean kinda 'universal' barrels, like one for all 7.62x51mm weapons, and the like. Wouldn't be realistic (but then, the universal barrel extender/silencer/Flash Suppressor isn't either). Not a bad idea. But even if I'd do that, it would take some time, as I have no clue about attachments.

Nono you can add nearly "infinite" amounts of barrels to the game (items.xml) and set them as x. And cause not each and every barrel is made from the same materal just a few are required. And those few barrel can easily set to the weapon system via the attachments.xml. You know what i mean?


I'm not sure I understand the difference. So you want to have a few, say, 10, different barrels, right? And each one of those should be applicable to every weapon? 'High-End' to 'Low-End' barrels?
I'd propose something kinda like that, but only like one barrel per caliber. That'd still be a lot of items, though...

Monade
Flugente


No. Would that really be applicable? I mean, do firearms glow in the dark when they are fired long enough?

Yes IRL it takes some time. Have a look: - On which values calculated? but for a game it would be well an additional feature or difficulty even its a bit surreal.

Flugente


That is already implemented. Once the temperature is above usOverheatingDamageThreshold, it degrades much faster. If you want that, but don't want it to jam more often, set usOverheatingJamThreshold to a really high value.

Perfect Smile

Sam_Hotte
In very darkness the adapted human eye is capable of seeing the "gray glow" of about 400

Report message to a moderator

Captain

Re: Feature: Overheating Weapons[message #295310] Fri, 16 December 2011 17:04 Go to previous messageGo to next message
DepressivesBrot is currently offline DepressivesBrot

 
Messages:3658
Registered:July 2009
Monade
Additional this barrel "overheating" make more sense for automatic weapons only even if single fire weapon can theoretical overheat its different to automatic weapons but thats just my opinion.
It's the same for all. The same cartridge will add the same amount of thermal energy to the barrel, no matter if it's fired in semi or full auto mode. At the same time, the barrel radiates the excess heat to the environment. The reason why heat is an issue with automatics is that it's added faster than it can be dispersed. This is perfectly modeled with his system.

Report message to a moderator

Captain

Re: Feature: Overheating Weapons[message #295320] Fri, 16 December 2011 17:33 Go to previous messageGo to next message
Sam Hotte

 
Messages:1966
Registered:March 2009
Location: Middle of Germany
Monade

No it was an example concerning the possibility to get spotted at night even without corresponding sight tools.


No. Thermal shielding of siper rifles is AFAIK against IR sights - because (military, police) helis do feature that nowadays quite often. And to avoid "blurry" hot air in shooters vision.

To have light emmitting that can be seen from far away without technical aid at night you need ember at least ~500

Report message to a moderator

Sergeant Major
Re: Feature: Overheating Weapons[message #295323] Fri, 16 December 2011 18:01 Go to previous messageGo to next message
Flugente

 
Messages:3509
Registered:April 2009
Location: Germany
Monade
Well thinking about how does it work ingame does the merc say anything if the weapon refuses to work or is just that you cant fire as long as it is overheated? Did you used the same voices which occure when a gun jam is present?


I used the same voices. There wasn't really a difference, it was like a second jamming

Monade
Is it so much mermory instensive when you add an overheat tag to the barrel attachment for instace?


No. I just wanted to point out that we'd increase the memory needed for all items with a variable that is needed only for very specific item. Which is already done a lot, sadly enough.

Monade
The "JAMMED" notification can i be replaced with "OVERHEATED" or "HEATED"?!


You can, in fact, display whatever text you like. I opted for the small 'T' in the upper left corner, so the weapon is still visible. I don't like weapons constantly hidden behind a wall of texts and symbols. It is already full as hell, as Wolf demonstrates in the above picture Smile

Report message to a moderator

Captain

Re: Feature: Overheating Weapons[message #295325] Fri, 16 December 2011 18:08 Go to previous messageGo to next message
DepressivesBrot is currently offline DepressivesBrot

 
Messages:3658
Registered:July 2009
On the issue of overheating automatically preventing firing:

No. That's the way e.g. Battlefield does it and it's annoying. In some situations you'll just have to keep firing and risk catastrophic failure. Maybe it's just one more burst that makes the difference, so you should have the choice. Basically, risk your weapon or risk your life.

Report message to a moderator

Captain

Re: Feature: Overheating Weapons[message #295328] Fri, 16 December 2011 19:35 Go to previous messageGo to next message
Headhunter is currently offline Headhunter

 
Messages:265
Registered:November 2009
Location: Sweden
Flugente
@ Headhunter: Already implemented:

http://imageshack.us/photo/my-images/64/descriptionbox2.jpg/

I think the picture in the first post was too small to see it...

Edit: Argh, how do you post pictures correctly???


Oops, didn't see that, sorry...


DepressivesBrot
On the issue of overheating automatically preventing firing:

No. That's the way e.g. Battlefield does it and it's annoying. In some situations you'll just have to keep firing and risk catastrophic failure. Maybe it's just one more burst that makes the difference, so you should have the choice. Basically, risk your weapon or risk your life.


+2

Report message to a moderator

Master Sergeant
Re: Feature: Overheating Weapons[message #295329] Fri, 16 December 2011 19:49 Go to previous messageGo to next message
Wil473

 
Messages:2815
Registered:September 2004
Location: Canada
Perhaps I'm missing something, but doesn't the extra damage and increased weapon jamming potential already cover the heat related stoppages feature being discussed? Is there really a need for a separate mechanism to stop the gun when it overheats?

EDIT: by the way, my three projects already have merger based barrel changes. I am interested in seeing how the temperature feature is handled during item transitions. Specifically there are a few different ways properties are transferred during item transitions right now for item status:

1) The folding stock system in-place with my mods, similar to the one Smeagol seems to be working on too, is based on being able to transform one item from one index to another on command. In the case of the folding stock, when the gun turns into is alternate stock form (index X to index Y transition) the built-up temperature should stay with the weapon (like damage does right now). The USE merger is the only merger that preserves an objects damage stats between item index transitions.

2) The Quick Change Barrel system on the other hand, depends on the item X to index Y transition changing the items status. The Easy merger has the resulting item(s) ending up with the average status of the two original items.

3) Finally there is the COMBINE merger which simply takes one item to "refill" the status of another.

4) EDIT2: forgot about HAM 5 item transformation, will need to eventually examine how the temperature properties of a specific object are handled with an item transformation.


Basically, what I'm saying is that once the next HAM 5 Optimized version of AFS is out, I will be in a position to experiment with this feature. Just need a complied .exe, I suppose the optimum solution would be for this feature ends up in a near-future HAM or a rev4778+ SCI...

[Updated on: Fri, 16 December 2011 20:09] by Moderator

Report message to a moderator

Lieutenant

Re: Feature: Overheating Weapons[message #295336] Fri, 16 December 2011 22:17 Go to previous messageGo to next message
Flugente

 
Messages:3509
Registered:April 2009
Location: Germany
I haven't done anything concerning merges, so I'm interested in that behaviour, too.

I've just compiled version 1.1. New features :newstuff: :

  • Ammo-type specific factors can be specified in AmmoTypes.xml. They increase or lower the temperature for each shot.
  • weapons/ammo values are now integrated in UDB (see pictures in first post).

Only thing missing in UDB are new icons. As I'm a terrible artist, it would be very nice if someone could draw those icons. Volunteers?

The AmmoTypes.xml, a new .exe and a new .patch file are in my folder specified in the first post.

wil473
Basically, what I'm saying is that once the next HAM 5 Optimized version of AFS is out, I will be in a position to experiment with this feature. Just need a complied .exe, I suppose the optimum solution would be for this feature ends up in a near-future HAM or a rev4778+ SCI...


Very Happy I'm happy to help. However, I'm not here tomorrow, I'll be back on Sunday or Monday. However, if you really want to integrate the stuff, everything is inside the ftw11.patch.

Report message to a moderator

Captain

Re: Feature: Overheating Weapons[message #295337] Fri, 16 December 2011 22:50 Go to previous messageGo to next message
DepressivesBrot is currently offline DepressivesBrot

 
Messages:3658
Registered:July 2009
Flugente
I haven't done anything concerning merges, so I'm interested in that behaviour, too.
Basic structure:

	####
	####
	####
	####
	#
	##
First pair of tags defines which items are merged, second pair which items you get as a result. The type of a merge defines how the two items are merged and the APCost ... does what it says.

To adapt it for this purpose, you'd have to add a new type that only swaps the temperature variables of both items. (It may or may not care for results at all ... just modifying and returning the initial items would save the modder work.)

There'd still be a need to track heat on non weapon-type items but hey, maybe it can be limited to IC_MISC. On the other hand, you'd have no issues with the temp being hidden on an attachment and you wouldn't have to deal with vital parts of a weapon missing.

Report message to a moderator

Captain

Re: Feature: Overheating Weapons[message #295760] Tue, 27 December 2011 05:51 Go to previous messageGo to next message
ChonkE is currently offline ChonkE

 
Messages:17
Registered:January 2008
Location: Utah
Well since barrels warping/melting/overheating becomes an issue of maintenance condition, perhaps sustained firing in critical heat conditions (as combat necessities like continued breathing might dictate) could lead to a random catastrophic malfunction. Automatic decrease of weapon condition to 35%/25%/15% (random), breaking of weapon, perhaps random explosion to represent projectile lodged in a damaged barrel, uncontrolled automatic fire as ammunition cooks off, minor explosion/smoke bomb for slam fire/open chamber event. Having an open bolt cuts down on cook-off events. I dont know, looking at it now it seems kind of complicated lol

Report message to a moderator

Private
Re: Feature: Overheating Weapons[message #295801] Tue, 27 December 2011 17:13 Go to previous messageGo to next message
Flugente

 
Messages:3509
Registered:April 2009
Location: Germany
@ChonkE: Currently the weapon deteriorates much faster if the temperature is above its damage threshold. Firing automatic while the temperature is 'DRAMATIC' damages the weapon A LOT.
I wouldn't know how to program random uncontrolled automatic fire, though. Weapons exploding already is implemented ingame (rpgs/mortars do that on bad condition). But I'm also planning to do that in my wh40k-stuff, for plasma weapons especially (in fact, that's the main reason I came up with this stuff).

Report message to a moderator

Captain

Re: Feature: Overheating Weapons[message #295873] Thu, 29 December 2011 02:22 Go to previous messageGo to next message
Flugente

 
Messages:3509
Registered:April 2009
Location: Germany
I have implemented replacable barrels. If defined a new merge type and a barrel item, it is now possible to exchange barrels. I had to define define a temperature value for all items, though.

Upon merging, the temperature of the gun and the barrel are exchanged. Just what it should do.

I still have to make different barrels for different calibers, won't be a problem though.

At the moment, a temperature value is stored on all items. I don't see any other way. Luckily, his value is only used when increasing temperature on firearms and on cooling down. As I only have to look for guns and items that are flagged as barrels, this shouldn't be a problem.

A problem is that the weapon overheating characteristics (I'm thinking of the jam and damage thresholds) are stored on the weapon. This doesn't leave room for any specifics between different barrel types! You can't have high-quality vs. low-quality barrels that way.

Problem 2: The only way I can display temperature on the barrels would be either temperature/OVERHEATING_MAX_TEMPERATURE (which will not tell the user much about the relation to the weapon-specific temperature thresholds) or as a number value, which I do not like so much ( I like it better when you only have an very rough estimation about temperature, like it is on the weapon).

Problem 3: This way barrels aren't really attachments. Problem is that if they were, you'd have to ensure that a weapon without a barrel attachment can't fire at all. Coding that would b possible, but I'm not sure it would be a useful feature.
Otherwise these attachments would have to be inseparable, but exchangable :gaga:

I haven't uploaded this yet, but I will do that soon (preferably someone will have clever idea concerning this problem, and answer me Wink )

Report message to a moderator

Captain

Re: Feature: Overheating Weapons[message #296471] Mon, 09 January 2012 22:44 Go to previous messageGo to next message
TClaymore is currently offline TClaymore

 
Messages:34
Registered:July 2011
This would be an interesting addition, but what does it add to the gameplay? I mean, so far as I can see right now, all it would do is add even more micromanagement (you'll have to pack extra barrels plus ammo for machine guns) and keep "pausing" the gameplay so you can swap barrels. How would it affect the battlefield situation, dealing with enemies, etc.? I mean, yes, a machine gun designed for quick barrel changes would gain some desirability compared to one that wasn't, but would that really add so much?

Report message to a moderator

Private 1st Class
Re: Feature: Overheating Weapons[message #296473] Mon, 09 January 2012 22:54 Go to previous messageGo to next message
DepressivesBrot is currently offline DepressivesBrot

 
Messages:3658
Registered:July 2009
It adds diversity to the weapons and helps define their role on the field.
MGs will finally excel at their core role: extensive auto fire. No more replacing an all-up machine gun with a flimsy FAMAS + C-Mag.

Report message to a moderator

Captain

Re: Feature: Overheating Weapons[message #296474] Mon, 09 January 2012 22:58 Go to previous messageGo to next message
PasHancock is currently offline PasHancock

 
Messages:721
Registered:February 2011
Location: Estonia,Tallinn
1 word - Realism

coders and modders want to make game realistic,this feature gives realism which is good.Thats what it adds
I think i gonna try to become a coder too,gonna try with animations and will try messing with AI and morale at first Smile

Report message to a moderator

First Sergeant
Re: Feature: Overheating Weapons[message #296481] Tue, 10 January 2012 04:06 Go to previous messageGo to next message
TClaymore is currently offline TClaymore

 
Messages:34
Registered:July 2011
More realism != better gameplay. Should we have the mercs have to eat and go to the bathroom too? There are a ton of realistic features that would just add make-work to an already complicated system without necessarily making the game any more fun (like, say, the proposed new magazine system). Added realism can and has made the game much more entertaining so far, but gameplay should always be the first thing to consider before adding a new feature.

That being said, reflecting machine guns being built for extended autofire does make a lot of sense, and machine gunners certainly could load their combat packs with extra barrels. I was more worried about it being so sensitive that I'd have to do it every couple of turns to every single gun I fire more than once. Thanks for the explanation!

Report message to a moderator

Private 1st Class
Re: Feature: Overheating Weapons[message #296493] Tue, 10 January 2012 08:37 Go to previous messageGo to next message
PasHancock is currently offline PasHancock

 
Messages:721
Registered:February 2011
Location: Estonia,Tallinn
still,overheating feature makes mercs more depended in extra weapon,when our primary gun cools down for few turns,we use our secondary weapon,same should be for AI:

if soldier's primary weapon is overheated then use secondary weapon

if soldier's doesn't have sec.weapon,then hide and wait for weapon to cool down

Report message to a moderator

First Sergeant
Re: Feature: Overheating Weapons[message #296501] Tue, 10 January 2012 11:58 Go to previous messageGo to next message
usrbid is currently offline usrbid

 
Messages:1506
Registered:December 2008
NightOps has overheating. As far as I know the code does not check for weapon status for enemies for guns that fire bullets, there is a big IF statement around it, which ignores the portion of the code which determines gun jamming for players.

Report message to a moderator

Sergeant Major

Re: Feature: Overheating Weapons[message #296524] Tue, 10 January 2012 18:24 Go to previous messageGo to next message
Sam Hotte

 
Messages:1966
Registered:March 2009
Location: Middle of Germany
I would prefer the AI enemy not being affected by overheating and jamming. The AI is quite retarded and not posing much threat anyways.

Report message to a moderator

Sergeant Major
Re: Feature: Overheating Weapons[message #296525] Tue, 10 January 2012 18:48 Go to previous messageGo to next message
PasHancock is currently offline PasHancock

 
Messages:721
Registered:February 2011
Location: Estonia,Tallinn
Quote:
The increasing/decreasing of temperature works for all weapons in a game, both for mercs and soldiers. It also works for weapons in the sector inventory (so a weapon dropped by an enemy will cool down).

Report message to a moderator

First Sergeant
Re: Feature: Overheating Weapons[message #298503] Sat, 11 February 2012 00:36 Go to previous messageGo to next message
LootFragg is currently offline LootFragg

 
Messages:349
Registered:August 2009
Location: Berlin, Germany
Flugente! This! You! Big hugs!

It was a pain to read through this thread before commenting and praising your work. I love it. I have always wanted this and I'm always talking about machine guns needing a boost. Here we go, overheating, finally. Damn. I guess it has been one of my countless feature requests as well. You're awesome.

First off, please make temperature visible as a slim, red bar next to the slim, yellow bar that is the weapon's condition. This is basically what I have always envisioned. No bar visible when the gun is cool. A tiny bit of red visible when it has been fired several times. Filled to about half when the gun has been fired a lot in autofire. And when the red bar is at the top of the weapon icon, you've already managed to sustain autofire for several magazines.

As for overheating speed, I would NOT recommend trying to copy real life behaviour. Yeah, cool, a real gun can fire 200 rounds with ease, great. But firing 200 rounds in JA2 is something you can't even manage to do in the small timeframe you've got. I say an automatic rifle isn't supposed to fire anything more than a 30rd magazine in rapid succession before being very hot. That's what machine guns are for. Those on the other hand should definitely be able to chew through an entire belt before overheating and cool down a lot faster. They're mostly designed with an open chamber anyway.

As for exchanging barrels, this sounds neat but I want to emphasize that you shouldn't really bother thinking about complexity in the meaning of having different kinds of barrels with different effects as then you would dig deep into the realm of weapon customization. There has been a neat thread about weapons consisting of tons of attachments from pistol grip to handguard, barrel, gas piston, you name it, called Truly Customizable Weapons. That would be amazing in combination but unless it's actually going to happen, don't bother thinking much about it. Focus on weapons getting hot. Mh-mh.

As for criticism: Shuddup. First off, it's not only about realism being added where it would be desperately needed. It's about balancing weapons as well. There are so many factors that determine a weapon's quality and performance and most of them have been left out in JA2 in order to facilitate the entire programming and gaming process. Problem is we don't really have a good weapon balance and assault rifles rock the house while machine guns are... well. If you feel like you need the challenge, you can equip one of your guys with one. While mobility is certainly far better when wielding an M4, sustained, accurate fire, as has been pointed out, should not be possible. That's what squad assault weapons and light machine guns are for. Assault rifles only bridge the gap between rifles and machine guns, allowing for high flexibility. With heat being relevant, you can't just use any rifle with closed chamber to wreak havoc. You'll have to bring along an appropriate gun for the job you want done.

Also, there is no actual micromanagement involved. You fire the gun as usual and it will cool down in time. If you keep firing full-auto, it will get hot and start degrading faster, leading to more jams but nothing you don't already know from the game. Except if this feature is really going to include blowing up and all that stuff. It mostly means that if you play Rambo, you'll have to maintain your gun a lot more. And if it gets hot, pull out your sidearm and wait for it to cool down. I doubt the feature will actually be predominant in a way that you'll have to time your shots and compare weapon cooldown values.

As for visibility: Sure, hot steel emits light. But this is far too complex and again digs into something that should never be touched. Some guns have an open barrel that will be fully visible, others barely show the muzzle. Then there's the aforementioned thermal shielding and the fact, that IR goggles don't actually make you see heat. And what if my machine gun is really hot and could be visible in the dark? Can't I cover the handguard with a t-shirt? And what about the smoke and steam it creates, won't they ... and if I have it on a sling, how's the visibility gonna get modified? This leads to all kinds of issues I wouldn't want. Like tracers lighting up their surroundings which they actually don't. Long story short, I wouldn't want heat to cause anything but weapon jams. And you shouldn't drop a gun if it gets too hot either. Or create gloves for an MG3 barrel change. It's too much.

Concerning the UDB, I think only the amount of heat generation and reduction should be relevant. Thresholds and gradients and all that, that doesn't concern the player. I know that a gun gets hot, I know it'll take damage. I won't check if I'm still below 250 heat units because I wouldn't do that in reality either. There needs to be an indicator of a weapon's ability to steam off so I know which weapon to rely on for sustained fire.

Flugente, I love you for making this. Long time. Hugs and imaginary cake, please get this thing done.

Report message to a moderator

Master Sergeant
Re: Feature: Overheating Weapons[message #299453] Sun, 19 February 2012 20:08 Go to previous messageGo to next message
Flugente

 
Messages:3509
Registered:April 2009
Location: Germany
@LootFragg: Poof, all your wishes have been fulfilled Smile

@World: Look at starting post for a new version with new description and features (coloured thermometer, attachments alter cooling, replacable barrels).

[Updated on: Sun, 19 February 2012 20:09] by Moderator

Report message to a moderator

Captain

Re: Feature: Overheating Weapons[message #300017] Thu, 23 February 2012 01:02 Go to previous messageGo to next message
LootFragg is currently offline LootFragg

 
Messages:349
Registered:August 2009
Location: Berlin, Germany
Flugente, I've started a game with your changed files some days ago. I haven't come far yet, Omerta and around only. But I like what I've seen so far. I have rarely made a gun overheat yet, didn't have enough opposition, but it seems to me you found a good balance between heat being noticeable but not an annoyingly overpowered feature.

I haven't thoroughly playtested everything and I won't. Checked some values to find out about the concept and they look pretty good. I like that assault rifles have higher values than shotguns and other weapons due to the stronger bullet and more compact design. Also like that tracer rounds have a downside now by producing more heat.

Examples
Blah


Thanks for adding the heat bar, nice way to see how hot a gun is without having to open a window.

  • If you can, move it a few pixels to the left, closer (right next) to the condition bar, leaving more space for the ammo count. This is a beta feature so integrating it properly might involve redrawing the underlying background and moving the already hard to read ammo counter further to the right but for now it overlaps with it.
  • Change the colours to be less bright, darken them a bit so they don't stand out as much. They may get brighter the hotter a gun gets.
  • Please change the colour scheme to be always reddish (maybe starting from orange-yellow, gradually becoming orange and red) because green-blue-white-something feels like something rather positive. The increase in temperature is already reflected by the size of the heat bar.
  • Maybe colour shouldn't be proportional to the bar size. A full bar could be of a half dark, reddish colour, increasing in brightness and colour intensity as the weapon gets hotter and hotter even if the bar can't get any bigger.
    The bar size limit could then be the heat threshold and the colour would tell you how far beyond that threshold the actual temperature is.

Bugs and such

I noticed the heat bar colour of hot guns becoming half red half white after a while of cooling down, then quickly disappearing. The top was red, the rest faded into grey. When I checked the UDB, the bar updated and the red part was gone. The lower half (medium temperature) stayed there until I checked the UDB again, finding the temperature to be very low and the bar gone when leaving the UDB. So this doesn't get updated properly in real-time.

I noticed the Ruger Mini-14 5.56mm having only as much heat increase as a pistol (80). Should probably be more but yah, I assume weapons haven't been thoroughly balanced yet. I didn't expect it. But some are, depending on caliber and all. Well done.

As I have stated before, I consider the damage and jamming thresholds somewhat irrelevant in the UDB. They don't seem to differ from gun to gun, you don't see the current temperature as a numerical value and I don't see them as suitable values for comparison. The only use for them would be to see extreme deviations like in a gun that is extremely heat sensitive or one that is almost immune to overheating. Or maybe calculate how many rounds can be fired before the gun overheats but well. I'd rather want a rough indicator of the weapon's heat tolerance. What I want to know: Are there guns whose jam / degrade thresholds would definitely not be proportional? Like, a machinegun that keeps firing until it breaks or something? Because otherwise, if these are somewhat proportional, I would combine them into a heat tolerance value in the UDB. It doesn't matter what's going on behind the scenes but one value would be appreciated. BUT I imagine it's rather handy to have all values displayed as long as the feature is still being tested. As a sort of final polish I'd make it look good by decreasing the amount of info shown.

Apart from all the icon stuff, I'd put ammo specific heat stuff after a separator or on the Advanced page, making sure to keep it apart from the values that indicate a bullet's destructive potential. It's a feature like AET rounds decreasing condition, good to know but not of primary relevance when checking out ammunition.

Suggestion

How does the entire heat stuff get calculated? The jam threshold means this is where the gun starts jamming due to heat? And the hotter it gets the more likely it is to jam? Anyway, I'd say lower the threshold and make a non-linear function (if you have one right now) that increases jam probability progressively the hotter the gun gets. So you'll have a smooth curve.

A really cool feature would be increasing the red colour value of the icon but I don't think it's possible to play around with graphics that much, is it?

That's it for now, I'll keep playing with that version.

Report message to a moderator

Master Sergeant
Re: Feature: Overheating Weapons[message #300036] Thu, 23 February 2012 04:31 Go to previous messageGo to previous message
Flugente

 
Messages:3509
Registered:April 2009
Location: Germany
Hi Lootfragg,
that's a thorough analysis, thank you.

LootFragg
Flugente, I've started a game with your changed files some days ago. I haven't come far yet, Omerta and around only. But I like what I've seen so far. I have rarely made a gun overheat yet, didn't have enough opposition, but it seems to me you found a good balance between heat being noticeable but not an annoyingly overpowered feature.

I haven't thoroughly playtested everything and I won't. Checked some values to find out about the concept and they look pretty good. I like that assault rifles have higher values than shotguns and other weapons due to the stronger bullet and more compact design. Also like that tracer rounds have a downside now by producing more heat.

Examples
Blah




Very good. Those values were just my first guess. Please give insight if you think some values are inconsistent with the rest, I'll add them to the archive so everybody can benefit from that.

LootFragg

Thanks for adding the heat bar, nice way to see how hot a gun is without having to open a window.

  • If you can, move it a few pixels to the left, closer (right next) to the condition bar, leaving more space for the ammo count. This is a beta feature so integrating it properly might involve redrawing the underlying background and moving the already hard to read ammo counter further to the right but for now it overlaps with it.
  • Change the colours to be less bright, darken them a bit so they don't stand out as much. They may get brighter the hotter a gun gets.
  • Please change the colour scheme to be always reddish (maybe starting from orange-yellow, gradually becoming orange and red) because green-blue-white-something feels like something rather positive. The increase in temperature is already reflected by the size of the heat bar.
  • Maybe colour shouldn't be proportional to the bar size. A full bar could be of a half dark, reddish colour, increasing in brightness and colour intensity as the weapon gets hotter and hotter even if the bar can't get any bigger.
    The bar size limit could then be the heat threshold and the colour would tell you how far beyond that threshold the actual temperature is.


Unfortunately, I can't move the bar more to the left. I have to place the it inside the box (I basically draw over the item picture, just like all other displays (ammo count, firemode etc..) do. The status bar is actually not a part of that, its separate. I could, however, make it thinner (not sure if that'll look good) or jsut move the ammo counter.

Hmm, I was actually rather proud of the colour scheme (I basically mapped the overheated percentage to an rgb value). However, it does seem a bit... ugly. Your idea with of bar that only changes colour if it is above a threshold is good, kinda a two-level indicator. I'll have a look.

LootFragg

Bugs and such

I noticed the heat bar colour of hot guns becoming half red half white after a while of cooling down, then quickly disappearing. The top was red, the rest faded into grey.


I've never seen that before. Interesting.

[quote=LootFragg]
When I checked the UDB, the bar updated and the red part was gone. The lower half (medium temperature) stayed there until I checked the UDB again, finding the temperature to be very low and the bar gone when leaving the UDB. So this doesn't get updated properly in real-time.
[quote]

Yeah, I noticed that. It also happens when you open the UDB and fire a few shots. It doesn't get updated, you'll have to switch tabs if you want to see the text change, for example. The ammo count doesn't get updated as well. I guess there is no update happening. Same goes for the weapon display in strategic view when you compress time, the weapon cools down, but the display does not get updated.
I'm shying away from putting an update there, because there has so far never been a need for one. A graphical issue might not justify introducing a potentially calculation-heavy update function.

LootFragg

I noticed the Ruger Mini-14 5.56mm having only as much heat increase as a pistol (80). Should probably be more but yah, I assume weapons haven't been thoroughly balanced yet. I didn't expect it. But some are, depending on caliber and all. Well done.


Correct. I didn't really balance the values, and left some weapons at their standard values. My main issue was to penalize SMGs and ARs in comparison to MGs.

However, the heat increase itself doesn't say that much. One has also to take into account the thresholds and the cooldown factor. You'll notice that most machineguns have heat increases that are actually lower than those of most pistols. This results in them being able to fire more bullets till they overheat. At the same time, the cooldown time from a Threshold to 0 should be about the same, given the same cooldown factor.

As a testbed, I increased the heat increase and the thresholds for the MG3 a lot, roughly by the same factor (~2). As a result, it can fire as many bullets as other mgs till it overheats, but it takes way longer to cooldown.

LootFragg

As I have stated before, I consider the damage and jamming thresholds somewhat irrelevant in the UDB. They don't seem to differ from gun to gun, you don't see the current temperature as a numerical value and I don't see them as suitable values for comparison. The only use for them would be to see extreme deviations like in a gun that is extremely heat sensitive or one that is almost immune to overheating. Or maybe calculate how many rounds can be fired before the gun overheats but well. I'd rather want a rough indicator of the weapon's heat tolerance. What I want to know: Are there guns whose jam / degrade thresholds would definitely not be proportional? Like, a machinegun that keeps firing until it breaks or something? Because otherwise, if these are somewhat proportional, I would combine them into a heat tolerance value in the UDB. It doesn't matter what's going on behind the scenes but one value would be appreciated. BUT I imagine it's rather handy to have all values displayed as long as the feature is still being tested. As a sort of final polish I'd make it look good by decreasing the amount of info shown.


I do not know for sure, but there propably are a lot of differences in overheating behaviour. For example, Id guess that a Kalashnikov might have a very high threshold for extra damage, while a Sten might not. I wanted to allow all the different scenarios I could think of.

At minumum, the ratios (single shot temperature)/(jam threshold), (single shot temperature)/(damage threshold) and (cooldown factor)/(jam threshold) would have to be displayed, those have modificators that have to e shown too...

Well, information overload is a bad thing (reading the UDB of a fully equipped gun takes a bit of time...). I'll think of something.

LootFragg

Apart from all the icon stuff, I'd put ammo specific heat stuff after a separator or on the Advanced page, making sure to keep it apart from the values that indicate a bullet's destructive potential. It's a feature like AET rounds decreasing condition, good to know but not of primary relevance when checking out ammunition.


But there's so much empty spaace down there... Smile

LootFragg

Suggestion

How does the entire heat stuff get calculated? The jam threshold means this is where the gun starts jamming due to heat? And the hotter it gets the more likely it is to jam? Anyway, I'd say lower the threshold and make a non-linear function (if you have one right now) that increases jam probability progressively the hotter the gun gets. So you'll have a smooth curve.


Well, the gun doesn't jam due to heat. If a gun is overheated, the base chance of jamming for that gun is increased. That function itself is nonlinear. However, I might change that function (it is possible to reach a temperature that will always jam the gun).

In my first version, I there was overheating-specific jamming, but I took that out because it doesn't add anything to gameplay (jammed is jammed).

LootFragg

A really cool feature would be increasing the red colour value of the icon but I don't think it's possible to play around with graphics that much, is it?


Which icon do you mean? The status bar at full overheeating has an rgb value of (255, 0, 0), it doesn't get much redder than that Very Happy

LootFragg

That's it for now, I'll keep playing with that version.


Go on, have fun. I'm especially interested if the replacable barrel is useful. It works with all machineguns (except those that are based on the G36, as I know there is no fast way to change a barrel there). You should find them at Bobby Rays, Tony or as random loot.

Report message to a moderator

Captain

Previous Topic: New feature: Constructable static fortifications (sandbags etc.)
Next Topic: New feature: Improved trade menu
Goto Forum:
  


Current Time: Mon Dec 04 14:37:36 GMT+2 2023

Total time taken to generate the page: 0.02296 seconds