Guest User

Untitled

a guest
Dec 22nd, 2022
672
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.96 KB | None | 0 0
  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. //
  12. // valid data key types are:
  13. // string : a zero terminated string
  14. // bool : unsigned int, 1 bit
  15. // byte : unsigned int, 8 bit
  16. // short : signed int, 16 bit
  17. // long : signed int, 32 bit
  18. // float : float, 32 bit
  19. // local : any data, but not networked to clients
  20. //
  21. // following key names are reserved:
  22. // local : if set to 1, event is not networked to clients
  23. // unreliable : networked, but unreliable
  24. // suppress : never fire this event
  25. // time : firing server time
  26. // eventid : holds the event ID
  27.  
  28. "modevents"
  29. {
  30. "player_active" // Player has become active in the server
  31. {
  32. "userid" "short"
  33. }
  34.  
  35. "player_death" // a game event, name may be 32 charaters long
  36. {
  37. "userid" "short" // user ID who died
  38. "attacker" "short" // user ID who killed, entindex if NPC
  39. "weapon" "string" // weapon name killed used
  40. "npctype" "byte" // NPC type, if player was killed by one (0 = player)
  41. }
  42.  
  43. // Client-side
  44. "spec_target_updated"
  45. {
  46. }
  47.  
  48. "achievement_earned"
  49. {
  50. "player" "byte" // entindex of the player
  51. "achievement" "short" // achievement ID
  52. }
  53.  
  54. "achievement_event"
  55. {
  56. "achievement_name" "string"
  57. "cur_val" "short"
  58. "max_val" "short"
  59. "userid" "short"
  60. }
  61.  
  62. "player_hurt"
  63. {
  64. "userid" "short" // user ID who was hurt
  65. "attacker" "short" // user ID who attacked
  66. "weapon" "string" // weapon name attacker used
  67. }
  68.  
  69. "player_spawn"
  70. {
  71. "userid" "short"
  72. }
  73.  
  74. "nmrih_practice_ending"
  75. {
  76. }
  77.  
  78. "nmrih_reset_map"
  79. {
  80. }
  81.  
  82. // Next two events had ill-fated naming
  83. // These are fired when clients connect/disconnect, not when they actually join the game after welcome screen
  84. "player_join"
  85. {
  86. "index" "byte"
  87. }
  88.  
  89. "player_leave"
  90. {
  91. "index" "byte"
  92. }
  93.  
  94. // This event is called when player enters the welcome screen
  95. "player_welcome"
  96. {
  97. "userid" "short"
  98. }
  99.  
  100. // This event is called when player enters the game
  101. // (by clicking the "join game" button on the welcome screen)
  102. "player_join_game"
  103. {
  104. "userid" "short"
  105. }
  106.  
  107. "objective_complete"
  108. {
  109. "id" "short"
  110. "name" "string"
  111. "force_extract" "string"
  112. }
  113.  
  114. "objective_fail"
  115. {
  116. "id" "short"
  117. "name" "string"
  118. }
  119.  
  120. "npc_killed"
  121. {
  122. "entidx" "short"
  123. "killeridx" "short"
  124. "isturned" "bool"
  125. "weaponid" "byte" // weapon id killer used
  126. "npctype" "byte" // NPC type
  127. }
  128.  
  129. "spec_target_updated"
  130. {
  131. }
  132.  
  133. "achievement_earned"
  134. {
  135. "player" "short"
  136. "achievement" "short"
  137. }
  138.  
  139. "instant_zombie_spawn"
  140. {
  141. "spawn_amount" "short"
  142. "spawn_brush" "short"
  143. "spawn_target" "string"
  144. "ignore_visibility" "bool"
  145. "check_proximity" "bool"
  146. "track" "bool"
  147. "runner_chance" "float"
  148. "child_chance" "float"
  149. }
  150.  
  151. "WalkieSound"
  152. {
  153. "sound_name" "string"
  154. "global" "bool"
  155. "held" "bool"
  156. }
  157.  
  158. "keycode_enter"
  159. {
  160. "keypad_idx" "short"
  161. "code" "string"
  162. "player" "short"
  163. }
  164.  
  165. "state_change"
  166. {
  167. "state" "short"
  168. "game_type" "short"
  169. }
  170.  
  171. "zombie_spawning_enable"
  172. {
  173. }
  174.  
  175. "zombie_spawning_disable"
  176. {
  177. }
  178.  
  179. "new_wave"
  180. {
  181. "resupply" "bool"
  182. }
  183.  
  184. "wave_low_zombies"
  185. {
  186. }
  187.  
  188. "wave_complete"
  189. {
  190. }
  191.  
  192. "wave_system_begin"
  193. {
  194. }
  195.  
  196. "wave_system_end"
  197. {
  198. }
  199.  
  200. // Client-side
  201. "safe_zone_damage"
  202. {
  203. "index" "short"
  204. }
  205.  
  206. "safe_zone_heal"
  207. {
  208. "index" "short"
  209. "amount" "short"
  210. "health" "short"
  211. }
  212.  
  213. "safe_zone_deactivate"
  214. {
  215. "id" "short"
  216. "killed" "bool"
  217. }
  218.  
  219. "extraction_complete"
  220. {
  221. }
  222.  
  223. "extraction_expire"
  224. {
  225. }
  226.  
  227. "freeze_all_the_things"
  228. {
  229. "frozen" "bool"
  230. }
  231.  
  232. // Client-side
  233. "cure"
  234. {
  235. "player_id" "short"
  236. }
  237.  
  238. "map_complete"
  239. {
  240. }
  241.  
  242. "extraction_begin"
  243. {
  244. }
  245.  
  246. "player_extracted"
  247. {
  248. "player_id" "short"
  249. "from_zone" "bool"
  250. }
  251.  
  252. "zombie_head_split"
  253. {
  254. "player_id" "short"
  255. }
  256.  
  257. "arrow_stick"
  258. {
  259. "player_id" "short"
  260. "victim_id" "short"
  261. }
  262.  
  263. "pills_taken"
  264. {
  265. "player_id" "short"
  266. }
  267.  
  268. "vaccine_taken"
  269. {
  270. "userid" "short"
  271. "infected" "bool"
  272. "effect" "bool"
  273. "effect_duration" "float"
  274. }
  275.  
  276. "vaccine_effect_end"
  277. {
  278. "userid" "short"
  279. }
  280.  
  281. "ammo_checked"
  282. {
  283. "player_id" "short"
  284. "weapon_id" "short"
  285. }
  286.  
  287. "weapon_picked_up"
  288. {
  289. "player_id" "short"
  290. "weapon_id" "short"
  291. }
  292.  
  293. "weapon_fired"
  294. {
  295. "player_id" "short"
  296. "weapon_id" "short"
  297. }
  298.  
  299. "zombie_killed_by_fire"
  300. {
  301. "igniter_id" "short"
  302. "zombie_id" "short"
  303. }
  304.  
  305. "nmrih_round_begin"
  306. {
  307. }
  308.  
  309. "game_restarting"
  310. {
  311. }
  312.  
  313. "player_contemplate_suicide"
  314. {
  315. "player_id" "short"
  316. "contemplating" "bool"
  317. }
  318.  
  319. "player_commit_suicide"
  320. {
  321. "player_id" "short"
  322. "infected" "bool"
  323. "mute_duration" "float"
  324. }
  325.  
  326. "zombie_shoved"
  327. {
  328. "player_id" "short"
  329. "zombie_id" "short"
  330. }
  331.  
  332. "token_earned"
  333. {
  334. "player_id" "short"
  335. "tokens" "short"
  336. }
  337.  
  338. "weapon_reload"
  339. {
  340. "player_id" "short"
  341. "weapon_classname" "string"
  342. }
  343.  
  344. "grab_end"
  345. {
  346. "player_index" "short"
  347. "causer_index" "short"
  348. }
  349.  
  350. "base_player_teleported"
  351. {
  352. "entindex" "short"
  353. }
  354.  
  355. "item_given"
  356. {
  357. "userid" "short" // who gave the item
  358. "receiver" "short" // receiver of the item
  359. "classname" "string" // name of the item
  360. }
  361.  
  362. "watermelon_rescue"
  363. {
  364. "userid" "short"
  365. }
  366.  
  367. "challenge_start"
  368. {
  369. "blitz" "bool"
  370. "blitz_endtick" "long"
  371.  
  372. // The following rs_hash values are used for run validation e.g. by moderators of speedrun sites
  373. // It's not really a secret, simply a SHA1 checksum of the current ruleset
  374. // Nowadays (since 1.12.3) we ship rulesets as raw .txt, and they're trivial to edit, bypassing in-game validation
  375. // Don't go editing those now! :)
  376. "rs_hash" "string"
  377. }
  378.  
  379. "challenge_end"
  380. {
  381. "ticks" "long"
  382. "failed" "bool"
  383. "rs_hash" "string"
  384. }
  385.  
  386. "challenge_checkpoint"
  387. {
  388. "ticks" "long"
  389. "blitz_timeradd" "long"
  390. }
  391.  
  392. "challenge_invalid"
  393. {
  394. // List of reasons:
  395. // 0: "Cheats were turned on.
  396. // 1: "Gameplay ConVar changed in middle of a run."
  397. // 2: "Modified difficulty / ruleset."
  398. // 3: "Custom MapHack script loaded."
  399. // 4: "Custom VScript was run."
  400. // 5: "Validation was turned on late."
  401. // 6: "Game state console command was used."
  402. "reason" "short"
  403. }
  404.  
  405. // Client-side event for recorded bookmarks on demos
  406. "demo_bookmark"
  407. {
  408. "tick" "short" // Bookmarked tick
  409. }
  410.  
  411. "set_instructor_group_enabled"
  412. {
  413. "group" "string"
  414. "enabled" "short"
  415. }
  416.  
  417. "instructor_server_hint_create" // Originally ported from the Alien Swarm SDK
  418. {
  419. "hint_name" "string" // what to name the hint. For referencing it again later (e.g. a kill command for the hint instead of a timeout)
  420. "hint_replace_key" "string" // type name so that messages of the same type will replace each other
  421. "hint_target" "long" // entity id that the hint should display at
  422. "hint_activator_userid" "short" // userid id of the activator
  423. "hint_timeout" "short" // how long in seconds until the hint automatically times out, 0 = never
  424. "hint_icon_onscreen" "string" // the hint icon to use when the hint is onscreen. e.g. "icon_alert_red"
  425. "hint_icon_offscreen" "string" // the hint icon to use when the hint is offscreen. e.g. "icon_alert"
  426. "hint_caption" "string" // the hint caption. e.g. "#ThisIsDangerous"
  427. "hint_activator_caption" "string" // the hint caption that only the activator sees e.g. "#YouPushedItGood"
  428. "hint_color" "string" // the hint color in "r,g,b" format where each component is 0-255
  429. "hint_icon_offset" "float" // how far on the z axis to offset the hint from entity origin
  430. "hint_range" "float" // range before the hint is culled
  431. "hint_flags" "long" // hint flags
  432. "hint_binding" "string" // bindings to use when use_binding is the onscreen icon
  433. "hint_allow_nodraw_target" "bool" // if false, the hint will dissappear if the target entity is invisible
  434. "hint_nooffscreen" "bool" // if true, the hint will not show when outside the player view
  435. "hint_forcecaption" "bool" // if true, the hint caption will show even if the hint is occluded
  436. "hint_local_player_only" "bool" // if true, only the local player will see the hint
  437. "hint_start_sound" "string" // Mapbase - the sound to play when the hint is opened
  438. "hint_target_pos" "short" // Mapbase - where the icon should be when there's a hint target
  439. }
  440.  
  441. "instructor_server_hint_stop" //destroys a server/map created hint
  442. {
  443. "hint_name" "string" // The hint to stop. Will stop ALL hints with this name
  444. }
  445. }
  446.  
Advertisement
Add Comment
Please, Sign In to add comment