ItsMods
democlient connect time - Printable Version

+- ItsMods (https://www.itsmods.com)
+-- Forum: Archive (https://www.itsmods.com/Forum-Archive.html)
+--- Forum: Archive (https://www.itsmods.com/Forum-Archive--64.html)
+--- Thread: democlient connect time (/Thread-democlient-connect-time.html)

Pages: 1 2


democlient connect time - thre3pi - 07-27-2011

How would I go about getting the democlient to connect at a certain point, for example after a ready up is over?

Or alternatively, how can I just disable democlient from connecting at all?

If anyone can tell me what file democlient is set up in that would help as well, thanks.


RE: democlient connect time - JariZ - 07-27-2011

First of all, why the hell would you want the democlient out of your game,
Anyway you can control the democlient with StopDemoRecording() and StartDemoRecording(),
Also the GSC file is maps\mp\_demo.gsc
If i helped you please +rep me Smile


RE: democlient connect time - thre3pi - 07-27-2011

All democlient does is record theater and I'm working on a comp mod which really has no need for theater. I still want to be able to record demos with /record and /stoprecord which I should be able to do with democlient connected.

I looked through _demo and that looks like it handles /record and the demos that creates. I could be wrong tho.

My issue is, as has been an issue for others with ready up, is while in ready up with the [3arc]democlient connected you are unable to get out of ready up because the democlient cannot actually ready up, so I would like to have the democlient connect after ready up is over, or not at all.

Thanks again.


RE: democlient connect time - JariZ - 07-27-2011

(07-27-2011, 01:03)thre3pi Wrote: All democlient does is record theater and I'm working on a comp mod which really has no need for theater. I still want to be able to record demos with /record and /stoprecord which I should be able to do with democlient connected.

I looked through _demo and that looks like it handles /record and the demos that creates. I could be wrong tho.

My issue is, as has been an issue for others with ready up, is while in ready up with the [3arc]democlient connected you are unable to get out of ready up because the democlient cannot actually ready up, so I would like to have the democlient connect after ready up is over, or not at all.

Thanks again.

Oh why didn't you say so, It's really easy to recognize a democlient:
Code:
if( self isdemoclient() ) return;
`

edit: with this you can also still record demo's


RE: democlient connect time - crAyon - 07-27-2011

There is also a notify for demo client.

You have to notify that demo client is ready, even if you are not using it.


RE: democlient connect time - thre3pi - 07-27-2011

thanks guys, I was able to remove demo_client with the following code:

Code:
demoClientRemove() { if (level.ready_up_over == false) { setDvar( "demo_enabled", 0); } }

I'm having issues getting it back though, not really required as I can still do /record this way but I wouldn't mind knowing how to go about bringing the demo_client back when level.ready_up_over == true.

Thanks.


RE: democlient connect time - crAyon - 07-27-2011

(07-27-2011, 05:59)thre3pi Wrote: thanks guys, I was able to remove demo_client with the following code:

Code:
demoClientRemove() { if (level.ready_up_over == false) { setDvar( "demo_enabled", 0); } }

I'm having issues getting it back though, not really required as I can still do /record this way but I wouldn't mind knowing how to go about bringing the demo_client back when level.ready_up_over == true.

Thanks.

if( !isDefined( level.ready_up_over ) || !level.ready_up_over )
//do this

You should never say == false. You should always say not using !

if( !level.ready_up_over )
//level.ready_up_over = false

if( level.ready_up_over )
//level.ready_up_over = true




RE: democlient connect time - koil - 07-27-2011

setDvar( "demo_enabled", 1);


on the score reset alias in ready up.. then after fast restart it should join? I think? also if you ever find out why ready up just freezes randomly once every 100 maps, let me know <3


RE: democlient connect time - OrangePL - 07-27-2011

Do we really need one more competitive mod ?


RE: democlient connect time - JariZ - 07-27-2011

(07-27-2011, 06:55)koil Wrote: setDvar( "demo_enabled", 1);


on the score reset alias in ready up.. then after fast restart it should join? I think? also if you ever find out why ready up just freezes randomly once every 100 maps, let me know <3

Or just use the really easy function I provided?
StopDemoRecording()/StartDemoRecording()
I dont get why you use that dvar?