View Single Post
dordnung
Veteran Member
Join Date: Apr 2010
Old 12-25-2012 , 21:35   Re: Newest CS:GO update crashing with SourceMod?
#95

Hm i compiled the usermessages (given with dota2) with the protoc compiler (See attachment)

Then i builded the Protobuf lib and linked against it.

After that i added

PHP Code:
#include "usermessages.pb.h" 
and finally added:

PHP Code:
#if defined GAME_CSGO 

    
MRecipientFilter filter;

    
filter.AddAllPlayers();

    
CUserMsg_SayText text;
    
text.set_client((google::protobuf::uint32)pEntity);
    
text.set_chat(true);
    
text.set_text("WUI TESTING");

    
engine->SendUserMessage(filterUM_SayTexttext);
    
#endif 
In the compiled proto files, there you have a enum of all Usermessages types, like here: UM_SayText
Attached Files
File Type: zip google.zip (161.1 KB, 70 views)
__________________

Last edited by dordnung; 12-25-2012 at 21:43.
dordnung is offline