|
4 registered members (TipmyPip, alx, Martin_HH, 1 invisible),
5,110
guests, and 2
spiders. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: pause game but camera active
[Re: delinkx]
#259997
04/08/09 13:48
04/08/09 13:48
|
Joined: Feb 2008
Posts: 3,232 Australia
EvilSOB
Expert
|
Expert
Joined: Feb 2008
Posts: 3,232
Australia
|
After some testing, I see whats happening, but cant see an EASY way to fix it. When you hit pause, The pause function then freezes everything except itself, right. Then the pause function calls camera-oneframe, cool. Then the pause function calls wait(1), WHICH FREEZES ITSELF! ... BAD.
The only answer I can see is to use freeze_mode = 1. That only freezes functions whose have a MY pointer that is not NULL. So Im afraid delinkx, the big job youve got is this. Any function you want to leave running, must have a MY=NULL; before its while loop. Any function you want to pause, must have a MY=something; before its while loop. note: a simple MY=1; is sufficient (tested). Once thats done, you can ditch my split-camera-function system, just make sure THE camera function starts with MY=NULL; just to be safe.
Need any help, let us know.
If you need help
"There is no fate but what WE make." - CEO Cyberdyne Systems Corp. A8.30.5 Commercial
|
|
|
Re: pause game but camera active
[Re: delinkx]
#260008
04/08/09 14:36
04/08/09 14:36
|
Joined: Feb 2008
Posts: 3,232 Australia
EvilSOB
Expert
|
Expert
Joined: Feb 2008
Posts: 3,232
Australia
|
Sor anyone curious.... copied from PM
But anyway, to make functions pause when using FREEZE_MODE = 1, put me = ent_create(NULL,NULL,NULL); as the FIRST line of the function and ent_remove(me); as the LAST line of the function
Now freeze_mode = 1 will pause this function.
"There is no fate but what WE make." - CEO Cyberdyne Systems Corp. A8.30.5 Commercial
|
|
|
|