Difference between revisions of "Codename Cure Events"

From AlliedModders Wiki
Jump to: navigation, search
Line 48: Line 48:
  
 
=== special_condition ===
 
=== special_condition ===
{{qnotice|}}
+
{{qnotice|A special achievement condition, such as not using the primary weapon, equipment or no friendly fire}}
 
{{begin-hl2msg|special_condition|string}}
 
{{begin-hl2msg|special_condition|string}}
 
{{hl2msg|short|condType|id of the special condition}}
 
{{hl2msg|short|condType|id of the special condition}}

Revision as of 05:50, 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: A special achievement condition, such as not using the primary weapon, equipment or no friendly fire

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