Xonotic
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
}
entity
entity() spawn
GetPlayerLimit
int GetPlayerLimit()
Definition:
client.qc:1990
autocvar_g_duel_with_powerups
bool autocvar_g_duel_with_powerups
Definition:
sv_duel.qh:10
MUTATOR_HOOKFUNCTION
MUTATOR_HOOKFUNCTION(duel, GetPlayerLimit)
Definition:
sv_duel.qc:3
M_ARGV
#define M_ARGV(x, type)
Definition:
events.qh:17
sv_duel.qh
common
gamemodes
gamemode
duel
sv_duel.qc
Generated on Thu Mar 17 2022 17:26:27 for Xonotic by
1.8.13