Nuclide
Software Development Kit for id Tech
weapons.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2016-2021 Marco Cawthorne <marco@icculus.org>
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
19void Weapons_SwitchBest(NSClientPlayer pl, optional float skip);
20int Weapons_AddItem(NSClientPlayer pl, int w, int startammo);
22void Weapons_InitItem(int w);
23void Weapons_ReloadWeapon(NSClientPlayer pl, .int mag, .int ammo, int max);
25int Weapon_GetCount();
26int Weapon_GetBitID(int);
This entity class represents every player client.
Definition: NSClientPlayer.h:26
void Weapons_PickupNotify(NSClientPlayer pl, int w)
Definition: weapons.qc:59
void Weapons_RemoveItem(NSClientPlayer pl, int w)
Definition: weapons.qc:298
void Weapons_SwitchBest(NSClientPlayer pl, optional float skip)
Definition: weapons.qc:93
void Weapons_ReloadWeapon(NSClientPlayer pl,.int mag,.int ammo, int max)
Definition: weapons.qc:336
int Weapon_GetBitID(int)
Definition: weapons.qc:44
int Weapon_GetCount()
Definition: weapons.qc:29
void Weapon_DropCurrentWeapon(NSClientPlayer pl)
Definition: weapons.qc:356
void Weapons_RefreshAmmo(NSClientPlayer pl)
Definition: weapons.qc:76
void Weapons_InitItem(int w)
Definition: weapons.qc:319
int Weapons_AddItem(NSClientPlayer pl, int w, int startammo)
Definition: weapons.qc:132