AMX Mod X API Documentation

Signature
native rg_weapon_deploy(const entity, const szViewModel[], const szWeaponModel[], iAnim, const szAnimExt[], skiplocal = 0);
Description

Deploys a weapon attached to a player using the CBasePlayerWeapon::DefaultDeploy function.

Parameters
  • entity Weapon to deploy. Must be attached to a player.
  • szViewModel Weapon view model name ("models/v_*.mdl")
  • szWeaponModel Weapon world model bame ("models/p_*.mdl")
  • iAnim Weapon view model animation to play (often "deploy", use HLMV to see anim index)
  • szAnimExt Player anim extension name to assign. Examples: "carbine", "shotgun", "knife", etc.

    Use HLMV on a player model to see animext names.

  • skiplocal If 0, weapon animation will be forced to play on client ignoring active client prediction.
Returns

1 on successful weapon deploy, 0 otherwise.

Назад
Верх