Difference between revisions of "Codename Cure Events"

From AlliedModders Wiki
Jump to: navigation, search
(Created page with ":''Refer back to Game Events (Source) for more events.'' The events are taken from SteamApps\common\Codename CURE\cure\resource\modevents.res === player_death === {{qnot...")
 
Line 55: Line 55:
  
 
=== achievement_earned ===
 
=== achievement_earned ===
{{qnotice|Achievement earned}}
+
{{qnotice|A event that prints to the chat when a player has earned an achievement}}
 
{{begin-hl2msg|achievement_earned|string}}
 
{{begin-hl2msg|achievement_earned|string}}
 
{{hl2msg|long|player|the map name the game was won on}}
 
{{hl2msg|long|player|the map name the game was won on}}
Line 62: Line 62:
  
 
=== achievement_earned_local ===
 
=== achievement_earned_local ===
{{qnotice|}}
+
{{qnotice|Fired from the local client to the server, so the server can fire it back to the rest of the players}}
 
{{begin-hl2msg|achievement_earned_local|string}}
 
{{begin-hl2msg|achievement_earned_local|string}}
 
{{hl2msg|long|player|the map name the game was won on}}
 
{{hl2msg|long|player|the map name the game was won on}}
 
{{hl2msg|long|achievement|the difficulty}}
 
{{hl2msg|long|achievement|the difficulty}}
 
{{end-hl2msg}}
 
{{end-hl2msg}}

Revision as of 05:43, 14 February 2017

Refer back to Game Events (Source) for more events.

The events are taken from SteamApps\common\Codename CURE\cure\resource\modevents.res


player_death

Note: Player died

Name: player_death
Structure:
short userid user ID who died
short attacker user ID who killed
string weapon weapon name killed used
long inflictor needed for sacrifice


zombie_killed

Note: Zombie killed

Name: zombie_killed
Structure:
long entindex_killed
long entindex_attacker
long entindex_inflictor
long damagebits
string victimClassname
string attackerClassname
string inflictorClassname
string ammoName
short zombieType


game_win

Note:

Name: game_win
Structure:
string strMapName the map name the game was won on
short difficulty the difficulty
long wave for survival the wave number
short livingplayers for survival last man


game_reset

Note: Current match reseted

Name: game_reset
Structure:
short difficulty the difficulty


game_diff_change

Note: Diffuculty changed

Name: game_diff_change
Structure:
short difficulty the difficulty


special_condition

Note:

Name: special_condition
Structure:
short condType id of the special condition
short playerID user ID who killed


achievement_earned

Note: A event that prints to the chat when a player has earned an achievement

Name: achievement_earned
Structure:
long player the map name the game was won on
long achievement the difficulty


achievement_earned_local

Note: Fired from the local client to the server, so the server can fire it back to the rest of the players

Name: achievement_earned_local
Structure:
long player the map name the game was won on
long achievement the difficulty