Raised This Month: $58 Target: $400

Right way of gameevents

Post New Thread Reply   
Thread Tools Display Modes
Author Message
Veteran Member
Join Date: Jan 2012
Location: Dublin
Old 12-01-2016 , 11:10   Right way of gameevents
Reply With Quote #1

Hellow, somebody can help me pls, do i use event hook in right way or i need add additional include to code? or it wrong method? I need it for CS:GO. Thanks a million



or just use that method



Which of those will better for CS:GO?

Last edited by gubka; 12-01-2016 at 11:39.
gubka is offline
Send a message via ICQ to gubka Send a message via Skype™ to gubka

Join Date: May 2008
Old 12-02-2016 , 13:32   Re: Right way of gameevents
Reply With Quote #2

The simplest and most common method is to just make your plugin class, the ZombiePlague instance in this case, a listener. In the callback, check the event name and then do or call your logic for each that you want to handle.

Like this, https://github.com/psychonic/d2fixup...ixups.cpp#L290

Last edited by psychonic; 12-02-2016 at 13:32.
psychonic is offline

Thread Tools
Display Modes

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 10:44.

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