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

Go to the source code of this file.

Functions

 SOUND (MachineGunTurretAttack_FIRE, W_Sound("electro_fire"))
void W_MuzzleFlash_Model (entity wepent, entity muzzlemodel)

Function Documentation

◆ SOUND()

SOUND ( MachineGunTurretAttack_FIRE ,
W_Sound("electro_fire")  )

◆ W_MuzzleFlash_Model()

void W_MuzzleFlash_Model ( entity wepent,
entity muzzlemodel )

Definition at line 703 of file all.qc.

704{
705 if(wepent.muzzle_flash == NULL)
706 wepent.muzzle_flash = spawn();
707
708 entity flash = wepent.muzzle_flash;
709 setmodel(flash, muzzlemodel); // precision set below
710
711 flash.scale = 0.75;
713 flash.nextthink = time + 0.02;
714 flash.frame = 2;
715 flash.alpha = 0.75;
716 flash.angles_z = random() * 180;
717 flash.effects = EF_ADDITIVE | EF_FULLBRIGHT;
718 flash.owner = flash.realowner = wepent;
719
720#ifdef CSQC
721 flash.drawmask = MASK_NORMAL;
722#endif
723}
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
#define setmodel(this, m)
Definition model.qh:26
const float MASK_NORMAL
const float EF_ADDITIVE
const float EF_FULLBRIGHT
float time
#define spawn
float random(void)
#define NULL
Definition post.qh:14
#define setthink(e, f)
void W_MuzzleFlash_Model_Think(entity this)
Definition all.qc:687

References EF_ADDITIVE, EF_FULLBRIGHT, entity(), MASK_NORMAL, NULL, random(), setmodel, setthink, spawn, time, and W_MuzzleFlash_Model_Think().

Referenced by W_MuzzleFlash().