This repository has been archived by the owner on Nov 14, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
/
custom_mdls.qc
70 lines (57 loc) · 2.15 KB
/
custom_mdls.qc
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
/*
========================================================================
MAPPER-SETTABLE CUSTOM MODELS FOR MONSTERS
========================================================================
*/
/*
================
precache_model_custom
================
*/
void(.string mdl_field, string default_file) precache_model_custom =
{
if (self.mdl_field != "")
precache_model (self.mdl_field);
else
precache_model (default_file);
};
void(string default_file) precache_head_model = { precache_model_custom (mdl_head, default_file); };
void(string default_file) precache_body_model = { precache_model_custom (mdl_body, default_file); };
void(string default_file) precache_proj_model = { precache_model_custom (mdl_proj, default_file); };
void(string default_file) precache_gib1 = { precache_model_custom (mdl_gib1, default_file); };
void(string default_file) precache_gib2 = { precache_model_custom (mdl_gib2, default_file); };
void(string default_file) precache_gib3 = { precache_model_custom (mdl_gib3, default_file); };
/*
================
precache_model2_custom
================
*/
void(.string mdl_field, string default_file) precache_model2_custom =
{
if (self.mdl_field != "")
precache_model2 (self.mdl_field);
else
precache_model2 (default_file);
};
void(string default_file) precache_head_model2 = { precache_model2_custom (mdl_head, default_file); };
void(string default_file) precache_body_model2 = { precache_model2_custom (mdl_body, default_file); };
void(string default_file) precache_proj_model2 = { precache_model2_custom (mdl_proj, default_file); };
void(string default_file) precache_exproj_model2 = { precache_model2_custom (mdl_exproj, default_file); };
/*
================
model_custom
================
*/
void(.string mdl_field, string default_file) model_custom =
{
if (self.mdl_field != "")
{
setmodel (self, self.mdl_field);
// dprint("CUSTOM MODEL LOADED\n");
}
else
setmodel (self, default_file);
};
void(string default_file) body_model = { model_custom (mdl_body, default_file); };
// void(string default_file) head_model = { model_custom (mdl_head, default_file); };
void(string default_file) proj_model = { model_custom (mdl_proj, default_file); };