Advertisement
lucasgautheron

Untitled

Aug 28th, 2013
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 2.30 KB | None | 0 0
  1. /** cnumber is the number of players in the game, at a max value of 12 */
  2. #define CTFPICKPT     cnumber                      // player picked the flag (ctf)
  3. #define CTFDROPPT    -cnumber                      // player dropped the flag to other player (probably)
  4. #define HTFLOSTPT  -2*cnumber                      // penalty
  5. #define CTFLOSTPT     cnumber*distance/100         // bonus: 1/4 of the flag score bonus
  6. #define CTFRETURNPT   cnumber                      // flag return
  7. #define CTFSCOREPT   (cnumber*distance/25+10)      // flag score
  8. #define HTFSCOREPT   (cnumber*4+10)
  9. #define KTFSCOREPT   (cnumber*2+10)
  10. #define COMBOPT       5                            // player frags with combo
  11. #define REPLYPT       2                            // reply success
  12. #define TWDONEPT      5                            // team work done
  13. #define CTFLDEFPT     cnumber                      // player defended the flag in the base (ctf)
  14. #define CTFLCOVPT     cnumber*2                    // player covered the flag stealer (ctf)
  15. #define HTFLDEFPT     cnumber                      // player defended a droped flag (htf)
  16. #define HTFLCOVPT     cnumber*3                    // player covered the flag keeper (htf)
  17. #define COVERPT       cnumber*2                    // player covered teammate
  18. #define DEATHPT      -4                            // player died
  19. #define BONUSPT       target->state.points/400     // bonus (for killing high level enemies :: beware with exponential behavior!)
  20. #define FLBONUSPT     target->state.points/300     // bonus if flag team mode
  21. #define TMBONUSPT     target->state.points/200     // bonus if team mode (to give some extra reward for playing tdm modes)
  22. #define HTFFRAGPT     cnumber/2                    // player frags while carrying the flag
  23. #define CTFFRAGPT   2*cnumber                      // player frags the flag stealer
  24. #define FRAGPT        10                           // player frags (normal)
  25. #define HEADSHOTPT    15                           // player gibs with head shot
  26. #define KNIFEPT       20                           // player gibs with the knife
  27. #define SHOTGPT       12                           // player gibs with the shotgun
  28. #define TKPT         -20                           // player tks
  29. #define FLAGTKPT     -2*(10+cnumber)               // player tks the flag keeper/stealer
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement