Add get_map_objectives native for CS (bug 5820, r=Nextra)

Former-commit-id: 47487a4aa7b32a5767c2a23df5ddc7e9643c3428
This commit is contained in:
Vincent Herbet
2013-08-08 19:11:12 +02:00
parent 225494b559
commit 0afe87be0a
2 changed files with 48 additions and 0 deletions

View File

@ -66,3 +66,19 @@ native xmod_get_maxweapons();
native xmod_get_stats_size();
/************* Shared Natives End ********************************/
enum MapObjective
{
MapObjective_Bomb = (1<<0),
MapObjective_Hostage = (1<<1),
MapObjective_Vip = (1<<2),
MapObjective_Escape = (1<<3),
};
/**
* Gets current map objectives.
*
* @return Returns a bits sum if objectives are found, otherwise 0.
* See MapObjective_* constants.
*/
native MapObjective:get_map_objectives();