AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Zombie Plague Mod (https://forums.alliedmods.net/forumdisplay.php?f=126)
-   -   Subplugin Submission [ZP] Addon: CZ Bot Helper [New & Improved Version] (https://forums.alliedmods.net/showthread.php?t=124835)

abdul-rehman 04-21-2010 13:59

[ZP] Addon: CZ Bot Helper [New & Improved Version]
 
2 Attachment(s)
[ZP] Addon: CZ Bot Helper



DESCRIPTION:
What this plugin basically deos is that it allows bots to use their
valuable flash light. It deos not Forces them to use it so the flash
light is not flickery but smooth as if a real player was using it.
The plugin also features an attack block for bots that means that
bots will no longer be firing at each other on round start.

CVARS:

- zp_bot_flashlight 1
-> Enable / Disable Flash light [0 - Disabled]

- zp_bot_flashlight_red 150
-> Red color content of the flashlight

- zp_bot_flashlight_green 150
-> Green color content of the flashlight

- zp_bot_flashlight_blue 150
-> Blue color content of the flashlight

- zp_bot_flashlight_radius 10
-> Radius / Size of the flashlight

- zp_bot_flashlight_max_distance 10000.0
-> Max distance after which flash light wont work

- zp_bot_flashlight_show_all 1
-> Whether or not to show the flash light to everyone

- zp_bot_block_attack 1
-> Prevents bots from shooting each other on round start

The following cvars are available for the New Modes version:

- zp_bot_flash_assassin_red 150
-> Red color content of the flashlight in Assassin round

- zp_bot_flash_assassin_green 150
-> Green color content of the flashlight in Assassin round

- zp_bot_flash_assassin_blue 150
-> Blue color content of the flashlight in Assassin round

- zp_bot_flash_assassin_radius 10
-> Radius / Size of the flashlight in Assassin round

CREDITS:
- MeRcyLeZZ ---> For the custom flash light code
- dels ---------> For the original bot helper plugin
- ConnerMcLoed -> How to get the origin where the player is aiming

CHANGE LOG:
-v1.0 ===> Initial Release

NOTE:
- This plugin has Not been tested with POD Bots so i dont know whether it will work on them.
- This plugin should not be used with Zbots running on CS 1.6 bcoz Zbots are illegal on CS 1.6 :nono:.
- This plugin is supposed to be used with original CZ Bots which are running on Condition Zero.
- If you are running the editted version of ZP with New Modes then download the Second Attachment.

georgik57 04-21-2010 14:32

Re: [ZP] Addon: CZ Bot Helper [New & Improved Version]
 
lol
i didn't think the "block shooting" part was possible
but it seems almost everything is
nice job once again...

abdul-rehman 04-21-2010 14:45

Re: [ZP] Addon: CZ Bot Helper [New & Improved Version]
 
Check out the code. It is possible to hook the button and then block it..!

georgik57 04-21-2010 14:48

Re: [ZP] Addon: CZ Bot Helper [New & Improved Version]
 
Quote:

Originally Posted by abdul-rehman (Post 1156693)
Check out the code. It is possible to hook the button and then block it..!

i knew about that but i didn't think it will work for bots

fiendshard 04-21-2010 17:47

Re: [ZP] Addon: CZ Bot Helper [New & Improved Version]
 
GJ abdul, really nice and useful plugin


Possible bug:
I'm not sure if i am the only one who experience this, but when this plugin is enabled, flare seems to cease working, and becomes flickery after some time.

sabrioz 04-22-2010 03:52

Re: [ZP] Addon: CZ Bot Helper [New & Improved Version]
 
abdul can you force bot to use napalm and frost nade? because in CZ ZP mod, bot doesn't throw that grenade.

abdul-rehman 04-22-2010 05:51

Re: [ZP] Addon: CZ Bot Helper [New & Improved Version]
 
Quote:

Originally Posted by sabrioz (Post 1157062)
abdul can you force bot to use napalm and frost nade? because in CZ ZP mod, bot doesn't throw that grenade.

I dont know how to force bot to take out napalm / Frost nade on a specific event

Quote:

Originally Posted by fiendshard (Post 1156818)
Possible bug:
I'm not sure if i am the only one who experience this, but when this plugin is enabled, flare seems to cease working, and becomes flickery after some time.

I checked it but there was no problem / bug regarding flare nades maybe some sub-plugin can cause that

st6315 04-22-2010 12:37

Re: [ZP] Addon: CZ Bot Helper [New & Improved Version]
 
Quote:

I checked it but there was no problem / bug regarding flare nades maybe some sub-plugin can cause that
Well, after testing, I found this problem only happened when bot step into the flare lightning area. When bot leave the flare lightning area, then it's back to normal.

fiendshard 04-22-2010 18:24

Re: [ZP] Addon: CZ Bot Helper [New & Improved Version] !! Added support for New Modes
 
Maybe it was because of kick the nades plugin that i'm using too, but works fine after small alterations of following values in zombieplague.cfg:

Code:

zp_flash_color_R 150 // Custom flashlight color (red)
zp_flash_color_G 150 // Custom flashlight color (green)
zp_flash_color_B 150 // Custom flashlight color (blue)

to

Code:

zp_flash_color_R 170 // Custom flashlight color (red)
zp_flash_color_G 170 // Custom flashlight color (green)
zp_flash_color_B 170 // Custom flashlight color (blue)


vipsafwan92 04-22-2010 23:45

Re: [ZP] Addon: CZ Bot Helper [New & Improved Version] !! Added support for New Modes
 
nice, can you make it for PODBot with Normal Flashlight ?


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

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