AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Invisability to bots (https://forums.alliedmods.net/showthread.php?t=161995)

Doc-Holiday 07-13-2011 16:45

Invisability to bots
 
Is it possible to be invisible to bots??

Its cz bots if it matters.

Kinda like if you were in smoke grenades the bots walk right by you

Kreation 07-14-2011 00:21

Re: Invisability to bots
 
I don't think so. Bots use a targeting system(not 100% on that).

So, even if you appear invisible, they will probably still pick you up and shoot(assuming they do use a targeting system).

EDIT: I'm sure you can get more information with this at http://www.bots-united.com

bibu 07-14-2011 00:54

Re: Invisability to bots
 
I just know that PodBot supports this.

Doc-Holiday 07-14-2011 06:45

Re: Invisability to bots
 
I know that smoke renders them retarded lol and they walk right by you... but thats it.

maybe theres a way to trick them into thinking your in smoke?

Hunter-Digital 07-15-2011 04:06

Re: Invisability to bots
 
If a bot receives AddToFullPack stuff you can just filter out invisible player entities so the bot doesn't receive them and doesn't have anything to target... unless the bot gets the entity list directly from the server :/

Doc-Holiday 07-15-2011 04:49

Re: Invisability to bots
 
Quote:

Originally Posted by Hunter-Digital (Post 1511011)
If a bot receives AddToFullPack stuff you can just filter out invisible player entities so the bot doesn't receive them and doesn't have anything to target... unless the bot gets the entity list directly from the server :/

Im more talking about set_user_rendering...... to make the player ivnis...

So that wouldnt work

Flipper_SPb 07-15-2011 05:36

Re: Invisability to bots
 
You can try to set DAMAGE_NO for player in FM_AddToFullPack forward. With godmode you'll be invisible for bots.

abdul-rehman 07-15-2011 05:45

Re: Invisability to bots
 
With FM_AddToFullPack
You can check whether your entity's data is bieng transmitted to the bot and if it is, than you can set the entity's state (es_handle) to invisibility, this way you will only be invisible to the bot (and not to any other player) or you can block the transmission and see if it works.

Doc-Holiday 07-16-2011 00:08

Re: Invisability to bots
 
Question about add to full pack

When i tested using some client_prints

In a server with bots.. using if(!player) return 0; will only use the humans as "host"??

but "ent" can still be the bots correct??

thats what it seemed like.

PHP Code:

#include <amxmodx>
#include <fakemeta>

public plugin_init()
{
    
register_plugin("test""0.0.1""SavSin");
    
    
register_forward(FM_AddToFullPack"fwdAddToFullPack"1);
}

public 
fwdAddToFullPack(es_handleeenthosthostflagsplayerpSet)
{
    if(!
player)
        return 
FMRES_IGNORED;

    new 
szHost[32], szEnt[32];
    
get_user_name(hostszHostsizeof(szHost));
    
get_user_name(entszEntsizeof(szEnt));

    
client_print(0print_chat"DEBUG :: This is the host %s"szHost);
    
client_print(0print_chat"DEBUG :: This is the ent %s"szEnt);

    return 
FMRES_IGNORED;



abdul-rehman 07-16-2011 03:34

Re: Invisability to bots
 
I dont know what the player parameter is for but what i know is that data is bieng transmitted from the ent to the host. The host can be a bot or a human or any other entity, same goes for ent. In order to play with the ent's transmission you can use the es_handle with set_es/get_es natives. Correct me if i m wrong.


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

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