Вы используете устаревший браузер. Этот и другие сайты могут отображаться в нём некорректно. Вам необходимо обновить браузер или попробовать использовать другой.
new const WEAPON_V_MODEL[] = "models/hl_ports/v_crossbow.mdl"
new const WEAPON_W_MODEL[] = "models/hl_ports/w_crossbow.mdl"
new const WEAPON_P_MODEL[] = "models/hl_ports/p_crossbow.mdl"
new const BOLT_MODEL[] = "models/crossbow_bolt.mdl"
new const WEAPON_FIRE_SOUND[] = "weapons/xbow_fire1.wav"
public CBasePlayer_UseEmpty(const pPlayer)
{
if (get_viewent(pPlayer) == pPlayer)
{
new pEntity = NULLENT
while ((pEntity = rg_find_ent_by_class(pEntity, CUSTOM_ENTITY_CLASSNAME)))
{
if (get_entvar(pEntity, var_owner) == pPlayer && get_entvar(pEntity, var_movetype) == MOVETYPE_FLY)
{
engset_view(pPlayer, pEntity)
return
}
}
}
engset_view(pPlayer, pPlayer)
}
public UpdateClientData(const pPlayer, const sendweapons, const CD_Handle)
{
if (g_bActiveItem[pPlayer] && sendweapons) {
set_cd(CD_Handle, CD_flNextAttack, get_gametime() + 0.1)
}
}
public CSGameRules_RemoveGuns()
{
new pEntity = NULLENT
while ((pEntity = rg_find_ent_by_class(pEntity, CUSTOM_ENTITY_CLASSNAME)))
{
RemoveEntity(pEntity)
}
}
public CWeaponBox_SetModel(const pWeaponBox, const szModel[])
{
if (pWeaponBox <= 0)
return
new pWeapon = GetWeaponBoxWeapon(pWeaponBox)
if (pWeapon > 0 && IsCustomWeapon(pWeapon))
{
if (get_member(pWeapon, m_bWaitReload))
set_entvar(pWeaponBox, var_body, 1)
// if (get_member(pWeaponBox, m_WeaponBox_rgAmmo, 1)) // for other regamedll
if (get_member(pWeaponBox, m_WeaponBox_rgAmmo, BASE_WEAPON_AMMO_INDEX))
set_entvar(pWeaponBox, var_sequence, 1) // has backpack ammo
ForwardsState(const iState)
{
for (new i = 0; i < sizeof(g_aHookData); i++)
{
if (IsHamHook(i))
{
switch(iState)
{
case FORWARD_REGISTER: DisableHamForward(g_hHookHandle = any:RegisterHam(g_aHookData[iFunctionId], g_aHookData[szClass], g_aHookData[szCallback], g_aHookData[bIsPost]))
case FORWARD_ENABLE: EnableHamForward(g_hHookHandle)
case FORWARD_DISABLE: DisableHamForward(g_hHookHandle)
}
}
else
{
switch(iState)
{
case FORWARD_REGISTER: DisableHookChain(g_hHookHandle = any:RegisterHookChain(g_aHookData[iFunctionId], g_aHookData[szCallback], g_aHookData[bIsPost]))
case FORWARD_ENABLE: EnableHookChain(g_hHookHandle)
case FORWARD_DISABLE: DisableHookChain(g_hHookHandle)
}
}
}