X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fweapons%2Fhitplot.qc;h=e79e9ddb6413bb2b86e98e84e4e04793fa1ca5a5;hb=e044c33d2e56a13837659b0cdb0ac9a2e6242957;hp=89cec6aea98dacaadca0f44df7c58e82e63653c1;hpb=29ba411594428929a9e9a0e0baa620210213bec7;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/weapons/hitplot.qc b/qcsrc/server/weapons/hitplot.qc index 89cec6aea..e79e9ddb6 100644 --- a/qcsrc/server/weapons/hitplot.qc +++ b/qcsrc/server/weapons/hitplot.qc @@ -1,7 +1,8 @@ #include "hitplot.qh" +#include +#include #include "../antilag.qh" -#include "../g_subs.qh" #include #include #include @@ -52,7 +53,7 @@ vector W_HitPlotNormalizedUntransform(vector org, entity targ, vector screenforw return ret; } -void W_HitPlotAnalysis(entity player, .entity weaponentity, vector screenforward, vector screenright, vector screenup) +void W_HitPlotAnalysis(entity player, entity wep, vector screenforward, vector screenright, vector screenup) { if(CS(player).hitplotfh >= 0) { @@ -70,7 +71,7 @@ void W_HitPlotAnalysis(entity player, .entity weaponentity, vector screenforward antilag_takeback(trace_ent, store, time - lag); vector hitplot = W_HitPlotNormalizedUntransform(org, trace_ent, screenforward, screenright, screenup, trace_endpos); antilag_restore(trace_ent, store); - fputs(CS(player).hitplotfh, strcat(ftos(hitplot.x), " ", ftos(hitplot.y), " ", ftos(hitplot.z), " ", ftos(player.(weaponentity).m_switchweapon.m_id), "\n")); + fputs(CS(player).hitplotfh, strcat(ftos(hitplot.x), " ", ftos(hitplot.y), " ", ftos(hitplot.z), " ", ftos(wep.m_id), "\n")); //print(strcat(ftos(hitplot_x), " ", ftos(hitplot_y), " ", ftos(hitplot_z), "\n")); } }