Raised This Month: $ Target: $400
 0% 

Subplugin Submission [ZP] Addon Set Bot Random Zombie Class


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 06-01-2011 , 13:07   [ZP] Addon Set Bot Random Zombie Class
Reply With Quote #1

Plugin Description:
As usually BOT only choose number 1 zombie class in "Zombie Class Menu" on the first round. This plugin make it random zombie class on the first round when BOT enter the server. So on the first round you will see a different zombie class for BOT. Only for BOT

Cvars:
No cvar, please read in source code.

Configuration:
Everytime you adding a new zombie classes you need to change this
PHP Code:
#define MAX_ZCLASS 10 //Manually set your max number of zombie classes (see in zombie class menu) 
according how many zombie classes used in your server.
Attached Files
File Type: sma Get Plugin or Get Source (ZP_Addon_BotRandomClass.sma - 3272 views - 955 Bytes)
__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019

Last edited by yokomo; 06-01-2011 at 13:10.
yokomo is offline
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 06-01-2011 , 13:39   Re: [ZP] Addon Set Bot Random Zombie Class
Reply With Quote #2

My bots use random class and there are no need a plugin : )
But thanks for share
.Dare Devil. is offline
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 06-01-2011 , 14:29   Re: [ZP] Addon Set Bot Random Zombie Class
Reply With Quote #3

Quote:
Originally Posted by .Dare Devil. View Post
My bots use random class and there are no need a plugin : )
But thanks for share
On the first round? or second round? are you editing ZP main code? Normal ZP plugin set random BOT class after the first infection.
__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019
yokomo is offline
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 06-02-2011 , 03:36   Re: [ZP] Addon Set Bot Random Zombie Class
Reply With Quote #4

Quote:
Originally Posted by yokomo View Post
On the first round? or second round? are you editing ZP main code? Normal ZP plugin set random BOT class after the first infection.
Wow, thats nice.
My bot use random class only first infection.
.Dare Devil. is offline
Dolph_Ziggler
BANNED
Join Date: Jun 2011
Old 06-01-2011 , 16:01   Re: [ZP] Addon Set Bot Random Zombie Class
Reply With Quote #5

nice
Dolph_Ziggler is offline
Send a message via MSN to Dolph_Ziggler
bibu
Veteran Member
Join Date: Sep 2010
Old 06-01-2011 , 17:57   Re: [ZP] Addon Set Bot Random Zombie Class
Reply With Quote #6

This would be enough, you're hardcoding it with the taskids, which is absolutely not needed in this case.

->

PHP Code:
public client_putinserver(id)
{
    if (
is_user_bot(id))
    {
        
set_task(5.0"SetBotRandomClass"id)
    }
}

public 
SetBotRandomClass(id)
{
    if(
is_user_connected(id))
    {
        new 
maxclass MAX_ZCLASS 1
    
        zp_set_user_zombie_class
(idrandom_num(0maxclass))
    }

This is simple enough.
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
jc980
Veteran Member
Join Date: Jan 2010
Location: God is with us...
Old 06-02-2011 , 06:08   Re: [ZP] Addon Set Bot Random Zombie Class
Reply With Quote #7

FINALLY!!!!! So I Can Play With Bots That Are Like Real Players!!!!!!! I wish Zbots has chat messages than lousy mic messages.
__________________
jc980 is offline
dias
BANNED
Join Date: Jul 2009
Location: South Vietnam
Old 06-02-2011 , 08:30   Re: [ZP] Addon Set Bot Random Zombie Class
Reply With Quote #8

I think Code "Random zombie class for bot" in Zombie Plague 4.3 Code is Not work..... In my first infection. my Bot is use the same class..
- This is a good plugin to use

P/s: Added this thread to New List of Plugin...

Last edited by dias; 06-02-2011 at 08:35.
dias is offline
Send a message via Yahoo to dias Send a message via Skype™ to dias
tei1995
Senior Member
Join Date: Feb 2011
Location: VietNam
Old 06-02-2011 , 09:08   Re: [ZP] Addon Set Bot Random Zombie Class
Reply With Quote #9

wow thanks man, i will test.
tei1995 is offline
Snaker beatter
Veteran Member
Join Date: Sep 2011
Location: Manila, Philippines
Old 09-17-2011 , 09:48   Re: [ZP] Addon Set Bot Random Zombie Class
Reply With Quote #10

Think no effect
Snaker beatter is offline
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 15:22.


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