Signature
native rg_weapon_reload(const entity, iClipSize, iAnim, Float:fDelay);
Description
Reloads a weapon or a player's active weapon using the CBasePlayerWeapon::DefaultReload function.
Parameters
- entity — Weapon to reload (> MaxClients) OR player index to reload his current active weapon (>= 1 & <= MaxClients).
- iClipSize — Weapon max clip to check. 0 = weapon max clip stored in ItemInfo
- iAnim — Weapon view model animation to play (often "reload", use HLMV to see anim index)
- fDelay — Player reload duration before clip refill.
Returns
1 on successful weapon reload, 0 otherwise.