Home » MODDING HQ 1.13 » Flugente's Magika Workshop » New feature: Overheating Weapons
Re: Feature: Overheating Weapons[message #302270] Fri, 23 March 2012 21:59 Go to previous messageGo to previous message
Flugente

 
Messages:3507
Registered:April 2009
Location: Germany
Something completely different:

I've found a kind of bug, which is a result of the JA2 system constraints, and I am unsure of how to handle it...

As you might know, weapons cool down in every person's inventory in every sector. This works as it should.

They also cool down if they just lie on the floor. I cyclically loop through all items in gWorldItems, and if they are a gun/barrel etc., I cool them down.

What I didn't realize until some days ago is that gWorldItems doesn't consist of all items in the world (as I had assumed form the name). It only consists of all items in the currently loaded _sector_.

As a result, I do not cool down items that lie on the floor in a sector that is currently not loaded. I can't because I do not know them. As a result, those items will keep the temperature they had when another sector was loaded.

There are 3 possible solutions to this:

1) When cooling down, load each and every sector, loop over all items in there and cool them down.

This is not feasible. It would require a lot of work, slow down the game a lot (loading every sector every 5 seconds...) for very little gain.

2) When loading a new sector, set temperature of all items on the floor in old sector to 0.

Doesn't sound like a lot of work. However, this practically is an exploit that can be heavily abused. I do not like that.

3) When loading a new sector, set a timeflag on all items on the floor in old sector. When loading a sector, evaluate that flag and cool down correspondingly.

Pros: Most realistic solution, no exploit possible (that I can see). Con: Changes to OBJECTTYPE, introducing a mechanism of timeflags for a minor feature... possibly bad.

4) Do nothing.

Currently implemented Smile. It doens't really hurt when playing, as the important items (the ones you use) are in your mercs inventory, where they always cool down).

As of yet nobody has reported this bug. So either nobody plays with this, or people do not care about this. Less work for me Wink

Report message to a moderator

Captain

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


Current Time: Tue Dec 03 14:33:06 GMT+2 2024

Total time taken to generate the page: 0.03500 seconds