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

[Dota 2] Disable 'runes' and 'neutral creeps'


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
CyberStars
Senior Member
Join Date: May 2013
Old 01-22-2014 , 01:25   [Dota 2] Disable 'runes' and 'neutral creeps'
Reply With Quote #1

Hello,

is it possible to disable 'rune' and 'neutral creeps' spawning in Dota 2 Mid Only game mode?
If not, is there any way to catch when somebody takes a rune or kills neutral creep?
CyberStars is offline
psychonic

BAFFLED
Join Date: May 2008
Old 01-22-2014 , 09:59   Re: [Dota 2] Disable 'runes' and 'neutral creeps'
Reply With Quote #2

Something like this would probably work.

Code:
#include <sdkhooks> public OnEntityCreated(entity, const String:classname[]) {     if (!strcmp(classname, "dota_item_rune") || !strcmp(classname, "npc_dota_creep_neutral"))     {         AcceptEntityInput(entity, "Kill");     } }
psychonic is offline
CyberStars
Senior Member
Join Date: May 2013
Old 01-23-2014 , 04:31   Re: [Dota 2] Disable 'runes' and 'neutral creeps'
Reply With Quote #3

I tried to include
Code:
#include <sdkhooks>
got an error: "[SM] Unable to load extension "sdkhooks.ext": Cannot find gEntList pointer"
CyberStars is offline
psychonic

BAFFLED
Join Date: May 2008
Old 01-23-2014 , 09:24   Re: [Dota 2] Disable 'runes' and 'neutral creeps'
Reply With Quote #4

Quote:
Originally Posted by CyberStars View Post
I tried to include
Code:
#include <sdkhooks>
got an error: "[SM] Unable to load extension "sdkhooks.ext": Cannot find gEntList pointer"
Sorry, I saw your other thread after this one. I had forgotten that almost all of the byte signatures broke a few updates ago. I still plan to fix them soon; it is just tedious.
psychonic is offline
CyberStars
Senior Member
Join Date: May 2013
Old 01-23-2014 , 10:01   Re: [Dota 2] Disable 'runes' and 'neutral creeps'
Reply With Quote #5

I also thought that it can be related to that one.

Anyway, thank you for your response.
CyberStars is offline
CyberStars
Senior Member
Join Date: May 2013
Old 01-29-2014 , 03:16   Re: [Dota 2] Disable 'runes' and 'neutral creeps'
Reply With Quote #6

The same "[SM] Unable to load extension "sdkhooks.ext": Cannot find gEntList pointer" error after SM update.

SourceMod Version: 1.6.0-dev+4215


P.S.
"Failed to locate function" error still exists for "sm_dump_classes" and "sm_dump_datamaps" commands.

Last edited by CyberStars; 01-29-2014 at 03:33.
CyberStars is offline
psychonic

BAFFLED
Join Date: May 2008
Old 01-29-2014 , 13:14   Re: [Dota 2] Disable 'runes' and 'neutral creeps'
Reply With Quote #7

Quote:
Originally Posted by CyberStars View Post
The same "[SM] Unable to load extension "sdkhooks.ext": Cannot find gEntList pointer" error after SM update.

SourceMod Version: 1.6.0-dev+4215


P.S.
"Failed to locate function" error still exists for "sm_dump_classes" and "sm_dump_datamaps" commands.
SM hadn't yet been updated with the required fixes, but I did it just now. SM should automatically download the new gamedata files on the next server start or you can manually download a new snapshot version.

Last edited by psychonic; 01-29-2014 at 13:19.
psychonic is offline
CyberStars
Senior Member
Join Date: May 2013
Old 01-30-2014 , 02:12   Re: [Dota 2] Disable 'runes' and 'neutral creeps'
Reply With Quote #8

Quote:
Originally Posted by psychonic View Post
SM hadn't yet been updated with the required fixes, but I did it just now. SM should automatically download the new gamedata files on the next server start or you can manually download a new snapshot version.
After SM update, server doesn't run at all. It's being closed right after start.
Even previous SM versions don't work.
CyberStars is offline
psychonic

BAFFLED
Join Date: May 2008
Old 01-30-2014 , 09:11   Re: [Dota 2] Disable 'runes' and 'neutral creeps'
Reply With Quote #9

The latest SM version worked fine for me (including loading SDKHooks) between my post and when the New Bloom update came out. I'm guessing that the new game update broke it. I'll look into it.
psychonic is offline
vbearn
Junior Member
Join Date: Jan 2014
Old 01-30-2014 , 17:33   Re: [Dota 2] Disable 'runes' and 'neutral creeps'
Reply With Quote #10

Quote:
Originally Posted by CyberStars View Post
After SM update, server doesn't run at all. It's being closed right after start.
Even previous SM versions don't work.

Yes, it doesn't work after last Dota 2 major update ( build 806 and 808 )

Last edited by vbearn; 01-30-2014 at 17:34.
vbearn is offline
Reply


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 05:48.


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