/*
CO Bot Spawner (COBS) v0.1
Copyright (C) 2007 Ian (Juan) Cammarata
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
--------------------------------------------------------------------------------
CO Bot Spawner (COBS) v0.1
Created by Ian (Juan) Cammarata
http://ian.cammarata.us
AMXX 1.76d
5/2/2007 5:34:33 AM
--------------------------------------------------------------------------------
Description:
--------------------------------------------------------------------------------
Cvars: (* indicates default)
qbs < 0 (off) | 0 (team 1) | 1 (team 2*) | ...(both teams)>
qbs_delay < 9999 | ... > : Initian respawn delay.
qbs_multiplier < 0.5 (*) | ... > : Respawn delay multiplier (in seconds).
qbs_multiply_time < 5 (*) | ... > : Interval to apply multiplier (in minutes).
qbs_threshold < 5 (*) | ... > : Max spawn delay (in seconds). When reached plugin disables for the remainder of the round.
*/
#include
#include
#include
#define VERSION "0.1"
new p_mode,round_time
public
public plugin_init(){
register_plugin("COBS",VERSION,"Ian Cammarata")
register_cvar("cobs_version",VERSION,FCVAR_SERVER)
p_mode= register_cvar("cobs","2")
p_delay=register_cvar("cobs_delay","0.25")
p_xer= register_cvar("cobs_multiplier","2")
p_intvl=register_cvar("cobs_multiply_time","5")
p_thold=register_cvar("cobs_threshold","25")
if(ns_is_combat())set_task(5,"spawn_task")
}