Xonotic
sv_duel.qc File Reference
#include "sv_duel.qh"
+ Include dependency graph for sv_duel.qc:

Go to the source code of this file.

Functions

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

Function Documentation

◆ MUTATOR_HOOKFUNCTION() [1/3]

MUTATOR_HOOKFUNCTION ( duel  ,
GetPlayerLimit   
)

Definition at line 3 of file sv_duel.qc.

References M_ARGV.

4 {
5  M_ARGV(0, int) = 2; // duel is always 1v1!
6 }
#define M_ARGV(x, type)
Definition: events.qh:17

◆ MUTATOR_HOOKFUNCTION() [2/3]

MUTATOR_HOOKFUNCTION ( duel  ,
Scores_CountFragsRemaining   
)

Definition at line 8 of file sv_duel.qc.

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

◆ MUTATOR_HOOKFUNCTION() [3/3]

MUTATOR_HOOKFUNCTION ( duel  ,
FilterItemDefinition   
)

Definition at line 14 of file sv_duel.qc.

References autocvar_g_duel_with_powerups, entity(), and M_ARGV.

15 {
16  entity definition = M_ARGV(0, entity);
17 
18  if(definition.instanceOfPowerup)
19  {
21  }
22 }
entity() spawn
bool autocvar_g_duel_with_powerups
Definition: sv_duel.qh:10
#define M_ARGV(x, type)
Definition: events.qh:17
+ Here is the call graph for this function: