<!-- saved from url=(0026)http://www.naturaldocs.org -->
<divid=Content><divclass="CSection"><divclass=CTopicid=MainTopic><h1class=CTitle><aname="Client_Hooks"></a>Client Hooks</h1><divclass=CBody><!--START_ND_SUMMARY--><divclass=Summary><divclass=STitle>Summary</div><divclass=SBorder><tableborder=0cellspacing=0cellpadding=0class=STable><trclass="SMain"><tdclass=SEntry><ahref="#Client_Hooks">Client Hooks</a></td><tdclass=SDescription></td></tr><trclass="SGroup SIndent1"><tdclass=SEntry><ahref="#Functions">Functions</a></td><tdclass=SDescription></td></tr><trclass="SFunction SIndent2 SMarked"><tdclass=SEntry><ahref="#modc_console_init"id=link1onMouseOver="ShowTip(event, 'tt1', 'link1')"onMouseOut="HideTip('tt1')">modc_console_init</a></td><tdclass=SDescription>TODO</td></tr><trclass="SFunction SIndent2"><tdclass=SEntry><ahref="#modc_rcon_line"id=link2onMouseOver="ShowTip(event, 'tt2', 'link2')"onMouseOut="HideTip('tt2')">modc_rcon_line</a></td><tdclass=SDescription>TODO</td></tr><trclass="SFunction SIndent2 SMarked"><tdclass=SEntry><ahref="#modc_save_config"id=link3onMouseOver="ShowTip(event, 'tt3', 'link3')"onMouseOut="HideTip('tt3')">modc_save_config</a></td><tdclass=SDescription>TODO</td></tr><trclass="SFunction SIndent2"><tdclass=SEntry><ahref="#modc_init"id=link4onMouseOver="ShowTip(event, 'tt4', 'link4')"onMouseOut="HideTip('tt4')">modc_init</a></td><tdclass=SDescription>Called when the client starts.</td></tr><trclass="SFunction SIndent2 SMarked"><tdclass=SEntry><ahref="#modc_newsnapshot"id=link5onMouseOver="ShowTip(event, 'tt5', 'link5')"onMouseOut="HideTip('tt5')">modc_newsnapshot</a></td><tdclass=SDescription>Called when the client progressed to a new snapshot.</td></tr><trclass="SFunction SIndent2"><tdclass=SEntry><ahref="#modc_entergame"id=link6onMouseOver="ShowTip(event, 'tt6', 'link6')"onMouseOut="HideTip('tt6')">modc_entergame</a></td><tdclass=SDescription>Called when the client has successfully connect to a server and loaded a map.</td></tr><trclass="SFunction SIndent2 SMarked"><tdclass=SEntry><ahref="#modc_shutdown"id=link7onMouseOver="ShowTip(event, 'tt7', 'link7')"onMouseOut="HideTip('tt7')">modc_shutdown</a></td><tdclass=SDescription>Called when the client closes down.</td></tr><trclass="SFunction SIndent2"><tdclass=SEntry><ahref="#modc_render"id=link8onMouseOver="ShowTip(event, 'tt8', 'link8')"onMouseOut="HideTip('tt8')">modc_render</a></td><tdclass=SDescription>Called every frame to let the game render it self.</td></tr><trclass="SFunction SIndent2 SMarked"><tdclass=SEntry><ahref="#modc_statechange"id=link9onMouseOver="ShowTip(event, 'tt9', 'link9')"onMouseOut="HideTip('tt9')">modc_statechange</a></td><tdclass=SDescription>Called every time client changes state.</td></tr><trclass="SFunction SIndent2"><tdclass=SEntry><ahref="#modc_connected"id=link10onMouseOver="ShowTip(event, 'tt10', 'link10')"onMouseOut="HideTip('tt10')">modc_connected</a></td><tdclass=SDescription>TODO</td></tr><trclass="SFunction SIndent2 SMarked"><tdclass=SEntry><ahref="#modc_message"id=link11onMouseOver="ShowTip(event, 'tt11', 'link11')"onMouseOut="HideTip('tt11')">modc_message</a></td><tdclass=SDescription>TODO</td></tr><trclass="SFunction SIndent2"><tdclass=SEntry><ahref="#modc_predict"id=link12onMouseOver="ShowTip(event, 'tt12', 'link12')"onMouseOut="HideTip('tt12')">modc_predict</a></td><tdclass=SDescription>TODO</td></tr><trclass="SFunction SIndent2 SMarked"><tdclass=SEntry><ahref="#modc_snap_input"id=link13onMouseOver="ShowTip(event, 'tt13', 'link13')"onMouseOut="HideTip('tt13')">modc_snap_input</a></td><tdclass=SDescription>TODO</td></tr><trclass="SFunction SIndent2"><tdclass=SEntry><ahref="#modc_net_version"id=link14onMouseOver="ShowTip(event, 'tt14', 'link14')"onMouseOut="HideTip('tt14')">modc_net_version</a></td><tdclass=SDescription>TODO</td></tr></table></div></div><!--END_ND_SUMMARY--></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="modc_init"></a>modc_init</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class=Prototype><tr><td>void modc_init()</td></tr></table></blockquote><p>Called when the client starts.</p><h4class=CHeading>Remarks</h4><p>The game should load resources that are used during the entire time of the game. No map is loaded.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="modc_newsnapshot"></a>modc_newsnapshot</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class=Prototype><tr><td>void modc_newsnapshot()</td></tr></table></blockquote><p>Called when the client progressed to a new snapshot.</p><h4class=CHeading>Remarks</h4><p>The client can check for items in the snapshot and perform one time events like playing sounds, spawning client side effects etc.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="modc_entergame"></a>modc_entergame</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class=Prototype><tr><td>void modc_entergame()</td></tr></table></blockquote><p>Called when the client has successfully connect to a server and loaded a map.</p><h4class=CHeading>Remarks</h4><p>The client can check for items in the map and load them.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="modc_shutdown"></a>modc_shutdown</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class=Prototype><tr><td>void modc_shutdown()</td></tr></table></blockquote><p>Called when the client closes down.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="modc_render"></a>modc_render</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class=Prototype><tr><td>void modc_render()</td></tr></table></blockquote><p>Called every frame to let the game render it self.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="modc_statechange"></a>modc_statechange</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class=Prototype><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>void modc_statechange(</td><tdclass=PTypenowrap>int </td><tdclass=PParameternowrap>new_state,</td></tr><tr><td></td><tdclass=PTypenowrap>int </td><tdclass=PParameternowrap>old_state</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Called every time client changes state.</p></div></div></div>
<divclass=CToolTipid="tt1"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class=Prototype><tr><td>void modc_console_init()</td></tr></table></blockquote>TODO</div></div><divclass=CToolTipid="tt2"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class=Prototype><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>void modc_rcon_line(</td><tdclass=PTypePrefixnowrap>const </td><tdclass=PTypenowrap>char </td><tdclass=PParameterPrefixnowrap>*</td><tdclass=PParameternowrap>line</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote>TODO</div></div><divclass=CToolTipid="tt3"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class=Prototype><tr><td>void modc_save_config()</td></tr></table></blockquote>TODO</div></div><divclass=CToolTipid="tt4"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class=Prototype><tr><td>void modc_init()</td></tr></table></blockquote>Called when the client starts.</div></div><divclass=CToolTipid="tt5"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class=Prototype><tr><td>void modc_newsnapshot()</td></tr></table></blockquote>Called when the client progressed to a new snapshot.</div></div><divclass=CToolTipid="tt6"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class=Prototype><tr><td>void modc_entergame()</td></tr></table></blockquote>Called when the client has successfully connect to a server and loaded a map.</div></div><divclass=CToolTipid="tt7"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class=Prototype><tr><td>void modc_shutdown()</td></tr></table></blockquote>Called when the client closes down.</div></div><divclass=CToolTipid="tt8"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class=Prototype><tr><td>void modc_render()</td></tr></table></blockquote>Called every frame to let the game render it self.</div></div><divclass=CToolTipid="tt9"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class=Prototype><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>void modc_statechange(</td><tdclass=PTypenowrap>int </td><tdclass=PParameternowrap>new_state,</td></tr><tr><td></td><tdclass=PTypenowrap>int </td><tdclass=PParameternowrap>old_state</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote>Called every time client changes state.</div></div><divclass=CToolTipid="tt10"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class=Prototype><tr><td>void modc_connected()</td></tr></table></blockquote>TODO</div></div><divclass=CToolTipid="tt11"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class=Prototype><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>void modc_message(</td><tdclass=PTypenowrap>int </td><tdclass=PParameternowrap>msg</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote>TODO</div></div><divclass=CToolTipid="tt12"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class=Prototype><tr><td>void modc_predict()</td></tr></table></blockquote>TODO</div></div><divclass=CToolTipid="tt13"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class=Prototype><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>int modc_snap_input(</td><tdclass=PTypenowrap>int </td><tdclass=PParameterPrefixnowrap>*</td><tdclass=PParameternowrap>data</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote>TODO</div></div><divclass=CToolTipid="tt14"><divclass=CFunction><blockquote><tableborder=0cellspacing=0cellpadding=0class=Prototype><tr><td>const char *modc_net_version()</td></tr></table