/
weapon.h
39 lines (33 loc) · 1.36 KB
/
weapon.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
/*
Copyright (c) 2017-2020 ByteBit
This file is part of BetterSpades.
BetterSpades is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
BetterSpades is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with BetterSpades. If not, see <http://www.gnu.org/licenses/>.
*/
void weapon_update(void);
void weapon_set(void);
void weapon_reload(void);
int weapon_reloading(void);
int weapon_can_reload(void);
void weapon_reload_abort(void);
void weapon_shoot(void);
int weapon_block_damage(int gun);
float weapon_delay(int gun);
int weapon_ammo(int gun);
int weapon_ammo_reserved(int gun);
struct kv6_t* weapon_casing(int gun);
float weapon_recoil_anim(int gun);
struct Sound_wav* weapon_sound(int gun);
struct Sound_wav* weapon_sound_reload(int gun);
void weapon_spread(struct Player* p, float* d);
void weapon_recoil(int gun, double* horiz_recoil, double* vert_recoil);
extern float weapon_reload_start, weapon_last_shot;
extern unsigned char weapon_reload_inprogress;