Page 1 of 1

[CS:GO] Weapon Attachment API

Posted: Mon Jan 27, 2020 5:14 pm
by Andreeas
Weapon Attachment API

This plugin main function was to easily get the weapons' end position of the barrel (muzzle_flash) in CS:GO. However there are some other uses to it also.


Natives
Inside WeaponAttachmentAPI.inc:
/**
* Gets the attachment postion of the client's current weapon.
*
* @param client Client index
* @param attachment The attachment point to look up
* @return Returns false if the position could not be looked up
* @error Invalid client.
*/
native bool WA_GetAttachmentPos(int client, char[] attachment, float pos[3]);


Download
Source