TheSil / base_enhanced

sil's base_enhanced server mod
3 stars 4 forks source link

Item death timer keeps running during /pause; item then dies on /unpause #65

Closed deathsythe47 closed 9 years ago

deathsythe47 commented 9 years ago

For example sentries always die after 60 seconds in jk3.

Currently if you use a sentry and then /pause the game for like 90 seconds and then /unpause the game, it will instantly blow up.

TheSil commented 9 years ago

Unfortunately because of how pause works, this needs to be fixed specifically for each timer. I've fixed this for sentry, are there any other items you are aware of that are still a problem?

deathsythe47 commented 9 years ago

I only tested it for sentry when I submitted this issue, but I can test for some other items later. I would imagine it's the same.

entdark commented 9 years ago

How about to add some generic function in gentity_t scope that always gets called on pause? So it works for all the kind of entities. o:

TheSil commented 9 years ago

Yea something like pausedthink instead of regular think, that could work.