-
Notifications
You must be signed in to change notification settings - Fork 0
/
m_random.h
86 lines (77 loc) · 1.31 KB
/
m_random.h
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#ifndef __M_RANDOM__
#define __M_RANDOM__
typedef enum
{
pr_skullfly,
pr_damage,
pr_crush,
pr_genlift,
pr_killtics,
pr_damagemobj,
pr_painchance,
pr_lights,
pr_explode,
pr_respawn,
pr_lastlook,
pr_spawnthing,
pr_spawnpuff,
pr_spawnblood,
pr_missile,
pr_shadow,
pr_plats,
pr_punch,
pr_punchangle,
pr_saw,
pr_plasma,
pr_gunshot,
pr_misfire,
pr_shotgun,
pr_bfg,
pr_slimehurt,
pr_dmspawn,
pr_missrange,
pr_trywalk,
pr_newchase,
pr_newchasedir,
pr_see,
pr_facetarget,
pr_posattack,
pr_sposattack,
pr_cposattack,
pr_spidrefire,
pr_troopattack,
pr_sargattack,
pr_headattack,
pr_bruisattack,
pr_tracer,
pr_skelfist,
pr_scream,
pr_brainscream,
pr_cposrefire,
pr_brainexp,
pr_spawnfly,
pr_misc,
pr_all_in_one,
pr_opendoor,
pr_targetsearch,
pr_friends,
pr_threshold,
pr_skiptarget,
pr_enemystrafe,
pr_avoidcrush,
pr_stayonlift,
pr_helpfriend,
pr_dropoff,
pr_randomjump,
pr_defect,
NUMPRCLASS
} pr_class_t;
typedef struct
{
unsigned long seed[NUMPRCLASS];
int rndindex, prndindex;
} rng_t;
extern rng_t rng;
int P_Random(pr_class_t);
void M_ClearRandom(unsigned long rngseed);
#endif