Quake 3 Events

Locked
gameguy
Posts: 5
Joined: Wed May 17, 2006 3:09 am

Quake 3 Events

Post 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
torhu
Posts: 76
Joined: Thu Jun 16, 2005 7:57 pm

Post 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.
[url=http://www.smokin-guns.org]Smokin' Guns[/url]
[url=https://sites.google.com/site/monsterbrowser//]Monster Browser[/url]
gameguy
Posts: 5
Joined: Wed May 17, 2006 3:09 am

Post 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.
Locked