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

[CS:GO]Change stickers on weapons


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Apina
AlliedModders Donor
Join Date: May 2013
Old 05-24-2015 , 08:40   [CS:GO]Change stickers on weapons
Reply With Quote #1

I wanted to try to change the stickers on the weapon, as I believe they are located at m_Attributes
Spoiler

I tried to do on the method TF https://forums.alliedmods.net/showthread.php?t=210221
by gamedata for csgo, all but that _ZN14CAttributeList24SetRuntimeAttributeValue EPK28CEconItemAttributeDefinitionf I find a way for CSGO but the way the quiescent
PHP Code:
"Games"
{
    
"csgo"
    
{
        
"Offsets"
        
{
            
"CAttributeManager::OnAttributeValuesChanged"    //use instead of ClearCache/NotifyManagerOfAttributeValueChanges
            
{
                
"windows"    "12"
                "linux"        "13" 
//I do not know where i can take
                
"mac"        "13"
            
}
            
"CEconItemView::GetItemDefinition"
            
{
                
"windows"    "4"
                "linux"        "5" 
//I do not know where i can take
                
"mac"        "5"
            
}
        }
        
"Signatures"
        
{
            
"CEconItemSchema::GetItemDefinition"
            
{
                
"library"            "server"
                "linux"                "@_ZNK15CEconItemSchema17GetItemDefinitionEib" 
//found
            
}
            
"CEconItemView::GetSOCData"
            
{
                
"library"            "server"
                "linux"                "@_ZNK13CEconItemView10GetSOCDataEv" 
//found
            
}
            
"CEconItem::SetCustomName"
            
{
                
"library"            "server"
                "linux"                "@_ZN9CEconItem13SetCustomNameEPKc" 
//found
            
}
            
"GEconItemSchema"
            
{
                
"library"            "server"
                "linux"                "@_Z15GEconItemSchemav" 
//found
            
}
            
"CEconItemSchema::GetAttributeDefinition"    //int, returns CEconItemAttributeDefinition
            
{
                
"library"            "server"
                "linux"                "@_ZNK15CEconItemSchema22GetAttributeDefinitionEi" 
//found
            
}
            
"CEconItemSchema::GetAttributeDefinitionByName"    //const char*, returns CEconItemAttributeDefinition
            
{
                
"library"            "server"
                "linux"                "@_ZNK15CEconItemSchema28GetAttributeDefinitionByNameEPKc" 
//found
            
}
            
"CAttributeList::RemoveAttribute" //CEconItemAttributeDefinition*, returns CEconItemAttributeDefinition
            
{
                
"library"            "server"
                "linux"                "@_ZN9CEconItem22RemoveDynamicAttributeEPK28CEconItemAttributeDefinition" 
//found
            
}
            
"CAttributeList::SetRuntimeAttributeValue" //CEconItemAttributeDefinition*, float, returns void but somehow SetReturnInfo makes it return some nonzero client-based integer if success
            
{
                
"library"            "server"
                "linux"                "@_ZN14CAttributeList24SetRuntimeAttributeValueEPK28CEconItemAttributeDefinitionf"
// NO!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
            
}
            
"CAttributeList::GetAttributeByID" //int, returns CEconAttribute address
            
{
                
"library"            "server"
                "linux"                "@_ZN14CAttributeList16GetAttributeByIDEi" 
//found
            
}
            
"CAttributeList::DestroyAllAttributes" //this, returns int
            
{
                
"library"            "server"
                "linux"                "@_ZN14CAttributeList20DestroyAllAttributesEv" 
//found
            
}
            
"CAttributeManager::ClearCache" //returns void
            
{
                
"library"            "server"
                "linux"                "@_ZN17CAttributeManager10ClearCacheEv" 
//found
            
}
        }
    }

A little watching on the signature, I found strange signatures
PHP Code:
_ZZ28GetStickerAttributeDefHandlei21EStickerAttributeTypeE18pAttrStickerSlotID
_ZZ28GetStickerAttributeDefHandlei21EStickerAttributeTypeE20pAttrStickerSlotWear
_ZZ28GetStickerAttributeDefHandlei21EStickerAttributeTypeE21pAttrStickerSlotScale
_ZZ28GetStickerAttributeDefHandlei21EStickerAttributeTypeE24pAttrStickerSlotRotation
_ZZN9CEconItem34InitAttributesDroppedFromListEntryEPK17item_list_entry_tE16pAttr_StickerKit
_ZGVZN9CEconItem34InitAttributesDroppedFromListEntryEPK17item_list_entry_tE16pAttr_StickerKit
_ZGVZN9CEconItem34InitAttributesDroppedFromListEntryEPK17item_list_entry_tE14pAttr_PaintKit
_ZNK15CEconItemSchema23GetStickerKitDefinitionEi
_ZNK15CEconItemSchema29GetStickerKitDefinitionByNameEPKc
_ZNK15CEconItemSchema30GetStickerListDefinitionByNameEPKc
_ZNK18IEconItemInterface35GetStickerAttributeBySlotIndexFloatEi21EStickerAttributeTypef
_ZNK18IEconItemInterface33GetStickerAttributeBySlotIndexIntEi21EStickerAttributeTypej 
Maybe someone knows what I can do. I am weak at gamedata, but I would very much like to change stickers

Last edited by Apina; 06-02-2015 at 22:19.
Apina is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 05-24-2015 , 13:25   Re: [CS:GO]Change stickers on weapons
Reply With Quote #2

https://forums.alliedmods.net/showpo...06&postcount=2

stickers are really just temp props that are parented to the view model.
Mitchell is offline
Apina
AlliedModders Donor
Join Date: May 2013
Old 05-25-2015 , 05:25   Re: [CS:GO]Change stickers on weapons
Reply With Quote #3

Someone know c++?
Apina is offline
Apina
AlliedModders Donor
Join Date: May 2013
Old 06-03-2015 , 11:39   Re: [CS:GO]Change stickers on weapons
Reply With Quote #4

Can someone help? I really want change stickers on weapons. I can pay if you need!
Apina 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 00:08.


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