public plugin_precache() {
precache_generic("sprites/weapon_unrealknife.txt");
precache_generic("sprites/unreal_knife.spr");
precache_sound(UNREAL_KNIFE_SOUND_TARGET);
precache_sound(UNREAL_KNIFE_SOUND_SHOOT);
UNREAL_KNIFE_SPRITE_AMMO_ID = precache_model(UNREAL_KNIFE_SPRITE_AMMO);
precache_model(UNREAL_KNIFE_P_MODEL);
UNREAL_KNIFE_W_MODEL_ID = precache_model(UNREAL_KNIFE_W_MODEL);
precache_model(UNREAL_KNIFE_V_MODEL);
MsgIdWeaponList = get_user_msgid("WeaponList");
if (MsgIdWeaponList)
{
MsgHookWeaponList = register_message(MsgIdWeaponList, "HookWeaponList");
}
else
{
FwdRegUserMsg = register_forward(FM_RegUserMsg, "RegUserMsg_Post", true);
}
}