damage calc question #36
Replies: 8 comments
-
|
Yea just trying to get insight about the choices in that line of code. Any help is appreciated! |
Beta Was this translation helpful? Give feedback.
-
|
Well, the shpcon, is an array in warmac. it's doing an a=a-a assignment. Hita is (i think) defined in in tordam, as well as powfac (powerfactor) and phit (phaser hit). I believe this is the routine for the romulan phaser hits. look up KSSHPC also, it's basically the C equivalent of 'enum' do this on the code find .|xargs grep -i KSSHPC to find it. There is an entire host of enum definitions. If mr freeman would like to speak to me regarding the code I would be willing to set time out for him. Please let me know. oh, amax1 is warmac mac-10 routine which returns the MAX of arguments. WARMAC is your friend. |
Beta Was this translation helpful? Give feedback.
-
|
Merlyn, it would be good to set up some time to discuss the code and some history. I'm sure a few folks might want to join that. On this specific code, it appears to be adjusting the shield percentage based on a phaser hit. I'm curious in particularly about the added in value of 10. I know there is some 10x integer math going on here in the code I assume for precision without full blown floats, so is adding the 10 just adding 1? And also any insight into the * 0.03. Best. |
Beta Was this translation helpful? Give feedback.
-
|
notice 'float(shpcon(j,KSSHPC)' so the addition I believe is just for arbitrary adjustment. I actually adjusted all the phaser values, shield and energy back up. Remember everything has to be doubled defined in mac-10 (warmac etc) and fortran and then linked into the high segment. Let me know about meeting and I'll put aside some time. FYI I have a 24/7 server running my develop version of decwar if you wanna try it. |
Beta Was this translation helpful? Give feedback.
-
|
Sounds great. I'll coordinate with Noah, and would love to try your server. |
Beta Was this translation helpful? Give feedback.
-
|
Please write me at drforbin6@gmail.com so you may acquire your account/password. |
Beta Was this translation helpful? Give feedback.
-
|
just woke up - awesome, thanks merlyn!!!:) sounds great yeah if we can all join an internet call it would be perfect. |
Beta Was this translation helpful? Give feedback.
-
|
ok. Keep me posted |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
hi merlyn @drforbin - got a question from eric freeman, he's at utexas right now and getting deep into the code:) eric's trying to understand this line from tordam - greek to me, and thought you might remember some stuff - for sure you've been deep into these parts of the code at various times?:)
does that '10' and that '0.03' make any sense to ya, at all?:)
Beta Was this translation helpful? Give feedback.
All reactions