SDKHooks_DropWeapon Function

Forces a client to drop the specified weapon

void SDKHooks_DropWeapon(int client, int weapon, const float vecTarget[3], const float vecVelocity[3], bool bypassHooks)

Parameters

int client

Client index.

int weapon

Weapon entity index.

const float[3] vecTarget

Location to toss weapon to, or NULL_VECTOR for default.

const float[3] vecVelocity

Velocity at which to toss weapon, or NULL_VECTOR for default.

bool bypassHooks

If true, bypass SDK hooks on Weapon Drop

Errors

Invalid client or weapon entity, weapon not owned by client.