AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Unbreakable ENTs (https://forums.alliedmods.net/showthread.php?t=50644)

Pete Hobson 01-30-2007 21:16

Unbreakable ENTs
 
Well, when starting up my server all the ENTs including windows were unbreakable, godded, godmoded, whatever you want to say.

I'm running AMXX v1.01 (Because that's what a plugin of mine runs on)

I'm also on "The Specialists" which is a mod for half-life (Obviously)


I would like them to be breakable and was wondering if anyone could send me a .sma file or the code which would be compatible for AMXX v1.01 to make the breakable.

Also, that same plugin I run disables kicking, I'd like to know if you guys could also send me something that will re-enable it even though another plugin disables it.


This would all be a GREAT help, the reason I can't take out the kicking is because this plugin I have is over a year old and I don't have the .sma anymore for it, and I'm not so sure how I go about re-enabling the kicking when it's disabled because of ANOTHER plugin.


Thanks in advance, since I'm sure I'll have a reply soon.








Pete Hobson

Defillbert 01-30-2007 21:37

Re: Unbreakable ENTs
 
Its not AMX but google ENTED
It lets you edit the health for the specific entities that you want to be ungodded.

Pete Hobson 01-30-2007 21:45

Re: Unbreakable ENTs
 
The problem is that when the map starts, something is MAKING the ent's be unbreakable. Not the map itself. So I need some kind of code to backfire that.

[ --<-@ ] Black Rose 01-31-2007 06:57

Re: Unbreakable ENTs
 
Quote:

Originally Posted by Pete Hobson (Post 433704)
The problem is that when the map starts, something is MAKING the ent's be unbreakable. Not the map itself. So I need some kind of code to backfire that.

No, you need to find what's doing this and edit that.

Pete Hobson 01-31-2007 15:53

...
 
I told you, I'm pretty sure it's the plugin in which I only have the .amxx because It's over a year old. I can't edit it without a .sma, and there's not a good enough decompiler out there.

Pete Hobson 01-31-2007 19:44

Re: Unbreakable ENTs
 
I'm finding it hard to believe that none of the coders know how to do this.

I mean I'm not the one to talk, buy seriously, if you guys know I really would like your help :/


/me begs :D

[ --<-@ ] Black Rose 01-31-2007 20:02

Re: Unbreakable ENTs
 
Whats the name of that plugin you were missing the sma for?

over_mind 01-31-2007 20:29

Re: Unbreakable ENTs
 
Pete you need to be more specific. Are you running a TSRP server? Are you using a certain out-dated tutorial on how to make a TSRP server that I know of? 1.01 is quite old man, you need to upgrade.

Defillbert 01-31-2007 22:48

Re: Unbreakable ENTs
 
I myself find it hard to believe that the .sma isn't available on the web; have you tried using the search function, or even google?

Ryu2877 02-01-2007 00:51

Re: Unbreakable ENTs
 
if you confirm this estate is made by plugin, well then, the underside maybe can help you:
Code:

#include <amxmodx>
#include <fakemeta>
#define PLUGIN_NAME "resetenthealth"
#define PLUGIN_VERSION "0.1"
#define PLUGIN_AUTHOR "CZ*Ryu"
#define MAXPLAYERS 32
new const sClassname[] = "classname"
new const sFuncBreakable[] = "func_breakable"
new const sFuncPushable[] = "func_pushable"
public plugin_init()
{
 register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR)
 
 set_task(2.0, "task_reset_EntHealth")
}
public task_reset_EntHealth()
{
 new ent = -1
 while ( (ent = engfunc(EngFunc_FindEntityByString, ent, sClassname, sFuncBreakable)) > MAXPLAYERS )
 {
  set_pev(ent, pev_takedamage, DAMAGE_YES)
  set_pev(ent, pev_health, 1.0)
 }
 ent = -1
 while ( (ent = engfunc(EngFunc_FindEntityByString, ent, sClassname, sFuncPushable)) > MAXPLAYERS )
 {
  set_pev(ent, pev_takedamage, DAMAGE_YES)
  set_pev(ent, pev_health, 1.0)
 }
}



All times are GMT -4. The time now is 00:45.

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