-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathgame.inc
53 lines (42 loc) · 1.27 KB
/
game.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
Eternity Engine Small Header
Native functions for basic game stuff
*/
#if defined _game_included
#endinput
#endif
#define _game_included
// call to exit the current level normally
// * must be called only while in a level
native _ExitLevel();
// call to use a secret exit for the current level
// * must be called only while in a level
native _ExitSecret();
enum _gameskills
{
_SKILL_ITYTD = 1,
_SKILL_HNTR,
_SKILL_HMP,
_SKILL_UV,
_SKILL_NM
}
// call to start a new game on the given skill level and level name
// * skill should be a number between 1 and 5, 1 being ITYTD, 5 being
// Nightmare!
// * levelname should be a valid map name amongst loaded wad files
native _StartGame(_gameskills:skill, const mapname[]);
// returns the current game skill setting, between 1 and 5 as above
native _gameskills:_GameSkill();
enum _gametypes
{
_GTYPE_SINGLE,
_GTYPE_COOP,
_GTYPE_DM
}
// returns the current game type using the definitions above
native _gametypes:_GameType();
// returns the version number of the Eternity Engine running this
// script multiplied by a factor of 100 -- ie, v3.31 == 331
native _EngineVersion();
// returns the name of the requested player (1-4), if the player is in the game
native _GetPlayerName(num, str[], bool:packed);