add weapon type ep function