Jump to content

Home

Communication between game and cgame


Commodus

Recommended Posts

Hey,

I've been trawling around lately on the PlanetQuake forums and I found some information on how you can communicate between the game and cgame VM modules (so... when something happens in game you can draw graphics on a client's computer). Thanks to AnthonyJ on the PlanetQuake forums for this info.

 

game -> cgame

* unused fields in playerState_t (check in http://www.lucasforums.com/showthread.php?s=&threadid=97308)

* events (EF_ flags I think)

* trap_SendServerCommand() (check http://www.planetquake.com/code3arena/articles/article9.shtml )

* config strings (ultimately uses trap_sendClientCommand)

 

cgame -> game

* +button5

* trap_SendClientCommand() (check http://www.planetquake.com/code3arena/articles/article9.shtml )

 

Hope this helps someone,

Commodus

Link to comment
Share on other sites

Originally posted by Commodus

What do you mean "non-mission critical data"?

As in, for things that aren't required on a regular basis, like something that is needed every frame. Hilt/Map varibles aren't needed on a per frame basis but animation data is.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...