X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fweapons%2Fall.qh;h=9ca40e73d62b0e06d524de04559e323a43f4a9c2;hb=939744d4779ea02689725129337e74ea12993f0c;hp=b8d7c56bf98d7ec6adedef081655098b70e56398;hpb=50f099d4c7185489caf387128bbf547b00779b07;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/weapons/all.qh b/qcsrc/common/weapons/all.qh index b8d7c56bf..9ca40e73d 100644 --- a/qcsrc/common/weapons/all.qh +++ b/qcsrc/common/weapons/all.qh @@ -20,6 +20,7 @@ WepSet ReadWepSet(); #include "calculations.qh" #include "projectiles.qh" #include +#include #endif #include @@ -81,7 +82,7 @@ GENERIC_COMMAND(dumpweapons, "Dump all weapons into weapons_dump.txt", false) // default: case CMD_REQUEST_USAGE: { - LOG_HELP("Usage:^3 ", GetProgramCommandPrefix(), " dumpweapons [filename]"); + LOG_HELP("Usage:^3 ", GetProgramCommandPrefix(), " dumpweapons []"); LOG_HELP(" Where 'filename' is the file to write (default is weapons_dump.cfg),"); LOG_HELP(" if supplied with '-' output to console as well as default,"); LOG_HELP(" if left blank, it will only write to default."); @@ -328,7 +329,7 @@ STATIC_INIT(register_weapons_done) else inaccessible = strcat(inaccessible, "\n", it.netname); }); - if (inaccessible) LOG_TRACEF("Impulse limit exceeded, weapon(s) will not be directly accessible: %s", inaccessible); + if (inaccessible && autocvar_developer > 0) LOG_TRACEF("Impulse limit exceeded, weapon(s) will not be directly accessible: %s", inaccessible); #ifdef CSQC FOREACH(Weapons, true, it.wr_init(it)); #endif @@ -357,12 +358,16 @@ vector weaponentity_glowmod(Weapon wep, entity actor, int c, entity wepent) .vector spawnorigin; // for casings +.vector movedir_aligned; // shot origin based on weapon alignment (unaffected by shootfromeye) + // weapon animation vectors: .vector anim_fire1; .vector anim_fire2; .vector anim_idle; .vector anim_reload; +.entity muzzle_flash; + // static frame globals ENUMCLASS(WFRAME) @@ -376,6 +381,7 @@ ENUMCLASS_END(WFRAME) .WFRAME wframe; #ifdef SVQC + string autocvar_g_shootfromfixedorigin; #define G_SHOOTFROMFIXEDORIGIN autocvar_g_shootfromfixedorigin #elif defined(CSQC) string autocvar_cl_shootfromfixedorigin; @@ -395,4 +401,8 @@ REPLICATE(cvar_cl_accuracy_data_receive, bool, "cl_accuracy_data_receive"); #ifdef SVQC void wframe_send(entity actor, entity weaponentity, int wepframe, float attackrate, bool restartanim); #endif + +#ifdef SVQC +void W_MuzzleFlash(Weapon thiswep, entity actor, .entity weaponentity, vector shotorg, vector shotdir); +#endif #endif