No water plugin
PLS has any1 plugin that removes the water from bhop maps ? esp the FPS eater kz_kzfr_rabbithighway(ez) thx .
[ Edited ]
I dunno much about mapping but I think its impossible, because water is included in the bsp file
its possible, but i dont know if im allowed to post it here, maybe fatalis could post it? :D
i could post a plugin for it but i dunno if its possible to turn water visibility on/off ingame :S amxmodx has a function to set entity invisible so its possible and also done in some plugin :P im just back from a lan so let me slep and wait until evening ^^
it is possible to remove entitys from the map.
And could be done fast with fakemeta.
engine
set_entity_visibility - If visible = 1, entity will be set to be visible, else invisible.
Syntax:
set_entity_visibility ( entity, [ visible = 1 ] )
found a server with climbplugin and invisible water a few minutes ago xD just downlaoded the climb sma and saw this function ^^ so the code is already used in a public plugin :P
//If Cvar set, set func_water ents to no draw, helps many peoples FPS
if( get_pcvar_num( p_water_nodraw ) )
{
ent = find_ent_by_class( -1, "func_water" )
while( ent > 0 )
{
set_entity_visibility( ent, 0 )
ent=find_ent_by_class( ent, "func_water" )
}
}
And does it really work here? because when you turn noblock off, and jump to the "water", you get damage, not as if you jumped to normal water :X
PaPa you are fucking good plugin finder :D thx very much
well... could anyone post the .amx file... cause` us noobs can`t seem to make this thing work... i tried compiling it but it gives me 8 errors :| , and i have no clue about compiling and stuff ^^ :P
thanks in advance :D
http://www.sendspace.com/file/cmahui
:))
[ Edited 10/12/07 - 16:04:12 ]
Hey, thanks for violating the GPL by taking an exact copy of the code someone else wrote and not giving them credit. Since none of this code is yours, you can not put your name on it, put the name of the original author.
http://forums.alliedmods.net/showthread.php?p=493076
[ Edited 10/12/07 - 10:37:31 ]
mhhh... bugsbunny is right. even if that way is simple and the way everyone uses it u should write some credits in ur sma
Can sb pls give me the *.sma file? :D
(the file on sendspace is deleted)
#include
#include
#define PLUGIN "Invisible Water"
#define VERSION "1.0"
#define AUTHOR "SchlumPF"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
}
public plugin_cfg()
{
// copied out of climb-plugin by ian.cammarata
new ent
ent = find_ent_by_class( -1, "func_water" )
while( ent > 0 )
{
set_entity_visibility( ent, 0 )
ent=find_ent_by_class( ent, "func_water" )
}
}
[ Edited 10/12/07 - 17:03:33 ]
thx :D
[ Edited 10/12/07 - 17:07:28 ]
Don't works... :/
2x error 010: invalid function or declaration
[blockquote]#include
#include
#include
#define PLUGIN "No Water Draw"
#define VERSION "1.0"
#define AUTHOR "VipKiller & BalkY"
new nowater_draw
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
nowater_draw = register_cvar("nowater_draw","1")
}
public plugin_cfg()
{
new ent
//If Cvar set, set func_water ents to no draw, helps many peoples FPS
if( get_pcvar_num( nowater_draw ) )
{
ent = find_ent_by_class( -1, "func_water" )
while( ent > 0 )
{
set_entity_visibility( ent, 0 )
ent=find_ent_by_class( ent, "func_water" )
}
}
}
public check_cvars()
{
static bool:nodraw
if( get_pcvar_num( nowater_draw ) && !nodraw )
{
new ent = find_ent_by_class( -1, "func_water" )
while( ent > 0 )
{
set_entity_visibility( ent, 0 )
ent = find_ent_by_class( ent, "func_water" )
}
nodraw = true
}
else if( !get_pcvar_num( nowater_draw ) && nodraw )
{
new ent = find_ent_by_class( -1, "func_water" )
while( ent > 0 )
{
set_entity_visibility( ent, 1 )
ent = find_ent_by_class( ent, "func_water" )
}
nodraw = false
}
}[/blockquote]
[ Edited 10/12/07 - 17:05:36 ]
my worked but he tryed to compile it with
You must make the source code public, it's GPL2, you don't have a choice. And stop taking credit for code you didn't write.
If you want a copy of the source that doesn't violate the GPL and copyright law, you can get it here:
http://ian.cammarata.us/files/no_water.zip
[ Edited 10/13/07 - 00:08:08 ]
Haha bitcH thx much ;)
haha xD did not know that they copied that much xD
Please log in to post replies.