]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/weapons/weapon/hook.qc
Deprecate weapon_func
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / weapons / weapon / hook.qc
index c6b352212ee7a724edbfc3a93cbebfa5d18fd7fb..5bab0d91d8b680525c23f5311f583f82a4efc1da 100644 (file)
@@ -174,7 +174,7 @@ void W_Hook_Attack2(void)
        MUTATOR_CALLHOOK(EditProjectile, self, gren);
 }
 
-bool W_Hook(int req)
+bool W_Hook(entity thiswep, int req)
 {SELFPARAM();
        float hooked_time_max, hooked_fuel;
 
@@ -288,9 +288,6 @@ bool W_Hook(int req)
                }
                case WR_INIT:
                {
-                       precache_model(W_Model("g_hookgun.md3"));
-                       precache_model(W_Model("v_hookgun.md3"));
-                       precache_model(W_Model("h_hookgun.iqm"));
                        precache_sound(W_Sound("hook_impact")); // done by g_hook.qc
                        precache_sound(W_Sound("hook_fire"));
                        precache_sound(W_Sound("hookbomb_fire"));
@@ -337,7 +334,7 @@ bool W_Hook(int req)
 }
 #endif
 #ifdef CSQC
-bool W_Hook(int req)
+bool W_Hook(entity thiswep, int req)
 {SELFPARAM();
        switch(req)
        {