Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
sv_duel.qc
Go to the documentation of this file.
1
#include "
sv_duel.qh
"
2
3
MUTATOR_HOOKFUNCTION
(duel,
GetPlayerLimit
)
4
{
5
M_ARGV
(0,
int
) = 2;
// duel is always 1v1!
6
}
7
8
MUTATOR_HOOKFUNCTION
(duel, Scores_CountFragsRemaining)
9
{
10
// announce remaining frags?
11
return
true
;
12
}
13
14
MUTATOR_HOOKFUNCTION
(duel, FilterItemDefinition)
15
{
16
entity
definition =
M_ARGV
(0,
entity
);
17
18
if
(definition.instanceOfPowerup)
19
{
20
return
!
autocvar_g_duel_with_powerups
;
21
}
22
}
MUTATOR_HOOKFUNCTION
#define MUTATOR_HOOKFUNCTION(...)
Definition
base.qh:335
entity
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
M_ARGV
#define M_ARGV(x, type)
Definition
events.qh:17
GetPlayerLimit
int GetPlayerLimit()
Definition
client.qc:2127
sv_duel.qh
autocvar_g_duel_with_powerups
bool autocvar_g_duel_with_powerups
Definition
sv_duel.qh:10
common
gametypes
gametype
duel
sv_duel.qc
Generated on
for Xonotic QuakeC by
1.14.0