Search found 3 matches

by Alf2010
Fri Jun 29, 2007 4:12 pm
Forum: Programming Discussion
Topic: Quake 3 : Add a trap function ?
Replies: 4
Views: 8758

Thank's a lot :)

The modifications to have it working :

In game/gpublic.h :

in the gameImport_t enum adding the line :

EXAMPLE_TRAP_FUNCTION = 600


In server/sv_game.c :

in the SV_GameSystemCalls function adding the lines :

case EXAMPLE_TRAP_FUNCTION:
example_trap_function();
return 0;
by Alf2010
Fri Jun 29, 2007 3:38 pm
Forum: Programming Discussion
Topic: Quake 3 : Add a trap function ?
Replies: 4
Views: 8758

I think you're right but there is an other mistake because now the error message is : bad game system trap -600
by Alf2010
Fri Jun 29, 2007 2:45 pm
Forum: Programming Discussion
Topic: Quake 3 : Add a trap function ?
Replies: 4
Views: 8758

Quake 3 : Add a trap function ?

Do you know how to add your own trap function ? I put my function in qcommon directory and I want to call it from the game directory (like for example the trap_FS_Write function). I do the same (definition/declaration) like the other trap functions but I suppose the problem is to find the correct id...