forked from friendsincode/ELS-Plus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a9d56e5
commit f474b5e
Showing
39 changed files
with
1,694 additions
and
1,263 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Diagnostics; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace ELS_Server | ||
{ | ||
public class Timer | ||
{ | ||
static long TicksPerMillisecond = Stopwatch.Frequency / 1000; | ||
long _limit = 0; | ||
|
||
int _timeLimit = 0; | ||
|
||
public int Limit | ||
{ | ||
set | ||
{ | ||
_limit = Stopwatch.GetTimestamp() + value * TicksPerMillisecond; | ||
_timeLimit = value; | ||
} | ||
get | ||
{ | ||
return _timeLimit; | ||
} | ||
} | ||
public bool Expired | ||
{ | ||
get | ||
{ | ||
|
||
if (Stopwatch.GetTimestamp() > _limit) | ||
{ | ||
return true; | ||
} | ||
else | ||
{ | ||
return false; | ||
} | ||
|
||
} | ||
} | ||
|
||
public Timer() { } | ||
|
||
public Timer(int limit) | ||
{ | ||
Limit = limit; | ||
} | ||
|
||
public void Reset() | ||
{ | ||
Limit = _timeLimit; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="CitizenFX.Core.Server" version="1.0.3489" targetFramework="net452" /> | ||
<package id="CitizenFX.Core.Server" version="1.0.4394" targetFramework="net452" /> | ||
<package id="Newtonsoft.Json" version="6.0.8" targetFramework="net461" /> | ||
<package id="SharpRaven" version="2.2.0" targetFramework="net461" /> | ||
</packages> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
f474b5e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the first ELS that has the "whoop whoop" sync bug fixed, that you get when 2 vehicles from outside of each others hearing range drive towards each other. Our server was really hoping for a project like this.
However, it does have 2 issues that currently make us refrain from using it right now:
If you could use the files for those things from the latest ELS+ dev branch / version published on the Friends in Code discord to ensure compatibility with .xml files made for current els-plus with server sided sirens that would be greatly appreciated!