Raised This Month: $51 Target: $400
 12% 

Bots don't shoot invisible


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay       
DarkGL
Senior Member
Join Date: Aug 2010
Location: Warsaw, Poland
Old 06-14-2012 , 15:06   Bots don't shoot invisible
Reply With Quote #1

In standard bots were shooting to people who are invisible this plugin change this.
If we are invisible bots can just don't see us. Tested on podbots.

Attached Files
File Type: sma Get Plugin or Get Source (botDontShotInv.sma - 1568 views - 1.6 KB)
__________________

Last edited by DarkGL; 06-14-2012 at 19:21.
DarkGL is offline
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 06-14-2012 , 15:14   Re: Bots don't shoot invisible
Reply With Quote #2

Author shouldn't be Unknown
I suggest to hook is_user_alive, is_user_bot into variables like g_bAlive, ..., when client_putinserver, client_disconnect, PlayerSpawn_Post and PlayerKilled
__________________

Last edited by claudiuhks; 06-14-2012 at 15:15.
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 06-14-2012 , 15:20   Re: Bots don't shoot invisible
Reply With Quote #3

I suggest adding support for render modes other than TransAlpha since that isn't the only one you can be invisible with.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
DarkGL
Senior Member
Join Date: Aug 2010
Location: Warsaw, Poland
Old 06-14-2012 , 15:58   Re: Bots don't shoot invisible
Reply With Quote #4

@Update
__________________
DarkGL is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 06-14-2012 , 16:42   Re: Bots don't shoot invisible
Reply With Quote #5

I thought KWo had fixed it on podbots
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 06-14-2012 , 17:12   Re: Bots don't shoot invisible
Reply With Quote #6

So far I know, it has been already added, yes.
__________________
Arkshine is offline
DarkGL
Senior Member
Join Date: Aug 2010
Location: Warsaw, Poland
Old 06-14-2012 , 17:17   Re: Bots don't shoot invisible
Reply With Quote #7

I didn't check this plugin was made for one of amxx.pl users which say that bots kill invisible people ;) It can be use with zbots
__________________

Last edited by DarkGL; 06-14-2012 at 17:18.
DarkGL is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 06-14-2012 , 17:24   Re: Bots don't shoot invisible
Reply With Quote #8

Quote:
Originally Posted by DarkGL View Post
It can be use with zbots
Which are illegal to use
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
DarkGL
Senior Member
Join Date: Aug 2010
Location: Warsaw, Poland
Old 06-14-2012 , 17:26   Re: Bots don't shoot invisible
Reply With Quote #9

I didn't see podbots source code but they maybe only don't "see" people who are fully invisible ?
__________________

Last edited by DarkGL; 06-14-2012 at 17:37.
DarkGL is offline
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 06-14-2012 , 18:40   Re: Bots don't shoot invisible
Reply With Quote #10

As another suggestion, I think it would be better to don't use public for functions which are not forwards like set_task, RegisterHam, register_event or other natives.

-- Edited --

And for your next update, would be better to define:

Code:
const gmaxClients = 32; // Instead of: // new gmaxClients = 32;

Code:
public fwKilled( id ){ // Instead of: // public fwKilled( id , idattacker , shouldgib ){ // (because you don't use these variables)

Code:
    return !( 0 < iRender < 3 && 3 < iRender < 6 ); // Instead of: //  return ( iRender != kRenderTransColor && iRender != kRenderTransTexture && iRender != kRenderTransAlpha && iRender != kRenderTransAdd );
__________________

Last edited by claudiuhks; 06-14-2012 at 23:48.
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:56.


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