Outpost Universe Forums

Projects & Development => Outpost 2 Programming & Development => Topic started by: Seal0486 on August 11, 2007, 06:34:23 PM

Title: Tokamak Decay Rate
Post by: Seal0486 on August 11, 2007, 06:34:23 PM
Has any one Figured out the Decay Rate of tokamak?
Title: Tokamak Decay Rate
Post by: Hooman on August 12, 2007, 01:31:44 AM
Yes, every 248 (= 0xF8) game ticks the damage to the tokamak is increased by 1. There are 100 ticks in a time mark.
 
Title: Tokamak Decay Rate
Post by: Seal0486 on August 12, 2007, 01:06:43 PM
How can i change that or op2 bc i dont know what dll to edit
Title: Tokamak Decay Rate
Post by: Mcshay on August 12, 2007, 02:53:33 PM
Its not a dll you would edit, you would have to edit op2 itself. Or mabe the sheets. Plus it would cause game desyncs in multiplayer, I wouldn't do it.

PS: Stop posting that image, it takes up the whole screen and does nothing to further the conversation.
Title: Tokamak Decay Rate
Post by: BlackBox on August 12, 2007, 04:04:04 PM
Removed the images from the posts. If you continue to post irrelevant screenshots / images you will have your image posting rights disabled.
Title: Tokamak Decay Rate
Post by: Hooman on August 12, 2007, 07:28:24 PM
The constant is hardcoded into the executable. You'd need to do a code edit to change it.

The function is virtual though, so if you wanted to change the behavior you could also try replacing the function by writing your own, and editing the virtual function table to point to your function. That still requires an edit to the read only data section though, and it's a lot more work.
Title: Tokamak Decay Rate
Post by: Leviathan on August 13, 2007, 05:07:42 AM
Shame its not in the sheets. The morale stuff can be edited from the sheets which is nice.