AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Dead bodies (https://forums.alliedmods.net/showthread.php?t=53741)

nick123 04-10-2007 09:59

Dead bodies
 
how could i remove bodies as fast as they become dead.. is their a model name for a dead body or what?

VEN 04-10-2007 10:07

Re: Dead bodies
 
Set nodraw effect for a player entity and block ClCorpse message.

Howdy! 04-10-2007 13:00

Re: Dead bodies
 
You can use cl_corpsestay command.

nick123 04-10-2007 20:14

Re: Dead bodies
 
how do i bock a message and set the no draw effect?
sry howdy i don't want to do anything to my clients

Dark Kingdom 04-11-2007 00:01

Re: Dead bodies
 
Blocking a Message:
PHP Code:

#include <amxmodx>
#include <amxmisc>

public plugin_init()
{
    
register_plugin("FF Message Block","1.0","GHW_Chronic")
    
register_message(get_user_msgid("TextMsg"),"block_message")
}

public 
block_message()
{
    if(
get_msg_args()==&& get_msg_argtype(2)==ARG_STRING)
    {
        new 
message[32]
        
get_msg_arg_string(2,message,31)
        if(
equali(message,"#Game_teammate_attack"))
        {
            return 
PLUGIN_HANDLED 

}
}
return PLUGIN_CONTINUE
}</div>

Emp` 04-11-2007 01:12

Re: Dead bodies
 
much easier way to block:
Code:

//in plugin_init
        set_msg_block(get_user_msgid("ClCorpse"), BLOCK_SET);


nick123 04-11-2007 01:36

Re: Dead bodies
 
well whats the no draw effect? and hmm i understand that im blocking a message but the orginal purpose for me was to get rid of them as ents, because my server have alot ents and i have respawn on, so the dead bodies are always there

teame06 04-11-2007 01:44

Re: Dead bodies
 
Quote:

Originally Posted by nick123 (Post 463254)
well whats the no draw effect? and hmm i understand that im blocking a message but the orginal purpose for me was to get rid of them as ents, because my server have alot ents and i have respawn on, so the dead bodies are always there

To get rid of those dead body left on the ground all you need is to block the ClCorpse message. Using the native below in a plugin will do that for you.

Quote:

Originally Posted by Emp` (Post 463249)
much easier way to block:
Code:

//in plugin_init
        set_msg_block(get_user_msgid("ClCorpse"), BLOCK_SET);



Howdy! 04-11-2007 07:21

Re: Dead bodies
 
Quote:

Originally Posted by Howdy! (Post 462985)
You can use cl_corpsestay command.

This is everyones personal choise it wont do anything to other players.

nick123 04-11-2007 10:05

Re: Dead bodies
 
ok thx team06 & howdy


All times are GMT -4. The time now is 06:33.

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