Nuclide
Software Development Kit for id Tech
mapC_weapons.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2024 Vera Visions LLC.
3 *
4 * Permission to use, copy, modify, and distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER
13 * IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
14 * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15*/
16
24string
25weaponType(string weaponDef)
26{
27 string(string) spawnFunc = externvalue(0, "weaponType");
28 return spawnFunc(weaponDef);
29}
30
31int
32weaponStartAmmo(string weaponDef)
33{
34 int(string) spawnFunc = externvalue(0, "weaponStartAmmo");
35 return spawnFunc(weaponDef);
36}
37
38int
39weaponMaxAmmo(string weaponDef)
40{
41 int(string) spawnFunc = externvalue(0, "weaponMaxAmmo");
42 return spawnFunc(weaponDef);
43}
44
45bool
46weaponIsSemiAuto(string weaponDef)
47{
48 bool(string) spawnFunc = externvalue(0, "weaponIsSemiAuto");
49 return spawnFunc(weaponDef);
50}
51
52string
53weaponInventoryType(string weaponDef)
54{
55 string(string) spawnFunc = externvalue(0, "weaponInventoryType");
56 return spawnFunc(weaponDef);
57}
58
59float
60weaponFireTime(string weaponDef)
61{
62 float(string) spawnFunc = externvalue(0, "weaponFireTime");
63 return spawnFunc(weaponDef);
64}
65
66int
67weaponClipSize(string weaponDef)
68{
69 int(string) spawnFunc = externvalue(0, "weaponClipSize");
70 return spawnFunc(weaponDef);
71}
72
73string
74weaponClass(string weaponDef)
75{
76 string(string) spawnFunc = externvalue(0, "weaponClass");
77 return spawnFunc(weaponDef);
78}
79
80bool
81isWeaponClipOnly(string weaponDef)
82{
83 bool(string) spawnFunc = externvalue(0, "isWeaponClipOnly");
84 return spawnFunc(weaponDef);
85}
86
87bool
88isWeaponDetonationTimed(string weaponDef)
89{
90 bool(string) spawnFunc = externvalue(0, "isWeaponDetonationTimed");
91 return spawnFunc(weaponDef);
92}
93 // end of mapc_weapons
string(string modelname, int frame, float frametime) spriteframe
bool isWeaponClipOnly(string weaponDef)
Definition: mapC_weapons.h:81
float weaponFireTime(string weaponDef)
Definition: mapC_weapons.h:60
bool weaponIsSemiAuto(string weaponDef)
Definition: mapC_weapons.h:46
string weaponType(string weaponDef)
Definition: mapC_weapons.h:25
bool isWeaponDetonationTimed(string weaponDef)
Definition: mapC_weapons.h:88
string weaponClass(string weaponDef)
Definition: mapC_weapons.h:74
int weaponClipSize(string weaponDef)
Definition: mapC_weapons.h:67
int weaponMaxAmmo(string weaponDef)
Definition: mapC_weapons.h:39
string weaponInventoryType(string weaponDef)
Definition: mapC_weapons.h:53
int weaponStartAmmo(string weaponDef)
Definition: mapC_weapons.h:32
float(float modidx, string framename) frameforname