]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/weapons/tracing.qc
Purge self from most of the monster code
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / weapons / tracing.qc
index 96062375af35f23a3d59d48ef2c75e7ce68010b9..01a23c1a5caf3cd6e66911e3066442f39a35268a 100644 (file)
@@ -53,7 +53,8 @@ void W_SetupShot_Dir_ProjectileSize_Range(entity ent, vector s_forward, vector m
        if (IS_PLAYER(ent) && accuracy_canbegooddamage(ent))
                accuracy_add(ent, PS(ent).m_weapon.m_id, maxdamage, 0);
 
-       W_HitPlotAnalysis(ent, v_forward, v_right, v_up);
+       if(IS_PLAYER(ent))
+               W_HitPlotAnalysis(ent, v_forward, v_right, v_up);
 
        .entity weaponentity = weaponentities[0]; // TODO: unhardcode
        vector md = ent.(weaponentity).movedir;