Raised This Month: $ Target: $400
 0% 

[REQ] Anti Door Blockers


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
HeaDbIKBaT
Junior Member
Join Date: Dec 2008
Location: USA, Florida, Destin
Old 03-09-2009 , 19:08   [REQ] Anti Door Blockers
Reply With Quote #1

Well, you know how on some maps you can block the door with your body? This is a big problem on our server, and we don't know what the hell to do. Removing all the doors doesn't work, because all the secret library doors and all sorts of gates get removed from every map, so I'm asking for somebody to make a plugin that would solve the problem. I think the best way to do this is have humans lose their hp as soon as they start blocking the door. I don't know if this is possible, but there is nothing imposible for you guys. ) If you have other ideas how to solve this please share.
HeaDbIKBaT is offline
Send a message via ICQ to HeaDbIKBaT
AlejandroSk
BANNED
Join Date: Nov 2008
Location: Aqui, en mi casa. Karma:
Old 03-09-2009 , 19:33   Re: [REQ] Anti Door Blockers
Reply With Quote #2

All i can do is a plugin that cheks if the map is x (u deceide) and remove doors only on these map.
AlejandroSk is offline
Send a message via MSN to AlejandroSk
MeRcyLeZZ
Veteran Member
Join Date: Dec 2007
Old 03-12-2009 , 14:46   Re: [REQ] Anti Door Blockers
Reply With Quote #3

You can have a plugin hook the FM_SetKeyValue forward for all func_door's, and change their "damage on block" property on spawn.

I'll be posting something on this later today when I get the time...
__________________
MeRcyLeZZ is offline
dogandcat
BANNED
Join Date: Jan 2009
Old 03-12-2009 , 15:19   Re: [REQ] Anti Door Blockers
Reply With Quote #4

oh this will be nice
dogandcat is offline
Hammerfallerz
Senior Member
Join Date: Feb 2008
Old 03-12-2009 , 21:38   Re: [REQ] Anti Door Blockers
Reply With Quote #5

This helped me take care of kids blocking doors: http://forums.alliedmods.net/showthr...light=holyslap

Just edit source and make it 1000 slaps or even more. If target will die, slap meter will freeze until target is alive again and then it will continue to slap the crap out if him.

Works brilliant.
Hammerfallerz is offline
MeRcyLeZZ
Veteran Member
Join Date: Dec 2007
Old 03-13-2009 , 15:32   Re: [REQ] Anti Door Blockers
Reply With Quote #6

Here you go. Let me know if this doesn't turn to be enough.
Code:
#include <amxmodx> #include <fakemeta> // Feel free to change this new const DAMAGE_ON_BLOCK[] = "10" new g_fwSpawn public plugin_precache() {     register_plugin("Anti Door Blocker", "0.1", "MeRcyLeZZ")     g_fwSpawn = register_forward(FM_Spawn, "fw_Spawn") } public plugin_init() unregister_forward(FM_Spawn, g_fwSpawn) public fw_Spawn(entity) {     if (!pev_valid(entity)) return;         new classname[32]     pev(entity, pev_classname, classname, charsmax(classname))         if (!equal(classname, "func_door", 9))         return;         fm_set_kvd(entity, "dmg", DAMAGE_ON_BLOCK, classname) } // Set an entity's key value (from fakemeta_util) stock fm_set_kvd(entity, const key[], const value[], const classname[]) {     set_kvd(0, KV_ClassName, classname)     set_kvd(0, KV_KeyName, key)     set_kvd(0, KV_Value, value)     set_kvd(0, KV_fHandled, 0)     dllfunc(DLLFunc_KeyValue, entity, 0) }
Attached Files
File Type: sma Get Plugin or Get Source (anti_door_blocker.sma - 836 views - 949 Bytes)
__________________

Last edited by MeRcyLeZZ; 03-16-2009 at 22:00.
MeRcyLeZZ is offline
HeaDbIKBaT
Junior Member
Join Date: Dec 2008
Location: USA, Florida, Destin
Old 03-14-2009 , 19:56   Re: [REQ] Anti Door Blockers
Reply With Quote #7

MeRcyLeZZ
Thanks so much man this is awesome! Nice, even if you put 1 dmg it still kills humans instantly, which is good, they will be very surprised when they try to block another door Thanks again
HeaDbIKBaT is offline
Send a message via ICQ to HeaDbIKBaT
zDemon
Junior Member
Join Date: Aug 2008
Location: Russian Federation
Old 03-14-2009 , 20:08   Re: [REQ] Anti Door Blockers
Reply With Quote #8

Thanks! Very useful plugin. Works perfectly. By the way is it possible to have less than 1 dmg that way people wouldn't die too fast?
zDemon is offline
zDemon
Junior Member
Join Date: Aug 2008
Location: Russian Federation
Old 03-15-2009 , 18:59   Re: [REQ] Anti Door Blockers
Reply With Quote #9

Actually after I used this plugin for some time I'm starting to get some errors. Debug below

Quote:
L 03/15/2009 - 23:42:56: Start of error session.
L 03/15/2009 - 23:42:56: Info (map "cs_assault_shadow") (file "addons/amxmodx/logs/error_20090315.log")
L 03/15/2009 - 23:42:56: [FAKEMETA] Invalid entity
L 03/15/2009 - 23:42:56: [AMXX] Displaying debug trace (plugin "anti_door_blocker.amxx")
L 03/15/2009 - 23:42:56: [AMXX] Run time error 10: native error (native "pev")
L 03/15/2009 - 23:42:56: [AMXX] [0] anti_door_blocker.sma::fw_Spawn (line 20)
zDemon is offline
MeRcyLeZZ
Veteran Member
Join Date: Dec 2007
Old 03-15-2009 , 23:18   Re: [REQ] Anti Door Blockers
Reply With Quote #10

Quote:
Originally Posted by zDemon
Actually after I used this plugin for some time I'm starting to get some errors. Debug below
Oh yeah, I forgot a check there. Updated.

Quote:
Originally Posted by zDemon
By the way is it possible to have less than 1 dmg that way people wouldn't die too fast?
I'll see if I can code something else for that.
__________________
MeRcyLeZZ 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 13:06.


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