]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/weapons/weapon/hook.qc
Remove legacy Quake bbox expansion: projectiles
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / weapons / weapon / hook.qc
index 94d4ac33ed765899b1fd0cd46ae9a964f8d54324..30c2233ac72489e6a7a359634033c3c84767f974 100644 (file)
@@ -77,10 +77,11 @@ void W_Hook_Attack2(Weapon thiswep, entity actor, .entity weaponentity)
        gren.bot_dodgerating = WEP_CVAR_SEC(hook, damage);
        set_movetype(gren, MOVETYPE_TOSS);
        PROJECTILE_MAKETRIGGER(gren);
+       gren.clipgroup = CLIPGROUP_UNHITTABLEPROJ;
        gren.projectiledeathtype = WEP_HOOK.m_id | HITTYPE_SECONDARY;
        gren.weaponentity_fld = weaponentity;
        setorigin(gren, w_shotorg);
-       setsize(gren, '0 0 0', '0 0 0');
+       setsize(gren, UNHITTABLEPROJ_MINS, UNHITTABLEPROJ_MAXS);
 
        gren.nextthink = time + WEP_CVAR_SEC(hook, lifetime);
        setthink(gren, adaptor_think2use_hittype_splash);