Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
OffhandMageTeleport Class Reference
Inheritance diagram for OffhandMageTeleport:
Collaboration diagram for OffhandMageTeleport:

Public Member Functions

virtual void offhand_think ()

Public Attributes

bool OffhandMageTeleport_key_pressed

Detailed Description

Definition at line 66 of file mage.qc.

Member Function Documentation

◆ offhand_think()

virtual void OffhandMageTeleport::offhand_think ( )
inlinevirtual

Reimplemented from OffhandWeapon.

Definition at line 68 of file mage.qc.

69 {
70 TC(OffhandMageTeleport, this);
71 if (key_pressed && !player.OffhandMageTeleport_key_pressed)
72 M_Mage_Attack_Teleport(player, player.enemy);
73 player.OffhandMageTeleport_key_pressed = key_pressed;
74 }
#define TC(T, sym)
Definition _all.inc:82
void M_Mage_Attack_Teleport(entity this, entity targ)
Definition mage.qc:292

References entity(), M_Mage_Attack_Teleport(), offhand_think(), and TC.

Referenced by offhand_think().

Member Data Documentation

◆ OffhandMageTeleport_key_pressed

bool OffhandMageTeleport::OffhandMageTeleport_key_pressed

Definition at line 67 of file mage.qc.


The documentation for this class was generated from the following file: