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

[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
CyberStars
Senior Member
Join Date: May 2013
Old 02-11-2014 , 06:17   Re: [Dota 2] Disable 'runes' and 'neutral creeps'
Reply With Quote #7

Quote:
Originally Posted by psychonic View Post
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");     } }
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 #8

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
wanted2411
Senior Member
Join Date: Jun 2012
Old 02-11-2014 , 12:05   Re: [Dota 2] Disable 'runes' and 'neutral creeps'
Reply With Quote #9

Try this - http://forums.alliedmods.net/showthread.php?t=39439
wanted2411 is offline
CyberStars
Senior Member
Join Date: May 2013
Old 02-12-2014 , 03:00   Re: [Dota 2] Disable 'runes' and 'neutral creeps'
Reply With Quote #10

Quote:
Originally Posted by wanted2411 View Post
It says that it is for 'Half-Life 1'.

On the other hand, I don't want to use other plug-ins or extensions.
But anyway, thanks a lot for suggestion.
CyberStars 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 07:49.


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