No water plugin

Started by bakeLit
27 Sep 2007, 14:20
Page 1 of 2
27 Sep 2007, 14:20

PLS has any1 plugin that removes the water from bhop maps ? esp the FPS eater kz_kzfr_rabbithighway(ez) thx .
[ Edited ]

28 Sep 2007, 15:02

I dunno much about mapping but I think its impossible, because water is included in the bsp file

28 Sep 2007, 15:28

its possible, but i dont know if im allowed to post it here, maybe fatalis could post it? :D

29 Sep 2007, 09:07

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 ^^

29 Sep 2007, 16:43

it is possible to remove entitys from the map.
And could be done fast with fakemeta.

29 Sep 2007, 17:04

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" )
}
}

29 Sep 2007, 21:00

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

4 Oct 2007, 15:49

PaPa you are fucking good plugin finder :D thx very much

8 Oct 2007, 21:53

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

12 Oct 2007, 01:52

http://www.sendspace.com/file/cmahui
:))

[ Edited 10/12/07 - 16:04:12 ]

12 Oct 2007, 10:31

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 ]

12 Oct 2007, 14:37

mhhh... bugsbunny is right. even if that way is simple and the way everyone uses it u should write some credits in ur sma

12 Oct 2007, 15:24

Can sb pls give me the *.sma file? :D
(the file on sendspace is deleted)

12 Oct 2007, 16:36

#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 ]

12 Oct 2007, 16:48

thx :D

[ Edited 10/12/07 - 17:07:28 ]

12 Oct 2007, 17:02

Don't works... :/

2x error 010: invalid function or declaration

maniac


[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 ]

12 Oct 2007, 17:05

my worked but he tryed to compile it with

xD

12 Oct 2007, 23:49

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 ]

13 Oct 2007, 14:24

Haha bitcH thx much ;)

13 Oct 2007, 15:39

haha xD did not know that they copied that much xD

Page 1 of 2

Reply

Please log in to post replies.