mirror of
https://github.com/hermansimensen/eventqueue-fix.git
synced 2025-12-06 18:08:27 +00:00
change wait time system for fewer iterations
This commit is contained in:
parent
442947fbce
commit
5dc7995c1b
@ -33,7 +33,8 @@ enum struct event_t
|
|||||||
|
|
||||||
enum struct entity_t
|
enum struct entity_t
|
||||||
{
|
{
|
||||||
int outputID;
|
int caller;
|
||||||
|
int tick;
|
||||||
float waitTime;
|
float waitTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -243,10 +244,13 @@ public MRESReturn DHook_AddEventThree(Handle hParams)
|
|||||||
{
|
{
|
||||||
g_aOutputWait[event.activator].GetArray(i, ent);
|
g_aOutputWait[event.activator].GetArray(i, ent);
|
||||||
|
|
||||||
if(ent.outputID == event.outputID)
|
if(ent.caller == event.caller)
|
||||||
{
|
{
|
||||||
bFound = true;
|
if(ent.tick != GetGameTickCount())
|
||||||
break;
|
{
|
||||||
|
bFound = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -254,7 +258,8 @@ public MRESReturn DHook_AddEventThree(Handle hParams)
|
|||||||
{
|
{
|
||||||
g_aPlayerEvents[event.activator].PushArray(event);
|
g_aPlayerEvents[event.activator].PushArray(event);
|
||||||
|
|
||||||
ent.outputID = event.outputID;
|
ent.caller = event.caller;
|
||||||
|
ent.tick = GetGameTickCount();
|
||||||
ent.waitTime = m_flWait;
|
ent.waitTime = m_flWait;
|
||||||
g_aOutputWait[event.activator].PushArray(ent);
|
g_aOutputWait[event.activator].PushArray(ent);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user