[CS:GO] Weapon Attachment API

Post Reply
User avatar
Andreeas
Hero Member
Hero Member
Posts: 601
Joined: Wed Jan 22, 2020 8:17 pm
Jucator SA:MP ?: Nu
Nick:: Andreeas
Jucator CS ?: Nu

[CS:GO] Weapon Attachment API

Post by Andreeas » Mon Jan 27, 2020 5:14 pm

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

Post Reply

Return to “Technical/Development”