Forums are in read-only mode. Data has been backed up but be sure to save anything you want.

Crafting - ElectroHammer



  • Added in publish 376, Never been crafted.

    For what reason can it not be crafted?
    The swep seem to work just fine.



  • Added in publish 376, Never been crafted.

    For what reason can it not be crafted?
    The swep seem to work just fine.



  • It was because the electrohammer recipe had a wrong caps in one of the names, but somehow the model names fuck up with Items or items being caps or not.

    So here, a quick fix for it and aswell something to the barrel.

    
    -- Oil-filled barrel metalgascan addition
    {
    	Name = "an oil-filled barrel",
    	a = {"*physics*", {"models/props_junk/gascan001a.mdl", "models/props_junk/metalgascan.mdl"}},
    	b = {"*physics*", "models/props_c17/oildrum001.mdl"},
    	Result = {"prop_physics", Model("models/props_c17/oildrum001_explosive.mdl")}
    }
    
    -- Electrohammer modelname fix
    {
    	Name = "an electrohammer",
    	callback = function(enta, entb)
    		return enta:IsPhysicsModel("models/items/car_battery01.mdl") and entb:IsWeaponType("weapon_zs_hammer")
    	end,
    	Result = {"prop_weapon"},
    	OnCrafted = function(pl, recipe, enta, entb, ent)
    		ent:SetWeaponType("weapon_zs_electrohammer")
    	end
    }
    
    

    As well do this to the electrohammer swep, when crafted it makes some ERROR model problem. Forcing the model fixes it.

    
    SWEP.ViewModel = "models/weapons/v_hammer/v_hammer.mdl"
    SWEP.WorldModel = "models/weapons/w_hammer.mdl"
    
    


  • Also, considering that there won’t be a new crafting system for a while, could more crafting recipes be added to the current system as-is? I recall that recipes were put on hold until a better way to craft was put in place.


Log in to reply
 

0
Online

11.3k
Users

15.5k
Topics

300.2k
Posts