- Code: Select all
typedef enum {
PERS_SCORE, // !!! MUST NOT CHANGE, SERVER AND GAME BOTH REFERENCE !!!
PERS_HITS, // total points damage inflicted so damage beeps can sound on change
PERS_RANK, // player rank or team rank
PERS_TEAM, // player team
PERS_SPAWN_COUNT, // incremented every respawn
PERS_PLAYEREVENTS, // 16 bits that can be flipped for events
PERS_ATTACKER, // clientnum of last damage inflicter
PERS_ATTACKEE_ARMOR, // health/armor of last person we attacked
PERS_KILLED, // count of the number of times you died
// player awards tracking
PERS_EXCELLENT_COUNT, // two successive kills in a short amount of time
#ifndef SMOKINGUNS
PERS_IMPRESSIVE_COUNT, // two railgun hits in a row
PERS_DEFEND_COUNT, // defend awards
PERS_ASSIST_COUNT, // assist awards
PERS_GAUNTLET_FRAG_COUNT, // kills with the guantlet
PERS_CAPTURES // captures
#else
//bank robbery
PERS_ROBBER
#endif
} persEnum_t;
I simply followed the Q3 style code to give an Excellent award, and it seemed to work fine (two kills in a short time and I got an award). But I had a problem: whenever I bought a scope I got an award! Oopss! I don't think it was due to the way the I awarded the Excellent medal, so I looked further.
I realized that I did not increase the MAX_PERSISTANT in q_shared.h. I increased MAX_PERSISTANT by 1 to account for the added Excellent award.
- Code: Select all
#define MAX_PERSISTANT 11
No more award when I get a scope, but now the game crashes when I try to play a game. None of the map entities spawn. After while I get the following error:
- Code: Select all
Error: Unknown event 236
Any ideas? I am using the included batch files to build qvm and loading them as a separate mod. I was hoping to get this done before I let the cat out of the bag, but I guess I'm stuck.