X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fcommon%2Fweapons%2Fall.qh;h=356c3882a920d84537261cbc8b9acb9ba7b26be2;hp=286b7a3d3dbfdde33e21975131c2214a691082c6;hb=HEAD;hpb=3d3ebfd0c19b0b6149ae1f8e990de93921e84552 diff --git a/qcsrc/common/weapons/all.qh b/qcsrc/common/weapons/all.qh index 286b7a3d3d..50c6e3cb50 100644 --- a/qcsrc/common/weapons/all.qh +++ b/qcsrc/common/weapons/all.qh @@ -344,10 +344,10 @@ STATIC_INIT(register_weapons_done) .entity weaponchild; .entity exteriorweaponentity; -vector weaponentity_glowmod(Weapon wep, entity actor, int c, entity wepent) +vector weaponentity_glowmod(Weapon wep, int c, entity wepent) { vector g; - if (!(g = wep.wr_glow(wep, actor, wepent))) g = colormapPaletteColor(c & 0x0F, true); + if (!(g = wep.wr_glow(wep, c, wepent))) g = colormapPaletteColor(c & 0x0F, true); return g; } @@ -356,7 +356,9 @@ vector weaponentity_glowmod(Weapon wep, entity actor, int c, entity wepent) //.int weapon; // current weapon .string weaponname; // name of .weapon +#ifdef SVQC .vector spawnorigin; // for casings +#endif .vector movedir_aligned; // shot origin based on weapon alignment (unaffected by shootfromeye) @@ -388,7 +390,7 @@ ENUMCLASS_END(WFRAME) #define G_SHOOTFROMFIXEDORIGIN autocvar_cl_shootfromfixedorigin #endif -vector shotorg_adjust_values(vector vecs, bool y_is_right, bool visual, int algn); +vector shotorg_adjust(vector vecs, bool y_is_right, bool visual, int algn); void CL_WeaponEntity_SetModel(entity this, string name, bool _anim); REPLICATE_INIT(int, cvar_cl_gunalign);