AMXX-BG.INFO knifeapi.inc Functions

knifeapi functions

All callable symbols documented in this include, grouped by declaration type.

Natives

Name Signature
Knife_GetProperty native Knife_GetProperty(Knife, KnifeProperties:Value, any:...)
Knife_GetTotal native Knife_GetTotal()
Knife_PlayerGetCurrent native Knife_PlayerGetCurrent(Player)
Knife_PlayerGetLock native bool:Knife_PlayerGetLock(Player)
Knife_PlayerGive native Knife_PlayerGive(Player, Knife, bool:Set = true)
Knife_PlayerHas native Knife_PlayerHas(Player, Knife)
Knife_PlayerRemoveAll native Knife_PlayerRemoveAll(Player)
Knife_PlayerSetCurrent native Knife_PlayerSetCurrent(Player, Knife)
Knife_PlayerSetLock native Knife_PlayerSetLock(Player, bool:Locked)
Knife_Register native Knife_Register( const WeaponName[] = "New Knife", const VModel[], const PModel[] = "", const WModel[] = "", const DeploySound[] = "weapons/knife_deploy1.wav", const SlashSound[] = "weapons/knife_hit1.wav", const StabSound[] = "weapons/knife_stab.wav", const WhiffSound[] = "weapons/knife_slash1.wav", const WallSound[] = "weapons/knife_hitwall1.wav", Float:PrimaryDamage = 1.0, Float:SecondaryDamage = 1.0 )
Knife_SetProperty native Knife_SetProperty(Knife, KnifeProperties:Value, any:...)

Forwards

Name Signature
KnifeAction_DealDamage forward KnifeAction_DealDamage(Attacker, Victim, Knife, Float:Damage, bool:PrimaryAttack, DamageBits, bool:Backstab, Float:EndPoint[3], Float:AimVector[3], Hitzone )
KnifeAction_Deploy forward KnifeAction_Deploy(Player, Knife)
KnifeAction_ProcessAttack_Post forward KnifeAction_ProcessAttack_Post(Player, Victim, Knife, bool:PrimaryAttack, Float:EndPoint[3], Float:AimVector[3])
KnifeAction_ProcessAttack_Pre forward KnifeAction_ProcessAttack_Pre(Player, Knife, bool:PrimaryAttack)
KnifeAction_SoundPlay forward KnifeAction_SoundPlay(Player, Knife, const Sound[])