Permalink
Browse files

Fixed some bugs in chance to hit calculator.

EVE profile should be less likely to crash EVE now.
  • Loading branch information...
1 parent 2b22d50 commit d503d705116e70478250751c89bff814d6d91b56 @kg committed Dec 24, 2010
Showing with 7 additions and 5 deletions.
  1. +2 −1 Common/common.eve.py
  2. +3 −0 EventNotifications/EventNotifications.csproj
  3. +1 −3 Profile_EVE/EVE.cs
  4. +1 −1 RemoteControl/RemoteControl.cs
View
@@ -1,4 +1,5 @@
from shootblues.common import log, onMainThread, showException
+import math
ActionThreshold = (10000000L * 200) / 100
MainThreadQueue = []
@@ -144,7 +145,7 @@ def setModule(self, module):
self.explosionRadius = max(float(chargeAttrs["aoeCloudSize"]), 0.00001)
self.explosionVelocity = float(chargeAttrs["aoeVelocity"])
self.damageReductionFactor = float(chargeAttrs["aoeDamageReductionFactor"])
- self.maxRange = flightTime * maxVelocity
+ self.maxRange = self.flightTime * self.maxVelocity
self.calculate = self.calculateLauncher
@@ -67,6 +67,9 @@
<Content Include="eventnotifications.py">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
+ <Content Include="notice.wav">
+ <CopyToOutputDirectory>Always</CopyToOutputDirectory>
+ </Content>
<Content Include="siren.wav">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
View
@@ -41,8 +41,6 @@ public EVE ()
yield break;
}
- yield return new Sleep(10);
-
ProcessWindows[process.Id] = hWnd;
yield return BaseOnNewProcess(process);
}
@@ -58,7 +56,7 @@ public EVE ()
except:
return False").Bind(() => isReady);
- yield return new Sleep(0.5);
+ yield return new Sleep(1);
} while (!isReady);
Console.WriteLine("EVE started.");
@@ -80,7 +80,7 @@ public class ProcessState : IDisposable {
public long LastFrameTimestamp = 0;
public ProcessState (ProcessInfo pi) {
- FuncDisabler = new KernelFunctionDisabler(pi);
+ FuncDisabler = new KernelFunctionDisabler(pi.Process);
var profile = (EVE)Program.Profile;
hWnd = profile.ProcessWindows[pi.Process.Id];

0 comments on commit d503d70

Please sign in to comment.