AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Zombie Plague Mod (https://forums.alliedmods.net/forumdisplay.php?f=126)
-   -   Subplugin Submission [ZP] Addon Set Bot Random Zombie Class (https://forums.alliedmods.net/showthread.php?t=158208)

yokomo 06-01-2011 13:07

[ZP] Addon Set Bot Random Zombie Class
 
1 Attachment(s)
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.

.Dare Devil. 06-01-2011 13:39

Re: [ZP] Addon Set Bot Random Zombie Class
 
My bots use random class and there are no need a plugin : )
But thanks for share

yokomo 06-01-2011 14:29

Re: [ZP] Addon Set Bot Random Zombie Class
 
Quote:

Originally Posted by .Dare Devil. (Post 1479409)
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.

Dolph_Ziggler 06-01-2011 16:01

Re: [ZP] Addon Set Bot Random Zombie Class
 
nice :)

bibu 06-01-2011 17:57

Re: [ZP] Addon Set Bot Random Zombie Class
 
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.

.Dare Devil. 06-02-2011 03:36

Re: [ZP] Addon Set Bot Random Zombie Class
 
Quote:

Originally Posted by yokomo (Post 1479436)
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. :)

jc980 06-02-2011 06:08

Re: [ZP] Addon Set Bot Random Zombie Class
 
FINALLY!!!!! So I Can Play With Bots That Are Like Real Players!!!!!!! I wish Zbots has chat messages than lousy mic messages.

dias 06-02-2011 08:30

Re: [ZP] Addon Set Bot Random Zombie Class
 
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 :D

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

tei1995 06-02-2011 09:08

Re: [ZP] Addon Set Bot Random Zombie Class
 
wow thanks man, i will test.

Snaker beatter 09-17-2011 09:48

Re: [ZP] Addon Set Bot Random Zombie Class
 
Think no effect


All times are GMT -4. The time now is 15:22.

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