Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
sv_duel.qc File Reference
#include "sv_duel.qh"
Include dependency graph for sv_duel.qc:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

 MUTATOR_HOOKFUNCTION (duel, FilterItemDefinition)
 MUTATOR_HOOKFUNCTION (duel, GetPlayerLimit)
 MUTATOR_HOOKFUNCTION (duel, Scores_CountFragsRemaining)

Function Documentation

◆ MUTATOR_HOOKFUNCTION() [1/3]

MUTATOR_HOOKFUNCTION ( duel ,
FilterItemDefinition  )

Definition at line 14 of file sv_duel.qc.

15{
16 entity definition = M_ARGV(0, entity);
17
18 if(definition.instanceOfPowerup)
19 {
21 }
22}
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
#define M_ARGV(x, type)
Definition events.qh:17
bool autocvar_g_duel_with_powerups
Definition sv_duel.qh:10

References autocvar_g_duel_with_powerups, entity(), and M_ARGV.

◆ MUTATOR_HOOKFUNCTION() [2/3]

MUTATOR_HOOKFUNCTION ( duel ,
GetPlayerLimit  )

Definition at line 3 of file sv_duel.qc.

4{
5 M_ARGV(0, int) = 2; // duel is always 1v1!
6}

References GetPlayerLimit(), and M_ARGV.

◆ MUTATOR_HOOKFUNCTION() [3/3]

MUTATOR_HOOKFUNCTION ( duel ,
Scores_CountFragsRemaining  )

Definition at line 8 of file sv_duel.qc.

9{
10 // announce remaining frags?
11 return true;
12}