home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2005 October / Gamestar_77_2005-10_dvd.iso / DVDStar / Akce / Half-Life2 / install-at2v4release2005.exe / AntTroopDuece / resource / GameEvents.res < prev    next >
Text File  |  2005-05-08  |  4KB  |  163 lines

  1. //=========== (C) Copyright 1999 Valve, L.L.C. All rights reserved. ===========
  2. //
  3. // The copyright to the contents herein is the property of Valve, L.L.C.
  4. // The contents may be used and/or copied only with the written permission of
  5. // Valve, L.L.C., or in accordance with the terms and conditions stipulated in
  6. // the agreement/contract under which the contents have been supplied.
  7. //=============================================================================
  8.  
  9. // No spaces in event names, max length 32
  10. // All strings are case sensitive
  11. // total game event byte length must be < 1024
  12. //
  13. // valid data key types are:
  14. //   none   : value is not networked
  15. //   string : a zero terminated string
  16. //   bool   : unsigned int, 1 bit
  17. //   byte   : unsigned int, 8 bit
  18. //   short  : signed int, 16 bit
  19. //   long   : signed int, 32 bit
  20. //   float  : float, 32 bit
  21.  
  22.  
  23.  
  24. "gameevents"
  25. {
  26.     "team_info"                // info about team
  27.     {
  28.         "teamid"    "byte"        // unique team id
  29.         "teamname"    "string"    // team name eg "Team Blue"
  30.     }
  31.     
  32.     "team_score"                // team score changed
  33.     {
  34.         "teamid"    "byte"        // team id
  35.         "score"        "short"        // total team score
  36.     }
  37.     
  38. //////////////////////////////////////////////////////////////////////
  39. // Player events
  40. //////////////////////////////////////////////////////////////////////
  41.     
  42.     "player_team"                // player change his team
  43.     {
  44.         "userid"    "short"        // user ID on server
  45.         "team"        "byte"        // team id
  46.         "oldteam" "byte"        // old team id
  47.         "disconnect" "bool"    // team change because player disconnects
  48.     }
  49.     
  50.     "player_class"                // a player changed his class
  51.     {
  52.         "userid"    "short"        // user ID on server
  53.         "class"        "string"    // new player class / model
  54.     }
  55.     
  56.     "player_death"                // a game event, name may be 32 charaters long
  57.     {
  58.         "userid"    "short"       // user ID who died                
  59.         "attacker"    "short"         // user ID who killed
  60.     }
  61.     
  62.     "player_hurt"
  63.     {
  64.         "userid"    "short"       // player index who was hurt                
  65.         "attacker"    "short"         // player index who attacked
  66.         "health"    "byte"        // remaining health points
  67.     }
  68.     
  69.     "player_chat"                // a public player chat
  70.     {
  71.         "teamonly"    "bool"        // true if team only chat
  72.         "userid"     "short"        // chatting player 
  73.         "text"          "string"    // chat text
  74.     }
  75.     
  76.     "player_score"                // players scores changed
  77.     {
  78.         "userid"    "short"        // user ID on server
  79.         "kills"        "short"        // # of kills
  80.         "deaths"    "short"        // # of deaths
  81.         "score"        "short"        // total game score
  82.     }
  83.     
  84.     "player_spawn"                // player spawned in game
  85.     {
  86.         "userid"    "short"        // user ID on server
  87.     }
  88.     
  89.     "player_shoot"                // player shoot his weapon
  90.     {
  91.         "userid"    "short"        // user ID on server
  92.         "weapon"    "byte"        // weapon ID
  93.         "mode"        "byte"        // weapon mode
  94.     }
  95.     
  96.     "player_use"
  97.     {
  98.         "userid"    "short"        // user ID on server
  99.         "entity"    "short"        // entity used by player
  100.     }
  101.  
  102.     "player_changename"
  103.     {
  104.         "userid"    "short"        // user ID on server
  105.         "oldname"    "string"    // players old (current) name
  106.         "newname"    "string"    // players new name
  107.     }
  108.  
  109. //////////////////////////////////////////////////////////////////////
  110. // Game events
  111. //////////////////////////////////////////////////////////////////////
  112.         
  113.     "game_newmap"                // send when new map is completely loaded
  114.     {
  115.         "mapname"    "string"    // map name
  116.     }
  117.     
  118.     "game_start"                // a new game starts
  119.     {
  120.         "roundslimit"    "long"        // max round
  121.         "timelimit"    "long"        // time limit
  122.         "fraglimit"    "long"        // frag limit
  123.         "objective"    "string"    // round objective
  124.     }
  125.     
  126.     "game_end"                // a game ended
  127.     {
  128.         "winner"    "byte"        // winner team/user id
  129.     }
  130.     
  131.     "round_start"
  132.     {
  133.         "timelimit"    "long"        // round time limit in seconds
  134.         "fraglimit"    "long"        // frag limit in seconds
  135.         "objective"    "string"    // round objective
  136.     }
  137.     
  138.     "round_end"
  139.     {
  140.         "winner"    "byte"        // winner team/user i
  141.         "reason"    "byte"        // reson why team won
  142.         "message"    "string"    // end round message 
  143.     }
  144.     
  145.     "game_message"                // a message send by game logic to everyone
  146.     {
  147.         "target"    "byte"        // 0 = console, 1 = HUD
  148.         "text"        "string"    // the message text
  149.     }
  150.  
  151.     "break_breakable"
  152.     {
  153.         "entindex"    "long"
  154.         "userid"        "short"
  155.         "material"    "byte"    // BREAK_GLASS, BREAK_WOOD, etc
  156.     }
  157.  
  158.     "break_prop"
  159.     {
  160.         "entindex"    "long"
  161.         "userid"    "short"
  162.     }
  163. }