X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fweapons%2Fweapon%2Fvortex.qh;h=babbfe51bb0f25a8a0777ce78cbfc3da08470ce7;hb=bb4ef7788ddb76a945d9b100593c3c008d0b1711;hp=570464cb913e7ddbc758509323b61fb0dc97baec;hpb=9e50112561ad6f4cefe6d13bd7185f5dfd1ada4b;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/weapons/weapon/vortex.qh b/qcsrc/common/weapons/weapon/vortex.qh index 570464cb91..babbfe51bb 100644 --- a/qcsrc/common/weapons/weapon/vortex.qh +++ b/qcsrc/common/weapons/weapon/vortex.qh @@ -2,7 +2,7 @@ CLASS(Vortex, Weapon) /* spawnfunc */ ATTRIB(Vortex, m_canonical_spawnfunc, string, "weapon_vortex"); -/* ammotype */ ATTRIB(Vortex, ammo_type, int, RES_CELLS); +/* ammotype */ ATTRIB(Vortex, ammo_type, Resource, RES_CELLS); /* impulse */ ATTRIB(Vortex, impulse, int, 7); /* flags */ ATTRIB(Vortex, spawnflags, int, WEP_FLAG_NORMAL | WEP_FLAG_RELOADABLE | WEP_TYPE_HITSCAN); /* rating */ ATTRIB(Vortex, bot_pickupbasevalue, float, 8000); @@ -10,6 +10,8 @@ CLASS(Vortex, Weapon) /* modelname */ ATTRIB(Vortex, mdl, string, "nex"); #ifdef GAMEQC /* model */ ATTRIB(Vortex, m_model, Model, MDL_VORTEX_ITEM); +/* flash mdl */ ATTRIB(Vortex, m_muzzlemodel, Model, MDL_Null); +/* flash eff */ ATTRIB(Vortex, m_muzzleeffect, entity, EFFECT_VORTEX_MUZZLEFLASH); #endif /* crosshair */ ATTRIB(Vortex, w_crosshair, string, "gfx/crosshairnex"); /* crosshair */ ATTRIB(Vortex, w_crosshair_size, float, 0.65); @@ -27,6 +29,7 @@ CLASS(Vortex, Weapon) P(class, prefix, chargepool_pause_regen, float, SEC) \ P(class, prefix, chargepool_regen, float, SEC) \ P(class, prefix, charge, float, NONE) \ + P(class, prefix, charge_always, float, NONE) \ P(class, prefix, charge_animlimit, float, NONE) \ P(class, prefix, charge_limit, float, NONE) \ P(class, prefix, charge_maxspeed, float, NONE) \ @@ -64,6 +67,14 @@ REGISTER_WEAPON(VORTEX, vortex, NEW(Vortex)); SPAWNFUNC_WEAPON(weapon_vortex, WEP_VORTEX) SPAWNFUNC_WEAPON(weapon_nex, WEP_VORTEX) +#ifdef CSQC +bool autocvar_cl_particles_oldvortexbeam; +#endif + #ifdef SVQC +.float vortex_charge_rottime; + .float vortex_lasthit; + +void W_Vortex_Charge(entity actor, .entity weaponentity, float dt); #endif