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

[CS:GO] CEconEntity


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
notMe2
Member
Join Date: Feb 2014
Old 04-18-2014 , 14:03   [CS:GO] CEconEntity
Reply With Quote #1

If someone is looking for CEconEntity and CBaseAttributableItem for a waepon spawn with skins...

Code:
CEconEntity = 43
 - DT_EconEntity, count 8
    baseclass: 0x0000
    m_AttributeManager: 0x1140
    m_OriginalOwnerXuidLow: 0x1448
    m_OriginalOwnerXuidHigh: 0x144C
    m_nFallbackPaintKit: 0x1450
    m_nFallbackSeed: 0x1454
    m_flFallbackWear: 0x1458
    m_nFallbackStatTrak: 0x145C
    
CBaseAttributableItem = 4
 - DT_BaseAttributableItem, count 8
    baseclass: 0x0000
    m_AttributeManager: 0x1140
    m_OriginalOwnerXuidLow: 0x1448
    m_OriginalOwnerXuidHigh: 0x144C
    m_nFallbackPaintKit: 0x1450
    m_nFallbackSeed: 0x1454
    m_flFallbackWear: 0x1458
    m_nFallbackStatTrak: 0x145C
enjoy
notMe2 is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 04-18-2014 , 19:51   Re: [CS:GO] CEconEntity
Reply With Quote #2

Mmm how to apply this? You have been able to get weapons with skins?

As someone said in the donor section, is very difficult get it
Quote:
Originally Posted by Mainstaff View Post
I worked some weeks on an extension to set custom weapon skins in CS:GO but I failed...

The main problem is that the CEconItemView parameter in GiveNamedItem is useless if you do not initialize the object (skin) properly in another class (can't remember the name). At the end I did not figure out how to initialize this class and I stopped working on it. You have to be really good in reverse engineering to write a code for this.

Additionally, SetEntProp (as you use it in your post) won't work in this case.
__________________
Veteran Coder -> Activity channel
Coding on CS2 and taking paid and free jobs.

Contact: Steam, Telegram or discord ( franug ).

You like my work? +Rep in my steam profile comments or donate.

Franc1sco is offline
Send a message via MSN to Franc1sco
notMe2
Member
Join Date: Feb 2014
Old 04-18-2014 , 21:42   Re: [CS:GO] CEconEntity
Reply With Quote #3

Quote:
Originally Posted by Franc1sco View Post
Mmm how to apply this? You have been able to get weapons with skins?

As someone said in the donor section, is very difficult get it
u can use the dr!fter base and instead of using a "basinc" CEconEntity create a new one and edit the offsets, must work
notMe2 is offline
Mainstaff
AlliedModders Donor
Join Date: May 2011
Old 04-19-2014 , 07:32   Re: [CS:GO] CEconEntity
Reply With Quote #4

Quote:
Originally Posted by notMe2 View Post
u can use the dr!fter base and instead of using a "basinc" CEconEntity create a new one and edit the offsets, must work
As far as I know you have to initialize the skin in another class (some kind of precaching), otherwise the clients only display the default skin.

Edit: The class is "GCSDK::CSharedObject". I guess you have to create the class for this object and then call CPlayerInventory::SOCreated(CSteamID const&, GCSDK::CSharedObject const*, GCSDK::ESOCacheEvent).

Last edited by Mainstaff; 04-19-2014 at 07:39.
Mainstaff is offline
Reply



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 12:22.


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