Raised This Month: $51 Target: $400
 12% 

Solved [CSGO] Possible to get the Weapon Name from Weapon ID? (Not Classname!)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Muhlex
Junior Member
Join Date: Mar 2019
Old 05-26-2019 , 19:03   [CSGO] Possible to get the Weapon Name from Weapon ID? (Not Classname!)
Reply With Quote #1

As CS:GO has weapons that share the same classname (the one's that are in the same inventory slot), for example the P2000 and USP-S (weapon_hkp2000, weapon_usp_silencer), I am now looking for a way to get the actual weapon name from a weapon's ID.

I tested getting various EntProps but all i found working was the Classname via m_iClassname once again. The only function i know is GetClientWeapon of the clients.inc include. But this always gets the currently active weapon from a player and doesn't allow me to check weapons that are not currently equipped.
How can I do that?

Last edited by Muhlex; 05-28-2019 at 08:33.
Muhlex is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 22:23.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode