Page 1 of 1

Quake 3 Events

Posted: Wed May 17, 2006 11:14 am
by gameguy
Hi everyone,

Hope someone is able to help out a mod'ing newbie. I'm attempting to prototype a 'medical' HUD that shows damage based on where the player has been hit, i.e. locational damage. I have the locational damage code working well enough but when I try to send a custom event to the client the game kicks out to the start menu. If anyone knows of a good complete event tutorial or has some words of wisdom any help would be greatly greatly appreciated.

Confused and Confounded in CT

Posted: Wed May 17, 2006 12:36 pm
by torhu
What message do you get? If it says 'Unknown event:...', you've forgotten to pick it up on the client side, in cg_event.c.

A common mistake is to use the wrong command line. You have to start with 'quake3 +set vm_ui 0 +set vm_cgame 0 +set vm_game 0 +set sv_pure 0'. This is from memory, but I think it's about right. You might also need to add '+set cl_punkbuster 0', and use the devmap command if you want to use cheats for testing. 'give all' is a nice cheat.

When running the game, type 'vminfo' to verify that the dll versions of both game and cgame are loaded. If you're not compiling directly to qvms, that is.

Posted: Wed May 31, 2006 10:23 am
by gameguy
Thanks torhu the sv_pure 0 helped, now another question. It seems as if only random events say 1 in 5 are actually being received by the client. I see G_AddEvent being called on the server maybe 8-9 times and my client function only is called 2-3 max. Any idea what could cause that?

Any info would be greatly appreciated.