CS:GO GiveNamedItem Econ
1 Attachment(s)
This extension will create/get an EconItemView to be passed to GiveNamedItem.
So what does this help/affect. Basically the best example of this is calling GiveNamedItem on a ct player and trying to give them a ak. By default the ct will get a regular ak, this will get the EconItemView for the players ak and replace it so the given ak will have the skin/whatever the user has. This will also grab the correct gun for the loadout slot. For example if you give a terrorist a m4a1, it will check the loadout slot and give the m4a1 if that is what they have equipped or the m4a4 if they have that instead. This was mostly to experiment with CEconItemView stuff and provide some code that might help others to create other extensions. Along with being annoyed that when I played Deathmatch and was a CT I didnt have my blue ak :( The linux version is untested. Also I am not sure if stattrak stuff works but should. Code: https://bitbucket.org/Drifter321/cs-...ditem-econ/src Gamedata: https://bitbucket.org/Drifter321/cs-...item.games.txt Install: drag and drop Changelog:
|
Re: CS:GO GiveNamedItem Econ
So basicly if player has equipped ak-47 skin then it will equip him with ak-47 skin instead of default one?
|
Re: CS:GO GiveNamedItem Econ
Yes
|
Re: CS:GO GiveNamedItem Econ
Would it be easier to just use GivePlayerItem. It uses whichever skin the players has set, also the correct gun is chosen for the loadout slot.
|
Re: CS:GO GiveNamedItem Econ
Quote:
|
Re: CS:GO GiveNamedItem Econ
Quote:
|
Re: CS:GO GiveNamedItem Econ
Quote:
|
Re: CS:GO GiveNamedItem Econ
Now you'll need to get that CEconItemView class and have csgoitems!
|
Re: CS:GO GiveNamedItem Econ
Quote:
Thank you! |
Re: CS:GO GiveNamedItem Econ
Quote:
Does this require a certain version of SM/MM to function correctly? It's showing as loaded in sm exts list with no errors, but it's doing the complete opposite. |
All times are GMT -4. The time now is 15:19. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.